247 lines
8.2 KiB
Go
247 lines
8.2 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.30.0
|
|
|
|
package keybase
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type Account struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
EnclaveID int64 `json:"enclave_id"`
|
|
Address string `json:"address"`
|
|
ChainID string `json:"chain_id"`
|
|
CoinType int64 `json:"coin_type"`
|
|
AccountIndex int64 `json:"account_index"`
|
|
AddressIndex int64 `json:"address_index"`
|
|
Label *string `json:"label"`
|
|
IsDefault int64 `json:"is_default"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type Credential struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
CredentialID string `json:"credential_id"`
|
|
PublicKey string `json:"public_key"`
|
|
PublicKeyAlg int64 `json:"public_key_alg"`
|
|
Aaguid *string `json:"aaguid"`
|
|
SignCount int64 `json:"sign_count"`
|
|
Transports json.RawMessage `json:"transports"`
|
|
DeviceName string `json:"device_name"`
|
|
DeviceType string `json:"device_type"`
|
|
Authenticator *string `json:"authenticator"`
|
|
IsDiscoverable int64 `json:"is_discoverable"`
|
|
BackedUp int64 `json:"backed_up"`
|
|
CreatedAt string `json:"created_at"`
|
|
LastUsed string `json:"last_used"`
|
|
}
|
|
|
|
type DidDocument struct {
|
|
ID int64 `json:"id"`
|
|
Did string `json:"did"`
|
|
Controller string `json:"controller"`
|
|
Document json.RawMessage `json:"document"`
|
|
Sequence int64 `json:"sequence"`
|
|
LastSynced string `json:"last_synced"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type Grant struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
ServiceID int64 `json:"service_id"`
|
|
DelegationCid *string `json:"delegation_cid"`
|
|
Scopes json.RawMessage `json:"scopes"`
|
|
Accounts json.RawMessage `json:"accounts"`
|
|
Status string `json:"status"`
|
|
GrantedAt string `json:"granted_at"`
|
|
LastUsed *string `json:"last_used"`
|
|
ExpiresAt *string `json:"expires_at"`
|
|
}
|
|
|
|
type MpcEnclafe struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
EnclaveID string `json:"enclave_id"`
|
|
PublicKeyHex string `json:"public_key_hex"`
|
|
PublicKey []byte `json:"public_key"`
|
|
ValShare []byte `json:"val_share"`
|
|
UserShare []byte `json:"user_share"`
|
|
Nonce []byte `json:"nonce"`
|
|
Curve string `json:"curve"`
|
|
Status string `json:"status"`
|
|
CreatedAt string `json:"created_at"`
|
|
RotatedAt *string `json:"rotated_at"`
|
|
}
|
|
|
|
type Service struct {
|
|
ID int64 `json:"id"`
|
|
Origin string `json:"origin"`
|
|
Name string `json:"name"`
|
|
Description *string `json:"description"`
|
|
LogoUrl *string `json:"logo_url"`
|
|
Did *string `json:"did"`
|
|
IsVerified int64 `json:"is_verified"`
|
|
Metadata json.RawMessage `json:"metadata"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type Session struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
CredentialID int64 `json:"credential_id"`
|
|
SessionID string `json:"session_id"`
|
|
DeviceInfo json.RawMessage `json:"device_info"`
|
|
IsCurrent int64 `json:"is_current"`
|
|
LastActivity string `json:"last_activity"`
|
|
ExpiresAt string `json:"expires_at"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type SyncCheckpoint struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
ResourceType string `json:"resource_type"`
|
|
LastBlock int64 `json:"last_block"`
|
|
LastTxHash *string `json:"last_tx_hash"`
|
|
LastSynced string `json:"last_synced"`
|
|
}
|
|
|
|
type UcanDelegation struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
Cid string `json:"cid"`
|
|
Envelope []byte `json:"envelope"`
|
|
Iss string `json:"iss"`
|
|
Aud string `json:"aud"`
|
|
Sub *string `json:"sub"`
|
|
Cmd string `json:"cmd"`
|
|
Pol *string `json:"pol"`
|
|
Nbf *string `json:"nbf"`
|
|
Exp *string `json:"exp"`
|
|
IsRoot int64 `json:"is_root"`
|
|
IsPowerline int64 `json:"is_powerline"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type UcanInvocation struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
Cid string `json:"cid"`
|
|
Envelope []byte `json:"envelope"`
|
|
Iss string `json:"iss"`
|
|
Sub string `json:"sub"`
|
|
Aud *string `json:"aud"`
|
|
Cmd string `json:"cmd"`
|
|
Prf string `json:"prf"`
|
|
Exp *string `json:"exp"`
|
|
Iat *string `json:"iat"`
|
|
ExecutedAt *string `json:"executed_at"`
|
|
ResultCid *string `json:"result_cid"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type UcanRevocation struct {
|
|
ID int64 `json:"id"`
|
|
DelegationCid string `json:"delegation_cid"`
|
|
RevokedBy string `json:"revoked_by"`
|
|
InvocationCid *string `json:"invocation_cid"`
|
|
Reason *string `json:"reason"`
|
|
RevokedAt string `json:"revoked_at"`
|
|
}
|
|
|
|
type VAccount struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
EnclaveID int64 `json:"enclave_id"`
|
|
Address string `json:"address"`
|
|
ChainID string `json:"chain_id"`
|
|
CoinType int64 `json:"coin_type"`
|
|
AccountIndex int64 `json:"account_index"`
|
|
AddressIndex int64 `json:"address_index"`
|
|
Label *string `json:"label"`
|
|
IsDefault int64 `json:"is_default"`
|
|
CreatedAt string `json:"created_at"`
|
|
PublicKeyHex string `json:"public_key_hex"`
|
|
Curve string `json:"curve"`
|
|
EnclaveRef string `json:"enclave_ref"`
|
|
}
|
|
|
|
type VActiveDelegation struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
Cid string `json:"cid"`
|
|
Envelope []byte `json:"envelope"`
|
|
Iss string `json:"iss"`
|
|
Aud string `json:"aud"`
|
|
Sub *string `json:"sub"`
|
|
Cmd string `json:"cmd"`
|
|
Pol *string `json:"pol"`
|
|
Nbf *string `json:"nbf"`
|
|
Exp *string `json:"exp"`
|
|
IsRoot int64 `json:"is_root"`
|
|
IsPowerline int64 `json:"is_powerline"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type VActiveEnclafe struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
EnclaveID string `json:"enclave_id"`
|
|
PublicKeyHex string `json:"public_key_hex"`
|
|
PublicKey []byte `json:"public_key"`
|
|
ValShare []byte `json:"val_share"`
|
|
UserShare []byte `json:"user_share"`
|
|
Nonce []byte `json:"nonce"`
|
|
Curve string `json:"curve"`
|
|
Status string `json:"status"`
|
|
CreatedAt string `json:"created_at"`
|
|
RotatedAt *string `json:"rotated_at"`
|
|
}
|
|
|
|
type VGrant struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
ServiceID int64 `json:"service_id"`
|
|
DelegationCid *string `json:"delegation_cid"`
|
|
Scopes string `json:"scopes"`
|
|
Accounts string `json:"accounts"`
|
|
Status string `json:"status"`
|
|
GrantedAt string `json:"granted_at"`
|
|
LastUsed *string `json:"last_used"`
|
|
ExpiresAt *string `json:"expires_at"`
|
|
ServiceName string `json:"service_name"`
|
|
ServiceOrigin string `json:"service_origin"`
|
|
ServiceLogo *string `json:"service_logo"`
|
|
}
|
|
|
|
type VSession struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
CredentialID int64 `json:"credential_id"`
|
|
SessionID string `json:"session_id"`
|
|
DeviceInfo *string `json:"device_info"`
|
|
IsCurrent int64 `json:"is_current"`
|
|
LastActivity string `json:"last_activity"`
|
|
ExpiresAt string `json:"expires_at"`
|
|
CreatedAt string `json:"created_at"`
|
|
DeviceName string `json:"device_name"`
|
|
Authenticator *string `json:"authenticator"`
|
|
}
|
|
|
|
type VerificationMethod struct {
|
|
ID int64 `json:"id"`
|
|
DidID int64 `json:"did_id"`
|
|
MethodID string `json:"method_id"`
|
|
MethodType string `json:"method_type"`
|
|
Controller string `json:"controller"`
|
|
PublicKey string `json:"public_key"`
|
|
Purpose string `json:"purpose"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|