From 7e2b5f433217652904c437f41e5cd58f72a69545 Mon Sep 17 00:00:00 2001 From: Tushar Pandey Date: Mon, 21 Oct 2024 17:07:39 +0530 Subject: [PATCH] added flows and forms intital endpoints --- src/management/__generated/index.ts | 4 + .../__generated/managers/flows-manager.ts | 163 ++ .../__generated/managers/forms-manager.ts | 159 ++ src/management/__generated/managers/index.ts | 2 + .../managers/self-service-sso-manager.ts | 142 ++ src/management/__generated/models/index.ts | 1712 ++++++++++++++++- 6 files changed, 2097 insertions(+), 85 deletions(-) create mode 100644 src/management/__generated/managers/flows-manager.ts create mode 100644 src/management/__generated/managers/forms-manager.ts create mode 100644 src/management/__generated/managers/self-service-sso-manager.ts diff --git a/src/management/__generated/index.ts b/src/management/__generated/index.ts index 3850ad31b..ffa6462e2 100644 --- a/src/management/__generated/index.ts +++ b/src/management/__generated/index.ts @@ -14,6 +14,8 @@ import { DeviceCredentialsManager, EmailTemplatesManager, EmailsManager, + FlowsManager, + FormsManager, GrantsManager, GuardianManager, HooksManager, @@ -53,6 +55,8 @@ export abstract class ManagementClientBase { public readonly deviceCredentials = new DeviceCredentialsManager(this.configuration); public readonly emailTemplates = new EmailTemplatesManager(this.configuration); public readonly emails = new EmailsManager(this.configuration); + public readonly flows = new FlowsManager(this.configuration); + public readonly forms = new FormsManager(this.configuration); public readonly grants = new GrantsManager(this.configuration); public readonly guardian = new GuardianManager(this.configuration); public readonly hooks = new HooksManager(this.configuration); diff --git a/src/management/__generated/managers/flows-manager.ts b/src/management/__generated/managers/flows-manager.ts new file mode 100644 index 000000000..5cfa12f64 --- /dev/null +++ b/src/management/__generated/managers/flows-manager.ts @@ -0,0 +1,163 @@ +import * as runtime from '../../../lib/runtime.js'; +import type { InitOverride, ApiResponse } from '../../../lib/runtime.js'; +import type { + GetFlows200Response, + PatchFlowsByIdRequest, + PostFlows201Response, + PostFlowsRequest, + GetFlows200ResponseOneOf, + GetFlows200ResponseOneOfInner, + GetFlowsRequest, + GetFlowsByIdRequest, + PatchFlowsByIdOperationRequest, +} from '../models/index.js'; + +const { BaseAPI } = runtime; + +/** + * + */ +export class FlowsManager extends BaseAPI { + /** + * Get flows + * + * @throws {RequiredError} + */ + async getFlows( + requestParameters: GetFlowsRequest & { include_totals: true }, + initOverrides?: InitOverride + ): Promise>; + async getFlows( + requestParameters?: GetFlowsRequest, + initOverrides?: InitOverride + ): Promise>>; + async getFlows( + requestParameters: GetFlowsRequest = {}, + initOverrides?: InitOverride + ): Promise> { + const queryParameters = runtime.applyQueryParams(requestParameters, [ + { + key: 'page', + config: {}, + }, + { + key: 'per_page', + config: {}, + }, + { + key: 'include_totals', + config: {}, + }, + { + key: 'hydrate', + config: { + isArray: true, + isCollectionFormatMulti: true, + }, + }, + { + key: 'synchronous', + config: {}, + }, + ]); + + const response = await this.request( + { + path: `/flows`, + method: 'GET', + query: queryParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Get a flow + * + * @throws {RequiredError} + */ + async getFlowsById( + requestParameters: GetFlowsByIdRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const queryParameters = runtime.applyQueryParams(requestParameters, [ + { + key: 'hydrate', + config: { + isArray: true, + isCollectionFormatMulti: true, + }, + }, + ]); + + const response = await this.request( + { + path: `/flows/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))), + method: 'GET', + query: queryParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Update a flow + * + * @throws {RequiredError} + */ + async patchFlowsById( + requestParameters: PatchFlowsByIdOperationRequest, + bodyParameters: PatchFlowsByIdRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/flows/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))), + method: 'PATCH', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Create a flow + * + * @throws {RequiredError} + */ + async postFlows( + bodyParameters: PostFlowsRequest, + initOverrides?: InitOverride + ): Promise> { + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/flows`, + method: 'POST', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } +} diff --git a/src/management/__generated/managers/forms-manager.ts b/src/management/__generated/managers/forms-manager.ts new file mode 100644 index 000000000..89cb280c7 --- /dev/null +++ b/src/management/__generated/managers/forms-manager.ts @@ -0,0 +1,159 @@ +import * as runtime from '../../../lib/runtime.js'; +import type { InitOverride, ApiResponse } from '../../../lib/runtime.js'; +import type { + GetForms200Response, + PatchFormsByIdRequest, + PostForms201Response, + PostFormsRequest, + GetForms200ResponseOneOf, + GetForms200ResponseOneOfInner, + GetFormsRequest, + GetFormsByIdRequest, + PatchFormsByIdOperationRequest, +} from '../models/index.js'; + +const { BaseAPI } = runtime; + +/** + * + */ +export class FormsManager extends BaseAPI { + /** + * Get forms + * + * @throws {RequiredError} + */ + async getForms( + requestParameters: GetFormsRequest & { include_totals: true }, + initOverrides?: InitOverride + ): Promise>; + async getForms( + requestParameters?: GetFormsRequest, + initOverrides?: InitOverride + ): Promise>>; + async getForms( + requestParameters: GetFormsRequest = {}, + initOverrides?: InitOverride + ): Promise> { + const queryParameters = runtime.applyQueryParams(requestParameters, [ + { + key: 'page', + config: {}, + }, + { + key: 'per_page', + config: {}, + }, + { + key: 'include_totals', + config: {}, + }, + { + key: 'hydrate', + config: { + isArray: true, + isCollectionFormatMulti: true, + }, + }, + ]); + + const response = await this.request( + { + path: `/forms`, + method: 'GET', + query: queryParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Get a form + * + * @throws {RequiredError} + */ + async getFormsById( + requestParameters: GetFormsByIdRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const queryParameters = runtime.applyQueryParams(requestParameters, [ + { + key: 'hydrate', + config: { + isArray: true, + isCollectionFormatMulti: true, + }, + }, + ]); + + const response = await this.request( + { + path: `/forms/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))), + method: 'GET', + query: queryParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Update a form + * + * @throws {RequiredError} + */ + async patchFormsById( + requestParameters: PatchFormsByIdOperationRequest, + bodyParameters: PatchFormsByIdRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/forms/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))), + method: 'PATCH', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Create a form + * + * @throws {RequiredError} + */ + async postForms( + bodyParameters: PostFormsRequest, + initOverrides?: InitOverride + ): Promise> { + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/forms`, + method: 'POST', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } +} diff --git a/src/management/__generated/managers/index.ts b/src/management/__generated/managers/index.ts index d169c1eae..9b417e017 100644 --- a/src/management/__generated/managers/index.ts +++ b/src/management/__generated/managers/index.ts @@ -10,6 +10,8 @@ export * from './custom-domains-manager.js'; export * from './device-credentials-manager.js'; export * from './email-templates-manager.js'; export * from './emails-manager.js'; +export * from './flows-manager.js'; +export * from './forms-manager.js'; export * from './grants-manager.js'; export * from './guardian-manager.js'; export * from './hooks-manager.js'; diff --git a/src/management/__generated/managers/self-service-sso-manager.ts b/src/management/__generated/managers/self-service-sso-manager.ts new file mode 100644 index 000000000..b9d061779 --- /dev/null +++ b/src/management/__generated/managers/self-service-sso-manager.ts @@ -0,0 +1,142 @@ +import * as runtime from '../../../lib/runtime.js'; +import type { InitOverride, ApiResponse } from '../../../lib/runtime.js'; +import type { + SSOProfile, + SSOProfileCreate, + SSOProfileUpdate, + SelfServiceProfilesIdDeleteRequest, + SelfServiceProfilesIdGetRequest, + SelfServiceProfilesIdPatchRequest, +} from '../models/index.js'; + +const { BaseAPI } = runtime; + +/** + * + */ +export class SelfServiceSSOManager extends BaseAPI { + /** + * Retrieve SSO profiles for the tenant + * + * @throws {RequiredError} + */ + async selfServiceProfilesGet(initOverrides?: InitOverride): Promise> { + const response = await this.request( + { + path: `/self-service-profiles`, + method: 'GET', + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Delete SSO profile by ID + * + * @throws {RequiredError} + */ + async selfServiceProfilesIdDelete( + requestParameters: SelfServiceProfilesIdDeleteRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const response = await this.request( + { + path: `/self-service-profiles/{id}`.replace( + '{id}', + encodeURIComponent(String(requestParameters.id)) + ), + method: 'DELETE', + }, + initOverrides + ); + + return runtime.VoidApiResponse.fromResponse(response); + } + + /** + * Retrieve SSO profile by ID + * + * @throws {RequiredError} + */ + async selfServiceProfilesIdGet( + requestParameters: SelfServiceProfilesIdGetRequest, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const response = await this.request( + { + path: `/self-service-profiles/{id}`.replace( + '{id}', + encodeURIComponent(String(requestParameters.id)) + ), + method: 'GET', + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Update an SSO profile + * + * @throws {RequiredError} + */ + async selfServiceProfilesIdPatch( + requestParameters: SelfServiceProfilesIdPatchRequest, + bodyParameters: SSOProfileUpdate, + initOverrides?: InitOverride + ): Promise> { + runtime.validateRequiredRequestParams(requestParameters, ['id']); + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/self-service-profiles/{id}`.replace( + '{id}', + encodeURIComponent(String(requestParameters.id)) + ), + method: 'PATCH', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } + + /** + * Create an SSO profile + * + * @throws {RequiredError} + */ + async selfServiceProfilesPost( + bodyParameters: SSOProfileCreate, + initOverrides?: InitOverride + ): Promise> { + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/self-service-profiles`, + method: 'POST', + headers: headerParameters, + body: bodyParameters, + }, + initOverrides + ); + + return runtime.JSONApiResponse.fromResponse(response); + } +} diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index 9b77657e0..f43caab4d 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -5484,6 +5484,91 @@ export interface GetExecution200ResponseResultsInner { */ ended_at: string; } +/** + * + */ +export type GetFlows200Response = Array | GetFlows200ResponseOneOf; +/** + * + */ +export interface GetFlows200ResponseOneOf { + /** + */ + start: number; + /** + */ + limit: number; + /** + */ + total: number; + /** + */ + flows: Array; +} +/** + * + */ +export interface GetFlows200ResponseOneOfInner { + /** + */ + id: string; + /** + */ + name: string; + /** + */ + created_at: string; + /** + */ + updated_at: string; + /** + */ + executed_at?: string; +} +/** + * + */ +export type GetForms200Response = Array | GetForms200ResponseOneOf; +/** + * + */ +export interface GetForms200ResponseOneOf { + /** + */ + start: number; + /** + */ + limit: number; + /** + */ + total: number; + /** + */ + forms: Array; +} +/** + * + */ +export interface GetForms200ResponseOneOfInner { + /** + */ + id: string; + /** + */ + name: string; + /** + */ + created_at: string; + /** + */ + updated_at: string; + /** + */ + embedded_at?: string; + /** + */ + submitted_at?: string; +} /** * */ @@ -8608,6 +8693,46 @@ export interface PatchEnabledConnectionsByConnectionIdRequest { */ show_as_button?: boolean; } +/** + * + */ +export interface PatchFlowsByIdRequest { + /** + */ + name?: string; + /** + */ + actions?: Array; +} +/** + * + */ +export interface PatchFormsByIdRequest { + /** + */ + name?: string; + /** + */ + messages?: PostFormsRequestMessages; + /** + */ + languages?: PostFormsRequestLanguages; + /** + */ + translations?: { [key: string]: any }; + /** + */ + nodes?: Array; + /** + */ + start?: PostFormsRequestStart; + /** + */ + ending?: PostFormsRequestEnding; + /** + */ + style?: PostFormsRequestStyle; +} /** * */ @@ -9734,154 +9859,1426 @@ export type PostDeployDraftVersionRequest = ActionsDraftUpdate; /** * */ -export interface PostDeviceCredentials201Response { +export interface PostDeviceCredentials201Response { + [key: string]: any | any; + /** + * The credential's identifier + * + */ + id: string; +} +/** + * + */ +export interface PostEmailTemplatesRequest { + /** + * Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `change_password` (legacy), or `password_reset` (legacy). + * + */ + template: PostEmailTemplatesRequestTemplateEnum; + /** + * Body of the email template. + * + */ + body: string | null; + /** + * Senders `from` email address. + * + */ + from: string | null; + /** + * URL to redirect the user to after a successful action. + * + */ + resultUrl?: string | null; + /** + * Subject line of the email. + * + */ + subject: string | null; + /** + * Syntax of the template body. + * + */ + syntax: string | null; + /** + * Lifetime in seconds that the link within the email will be valid for. + * + */ + urlLifetimeInSeconds?: number | null; + /** + * Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. + * + */ + includeEmailInRedirect?: boolean; + /** + * Whether the template is enabled (true) or disabled (false). + * + */ + enabled: boolean | null; +} + +export const PostEmailTemplatesRequestTemplateEnum = { + verify_email: 'verify_email', + verify_email_by_code: 'verify_email_by_code', + reset_email: 'reset_email', + welcome_email: 'welcome_email', + blocked_account: 'blocked_account', + stolen_credentials: 'stolen_credentials', + enrollment_email: 'enrollment_email', + mfa_oob_code: 'mfa_oob_code', + user_invitation: 'user_invitation', + change_password: 'change_password', + password_reset: 'password_reset', +} as const; +export type PostEmailTemplatesRequestTemplateEnum = + (typeof PostEmailTemplatesRequestTemplateEnum)[keyof typeof PostEmailTemplatesRequestTemplateEnum]; + +/** + * + */ +export interface PostEmailVerification201Response { + [key: string]: any | any; + /** + * URL representing the ticket. + * + */ + ticket: string; +} +/** + * + */ +export interface PostEmailVerificationRequest { + /** + * URL the user will be redirected to in the classic Universal Login experience once the ticket is used. + * + */ + result_url?: string; + /** + * user_id of for whom the ticket should be created. + * + */ + user_id: string; + /** + * ID of the client. If provided for tenants using New Universal Login experience, the user will be prompted to redirect to the default login route of the corresponding application once the ticket is used. See Configuring Default Login Routes for more details. + * + */ + client_id?: string; + /** + * (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. + * + */ + organization_id?: string; + /** + * Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). + * + */ + ttl_sec?: number; + /** + * Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). + * + */ + includeEmailInRedirect?: boolean; + /** + */ + identity?: PostVerificationEmailRequestIdentity; +} +/** + * + */ +export interface PostEnabledConnectionsRequest { + /** + * Single connection ID to add to the organization. + * + */ + connection_id: string; + /** + * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. + * + */ + assign_membership_on_login?: boolean; + /** + * Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. + * + */ + is_signup_enabled?: boolean; + /** + * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. + * + */ + show_as_button?: boolean; +} +/** + * + */ +export interface PostFlows201Response { + /** + */ + id: string; + /** + */ + name: string; + /** + */ + actions?: Array; + /** + */ + created_at: string; + /** + */ + updated_at: string; + /** + */ + executed_at?: string; +} +/** + * + */ +export interface PostFlowsRequest { + /** + */ + name: string; + /** + */ + actions?: Array; +} +/** + * + */ +export interface PostForms201Response { + /** + */ + id: string; + /** + */ + name: string; + /** + */ + messages?: PostFormsRequestMessages; + /** + */ + languages?: PostFormsRequestLanguages; + /** + */ + translations?: { [key: string]: any }; + /** + */ + nodes?: Array; + /** + */ + start?: PostFormsRequestStart; + /** + */ + ending?: PostFormsRequestEnding; + /** + */ + style?: PostFormsRequestStyle; + /** + */ + created_at: string; + /** + */ + updated_at: string; + /** + */ + embedded_at?: string; + /** + */ + submitted_at?: string; +} +/** + * + */ +export interface PostFormsRequest { + /** + */ + name: string; + /** + */ + messages?: PostFormsRequestMessages; + /** + */ + languages?: PostFormsRequestLanguages; + /** + */ + translations?: { [key: string]: any }; + /** + */ + nodes?: Array; + /** + */ + start?: PostFormsRequestStart; + /** + */ + ending?: PostFormsRequestEnding; + /** + */ + style?: PostFormsRequestStyle; +} +/** + * + */ +export interface PostFormsRequestEnding { + /** + */ + redirection?: PostFormsRequestEndingRedirection; + /** + */ + after_submit?: PostFormsRequestEndingAfterSubmit; + /** + */ + coordinates?: PostFormsRequestNodesInnerAnyOfCoordinates; + /** + */ + resume_flow?: PostFormsRequestEndingResumeFlowEnum; +} + +export const PostFormsRequestEndingResumeFlowEnum = { + true: true, +} as const; +export type PostFormsRequestEndingResumeFlowEnum = + (typeof PostFormsRequestEndingResumeFlowEnum)[keyof typeof PostFormsRequestEndingResumeFlowEnum]; + +/** + * + */ +export interface PostFormsRequestEndingAfterSubmit { + /** + */ + flow_id?: string; +} +/** + * + */ +export interface PostFormsRequestEndingRedirection { + /** + */ + delay?: number; + /** + */ + target: string; +} +/** + * + */ +export interface PostFormsRequestLanguages { + /** + */ + primary?: string; + /** + */ + _default?: string; +} +/** + * + */ +export interface PostFormsRequestMessages { + /** + */ + errors?: { [key: string]: any }; + /** + */ + custom?: { [key: string]: any }; +} +/** + * + */ +export type PostFormsRequestNodesInner = + | PostFormsRequestNodesInnerAnyOf + | PostFormsRequestNodesInnerAnyOf1 + | PostFormsRequestNodesInnerAnyOf2; +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf { + /** + */ + id: string; + /** + */ + type: PostFormsRequestNodesInnerAnyOfTypeEnum; + /** + */ + coordinates?: PostFormsRequestNodesInnerAnyOfCoordinates; + /** + */ + alias?: string; + /** + */ + config: PostFormsRequestNodesInnerAnyOfConfig; +} + +export const PostFormsRequestNodesInnerAnyOfTypeEnum = { + FLOW: 'FLOW', +} as const; +export type PostFormsRequestNodesInnerAnyOfTypeEnum = + (typeof PostFormsRequestNodesInnerAnyOfTypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOfTypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf1 { + /** + */ + id: string; + /** + */ + type: PostFormsRequestNodesInnerAnyOf1TypeEnum; + /** + */ + coordinates?: PostFormsRequestNodesInnerAnyOfCoordinates; + /** + */ + alias?: string; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf1Config; +} + +export const PostFormsRequestNodesInnerAnyOf1TypeEnum = { + ROUTER: 'ROUTER', +} as const; +export type PostFormsRequestNodesInnerAnyOf1TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf1TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf1TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf1Config { + /** + */ + rules?: Array; + /** + */ + fallback?: PostFormsRequestNodesInnerAnyOfConfigNextNode; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf1ConfigRulesInner { + /** + */ + id: string; + /** + */ + alias?: string; + /** + */ + condition: any | null; + /** + */ + next_node?: PostFormsRequestNodesInnerAnyOfConfigNextNode; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2 { + /** + */ + id: string; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2TypeEnum; + /** + */ + coordinates?: PostFormsRequestNodesInnerAnyOfCoordinates; + /** + */ + alias?: string; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2Config; +} + +export const PostFormsRequestNodesInnerAnyOf2TypeEnum = { + STEP: 'STEP', +} as const; +export type PostFormsRequestNodesInnerAnyOf2TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2Config { + /** + */ + components?: Array; + /** + */ + next_node?: PostFormsRequestNodesInnerAnyOfConfigNextNode; +} +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInner = + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2; +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf = + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6; +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1 = + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1; +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfTypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfConfig; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfTypeEnum = { + GMAPS_ADDRESS: 'GMAPS_ADDRESS', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfTypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfTypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfTypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1TypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1TypeEnum = { + RECAPTCHA: 'RECAPTCHA', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOf1Config { + /** + */ + site_key: string; + /** + */ + secret_key: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf1AnyOfConfig { + /** + */ + api_key: string; +} +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2 = + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8 + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9; +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfTypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfConfig; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfTypeEnum = { + BOOLEAN: 'BOOLEAN', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfTypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfTypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfTypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1TypeEnum; + /** + */ + config?: { [key: string]: any }; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1TypeEnum = { + CARDS: 'CARDS', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf1TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10TypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10TypeEnum = { + PASSWORD: 'PASSWORD', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10Config { + /** + */ + hash?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10ConfigHashEnum; + /** + */ + placeholder?: string; + /** + */ + min_length?: number; + /** + */ + max_length?: number; + /** + */ + complexity?: boolean; + /** + */ + nist?: boolean; + /** + */ + strength_meter?: boolean; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10ConfigHashEnum = { + NONE: 'NONE', + MD5: 'MD5', + SHA1: 'SHA1', + SHA256: 'SHA256', + SHA512: 'SHA512', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10ConfigHashEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10ConfigHashEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf10ConfigHashEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11TypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11TypeEnum = { + PAYMENT: 'PAYMENT', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11Config { + /** + */ + provider?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigProviderEnum; + /** + */ + charge: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigCharge; + /** + */ + credentials: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigCredentials; + /** + */ + customer?: { [key: string]: any }; + /** + */ + fields?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFields; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigProviderEnum = + { + STRIPE: 'STRIPE', + } as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigProviderEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigProviderEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigProviderEnum]; + +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigCharge = + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf + | PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1; +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf { + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfTypeEnum; + /** + */ + one_off: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOff; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfTypeEnum = + { + ONE_OFF: 'ONE_OFF', + } as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfTypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfTypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfTypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1 { + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1TypeEnum; + /** + */ + subscription: { [key: string]: any }; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1TypeEnum = + { + SUBSCRIPTION: 'SUBSCRIPTION', + } as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOf1TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOff { + [key: string]: any | any; + /** + */ + amount: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffAmount; + /** + */ + currency: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffCurrencyEnum; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffCurrencyEnum = + { + AUD: 'AUD', + CAD: 'CAD', + CHF: 'CHF', + EUR: 'EUR', + GBP: 'GBP', + INR: 'INR', + MXN: 'MXN', + SEK: 'SEK', + USD: 'USD', + } as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffCurrencyEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffCurrencyEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffCurrencyEnum]; + +/** + * + */ +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigChargeAnyOfOneOffAmount = + number | string; +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigCredentials { + /** + */ + public_key: string; + /** + */ + private_key: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFields { + /** + */ + card_number?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFieldsCardNumber; + /** + */ + expiration_date?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFieldsCardNumber; + /** + */ + security_code?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFieldsCardNumber; + /** + */ + trustmarks?: boolean; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf11ConfigFieldsCardNumber { + /** + */ + label?: string; + /** + */ + placeholder?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12TypeEnum; + /** + */ + config?: object; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12TypeEnum = { + SOCIAL: 'SOCIAL', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf12TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13TypeEnum = { + TEL: 'TEL', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13Config {} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14TypeEnum = { + TEXT: 'TEXT', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf14TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15TypeEnum = { + URL: 'URL', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf15TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2TypeEnum; + /** + */ + config?: { [key: string]: any }; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2TypeEnum = { + CHOICE: 'CHOICE', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf2TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3TypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3TypeEnum = { + CUSTOM: 'CUSTOM', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf3Config { + /** + */ + schema: { [key: string]: any }; + /** + */ + code: string; + /** + */ + css?: string; + /** + */ + params?: { [key: string]: any }; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4TypeEnum; + /** + */ + config: { [key: string]: any }; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4TypeEnum = { + DATE: 'DATE', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf4TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5TypeEnum; + /** + */ + config?: { [key: string]: any }; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5TypeEnum = { + DROPDOWN: 'DROPDOWN', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf5TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6TypeEnum = { + EMAIL: 'EMAIL', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf6Config { + /** + */ + default_value?: string; + /** + */ + placeholder?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7TypeEnum = { + FILE: 'FILE', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7Config { + /** + */ + multiple?: boolean; + /** + */ + storage?: { [key: string]: any }; + /** + */ + categories?: Array; + /** + */ + extensions?: Array; + /** + */ + maxSize?: number; + /** + */ + maxFiles?: number; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7ConfigCategoriesEnum = + { + AUDIO: 'AUDIO', + VIDEO: 'VIDEO', + IMAGE: 'IMAGE', + DOCUMENT: 'DOCUMENT', + ARCHIVE: 'ARCHIVE', + } as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7ConfigCategoriesEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7ConfigCategoriesEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf7ConfigCategoriesEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8TypeEnum = { + LEGAL: 'LEGAL', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf8Config { + /** + */ + text?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9TypeEnum = { + NUMBER: 'NUMBER', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf9Config { + /** + */ + default_value?: number; + /** + */ + placeholder?: string; + /** + */ + min_value?: number; + /** + */ + max_value?: number; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfConfig { + /** + */ + default_value?: boolean; + /** + */ + options?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfConfigOptions; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOfConfigOptions { + /** + */ + _true?: string; + /** + */ + _false?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfTypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfConfig; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfTypeEnum = { + DIVIDER: 'DIVIDER', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfTypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfTypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfTypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1TypeEnum = { + HTML: 'HTML', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1Config { + /** + */ + content?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2 { + [key: string]: any | any; + /** + */ + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2TypeEnum = { + IMAGE: 'IMAGE', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2Config { + /** + */ + src: string; + /** + */ + position?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2ConfigPositionEnum; + /** + */ + height?: number; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2ConfigPositionEnum = { + LEFT: 'LEFT', + CENTER: 'CENTER', + RIGHT: 'RIGHT', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2ConfigPositionEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2ConfigPositionEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf2ConfigPositionEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3 { [key: string]: any | any; /** - * The credential's identifier - * */ - id: string; + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3TypeEnum; + /** + */ + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3Config; } + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3TypeEnum = { + JUMP_BUTTON: 'JUMP_BUTTON', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3TypeEnum]; + /** * */ -export interface PostEmailTemplatesRequest { +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3Config { /** - * Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `change_password` (legacy), or `password_reset` (legacy). - * */ - template: PostEmailTemplatesRequestTemplateEnum; + text: string; /** - * Body of the email template. - * */ - body: string | null; + next_node: PostFormsRequestNodesInnerAnyOfConfigNextNode; /** - * Senders `from` email address. - * */ - from: string | null; + style?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3ConfigStyle; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf3ConfigStyle { /** - * URL to redirect the user to after a successful action. - * */ - resultUrl?: string | null; + background_color?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4 { + [key: string]: any | any; /** - * Subject line of the email. - * */ - subject: string | null; + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4TypeEnum; /** - * Syntax of the template body. - * */ - syntax: string | null; + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4Config; +} + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4TypeEnum = { + NEXT_BUTTON: 'NEXT_BUTTON', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4TypeEnum]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4Config { /** - * Lifetime in seconds that the link within the email will be valid for. - * */ - urlLifetimeInSeconds?: number | null; + text: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5 { + [key: string]: any | any; /** - * Whether the `reset_email` and `verify_email` templates should include the user's email address as the `email` parameter in the returnUrl (true) or whether no email address should be included in the redirect (false). Defaults to true. - * */ - includeEmailInRedirect?: boolean; + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5TypeEnum; /** - * Whether the template is enabled (true) or disabled (false). - * */ - enabled: boolean | null; + config: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf4Config; } -export const PostEmailTemplatesRequestTemplateEnum = { - verify_email: 'verify_email', - verify_email_by_code: 'verify_email_by_code', - reset_email: 'reset_email', - welcome_email: 'welcome_email', - blocked_account: 'blocked_account', - stolen_credentials: 'stolen_credentials', - enrollment_email: 'enrollment_email', - mfa_oob_code: 'mfa_oob_code', - user_invitation: 'user_invitation', - change_password: 'change_password', - password_reset: 'password_reset', +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5TypeEnum = { + PREVIOUS_BUTTON: 'PREVIOUS_BUTTON', } as const; -export type PostEmailTemplatesRequestTemplateEnum = - (typeof PostEmailTemplatesRequestTemplateEnum)[keyof typeof PostEmailTemplatesRequestTemplateEnum]; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf5TypeEnum]; /** * */ -export interface PostEmailVerification201Response { +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6 { [key: string]: any | any; /** - * URL representing the ticket. - * */ - ticket: string; + type: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6TypeEnum; + /** + */ + config?: PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf1Config; } + +export const PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6TypeEnum = { + RICH_TEXT: 'RICH_TEXT', +} as const; +export type PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6TypeEnum = + (typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6TypeEnum)[keyof typeof PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOf6TypeEnum]; + /** * */ -export interface PostEmailVerificationRequest { +export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOfAnyOfConfig { /** - * URL the user will be redirected to in the classic Universal Login experience once the ticket is used. - * */ - result_url?: string; + text?: string; +} +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOfConfig { /** - * user_id of for whom the ticket should be created. - * */ - user_id: string; + flow_id: string; /** - * ID of the client. If provided for tenants using New Universal Login experience, the user will be prompted to redirect to the default login route of the corresponding application once the ticket is used. See Configuring Default Login Routes for more details. - * */ - client_id?: string; + next_node?: PostFormsRequestNodesInnerAnyOfConfigNextNode; +} +/** + * + */ +export type PostFormsRequestNodesInnerAnyOfConfigNextNode = + | PostFormsRequestNodesInnerAnyOfConfigNextNodeAnyOf + | string; + +/** + * + */ +export const PostFormsRequestNodesInnerAnyOfConfigNextNodeAnyOf = { + ending: '$ending', +} as const; +export type PostFormsRequestNodesInnerAnyOfConfigNextNodeAnyOf = + (typeof PostFormsRequestNodesInnerAnyOfConfigNextNodeAnyOf)[keyof typeof PostFormsRequestNodesInnerAnyOfConfigNextNodeAnyOf]; + +/** + * + */ +export interface PostFormsRequestNodesInnerAnyOfCoordinates { /** - * (Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters. - * */ - organization_id?: string; + x: number; /** - * Number of seconds for which the ticket is valid before expiration. If unspecified or set to 0, this value defaults to 432000 seconds (5 days). - * */ - ttl_sec?: number; + y: number; +} +/** + * + */ +export interface PostFormsRequestStart { /** - * Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false). - * */ - includeEmailInRedirect?: boolean; + hidden_fields?: Array; /** */ - identity?: PostVerificationEmailRequestIdentity; + next_node?: PostFormsRequestNodesInnerAnyOfConfigNextNode; + /** + */ + coordinates?: PostFormsRequestNodesInnerAnyOfCoordinates; } /** * */ -export interface PostEnabledConnectionsRequest { - /** - * Single connection ID to add to the organization. - * - */ - connection_id: string; +export interface PostFormsRequestStartHiddenFieldsInner { /** - * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. - * */ - assign_membership_on_login?: boolean; + key: string; /** - * Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false. - * */ - is_signup_enabled?: boolean; + value?: string; +} +/** + * + */ +export interface PostFormsRequestStyle { /** - * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true. - * */ - show_as_button?: boolean; + css?: string; } /** * @@ -14540,6 +15937,151 @@ export interface GetProviderRequest { */ include_fields?: boolean; } + +/** + * + */ +export const GetFlowsHydrateEnum = { + form_count: 'form_count', +} as const; +export type GetFlowsHydrateEnum = (typeof GetFlowsHydrateEnum)[keyof typeof GetFlowsHydrateEnum]; + +/** + * + */ +export interface GetFlowsRequest { + /** + * Page index of the results to return. First page is 0. + * + */ + page?: number; + /** + * Number of results per page. Defaults to 50. + * + */ + per_page?: number; + /** + * Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + * + */ + include_totals?: boolean; + /** + * hydration param + * + */ + hydrate?: Array; + /** + * flag to filter by sync/async flows + * + */ + synchronous?: boolean; +} + +/** + * + */ +export const GetFlowsByIdHydrateEnum = { + form_count: 'form_count', +} as const; +export type GetFlowsByIdHydrateEnum = + (typeof GetFlowsByIdHydrateEnum)[keyof typeof GetFlowsByIdHydrateEnum]; + +/** + * + */ +export interface GetFlowsByIdRequest { + /** + * Flow identifier + * + */ + id: string; + /** + * hydration param + * + */ + hydrate?: Array; +} +/** + * + */ +export interface PatchFlowsByIdOperationRequest { + /** + * Flow identifier + * + */ + id: string; +} + +/** + * + */ +export const GetFormsHydrateEnum = { + flow_count: 'flow_count', + links: 'links', +} as const; +export type GetFormsHydrateEnum = (typeof GetFormsHydrateEnum)[keyof typeof GetFormsHydrateEnum]; + +/** + * + */ +export interface GetFormsRequest { + /** + * Page index of the results to return. First page is 0. + * + */ + page?: number; + /** + * Number of results per page. Defaults to 50. + * + */ + per_page?: number; + /** + * Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). + * + */ + include_totals?: boolean; + /** + * hydration param + * + */ + hydrate?: Array; +} + +/** + * + */ +export const GetFormsByIdHydrateEnum = { + flow_count: 'flow_count', + links: 'links', +} as const; +export type GetFormsByIdHydrateEnum = + (typeof GetFormsByIdHydrateEnum)[keyof typeof GetFormsByIdHydrateEnum]; + +/** + * + */ +export interface GetFormsByIdRequest { + /** + * Form identifier + * + */ + id: string; + /** + * hydration param + * + */ + hydrate?: Array; +} +/** + * + */ +export interface PatchFormsByIdOperationRequest { + /** + * Form identifier + * + */ + id: string; +} /** * */