/** * This file was auto-generated by Fern from our API Definition. */ import * as core from '../../../../core'; import * as environments from '../../../../environments'; import * as Truvity from '../../../index'; export declare namespace DidcommMessages { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } /** * The API to manage DIDComm messages. */ export declare class DidcommMessages { protected readonly _options: DidcommMessages.Options; constructor(_options?: DidcommMessages.Options); /** * Search for DIDComm Messages with extended filters capabilities. * * @param {Truvity.DidcommMessageSearchRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.UnsupportedMediaTypeError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageSearch() */ didcommMessageSearch(request?: Truvity.DidcommMessageSearchRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageSearch; /** * Send a DIDComm Message to a recipient. * * @param {Truvity.DidCommMessageSendRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.MethodNotAllowedError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didCommMessageSend({ * data: { * keyId: "key_id", * to: "to" * } * }) */ didCommMessageSend(request: Truvity.DidCommMessageSendRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didCommMessageSend; /** * Get the latest version of DIDComm Message. * * @param {string} id - The ID of the resource. * @param {Truvity.DidcommMessageLatestRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageLatest("id") */ didcommMessageLatest(id: string, request?: Truvity.DidcommMessageLatestRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageLatest; /** * Delete DIDComm Message's resource. * * @param {string} id - The primary and unique identifier of the resource (inside tenant) * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122). * @param {Truvity.DidcommMessageDeleteRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.MethodNotAllowedError} * @throws {@link Truvity.PreconditionFailedError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageDelete("id", { * ifMatch: "If-Match" * }) */ didcommMessageDelete(id: string, request: Truvity.DidcommMessageDeleteRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageDelete; /** * Update annotations of DIDComm Message's resource. * * @param {string} id - The primary and unique identifier of the resource (inside tenant) * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122). * @param {Truvity.DidcommMessageUpdateAnnotationsRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.MethodNotAllowedError} * @throws {@link Truvity.PreconditionFailedError} * @throws {@link Truvity.UnsupportedMediaTypeError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageUpdateAnnotations("id", { * ifMatch: "If-Match", * annotations: { * "key": "value" * } * }) */ didcommMessageUpdateAnnotations(id: string, request: Truvity.DidcommMessageUpdateAnnotationsRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageUpdateAnnotations; /** * Update labels of DIDComm Message's resource. * * @param {string} id - The primary and unique identifier of the resource (inside tenant) * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122). * @param {Truvity.DidcommMessageUpdateLabelsRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.MethodNotAllowedError} * @throws {@link Truvity.PreconditionFailedError} * @throws {@link Truvity.UnsupportedMediaTypeError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageUpdateLabels("id", { * ifMatch: "If-Match", * labels: { * "key": "value" * } * }) */ didcommMessageUpdateLabels(id: string, request: Truvity.DidcommMessageUpdateLabelsRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageUpdateLabels; /** * Restore DIDComm Message's resource. * * @param {string} id - The primary and unique identifier of the resource (inside tenant) * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122). * @param {Truvity.DidcommMessageRestoreRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.MethodNotAllowedError} * @throws {@link Truvity.PreconditionFailedError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageRestore("id", { * ifMatch: "If-Match" * }) */ didcommMessageRestore(id: string, request: Truvity.DidcommMessageRestoreRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageRestore; /** * History of the DIDComm Message's resources. * * @param {string} id - The ID of the resource. * @param {Truvity.DidcommMessageHistoryRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageHistory("id") */ didcommMessageHistory(id: string, request?: Truvity.DidcommMessageHistoryRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageHistory; /** * Read the specific version of the DIDComm Message's resource. * * @param {string} id - The ID of the resource. * @param {number} revision - The revision of the resource. * @param {Truvity.DidcommMessageRevisionRequest} request * @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Truvity.BadRequestError} * @throws {@link Truvity.UnauthorizedError} * @throws {@link Truvity.ForbiddenError} * @throws {@link Truvity.NotFoundError} * @throws {@link Truvity.TooManyRequestsError} * @throws {@link Truvity.InternalServerError} * * @example * await client.didcommMessages.didcommMessageRevision("id", 1) */ didcommMessageRevision(id: string, revision: number, request?: Truvity.DidcommMessageRevisionRequest, requestOptions?: DidcommMessages.RequestOptions): core.HttpResponsePromise; private __didcommMessageRevision; protected _getCustomAuthorizationHeaders(): Promise<{ 'X-API-KEY': string | undefined; }>; } //# sourceMappingURL=Client.d.ts.map