type PublishedRecord = Record export type Attestation = { 'did-jwt'?: string 'did-jwt-vc'?: string } export type AlsoKnownAsAccount = { protocol: string id: string host?: string claim?: string attestations?: Array } export type AlsoKnownAs = { accounts: Array } export type ImageMetadata = { src: string mimeType: string width: number height: number size?: number } export type ImageSources = { original: ImageMetadata alternatives?: Array } export type BasicProfile = { name?: string image?: ImageSources description?: string emoji?: string background?: ImageSources birthDate?: string url?: string gender?: string homeLocation?: string residenceCountry?: string nationalities?: Array affiliations?: Array } export type CryptoAccounts = Record export type Definition = Record> = { name: string description: string schema: string url?: string config?: C } export type IdentityIndex = Record export type JWERecipient = { header: Record encrypted_key: string } export type JWE = { protected: string iv: string ciphertext: string tag: string aad?: string recipients?: Array } export type WrappedJWE = { jwe: JWE } export type AuthData = { id: WrappedJWE pub: string data: WrappedJWE } export type ThreeIdKeychain = { authMap: Record pastSeeds: Array } export type SchemaTypes = { AlsoKnownAs: AlsoKnownAs BasicProfile: BasicProfile CryptoAccounts: CryptoAccounts Definition: Definition IdentityIndex: IdentityIndex ThreeIdKeychain: ThreeIdKeychain } export type SchemaName = keyof SchemaTypes export type SchemaType = SchemaTypes[K] export type PublishedSchemas = PublishedRecord export const schemas: PublishedSchemas = { AlsoKnownAs: 'ceramic://k3y52l7qbv1fryojt8n8cw2k04p9wp67ly59iwqs65dejso566fij5wsdrb871yio', BasicProfile: 'ceramic://k3y52l7qbv1frxt706gqfzmq6cbqdkptzk8uudaryhlkf6ly9vx21hqu4r6k1jqio', CryptoAccounts: 'ceramic://k3y52l7qbv1frypussjburqg4fykyyycfu0p9znc75lv2t5cg4xaslhagkd7h7mkg', Definition: 'ceramic://k3y52l7qbv1fry1fp4s0nwdarh0vahusarpposgevy0pemiykymd2ord6swtharcw', IdentityIndex: 'ceramic://k3y52l7qbv1fryjn62sggjh1lpn11c56qfofzmty190d62hwk1cal1c7qc5he54ow', ThreeIdKeychain: 'ceramic://k3y52l7qbv1frxiodfo6f25wocb8zz60ywqw4sqcprs26qx1qx467l4ybxplybvgg', } export type DefinitionTypes = { alsoKnownAs: AlsoKnownAs basicProfile: BasicProfile cryptoAccounts: CryptoAccounts threeIdKeychain: ThreeIdKeychain } export type DefinitionName = keyof DefinitionTypes export type DefinitionType = DefinitionTypes[K] export type PublishedDefinitions = PublishedRecord export const definitions: PublishedDefinitions = { alsoKnownAs: 'kjzl6cwe1jw146zfmqa10a5x1vry6au3t362p44uttz4l0k4hi88o41zplhmxnf', basicProfile: 'kjzl6cwe1jw145cjbeko9kil8g9bxszjhyde21ob8epxuxkaon1izyqsu8wgcic', cryptoAccounts: 'kjzl6cwe1jw149z4rvwzi56mjjukafta30kojzktd9dsrgqdgz4wlnceu59f95f', threeIdKeychain: 'kjzl6cwe1jw14a50gupo0d433e9ojgmj9rd9ejxkc8vq6lw0fznsoohwzmejqs8', }