@krebitdao/reputation-passport
Version:
Krebit SDK for Verified Credentials
1,208 lines • 42.4 kB
TypeScript
declare const krebit: {
lib: {
ceramic: {
publicIDX: (props: import("./lib/ceramic.js").PublicIDXProps) => import("@glazed/did-datastore").DIDDataStore<ModelTypeAliases, string | number | symbol>;
authDIDSession: (props: import("./lib/ceramic.js").AuthProviderProps) => Promise<import("@glazed/did-datastore").DIDDataStore<ModelTypeAliases, string | number | symbol>>;
};
ethereum: {
getProvider: () => import("./utils/WalletProvider.js").WalletProvider;
switchNetwork: (provider: any) => Promise<any>;
};
graph: {
client: (props: import("./lib/graph.js").ClientProps) => Promise<any>;
verifiableCredentialsQuery: (props: import("./lib/graph.js").ListProps) => Promise<any>;
verifiableCredentialQuery: (props: import("./lib/graph.js").GetProps) => Promise<any>;
erc20ContractQuery: (props: import("./lib/graph.js").ListProps & import("./lib/graph.js").GetProps) => Promise<any>;
credentialRegistriesQuery: (props: import("./lib/graph.js").ListProps) => Promise<any>;
credentialRegistryQuery: (props: import("./lib/graph.js").GetProps) => Promise<any>;
erc20BalanceQuery: (address: string) => Promise<any>;
erc20BalancesQuery: (props: import("./lib/graph.js").ListProps) => Promise<any>;
exploreAccountsQuery: (props: import("./lib/graph.js").ListProps) => Promise<any>;
totalAccountsQuery: (props: import("./lib/graph.js").ListProps) => Promise<any>;
};
Lit: typeof import("./lib/lit.js").Lit;
ens: {
client: (props: import("./lib/ens.js").ClientProps) => Promise<any>;
resolveName: (name: string) => Promise<any>;
lookupAddress: (address: string) => Promise<any>;
};
uns: {
resolveName: (name: string) => Promise<string>;
lookupAddress: (address: string) => Promise<string>;
};
orbis: {
getDefaultDID: (address: string) => Promise<any>;
};
};
utils: {
WalletProvider: typeof import("./utils/WalletProvider.js").WalletProvider;
issueCredential: (props: import("./utils/issueCredential.js").IssueProps) => Promise<{
proof: import("@krebitdao/eip712-vc").Proof;
'@context': string[];
type: string[];
id: string;
issuer: {
id: string;
ethereumAddress: string;
};
credentialSubject: {
id: string;
trust: number;
stake: number;
price: number;
nbf: number;
exp: number;
value: any;
type: string;
typeSchema: string;
ethereumAddress: string;
did: string;
expirationDate: string;
tags?: string[];
encrypt?: "hash" | "lit" | "plain";
shareEncryptedWith?: string;
};
credentialSchema: {
id: string;
type: string;
};
issuanceDate: string;
expirationDate: string;
}>;
validateSchema: (props: import("./utils/issueCredential.js").ValidateProps) => Promise<true>;
base64: {
encodeb64: (uintarray: ArrayBuffer | SharedArrayBuffer) => string;
blobToBase64: (blob: Blob) => Promise<string>;
decodeb64: (b64String: string) => Uint8Array;
objToSortedArray: (obj: {
[k: string]: string;
}) => string[][];
arrayToObject: (arr: string[][]) => {
[k: string]: string;
};
};
hashClaimValue: (props: import("./utils/issueCredential.js").HashProps) => string;
regexValidations: {
address: string;
ens: string;
did: string;
};
mergeArray: (arr: any[]) => any[];
};
schemas: {
datamodel: {
schemas: Record<string, string>;
definitions: Record<string, string>;
tiles: Record<string, string>;
};
encodedModel: {
schemas: {
kjzl6cwe1jw14954l7j730aevhspmjmh9wwo2r9w65140ap734mvwn942y4knrh: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw148ychaktvw766tv7j3yplif971vgl29e3vaobnyj9mwhcp42n8r: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw14832fv2xw5rplefo22r2r7wiwq3rr4x9oaehlvzmopwmypln53w: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw146x1pnq7vg4t0lwea84s2a8u58tt1clfmv7mrju3l2341klxyu6: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw14bie69guriwn4hsto1gdh5q1ytpwi84xkz2b9oxkw9qs7d3v3vv: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw14bbsas0m29cxrnsyesfp0v45gz9l44p3wpw86j21kio8onil8po: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw145tpqvco7kb26ao0hq5i54uhz0jf9jyu9nowzhgigdambv3ptbx: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw1467h0pd1nz3gklqet38w9kxne4tmdl26cud6s8xr1k3el12lqol: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw1477e4urqgh6mih2t7ud1rcmf611ct8qe1ls3tcerirh5ggejo9a: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw14ah4u4u39w1cyf1gtb7lis7v3cihejajjktpw8wmgztxt8um1gu: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
kjzl6cwe1jw14bf3vp2ay7qg2syfj8jh3ddeyjelou8vg55dmifmsa1lkv8687b: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
dependencies: {};
version: string;
};
};
definitions: {
kjzl6cwe1jw14877ogy9v1jccegjnlba272hl2csgzrioo9oc3jjvhy3fpndvgs: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw149bn8nok71gf74amabpq4xor86v5v6catnf7bmbcdbcuk9qm0lu: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw14adnyrryrgbiqe8vka2lqly55zc219euskbsiyz3xsq0zkjifea: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw145cjbeko9kil8g9bxszjhyde21ob8epxuxkaon1izyqsu8wgcic: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw149z4rvwzi56mjjukafta30kojzktd9dsrgqdgz4wlnceu59f95f: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw146zfmqa10a5x1vry6au3t362p44uttz4l0k4hi88o41zplhmxnf: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
protected: string;
signature: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw14a2s184wj2echgivaic5105ki5g0duftqacurqoaiaoueollgqq: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw149dwrqgkmdhbxm52t5i0m37k5t7o9y2vf1tncss86iljsin8fpr: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw14bdckgezfuci7b5if7ussy4zmxj0q97c8jl3zvb172qz7h8jbqd: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw149hainpftr2tssjnlf2ty154nc137ujqq329aydhsrp5252y0hx: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
kjzl6cwe1jw14afevdrbxwgcw2aqk3nj0g47w8ermgde61o09o52bn6fkyq7k6i: {
alias: string;
commits: {
jws: {
payload: string;
signatures: {
signature: string;
protected: string;
}[];
link: string;
};
linkedBlock: string;
}[];
schema: string;
version: string;
};
};
tiles: {};
};
krbToken: {
polygon: {
contractName: string;
symbol: string;
token: string;
name: string;
address: string;
block: number;
network: string;
blockUrl: string;
txUrl: string;
addressUrl: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
};
};
matic: {
contractName: string;
symbol: string;
token: string;
name: string;
address: string;
block: number;
network: string;
blockUrl: string;
txUrl: string;
addressUrl: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
};
};
mumbai: {
contractName: string;
symbol: string;
token: string;
name: string;
address: string;
block: number;
network: string;
blockUrl: string;
txUrl: string;
addressUrl: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
};
};
abi: ({
anonymous: boolean;
inputs: ({
indexed: boolean;
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: ({
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
})[];
indexed: boolean;
internalType: string;
name: string;
type: string;
})[];
name: string;
type: string;
outputs?: undefined;
stateMutability?: undefined;
} | {
inputs: ({
components: ({
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
})[];
internalType: string;
name: string;
type: string;
} | {
internalType: string;
name: string;
type: string;
components?: undefined;
})[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
};
krebitNFT: {
polygon: {
contractName: string;
symbol: string;
token: string;
name: string;
address: string;
block: number;
network: string;
blockUrl: string;
txUrl: string;
addressUrl: string;
};
mumbai: {
contractName: string;
symbol: string;
token: string;
name: string;
address: string;
block: number;
network: string;
blockUrl: string;
txUrl: string;
addressUrl: string;
};
abi: ({
inputs: any[];
stateMutability: string;
type: string;
anonymous?: undefined;
name?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: {
indexed: boolean;
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
inputs: ({
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: ({
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
})[];
internalType: string;
name: string;
type: string;
})[];
name: string;
outputs: any[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
};
claims: {
badge: {
title: string;
type: string;
properties: {
entity: {
type: string;
};
username: {
type: string;
};
name: {
type: string;
};
startDate: {
type: string;
};
role: {
type: string;
};
level: {
type: string;
};
imageUrl: {
type: string;
};
description: {
type: string;
};
skills: {
type: string;
items: {
type: string;
properties: {
skillId: {
type: string;
};
score: {
type: string;
};
};
required: string[];
};
};
xp: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
birthDate: {
title: string;
type: string;
properties: {
date: {
type: string;
};
proofs: {
type: string;
};
};
required: any[];
additionalProperties: boolean;
};
certificate: {
title: string;
type: string;
properties: {
name: {
type: string;
};
description: {
type: string;
};
imageUrl: {
type: string;
};
entity: {
type: string;
};
issuanceDate: {
type: string;
};
expirationDate: {
type: string;
};
skills: {
type: string;
items: {
type: string;
properties: {
skillId: {
type: string;
};
score: {
type: string;
};
};
required: string[];
};
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
digitalProperty: {
title: string;
type: string;
properties: {
protocol: {
type: string;
};
host: {
type: string;
};
id: {
type: string;
};
username: {
type: string;
};
imageUrl: {
type: string;
};
startDate: {
type: string;
};
followers: {
type: string;
};
favorites: {
type: string;
};
posts: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
education: {
title: string;
type: string;
properties: {
name: {
type: string;
};
level: {
type: string;
};
description: {
type: string;
};
imageUrl: {
type: string;
};
entity: {
type: string;
};
issuanceDate: {
type: string;
};
hours: {
type: string;
};
skills: {
type: string;
items: {
type: string;
properties: {
skillId: {
type: string;
};
score: {
type: string;
};
};
required: string[];
};
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
issuer: {
title: string;
type: string;
properties: {
did: {
type: string;
};
ethereumAddress: {
type: string;
};
entity: {
type: string;
};
description: {
type: string;
};
imageUrl: {
type: string;
};
verificationUrl: {
type: string;
};
credentialType: {
type: string;
};
credentialSchema: {
type: string;
};
credentialSubjectListUrl: {
type: string;
};
price: {
type: string;
};
expirationMonths: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
legalName: {
title: string;
type: string;
properties: {
fullName: {
type: string;
};
firstName: {
type: string;
};
middleName: {
type: string;
};
lastName: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
location: {
title: string;
type: string;
properties: {
country: {
type: string;
};
city: {
type: string;
};
postalCode: {
type: string;
};
fullAddress: {
type: string;
};
latitude: {
type: string;
};
longitude: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
governmentId: {
title: string;
type: string;
properties: {
type: {
type: string;
};
country: {
type: string;
};
number: {
type: string;
};
issuanceDate: {
type: string;
};
expirationDate: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
phoneNumber: {
title: string;
type: string;
properties: {
country: {
type: string;
};
countryCode: {
type: string;
};
number: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
workExperience: {
title: string;
type: string;
properties: {
title: {
type: string;
};
entity: {
type: string;
};
city: {
type: string;
};
employmentType: {
type: string;
};
imageUrl: {
type: string;
};
description: {
type: string;
};
startDate: {
type: string;
};
endDate: {
type: string;
};
skills: {
type: string;
items: {
type: string;
properties: {
skillId: {
type: string;
};
score: {
type: string;
};
};
required: string[];
};
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
recommendation: {
title: string;
type: string;
properties: {
description: {
type: string;
};
entity: {
type: string;
};
startDate: {
type: string;
};
endDate: {
type: string;
};
skills: {
type: string;
items: {
type: string;
properties: {
skillId: {
type: string;
};
score: {
type: string;
};
};
required: string[];
};
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
attendance: {
title: string;
type: string;
properties: {
name: {
type: string;
};
description: {
type: string;
};
imageUrl: {
type: string;
};
entity: {
type: string;
};
country: {
type: string;
};
city: {
type: string;
};
virtual: {
type: string;
};
startDate: {
type: string;
};
endDate: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
offer: {
title: string;
type: string;
properties: {
offerType: {
type: string;
};
title: {
type: string;
};
category: {
type: string;
};
subcategories: {
type: string;
items: {
type: string;
};
};
requiredCredentialTypes: {
type: string;
items: {
type: string;
};
};
description: {
type: string;
};
imageUrl: {
type: string;
};
vendorUrl: {
type: string;
};
deliverableType: {
type: string;
};
deliverableDescription: {
type: string;
};
deliveryTime: {
type: string;
};
price: {
type: string;
};
usTaxPayer: {
type: string;
};
proofs: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
};
orbis: {
schemas: Record<string, string>;
definitions: Record<string, string>;
tiles: Record<string, string>;
};
};
core: {
Krebit: typeof import("./core/Krebit.js").Krebit;
Passport: typeof import("./core/Passport.js").Passport;
};
};
export default krebit;
//# sourceMappingURL=index.d.ts.map