@affinidi/internal-api-clients
Version:
SDK core monorepo for affinity DID solution
276 lines (275 loc) • 10.7 kB
TypeScript
import { ClientOptions, GetParams } from '@affinidi/tools-openapi';
type ConstructorOptions = ClientOptions & {
registryUrl: string;
};
declare const clientMethods: {
readonly PutDocumentInIpfs: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly document: {
[x: string]: any;
};
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly document: {
[x: string]: any;
};
};
responseBody: {
readonly hash: string;
};
}>>;
readonly CreateAnchorTransaction: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
readonly nonce?: number | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly nonce?: number | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
};
responseBody: {
readonly digestHex: string;
};
}>>;
readonly TransactionCount: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly ethereumPublicKeyHex: string;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly ethereumPublicKeyHex: string;
};
responseBody: {
readonly transactionCount: number;
};
}>>;
readonly AnchorDid: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
responseBody: {
readonly did: string;
};
}>>;
readonly ConvertToDidElement: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
responseBody: {
readonly did: string;
};
}>>;
readonly ResolveDid: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
};
responseBody: {
readonly didDocument: {
[x: string]: any;
};
};
}>>;
readonly AnchorDidElement: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
responseBody: {
readonly did: string;
};
}>>;
readonly ResolveDidElement: (this: import("@affinidi/tools-openapi/dist/helpers/client").ThisData, requestOptions: {
authorization?: string | undefined;
storageRegion?: string | undefined;
params: {
readonly did: string;
};
queryParams?: undefined;
pathParams?: undefined;
}) => Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
};
responseBody: {
readonly didDocument: {
[x: string]: any;
};
};
}>>;
};
export default class RegistryApiService {
private readonly client;
constructor(options: ConstructorOptions);
putDocumentInIpfs(params: GetParams<typeof clientMethods.PutDocumentInIpfs>): Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly document: {
[x: string]: any;
};
};
responseBody: {
readonly hash: string;
};
}>>;
createAnchorTransaction(params: GetParams<typeof clientMethods.CreateAnchorTransaction>): Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly nonce?: number | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
};
responseBody: {
readonly digestHex: string;
};
}>>;
anchorDid(params: GetParams<typeof clientMethods.AnchorDid>): Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
readonly transactionSignatureJson: string;
readonly nonce?: number | undefined;
readonly ethereumPublicKeyHex?: string | undefined;
readonly didDocumentAddress?: string | undefined;
readonly publicKeyBase58?: string | undefined;
readonly anchoredDidElem?: boolean | undefined;
readonly origin?: string | undefined;
};
responseBody: {
readonly did: string;
};
}>>;
resolveDid(params: GetParams<typeof clientMethods.ResolveDid>): Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly did: string;
};
responseBody: {
readonly didDocument: {
[x: string]: any;
};
};
}>>;
transactionCount(params: GetParams<typeof clientMethods.TransactionCount>): Promise<import("@affinidi/tools-openapi").ResponseForOperation<{
pathParams: undefined;
queryParams: undefined;
requestBody: {
readonly ethereumPublicKeyHex: string;
};
responseBody: {
readonly transactionCount: number;
};
}>>;
}
export {};