mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
feat: add Input and RegistrationForm models
This commit is contained in:
-37
@@ -1,37 +0,0 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/pkg/format" }
|
||||
|
||||
module format
|
||||
|
||||
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||
|
||||
class JsonField extends go.Field {
|
||||
structTags {
|
||||
["json"] = "%{name},omitempty"
|
||||
}
|
||||
}
|
||||
|
||||
typealias DID = String
|
||||
|
||||
typealias DIDMethod = "ipfs"|"sonr"|"bitcoin"|"ethereum"|"ibc"|"webauthn"|"dwn"|"service"
|
||||
|
||||
class Macaroon {
|
||||
@JsonField
|
||||
location: String
|
||||
|
||||
@JsonField
|
||||
originator: String
|
||||
|
||||
@JsonField
|
||||
identifier: String
|
||||
|
||||
@JsonField
|
||||
first_party: List<String>
|
||||
|
||||
@JsonField
|
||||
third_party: List<String>
|
||||
|
||||
@JsonField
|
||||
expiration: Int
|
||||
}
|
||||
|
||||
typealias MacaroonToken = String
|
||||
Reference in New Issue
Block a user