mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feature/migrate models (#16)
* feat: add new supported attestation formats to genesis * feat: refactor keyType to keytype enum * refactor: remove unused imports and code * refactor: update main.go to use src package * refactor: move web-related structs from to * refactor: move client middleware package to root * refactor: remove unused IndexedDB dependency * feat: update worker implementation to use * feat: add Caddyfile and Caddy configuration for vault service * refactor(config): move keyshare and address to Motr config * fix: validate service origin in AllocateVault * chore: remove IndexedDB configuration * feat: add support for IPNS-based vault access
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/internal/orm/browser" }
|
||||
|
||||
module browser
|
||||
|
||||
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||
|
||||
|
||||
class JsonField extends go.Field {
|
||||
structTags {
|
||||
["json"] = "%{name},omitempty"
|
||||
}
|
||||
}
|
||||
|
||||
class PublicKeyCredentialRequestOptions {
|
||||
challenge: String
|
||||
timeout: Int
|
||||
rpId: String
|
||||
allowCredentials: List<PublicKeyCredentialDescriptor>
|
||||
userVerification: String
|
||||
extensions: List<PublicKeyCredentialParameters>
|
||||
}
|
||||
|
||||
class PublicKeyCredentialDescriptor {
|
||||
id: String
|
||||
transports: List<String>
|
||||
type: String
|
||||
}
|
||||
|
||||
class PublicKeyCredentialParameters {
|
||||
type: String
|
||||
alg: Int?
|
||||
}
|
||||
|
||||
class AuthenticatorSelectionCriteria {
|
||||
authenticatorAttachment: String
|
||||
requireResidentKey: Boolean
|
||||
userVerification: String
|
||||
}
|
||||
|
||||
|
||||
class PublicKeyCredentialCreationOptions {
|
||||
rp: RpEntity
|
||||
user: UserEntity
|
||||
challenge: String
|
||||
pubKeyCredParams: List<PublicKeyCredentialParameters>
|
||||
timeout: Int
|
||||
excludeCredentials: List<PublicKeyCredentialDescriptor>
|
||||
authenticatorSelection: AuthenticatorSelectionCriteria?
|
||||
attestation: String
|
||||
extensions: List<PublicKeyCredentialParameters>
|
||||
}
|
||||
|
||||
class RpEntity {
|
||||
id: String
|
||||
name: String?
|
||||
icon: String?
|
||||
}
|
||||
|
||||
class UserEntity {
|
||||
id: String
|
||||
displayName: String?
|
||||
name: String?
|
||||
}
|
||||
|
||||
class SWT {
|
||||
origin: String
|
||||
location: String
|
||||
identifier: String
|
||||
scopes: List<String>
|
||||
properties: Map<String, String>
|
||||
expiryBlock: Int
|
||||
}
|
||||
Reference in New Issue
Block a user