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,10 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type AuthenticatorSelectionCriteria struct {
|
||||
AuthenticatorAttachment string `pkl:"authenticatorAttachment"`
|
||||
|
||||
RequireResidentKey bool `pkl:"requireResidentKey"`
|
||||
|
||||
UserVerification string `pkl:"userVerification"`
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/apple/pkl-go/pkl"
|
||||
)
|
||||
|
||||
type Browser struct {
|
||||
}
|
||||
|
||||
// LoadFromPath loads the pkl module at the given path and evaluates it into a Browser
|
||||
func LoadFromPath(ctx context.Context, path string) (ret *Browser, err error) {
|
||||
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer func() {
|
||||
cerr := evaluator.Close()
|
||||
if err == nil {
|
||||
err = cerr
|
||||
}
|
||||
}()
|
||||
ret, err = Load(ctx, evaluator, pkl.FileSource(path))
|
||||
return ret, err
|
||||
}
|
||||
|
||||
// Load loads the pkl module at the given source and evaluates it with the given evaluator into a Browser
|
||||
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Browser, error) {
|
||||
var ret Browser
|
||||
if err := evaluator.EvaluateModule(ctx, source, &ret); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ret, nil
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type PublicKeyCredentialCreationOptions struct {
|
||||
Rp *RpEntity `pkl:"rp"`
|
||||
|
||||
User *UserEntity `pkl:"user"`
|
||||
|
||||
Challenge string `pkl:"challenge"`
|
||||
|
||||
PubKeyCredParams []*PublicKeyCredentialParameters `pkl:"pubKeyCredParams"`
|
||||
|
||||
Timeout int `pkl:"timeout"`
|
||||
|
||||
ExcludeCredentials []*PublicKeyCredentialDescriptor `pkl:"excludeCredentials"`
|
||||
|
||||
AuthenticatorSelection *AuthenticatorSelectionCriteria `pkl:"authenticatorSelection"`
|
||||
|
||||
Attestation string `pkl:"attestation"`
|
||||
|
||||
Extensions []*PublicKeyCredentialParameters `pkl:"extensions"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type PublicKeyCredentialDescriptor struct {
|
||||
Id string `pkl:"id"`
|
||||
|
||||
Transports []string `pkl:"transports"`
|
||||
|
||||
Type string `pkl:"type"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type PublicKeyCredentialParameters struct {
|
||||
Type string `pkl:"type"`
|
||||
|
||||
Alg *int `pkl:"alg"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type PublicKeyCredentialRequestOptions struct {
|
||||
Challenge string `pkl:"challenge"`
|
||||
|
||||
Timeout int `pkl:"timeout"`
|
||||
|
||||
RpId string `pkl:"rpId"`
|
||||
|
||||
AllowCredentials []*PublicKeyCredentialDescriptor `pkl:"allowCredentials"`
|
||||
|
||||
UserVerification string `pkl:"userVerification"`
|
||||
|
||||
Extensions []*PublicKeyCredentialParameters `pkl:"extensions"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type RpEntity struct {
|
||||
Id string `pkl:"id"`
|
||||
|
||||
Name *string `pkl:"name"`
|
||||
|
||||
Icon *string `pkl:"icon"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type SWT struct {
|
||||
Origin string `pkl:"origin"`
|
||||
|
||||
Location string `pkl:"location"`
|
||||
|
||||
Identifier string `pkl:"identifier"`
|
||||
|
||||
Scopes []string `pkl:"scopes"`
|
||||
|
||||
Properties map[string]string `pkl:"properties"`
|
||||
|
||||
ExpiryBlock int `pkl:"expiryBlock"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
type UserEntity struct {
|
||||
Id string `pkl:"id"`
|
||||
|
||||
DisplayName *string `pkl:"displayName"`
|
||||
|
||||
Name *string `pkl:"name"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Code generated from Pkl module `browser`. DO NOT EDIT.
|
||||
package browser
|
||||
|
||||
import "github.com/apple/pkl-go/pkl"
|
||||
|
||||
func init() {
|
||||
pkl.RegisterMapping("browser", Browser{})
|
||||
pkl.RegisterMapping("browser#PublicKeyCredentialRequestOptions", PublicKeyCredentialRequestOptions{})
|
||||
pkl.RegisterMapping("browser#PublicKeyCredentialDescriptor", PublicKeyCredentialDescriptor{})
|
||||
pkl.RegisterMapping("browser#PublicKeyCredentialParameters", PublicKeyCredentialParameters{})
|
||||
pkl.RegisterMapping("browser#AuthenticatorSelectionCriteria", AuthenticatorSelectionCriteria{})
|
||||
pkl.RegisterMapping("browser#PublicKeyCredentialCreationOptions", PublicKeyCredentialCreationOptions{})
|
||||
pkl.RegisterMapping("browser#RpEntity", RpEntity{})
|
||||
pkl.RegisterMapping("browser#UserEntity", UserEntity{})
|
||||
pkl.RegisterMapping("browser#SWT", SWT{})
|
||||
}
|
||||
Reference in New Issue
Block a user