import { Observable } from './rxjsStub'; export declare class ApiError { /** * The error code. */ 'Code': string; /** * The error message. */ 'Message': string; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * Credential state. * @export * @type CredentialStateEnum */ export declare const CredentialStateEnum: { readonly Draft: "draft"; readonly Issued: "issued"; readonly Abandoned: "abandoned"; }; export declare type CredentialStateEnum = typeof CredentialStateEnum[keyof typeof CredentialStateEnum]; export declare class Credential { /** * A dictionary of claims for the credential. A claim is an assertion made about a subject. */ 'claims': any; 'meta': CredentialsMeta; /** * The revision number of the credential. */ 'revision': number; /** * Credential state. */ 'state': CredentialStateEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class CredentialCreatePayload { /** * The JSON Schema associated with the credential. */ 'jsonSchema': any; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class CredentialCreateResponse { /** * The DID (Decentralized Identifier) of the credential. */ 'id': string; /** * The revision number of the credential. */ 'revision': number; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class CredentialPatchPayload { 'update'?: CredentialPatchPayloadUpdate; 'remove'?: CredentialPatchPayloadRemove; /** * The incremented revision of the credential. */ 'revision': number; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The remove operation that will remove from existing claims or meta the list or claims or meta provided. */ export declare class CredentialPatchPayloadRemove { /** * The list of claims that will be removed from the existing ones. A claim is an assertion made about a subject. */ 'claims'?: Array; 'meta'?: CredentialPatchPayloadRemoveMeta; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The metadata fields that will be removed from the existing one. */ export declare class CredentialPatchPayloadRemoveMeta { /** * A role an entity might perform by possessing one or more verifiable credentials and generating presentations from them. A holder is usually, but not always, a subject of the verifiable credentials they are holding. */ 'holder'?: boolean; /** * A thing about which claims are made. */ 'subject'?: boolean; /** * The date and time then the credential ceases to be valid. */ 'expirationDate'?: boolean; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The update operation that will merge existing claims or meta with the new ones. */ export declare class CredentialPatchPayloadUpdate { /** * The claims that will be merged with existing ones. A claim is an assertion made about a subject. */ 'claims'?: any; 'meta'?: CredentialPatchPayloadUpdateMeta; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The metadata that will be merged with existing one. */ export declare class CredentialPatchPayloadUpdateMeta { /** * A role an entity might perform by possessing one or more verifiable credentials and generating presentations from them. A holder is usually, but not always, a subject of the verifiable credentials they are holding. */ 'holder'?: string; /** * A thing about which claims are made. */ 'subject'?: string; /** * The date and time then the credential ceases to be valid. */ 'expirationDate'?: string; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class CredentialUpdatePayload { /** * The new claims that will replace the existing ones. A claim is an assertion made about a subject. */ 'claims': any; 'meta'?: CredentialUpdatePayloadMeta; /** * The incremented revision of the credential. */ 'revision': number; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The new metadata information that will replace the existing one. */ export declare class CredentialUpdatePayloadMeta { /** * A role an entity might perform by possessing one or more verifiable credentials and generating presentations from them. A holder is usually, but not always, a subject of the verifiable credentials they are holding. */ 'holder'?: string; /** * A thing about which claims are made. */ 'subject'?: string; /** * The date and time then the credential ceases to be valid. */ 'expirationDate'?: string; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class CredentialUpdateResponse { /** * The DID (Decentralized Identifier) of the credential. */ 'id': string; /** * The incremented revision of the credential. */ 'revision': number; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class Credentials { /** * Array of credentials. */ 'items': Array; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * Credential state. * @export * @type CredentialsItemsStateEnum */ export declare const CredentialsItemsStateEnum: { readonly Draft: "draft"; readonly Issued: "issued"; readonly Abandoned: "abandoned"; }; export declare type CredentialsItemsStateEnum = typeof CredentialsItemsStateEnum[keyof typeof CredentialsItemsStateEnum]; export declare class CredentialsItems { /** * A dictionary of claims for the credential. A claim is an assertion made about a subject. */ 'claims': any; 'meta': CredentialsMeta; /** * The revision number of the credential. */ 'revision': number; /** * Credential state. */ 'state': CredentialsItemsStateEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * Additional metadata. Includes specific information such as the holder, subject, expiration date, and other relevant details for the credential. */ export declare class CredentialsMeta { /** * The DID (Decentralized Identifier) of the credential. */ 'id': string; /** * The $id of the credential schema. */ 'credentialSchemaId': string; /** * The date and time then the credential ceases to be valid. */ 'expirationDate'?: string; /** * A role an entity might perform by possessing one or more verifiable credentials and generating presentations from them. A holder is usually, but not always, a subject of the verifiable credentials they are holding. */ 'holder'?: string; /** * A thing about which claims are made. */ 'subject'?: string; 'issuanceMeta'?: CredentialsMetaIssuanceMeta; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * Metadata containing information related to the issuance process. It includes specific information such as the issuer and issuance date of the credential. */ export declare class CredentialsMetaIssuanceMeta { /** * A role an entity can perform by asserting claims about one or more subjects, creating a verifiable credential from these claims, and transmitting the verifiable credential to a holder. */ 'issuer': string; /** * The date and time the credential becomes valid, which could be a date and time in the future. */ 'issuanceDate': string; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } /** * The error code. * @export * @type ValidationErrorsResponseCodeEnum */ export declare const ValidationErrorsResponseCodeEnum: { readonly ECREDENTIALSCHEMAVALIDATION: "ECREDENTIALSCHEMAVALIDATION"; readonly ECREDENTIALSCHEMAINVALID: "ECREDENTIALSCHEMAINVALID"; }; export declare type ValidationErrorsResponseCodeEnum = typeof ValidationErrorsResponseCodeEnum[keyof typeof ValidationErrorsResponseCodeEnum]; export declare class ValidationErrorsResponse { /** * The error code. */ 'code': ValidationErrorsResponseCodeEnum; /** * The error message. */ 'message'?: string; /** * The list of errors. */ 'errors': Array; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare class ValidationErrorsResponseErrors { /** * The error code. */ 'keyword': string; /** * The path where the error occurred. */ 'instancePath': string; /** * The error message. */ 'message'?: string; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): TypeAttributeDescriptor[]; static getTypeSerializer(): typeof ObjectSerializer; constructor(defaultValues?: Partial, skipDefaultValuesInitialization?: boolean); } export declare type TypeAttributeDescriptor = { name: string; baseName: string; type: string; format: string; required: boolean; }; export declare type TypeSerializer = { serialize: (data: any, type: string, format: string) => any; deserialize: (data: any, type: string, format: string) => any; initialize: (data: any, type: string, format: string) => any; }; export declare type EnumTypeDescriptor = Record; export declare type TypeDescriptor = ((value?: any) => any) & { serialize: (value: any) => any; deserialize: (value: any) => any; }; export declare type TypeModelDescriptor = (new (value?: any, skipDefaultValuesInitialization?: boolean) => any) & { discriminator?: string; getTypeSerializer: () => TypeSerializer; getAttributeTypeMap: () => Array; }; export declare type ApiTypeDescriptor = TypeDescriptor | TypeModelDescriptor | EnumTypeDescriptor; export declare class ObjectSerializer { static findCorrectType(data: any, expectedType: string): string; static serialize(data: any, type: string, format: string): any; static deserialize(data: any, type: string, format: string): any; static initialize(data: any, type: string, format: string): any; /** * Normalize media type * * We currently do not handle any media types attributes, i.e. anything * after a semicolon. All content is assumed to be UTF-8 compatible. */ static normalizeMediaType(mediaType: string | undefined): string | undefined; /** * From a list of possible media types, choose the one we can handle best. * * The order of the given media types does not have any impact on the choice * made. */ static getPreferredMediaType(mediaTypes: Array): string; /** * Convert data to a string according the given media type */ static stringify(data: any, mediaType: string): string; /** * Parse data from a string according to the given media type */ static parse(rawData: string, mediaType: string | undefined): any; } import { BaseAPIRequestFactory } from './baseapi'; import { Configuration } from './configuration'; import { RequestContext, ResponseContext } from './http'; /** * no description */ export declare class DefaultApiRequestFactory extends BaseAPIRequestFactory { /** * This endpoint is used for creating a credential. * Create a Credential * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialCreatePayload */ createCredential(walletDid: string, entityDid: string, CredentialCreatePayload: CredentialCreatePayload, options?: Configuration): Promise; /** * This endpoint is used to get detailed information about a credential (in draft or issued state). * Get a Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredential(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Promise; /** * This endpoint is used for obtaining the JSON Schema associated with the credential. * Get Credential Schema * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredentialSchema(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Promise; /** * This endpoint is used for issuing a credential. * Issue Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param revision The revision number of the verifiable credential. */ issueCredential(credentialDid: string, walletDid: string, entityDid: string, revision: number, options?: Configuration): Promise; /** * This endpoint is used to list available credentials (in draft or issued state). * List Credentials * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param schema Filter credentials by their credential schema * @param queryStates Filter by the credential state. * @param queryMode Filter by ownership of the credential. */ listCredentials(walletDid: string, entityDid: string, schema?: string, queryStates?: Array<'draft' | 'issued' | 'abandoned'>, queryMode?: 'All' | 'Presented' | 'Held', options?: Configuration): Promise; /** * This endpoint is used for patching a credential meta and claims. * Patch Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialPatchPayload */ patchCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialPatchPayload: CredentialPatchPayload, options?: Configuration): Promise; /** * This endpoint is used for updating a credential meta and claims. * Update Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialUpdatePayload */ updateCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialUpdatePayload: CredentialUpdatePayload, options?: Configuration): Promise; } export declare class DefaultApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createCredential * @throws ApiException if the response code was not in [200, 299] */ createCredential(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCredential * @throws ApiException if the response code was not in [200, 299] */ getCredential(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCredentialSchema * @throws ApiException if the response code was not in [200, 299] */ getCredentialSchema(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to issueCredential * @throws ApiException if the response code was not in [200, 299] */ issueCredential(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listCredentials * @throws ApiException if the response code was not in [200, 299] */ listCredentials(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to patchCredential * @throws ApiException if the response code was not in [200, 299] */ patchCredential(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateCredential * @throws ApiException if the response code was not in [200, 299] */ updateCredential(response: ResponseContext): Promise; } export interface DefaultApiCreateCredentialRequest { /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApicreateCredential */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApicreateCredential */ entityDid: string; /** * * @type CredentialCreatePayload * @memberof DefaultApicreateCredential */ CredentialCreatePayload: CredentialCreatePayload; } export interface DefaultApiGetCredentialRequest { /** * The DID (Decentralized Identifier) of the credential. * @type string * @memberof DefaultApigetCredential */ credentialDid: string; /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApigetCredential */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApigetCredential */ entityDid: string; } export interface DefaultApiGetCredentialSchemaRequest { /** * The DID (Decentralized Identifier) of the credential. * @type string * @memberof DefaultApigetCredentialSchema */ credentialDid: string; /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApigetCredentialSchema */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApigetCredentialSchema */ entityDid: string; } export interface DefaultApiIssueCredentialRequest { /** * The DID (Decentralized Identifier) of the credential. * @type string * @memberof DefaultApiissueCredential */ credentialDid: string; /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApiissueCredential */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApiissueCredential */ entityDid: string; /** * The revision number of the verifiable credential. * @type number * @memberof DefaultApiissueCredential */ revision: number; } export interface DefaultApiListCredentialsRequest { /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApilistCredentials */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApilistCredentials */ entityDid: string; /** * Filter credentials by their credential schema * @type string * @memberof DefaultApilistCredentials */ schema?: string; /** * Filter by the credential state. * @type Array<'draft' | 'issued' | 'abandoned'> * @memberof DefaultApilistCredentials */ queryStates?: Array<'draft' | 'issued' | 'abandoned'>; /** * Filter by ownership of the credential. * @type 'All' | 'Presented' | 'Held' * @memberof DefaultApilistCredentials */ queryMode?: 'All' | 'Presented' | 'Held'; } export interface DefaultApiPatchCredentialRequest { /** * The DID (Decentralized Identifier) of the credential. * @type string * @memberof DefaultApipatchCredential */ credentialDid: string; /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApipatchCredential */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApipatchCredential */ entityDid: string; /** * * @type CredentialPatchPayload * @memberof DefaultApipatchCredential */ CredentialPatchPayload: CredentialPatchPayload; } export interface DefaultApiUpdateCredentialRequest { /** * The DID (Decentralized Identifier) of the credential. * @type string * @memberof DefaultApiupdateCredential */ credentialDid: string; /** * The DID (Decentralized Identifier) of the wallet. * @type string * @memberof DefaultApiupdateCredential */ walletDid: string; /** * The DID (Decentralized Identifier) of the entity associated with the wallet. * @type string * @memberof DefaultApiupdateCredential */ entityDid: string; /** * * @type CredentialUpdatePayload * @memberof DefaultApiupdateCredential */ CredentialUpdatePayload: CredentialUpdatePayload; } export declare class ObjectDefaultApi { private api; constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor); /** * This endpoint is used for creating a credential. * Create a Credential * @param param the request object */ createCredential(param: DefaultApiCreateCredentialRequest, options?: Configuration): Promise; /** * This endpoint is used to get detailed information about a credential (in draft or issued state). * Get a Credential * @param param the request object */ getCredential(param: DefaultApiGetCredentialRequest, options?: Configuration): Promise; /** * This endpoint is used for obtaining the JSON Schema associated with the credential. * Get Credential Schema * @param param the request object */ getCredentialSchema(param: DefaultApiGetCredentialSchemaRequest, options?: Configuration): Promise; /** * This endpoint is used for issuing a credential. * Issue Credential * @param param the request object */ issueCredential(param: DefaultApiIssueCredentialRequest, options?: Configuration): Promise; /** * This endpoint is used to list available credentials (in draft or issued state). * List Credentials * @param param the request object */ listCredentials(param: DefaultApiListCredentialsRequest, options?: Configuration): Promise; /** * This endpoint is used for patching a credential meta and claims. * Patch Credential * @param param the request object */ patchCredential(param: DefaultApiPatchCredentialRequest, options?: Configuration): Promise; /** * This endpoint is used for updating a credential meta and claims. * Update Credential * @param param the request object */ updateCredential(param: DefaultApiUpdateCredentialRequest, options?: Configuration): Promise; } export declare class ObservableDefaultApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor); /** * This endpoint is used for creating a credential. * Create a Credential * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialCreatePayload */ createCredential(walletDid: string, entityDid: string, CredentialCreatePayload: CredentialCreatePayload, options?: Configuration): Observable; /** * This endpoint is used to get detailed information about a credential (in draft or issued state). * Get a Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredential(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Observable; /** * This endpoint is used for obtaining the JSON Schema associated with the credential. * Get Credential Schema * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredentialSchema(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Observable; /** * This endpoint is used for issuing a credential. * Issue Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param revision The revision number of the verifiable credential. */ issueCredential(credentialDid: string, walletDid: string, entityDid: string, revision: number, options?: Configuration): Observable; /** * This endpoint is used to list available credentials (in draft or issued state). * List Credentials * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param schema Filter credentials by their credential schema * @param queryStates Filter by the credential state. * @param queryMode Filter by ownership of the credential. */ listCredentials(walletDid: string, entityDid: string, schema?: string, queryStates?: Array<'draft' | 'issued' | 'abandoned'>, queryMode?: 'All' | 'Presented' | 'Held', options?: Configuration): Observable; /** * This endpoint is used for patching a credential meta and claims. * Patch Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialPatchPayload */ patchCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialPatchPayload: CredentialPatchPayload, options?: Configuration): Observable; /** * This endpoint is used for updating a credential meta and claims. * Update Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialUpdatePayload */ updateCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialUpdatePayload: CredentialUpdatePayload, options?: Configuration): Observable; } export declare class PromiseDefaultApi { private api; constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor); /** * This endpoint is used for creating a credential. * Create a Credential * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialCreatePayload */ createCredential(walletDid: string, entityDid: string, CredentialCreatePayload: CredentialCreatePayload, options?: Configuration): Promise; /** * This endpoint is used to get detailed information about a credential (in draft or issued state). * Get a Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredential(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Promise; /** * This endpoint is used for obtaining the JSON Schema associated with the credential. * Get Credential Schema * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. */ getCredentialSchema(credentialDid: string, walletDid: string, entityDid: string, options?: Configuration): Promise; /** * This endpoint is used for issuing a credential. * Issue Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param revision The revision number of the verifiable credential. */ issueCredential(credentialDid: string, walletDid: string, entityDid: string, revision: number, options?: Configuration): Promise; /** * This endpoint is used to list available credentials (in draft or issued state). * List Credentials * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param schema Filter credentials by their credential schema * @param queryStates Filter by the credential state. * @param queryMode Filter by ownership of the credential. */ listCredentials(walletDid: string, entityDid: string, schema?: string, queryStates?: Array<'draft' | 'issued' | 'abandoned'>, queryMode?: 'All' | 'Presented' | 'Held', options?: Configuration): Promise; /** * This endpoint is used for patching a credential meta and claims. * Patch Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialPatchPayload */ patchCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialPatchPayload: CredentialPatchPayload, options?: Configuration): Promise; /** * This endpoint is used for updating a credential meta and claims. * Update Credential * @param credentialDid The DID (Decentralized Identifier) of the credential. * @param walletDid The DID (Decentralized Identifier) of the wallet. * @param entityDid The DID (Decentralized Identifier) of the entity associated with the wallet. * @param CredentialUpdatePayload */ updateCredential(credentialDid: string, walletDid: string, entityDid: string, CredentialUpdatePayload: CredentialUpdatePayload, options?: Configuration): Promise; } //# sourceMappingURL=api.d.ts.map