/** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { WebhookOauthCustomBodyParams } from './webhook-oauth-custom-body-params'; import { WebhookOauthCustomHeaders } from './webhook-oauth-custom-headers'; import { WebhookOauthCustomJwtClaims } from './webhook-oauth-custom-jwt-claims'; /** * A new reusable OAuth 2.0 client credential set. Attach it to a webhook by passing the returned id as that webhook\'s `webhookOauthId`. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. * @export * @interface CreateWebhookOauthRequest */ export interface CreateWebhookOauthRequest { /** * A label for this credential set, shown when listing them. * @type {string} * @memberof CreateWebhookOauthRequest */ 'name': string; /** * OAuth client ID used to authenticate with the token endpoint. * @type {string} * @memberof CreateWebhookOauthRequest */ 'clientId': string; /** * OAuth client secret. Write-only — never returned. Limited to 480 bytes UTF-8 encoded. With `client_secret_jwt` it signs the assertion rather than being sent. * @type {string} * @memberof CreateWebhookOauthRequest */ 'clientSecret': string; /** * Token endpoint URL. HTTPS on port 443 only, and the host must resolve publicly — localhost and private, link-local or loopback addresses are rejected. * @type {string} * @memberof CreateWebhookOauthRequest */ 'url': string; /** * How the client credentials reach the token endpoint. `client_secret_basic` uses an HTTP Basic header, `client_secret_post` uses form fields in the body, and `client_secret_jwt` sends a JWT assertion signed with the secret, so the secret itself is never transmitted. Defaults to `client_secret_basic`. * @type {string} * @memberof CreateWebhookOauthRequest */ 'authMethod'?: string; /** * * @type {WebhookOauthCustomJwtClaims} * @memberof CreateWebhookOauthRequest */ 'customJwtClaims'?: WebhookOauthCustomJwtClaims | null; /** * * @type {WebhookOauthCustomBodyParams} * @memberof CreateWebhookOauthRequest */ 'customBodyParams'?: WebhookOauthCustomBodyParams | null; /** * * @type {WebhookOauthCustomHeaders} * @memberof CreateWebhookOauthRequest */ 'customHeaders'?: WebhookOauthCustomHeaders | null; /** * The id of the mTLS configuration presented to the token endpoint, from `/v1/webhooks_settings/mtls`. It can be the same configuration a webhook uses, so one certificate, signed from `GET /v1/webhooks_settings/mtls_csr`, serves both the token endpoint and the receiver. Omit, or send `null`, for a token request without mTLS. Requires the mTLS feature to be enabled for the workspace (`403` otherwise), a configuration of this workspace (`404` otherwise), and one linked to a private key (`400` otherwise). * @type {string} * @memberof CreateWebhookOauthRequest */ 'webhookMtlsId'?: string | null; }