/** * 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 PublishedSchemas { 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 Truvity's published credential schemas. */ export declare class PublishedSchemas { protected readonly _options: PublishedSchemas.Options; constructor(_options?: PublishedSchemas.Options); /** * Search for PublishedSchemas with extended filters capabilities. * * @param {Truvity.PublishedSchemaSearchRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaSearch() */ publishedSchemaSearch(request?: Truvity.PublishedSchemaSearchRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaSearch; /** * Get the latest version of PublishedSchema. * * @param {string} id - The ID of the resource. * @param {Truvity.PublishedSchemaLatestRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaLatest("id") */ publishedSchemaLatest(id: string, request?: Truvity.PublishedSchemaLatestRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaLatest; /** * Delete PublishedSchema'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.PublishedSchemaDeleteRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaDelete("id", { * ifMatch: "If-Match" * }) */ publishedSchemaDelete(id: string, request: Truvity.PublishedSchemaDeleteRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaDelete; /** * Update annotations of PublishedSchema'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.PublishedSchemaUpdateAnnotationsRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaUpdateAnnotations("id", { * ifMatch: "If-Match", * annotations: { * "key": "value" * } * }) */ publishedSchemaUpdateAnnotations(id: string, request: Truvity.PublishedSchemaUpdateAnnotationsRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaUpdateAnnotations; /** * Update labels of PublishedSchema'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.PublishedSchemaUpdateLabelsRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaUpdateLabels("id", { * ifMatch: "If-Match", * labels: { * "key": "value" * } * }) */ publishedSchemaUpdateLabels(id: string, request: Truvity.PublishedSchemaUpdateLabelsRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaUpdateLabels; /** * Restore PublishedSchema'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.PublishedSchemaRestoreRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaRestore("id", { * ifMatch: "If-Match" * }) */ publishedSchemaRestore(id: string, request: Truvity.PublishedSchemaRestoreRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaRestore; /** * Read the specific version of the PublishedSchema's resource. * * @param {string} id - The ID of the resource. * @param {number} revision - The revision of the resource. * @param {Truvity.PublishedSchemaRevisionRequest} request * @param {PublishedSchemas.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.publishedSchemas.publishedSchemaRevision("id", 1) */ publishedSchemaRevision(id: string, revision: number, request?: Truvity.PublishedSchemaRevisionRequest, requestOptions?: PublishedSchemas.RequestOptions): core.HttpResponsePromise; private __publishedSchemaRevision; protected _getCustomAuthorizationHeaders(): Promise<{ 'X-API-KEY': string | undefined; }>; } //# sourceMappingURL=Client.d.ts.map