authhero 0.136.0 → 0.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9162,204 +9162,6 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
9162
9162
  } | undefined;
9163
9163
  }>;
9164
9164
  export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
9165
- /**
9166
- * Form field types supported by Auth0
9167
- */
9168
- export declare enum FormFieldType {
9169
- TEXT = "text",
9170
- EMAIL = "email",
9171
- PASSWORD = "password",
9172
- NUMBER = "number",
9173
- PHONE = "phone",
9174
- DATE = "date",
9175
- CHECKBOX = "checkbox",
9176
- RADIO = "radio",
9177
- SELECT = "select",
9178
- HIDDEN = "hidden"
9179
- }
9180
- /**
9181
- * Form field validation types
9182
- */
9183
- export declare enum ValidationErrorType {
9184
- REQUIRED = "required",
9185
- FORMAT = "format",
9186
- MIN_LENGTH = "min_length",
9187
- MAX_LENGTH = "max_length",
9188
- MIN = "min",
9189
- MAX = "max",
9190
- MATCHING_PATTERN = "matching_pattern"
9191
- }
9192
- /**
9193
- * Validation schema for form fields
9194
- */
9195
- export declare const formFieldValidationSchema: z.ZodObject<{
9196
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
9197
- message: z.ZodString;
9198
- min_length: z.ZodOptional<z.ZodNumber>;
9199
- max_length: z.ZodOptional<z.ZodNumber>;
9200
- min: z.ZodOptional<z.ZodNumber>;
9201
- max: z.ZodOptional<z.ZodNumber>;
9202
- pattern: z.ZodOptional<z.ZodString>;
9203
- format: z.ZodOptional<z.ZodString>;
9204
- }, "strip", z.ZodTypeAny, {
9205
- message: string;
9206
- type: ValidationErrorType;
9207
- format?: string | undefined;
9208
- pattern?: string | undefined;
9209
- min_length?: number | undefined;
9210
- max_length?: number | undefined;
9211
- min?: number | undefined;
9212
- max?: number | undefined;
9213
- }, {
9214
- message: string;
9215
- type: ValidationErrorType;
9216
- format?: string | undefined;
9217
- pattern?: string | undefined;
9218
- min_length?: number | undefined;
9219
- max_length?: number | undefined;
9220
- min?: number | undefined;
9221
- max?: number | undefined;
9222
- }>;
9223
- export type FormFieldValidation = z.infer<typeof formFieldValidationSchema>;
9224
- /**
9225
- * Options for select, radio, and checkbox fields
9226
- */
9227
- export declare const formFieldOptionSchema: z.ZodObject<{
9228
- label: z.ZodString;
9229
- value: z.ZodString;
9230
- checked: z.ZodOptional<z.ZodBoolean>;
9231
- }, "strip", z.ZodTypeAny, {
9232
- value: string;
9233
- label: string;
9234
- checked?: boolean | undefined;
9235
- }, {
9236
- value: string;
9237
- label: string;
9238
- checked?: boolean | undefined;
9239
- }>;
9240
- export type FormFieldOption = z.infer<typeof formFieldOptionSchema>;
9241
- /**
9242
- * Schema for form fields
9243
- */
9244
- export declare const formFieldSchema: z.ZodObject<{
9245
- id: z.ZodString;
9246
- name: z.ZodString;
9247
- type: z.ZodNativeEnum<typeof FormFieldType>;
9248
- label: z.ZodString;
9249
- placeholder: z.ZodOptional<z.ZodString>;
9250
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9251
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9252
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9253
- defaultValue: z.ZodOptional<z.ZodUnion<[
9254
- z.ZodString,
9255
- z.ZodNumber,
9256
- z.ZodBoolean
9257
- ]>>;
9258
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9259
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
9260
- message: z.ZodString;
9261
- min_length: z.ZodOptional<z.ZodNumber>;
9262
- max_length: z.ZodOptional<z.ZodNumber>;
9263
- min: z.ZodOptional<z.ZodNumber>;
9264
- max: z.ZodOptional<z.ZodNumber>;
9265
- pattern: z.ZodOptional<z.ZodString>;
9266
- format: z.ZodOptional<z.ZodString>;
9267
- }, "strip", z.ZodTypeAny, {
9268
- message: string;
9269
- type: ValidationErrorType;
9270
- format?: string | undefined;
9271
- pattern?: string | undefined;
9272
- min_length?: number | undefined;
9273
- max_length?: number | undefined;
9274
- min?: number | undefined;
9275
- max?: number | undefined;
9276
- }, {
9277
- message: string;
9278
- type: ValidationErrorType;
9279
- format?: string | undefined;
9280
- pattern?: string | undefined;
9281
- min_length?: number | undefined;
9282
- max_length?: number | undefined;
9283
- min?: number | undefined;
9284
- max?: number | undefined;
9285
- }>, "many">>;
9286
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
9287
- label: z.ZodString;
9288
- value: z.ZodString;
9289
- checked: z.ZodOptional<z.ZodBoolean>;
9290
- }, "strip", z.ZodTypeAny, {
9291
- value: string;
9292
- label: string;
9293
- checked?: boolean | undefined;
9294
- }, {
9295
- value: string;
9296
- label: string;
9297
- checked?: boolean | undefined;
9298
- }>, "many">>;
9299
- description: z.ZodOptional<z.ZodString>;
9300
- order: z.ZodOptional<z.ZodNumber>;
9301
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9302
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9303
- }, "strip", z.ZodTypeAny, {
9304
- type: FormFieldType;
9305
- readOnly: boolean;
9306
- required: boolean;
9307
- name: string;
9308
- id: string;
9309
- disabled: boolean;
9310
- label: string;
9311
- visible: boolean;
9312
- options?: {
9313
- value: string;
9314
- label: string;
9315
- checked?: boolean | undefined;
9316
- }[] | undefined;
9317
- description?: string | undefined;
9318
- placeholder?: string | undefined;
9319
- defaultValue?: string | number | boolean | undefined;
9320
- validations?: {
9321
- message: string;
9322
- type: ValidationErrorType;
9323
- format?: string | undefined;
9324
- pattern?: string | undefined;
9325
- min_length?: number | undefined;
9326
- max_length?: number | undefined;
9327
- min?: number | undefined;
9328
- max?: number | undefined;
9329
- }[] | undefined;
9330
- order?: number | undefined;
9331
- customizations?: Record<string, any> | undefined;
9332
- }, {
9333
- type: FormFieldType;
9334
- name: string;
9335
- id: string;
9336
- label: string;
9337
- options?: {
9338
- value: string;
9339
- label: string;
9340
- checked?: boolean | undefined;
9341
- }[] | undefined;
9342
- readOnly?: boolean | undefined;
9343
- description?: string | undefined;
9344
- required?: boolean | undefined;
9345
- disabled?: boolean | undefined;
9346
- placeholder?: string | undefined;
9347
- defaultValue?: string | number | boolean | undefined;
9348
- validations?: {
9349
- message: string;
9350
- type: ValidationErrorType;
9351
- format?: string | undefined;
9352
- pattern?: string | undefined;
9353
- min_length?: number | undefined;
9354
- max_length?: number | undefined;
9355
- min?: number | undefined;
9356
- max?: number | undefined;
9357
- }[] | undefined;
9358
- order?: number | undefined;
9359
- visible?: boolean | undefined;
9360
- customizations?: Record<string, any> | undefined;
9361
- }>;
9362
- export type FormField = z.infer<typeof formFieldSchema>;
9363
9165
  /**
9364
9166
  * Schema for form controls (like submit buttons)
9365
9167
  */
@@ -9378,316 +9180,498 @@ export declare const formControlSchema: z.ZodObject<{
9378
9180
  disabled: boolean;
9379
9181
  label: string;
9380
9182
  visible: boolean;
9183
+ className?: string | undefined;
9381
9184
  order?: number | undefined;
9382
9185
  customizations?: Record<string, any> | undefined;
9383
- className?: string | undefined;
9384
9186
  }, {
9385
9187
  type: "submit";
9386
9188
  id: string;
9387
9189
  label: string;
9388
9190
  disabled?: boolean | undefined;
9191
+ className?: string | undefined;
9389
9192
  order?: number | undefined;
9390
9193
  visible?: boolean | undefined;
9391
9194
  customizations?: Record<string, any> | undefined;
9392
- className?: string | undefined;
9393
9195
  }>;
9394
9196
  export type FormControl = z.infer<typeof formControlSchema>;
9395
9197
  /**
9396
- * Supported form types
9397
- */
9398
- export declare enum FormType {
9399
- LOGIN = "login",
9400
- SIGNUP = "signup",
9401
- RESET_PASSWORD = "reset-password",
9402
- MFA = "mfa",
9403
- MFA_ENROLLMENT = "mfa-enrollment",
9404
- VERIFICATION_CODE = "verification-code",
9405
- INVITATION = "invitation",
9406
- CUSTOM = "custom"
9407
- }
9408
- /**
9409
- * Schema for forms
9198
+ * Schema for forms (flow-based, matches new JSON structure)
9410
9199
  */
9411
9200
  export declare const formInsertSchema: z.ZodObject<{
9412
9201
  name: z.ZodString;
9413
- type: z.ZodNativeEnum<typeof FormType>;
9414
- client_id: z.ZodOptional<z.ZodString>;
9415
- fields: z.ZodArray<z.ZodObject<{
9416
- id: z.ZodString;
9417
- name: z.ZodString;
9418
- type: z.ZodNativeEnum<typeof FormFieldType>;
9419
- label: z.ZodString;
9420
- placeholder: z.ZodOptional<z.ZodString>;
9421
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9422
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9423
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9424
- defaultValue: z.ZodOptional<z.ZodUnion<[
9425
- z.ZodString,
9426
- z.ZodNumber,
9427
- z.ZodBoolean
9428
- ]>>;
9429
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9430
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
9431
- message: z.ZodString;
9432
- min_length: z.ZodOptional<z.ZodNumber>;
9433
- max_length: z.ZodOptional<z.ZodNumber>;
9434
- min: z.ZodOptional<z.ZodNumber>;
9435
- max: z.ZodOptional<z.ZodNumber>;
9436
- pattern: z.ZodOptional<z.ZodString>;
9437
- format: z.ZodOptional<z.ZodString>;
9202
+ messages: z.ZodOptional<z.ZodObject<{
9203
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9204
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9205
+ }, "strip", z.ZodTypeAny, {
9206
+ custom?: Record<string, any> | undefined;
9207
+ errors?: Record<string, any> | undefined;
9208
+ }, {
9209
+ custom?: Record<string, any> | undefined;
9210
+ errors?: Record<string, any> | undefined;
9211
+ }>>;
9212
+ languages: z.ZodOptional<z.ZodObject<{
9213
+ primary: z.ZodOptional<z.ZodString>;
9214
+ default: z.ZodOptional<z.ZodString>;
9215
+ }, "strip", z.ZodTypeAny, {
9216
+ default?: string | undefined;
9217
+ primary?: string | undefined;
9218
+ }, {
9219
+ default?: string | undefined;
9220
+ primary?: string | undefined;
9221
+ }>>;
9222
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9223
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9224
+ z.ZodObject<{
9225
+ id: z.ZodString;
9226
+ type: z.ZodLiteral<"FLOW">;
9227
+ coordinates: z.ZodObject<{
9228
+ x: z.ZodNumber;
9229
+ y: z.ZodNumber;
9230
+ }, "strip", z.ZodTypeAny, {
9231
+ x: number;
9232
+ y: number;
9233
+ }, {
9234
+ x: number;
9235
+ y: number;
9236
+ }>;
9237
+ alias: z.ZodString;
9238
+ config: z.ZodObject<{
9239
+ flow_id: z.ZodString;
9240
+ next_node: z.ZodArray<z.ZodString, "many">;
9241
+ }, "strip", z.ZodTypeAny, {
9242
+ next_node: string[];
9243
+ flow_id: string;
9244
+ }, {
9245
+ next_node: string[];
9246
+ flow_id: string;
9247
+ }>;
9438
9248
  }, "strip", z.ZodTypeAny, {
9439
- message: string;
9440
- type: ValidationErrorType;
9441
- format?: string | undefined;
9442
- pattern?: string | undefined;
9443
- min_length?: number | undefined;
9444
- max_length?: number | undefined;
9445
- min?: number | undefined;
9446
- max?: number | undefined;
9249
+ type: "FLOW";
9250
+ id: string;
9251
+ config: {
9252
+ next_node: string[];
9253
+ flow_id: string;
9254
+ };
9255
+ coordinates: {
9256
+ x: number;
9257
+ y: number;
9258
+ };
9259
+ alias: string;
9447
9260
  }, {
9448
- message: string;
9449
- type: ValidationErrorType;
9450
- format?: string | undefined;
9451
- pattern?: string | undefined;
9452
- min_length?: number | undefined;
9453
- max_length?: number | undefined;
9454
- min?: number | undefined;
9455
- max?: number | undefined;
9456
- }>, "many">>;
9457
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
9458
- label: z.ZodString;
9261
+ type: "FLOW";
9262
+ id: string;
9263
+ config: {
9264
+ next_node: string[];
9265
+ flow_id: string;
9266
+ };
9267
+ coordinates: {
9268
+ x: number;
9269
+ y: number;
9270
+ };
9271
+ alias: string;
9272
+ }>,
9273
+ z.ZodObject<{
9274
+ id: z.ZodString;
9275
+ type: z.ZodLiteral<"ROUTER">;
9276
+ coordinates: z.ZodObject<{
9277
+ x: z.ZodNumber;
9278
+ y: z.ZodNumber;
9279
+ }, "strip", z.ZodTypeAny, {
9280
+ x: number;
9281
+ y: number;
9282
+ }, {
9283
+ x: number;
9284
+ y: number;
9285
+ }>;
9286
+ alias: z.ZodString;
9287
+ config: z.ZodObject<{
9288
+ rules: z.ZodArray<z.ZodObject<{
9289
+ id: z.ZodString;
9290
+ alias: z.ZodString;
9291
+ condition: z.ZodAny;
9292
+ next_node: z.ZodArray<z.ZodString, "many">;
9293
+ }, "strip", z.ZodTypeAny, {
9294
+ id: string;
9295
+ alias: string;
9296
+ next_node: string[];
9297
+ condition?: any;
9298
+ }, {
9299
+ id: string;
9300
+ alias: string;
9301
+ next_node: string[];
9302
+ condition?: any;
9303
+ }>, "many">;
9304
+ fallback: z.ZodArray<z.ZodString, "many">;
9305
+ }, "strip", z.ZodTypeAny, {
9306
+ rules: {
9307
+ id: string;
9308
+ alias: string;
9309
+ next_node: string[];
9310
+ condition?: any;
9311
+ }[];
9312
+ fallback: string[];
9313
+ }, {
9314
+ rules: {
9315
+ id: string;
9316
+ alias: string;
9317
+ next_node: string[];
9318
+ condition?: any;
9319
+ }[];
9320
+ fallback: string[];
9321
+ }>;
9322
+ }, "strip", z.ZodTypeAny, {
9323
+ type: "ROUTER";
9324
+ id: string;
9325
+ config: {
9326
+ rules: {
9327
+ id: string;
9328
+ alias: string;
9329
+ next_node: string[];
9330
+ condition?: any;
9331
+ }[];
9332
+ fallback: string[];
9333
+ };
9334
+ coordinates: {
9335
+ x: number;
9336
+ y: number;
9337
+ };
9338
+ alias: string;
9339
+ }, {
9340
+ type: "ROUTER";
9341
+ id: string;
9342
+ config: {
9343
+ rules: {
9344
+ id: string;
9345
+ alias: string;
9346
+ next_node: string[];
9347
+ condition?: any;
9348
+ }[];
9349
+ fallback: string[];
9350
+ };
9351
+ coordinates: {
9352
+ x: number;
9353
+ y: number;
9354
+ };
9355
+ alias: string;
9356
+ }>,
9357
+ z.ZodObject<{
9358
+ id: z.ZodString;
9359
+ type: z.ZodLiteral<"STEP">;
9360
+ coordinates: z.ZodObject<{
9361
+ x: z.ZodNumber;
9362
+ y: z.ZodNumber;
9363
+ }, "strip", z.ZodTypeAny, {
9364
+ x: number;
9365
+ y: number;
9366
+ }, {
9367
+ x: number;
9368
+ y: number;
9369
+ }>;
9370
+ alias: z.ZodString;
9371
+ config: z.ZodObject<{
9372
+ components: z.ZodArray<z.ZodAny, "many">;
9373
+ next_node: z.ZodArray<z.ZodString, "many">;
9374
+ }, "strip", z.ZodTypeAny, {
9375
+ components: any[];
9376
+ next_node: string[];
9377
+ }, {
9378
+ components: any[];
9379
+ next_node: string[];
9380
+ }>;
9381
+ }, "strip", z.ZodTypeAny, {
9382
+ type: "STEP";
9383
+ id: string;
9384
+ config: {
9385
+ components: any[];
9386
+ next_node: string[];
9387
+ };
9388
+ coordinates: {
9389
+ x: number;
9390
+ y: number;
9391
+ };
9392
+ alias: string;
9393
+ }, {
9394
+ type: "STEP";
9395
+ id: string;
9396
+ config: {
9397
+ components: any[];
9398
+ next_node: string[];
9399
+ };
9400
+ coordinates: {
9401
+ x: number;
9402
+ y: number;
9403
+ };
9404
+ alias: string;
9405
+ }>
9406
+ ]>, "many">>;
9407
+ start: z.ZodOptional<z.ZodObject<{
9408
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9409
+ key: z.ZodString;
9459
9410
  value: z.ZodString;
9460
- checked: z.ZodOptional<z.ZodBoolean>;
9461
9411
  }, "strip", z.ZodTypeAny, {
9462
9412
  value: string;
9463
- label: string;
9464
- checked?: boolean | undefined;
9413
+ key: string;
9465
9414
  }, {
9466
9415
  value: string;
9467
- label: string;
9468
- checked?: boolean | undefined;
9416
+ key: string;
9469
9417
  }>, "many">>;
9470
- description: z.ZodOptional<z.ZodString>;
9471
- order: z.ZodOptional<z.ZodNumber>;
9472
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9473
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9418
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9419
+ coordinates: z.ZodOptional<z.ZodObject<{
9420
+ x: z.ZodNumber;
9421
+ y: z.ZodNumber;
9422
+ }, "strip", z.ZodTypeAny, {
9423
+ x: number;
9424
+ y: number;
9425
+ }, {
9426
+ x: number;
9427
+ y: number;
9428
+ }>>;
9474
9429
  }, "strip", z.ZodTypeAny, {
9475
- type: FormFieldType;
9476
- readOnly: boolean;
9477
- required: boolean;
9478
- name: string;
9479
- id: string;
9480
- disabled: boolean;
9481
- label: string;
9482
- visible: boolean;
9483
- options?: {
9430
+ coordinates?: {
9431
+ x: number;
9432
+ y: number;
9433
+ } | undefined;
9434
+ next_node?: string[] | undefined;
9435
+ hidden_fields?: {
9484
9436
  value: string;
9485
- label: string;
9486
- checked?: boolean | undefined;
9487
- }[] | undefined;
9488
- description?: string | undefined;
9489
- placeholder?: string | undefined;
9490
- defaultValue?: string | number | boolean | undefined;
9491
- validations?: {
9492
- message: string;
9493
- type: ValidationErrorType;
9494
- format?: string | undefined;
9495
- pattern?: string | undefined;
9496
- min_length?: number | undefined;
9497
- max_length?: number | undefined;
9498
- min?: number | undefined;
9499
- max?: number | undefined;
9437
+ key: string;
9500
9438
  }[] | undefined;
9501
- order?: number | undefined;
9502
- customizations?: Record<string, any> | undefined;
9503
9439
  }, {
9504
- type: FormFieldType;
9505
- name: string;
9506
- id: string;
9507
- label: string;
9508
- options?: {
9440
+ coordinates?: {
9441
+ x: number;
9442
+ y: number;
9443
+ } | undefined;
9444
+ next_node?: string[] | undefined;
9445
+ hidden_fields?: {
9509
9446
  value: string;
9510
- label: string;
9511
- checked?: boolean | undefined;
9512
- }[] | undefined;
9513
- readOnly?: boolean | undefined;
9514
- description?: string | undefined;
9515
- required?: boolean | undefined;
9516
- disabled?: boolean | undefined;
9517
- placeholder?: string | undefined;
9518
- defaultValue?: string | number | boolean | undefined;
9519
- validations?: {
9520
- message: string;
9521
- type: ValidationErrorType;
9522
- format?: string | undefined;
9523
- pattern?: string | undefined;
9524
- min_length?: number | undefined;
9525
- max_length?: number | undefined;
9526
- min?: number | undefined;
9527
- max?: number | undefined;
9447
+ key: string;
9528
9448
  }[] | undefined;
9529
- order?: number | undefined;
9530
- visible?: boolean | undefined;
9531
- customizations?: Record<string, any> | undefined;
9532
- }>, "many">;
9533
- controls: z.ZodOptional<z.ZodArray<z.ZodObject<{
9534
- id: z.ZodString;
9535
- type: z.ZodLiteral<"submit">;
9536
- label: z.ZodString;
9537
- className: z.ZodOptional<z.ZodString>;
9538
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9539
- order: z.ZodOptional<z.ZodNumber>;
9540
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9541
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9449
+ }>>;
9450
+ ending: z.ZodOptional<z.ZodObject<{
9451
+ redirection: z.ZodOptional<z.ZodObject<{
9452
+ delay: z.ZodOptional<z.ZodNumber>;
9453
+ target: z.ZodOptional<z.ZodString>;
9454
+ }, "strip", z.ZodTypeAny, {
9455
+ delay?: number | undefined;
9456
+ target?: string | undefined;
9457
+ }, {
9458
+ delay?: number | undefined;
9459
+ target?: string | undefined;
9460
+ }>>;
9461
+ after_submit: z.ZodOptional<z.ZodObject<{
9462
+ flow_id: z.ZodOptional<z.ZodString>;
9463
+ }, "strip", z.ZodTypeAny, {
9464
+ flow_id?: string | undefined;
9465
+ }, {
9466
+ flow_id?: string | undefined;
9467
+ }>>;
9468
+ coordinates: z.ZodOptional<z.ZodObject<{
9469
+ x: z.ZodNumber;
9470
+ y: z.ZodNumber;
9471
+ }, "strip", z.ZodTypeAny, {
9472
+ x: number;
9473
+ y: number;
9474
+ }, {
9475
+ x: number;
9476
+ y: number;
9477
+ }>>;
9478
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9542
9479
  }, "strip", z.ZodTypeAny, {
9543
- type: "submit";
9544
- id: string;
9545
- disabled: boolean;
9546
- label: string;
9547
- visible: boolean;
9548
- order?: number | undefined;
9549
- customizations?: Record<string, any> | undefined;
9550
- className?: string | undefined;
9480
+ coordinates?: {
9481
+ x: number;
9482
+ y: number;
9483
+ } | undefined;
9484
+ resume_flow?: boolean | undefined;
9485
+ redirection?: {
9486
+ delay?: number | undefined;
9487
+ target?: string | undefined;
9488
+ } | undefined;
9489
+ after_submit?: {
9490
+ flow_id?: string | undefined;
9491
+ } | undefined;
9551
9492
  }, {
9552
- type: "submit";
9553
- id: string;
9554
- label: string;
9555
- disabled?: boolean | undefined;
9556
- order?: number | undefined;
9557
- visible?: boolean | undefined;
9558
- customizations?: Record<string, any> | undefined;
9559
- className?: string | undefined;
9560
- }>, "many">>;
9561
- redirect_uri: z.ZodOptional<z.ZodString>;
9562
- post_submit_action: z.ZodOptional<z.ZodEnum<[
9563
- "redirect",
9564
- "message"
9565
- ]>>;
9566
- success_message: z.ZodOptional<z.ZodString>;
9567
- language: z.ZodOptional<z.ZodString>;
9568
- active: z.ZodDefault<z.ZodBoolean>;
9569
- layout: z.ZodOptional<z.ZodObject<{
9570
- columns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9571
- template: z.ZodOptional<z.ZodString>;
9572
- }, "strip", z.ZodTypeAny, {
9573
- columns: number;
9574
- template?: string | undefined;
9493
+ coordinates?: {
9494
+ x: number;
9495
+ y: number;
9496
+ } | undefined;
9497
+ resume_flow?: boolean | undefined;
9498
+ redirection?: {
9499
+ delay?: number | undefined;
9500
+ target?: string | undefined;
9501
+ } | undefined;
9502
+ after_submit?: {
9503
+ flow_id?: string | undefined;
9504
+ } | undefined;
9505
+ }>>;
9506
+ style: z.ZodOptional<z.ZodObject<{
9507
+ css: z.ZodOptional<z.ZodString>;
9508
+ }, "strip", z.ZodTypeAny, {
9509
+ css?: string | undefined;
9575
9510
  }, {
9576
- columns?: number | undefined;
9577
- template?: string | undefined;
9511
+ css?: string | undefined;
9578
9512
  }>>;
9579
- css: z.ZodOptional<z.ZodString>;
9580
- javascript: z.ZodOptional<z.ZodString>;
9581
9513
  }, "strip", z.ZodTypeAny, {
9582
- type: FormType;
9583
9514
  name: string;
9584
- fields: {
9585
- type: FormFieldType;
9586
- readOnly: boolean;
9587
- required: boolean;
9588
- name: string;
9589
- id: string;
9590
- disabled: boolean;
9591
- label: string;
9592
- visible: boolean;
9593
- options?: {
9515
+ start?: {
9516
+ coordinates?: {
9517
+ x: number;
9518
+ y: number;
9519
+ } | undefined;
9520
+ next_node?: string[] | undefined;
9521
+ hidden_fields?: {
9594
9522
  value: string;
9595
- label: string;
9596
- checked?: boolean | undefined;
9597
- }[] | undefined;
9598
- description?: string | undefined;
9599
- placeholder?: string | undefined;
9600
- defaultValue?: string | number | boolean | undefined;
9601
- validations?: {
9602
- message: string;
9603
- type: ValidationErrorType;
9604
- format?: string | undefined;
9605
- pattern?: string | undefined;
9606
- min_length?: number | undefined;
9607
- max_length?: number | undefined;
9608
- min?: number | undefined;
9609
- max?: number | undefined;
9523
+ key: string;
9610
9524
  }[] | undefined;
9611
- order?: number | undefined;
9612
- customizations?: Record<string, any> | undefined;
9613
- }[];
9614
- active: boolean;
9615
- client_id?: string | undefined;
9616
- redirect_uri?: string | undefined;
9617
- language?: string | undefined;
9618
- controls?: {
9619
- type: "submit";
9525
+ } | undefined;
9526
+ style?: {
9527
+ css?: string | undefined;
9528
+ } | undefined;
9529
+ languages?: {
9530
+ default?: string | undefined;
9531
+ primary?: string | undefined;
9532
+ } | undefined;
9533
+ nodes?: ({
9534
+ type: "FLOW";
9620
9535
  id: string;
9621
- disabled: boolean;
9622
- label: string;
9623
- visible: boolean;
9624
- order?: number | undefined;
9625
- customizations?: Record<string, any> | undefined;
9626
- className?: string | undefined;
9627
- }[] | undefined;
9628
- post_submit_action?: "message" | "redirect" | undefined;
9629
- success_message?: string | undefined;
9630
- layout?: {
9631
- columns: number;
9632
- template?: string | undefined;
9536
+ config: {
9537
+ next_node: string[];
9538
+ flow_id: string;
9539
+ };
9540
+ coordinates: {
9541
+ x: number;
9542
+ y: number;
9543
+ };
9544
+ alias: string;
9545
+ } | {
9546
+ type: "ROUTER";
9547
+ id: string;
9548
+ config: {
9549
+ rules: {
9550
+ id: string;
9551
+ alias: string;
9552
+ next_node: string[];
9553
+ condition?: any;
9554
+ }[];
9555
+ fallback: string[];
9556
+ };
9557
+ coordinates: {
9558
+ x: number;
9559
+ y: number;
9560
+ };
9561
+ alias: string;
9562
+ } | {
9563
+ type: "STEP";
9564
+ id: string;
9565
+ config: {
9566
+ components: any[];
9567
+ next_node: string[];
9568
+ };
9569
+ coordinates: {
9570
+ x: number;
9571
+ y: number;
9572
+ };
9573
+ alias: string;
9574
+ })[] | undefined;
9575
+ ending?: {
9576
+ coordinates?: {
9577
+ x: number;
9578
+ y: number;
9579
+ } | undefined;
9580
+ resume_flow?: boolean | undefined;
9581
+ redirection?: {
9582
+ delay?: number | undefined;
9583
+ target?: string | undefined;
9584
+ } | undefined;
9585
+ after_submit?: {
9586
+ flow_id?: string | undefined;
9587
+ } | undefined;
9633
9588
  } | undefined;
9634
- css?: string | undefined;
9635
- javascript?: string | undefined;
9589
+ messages?: {
9590
+ custom?: Record<string, any> | undefined;
9591
+ errors?: Record<string, any> | undefined;
9592
+ } | undefined;
9593
+ translations?: Record<string, any> | undefined;
9636
9594
  }, {
9637
- type: FormType;
9638
9595
  name: string;
9639
- fields: {
9640
- type: FormFieldType;
9641
- name: string;
9642
- id: string;
9643
- label: string;
9644
- options?: {
9596
+ start?: {
9597
+ coordinates?: {
9598
+ x: number;
9599
+ y: number;
9600
+ } | undefined;
9601
+ next_node?: string[] | undefined;
9602
+ hidden_fields?: {
9645
9603
  value: string;
9646
- label: string;
9647
- checked?: boolean | undefined;
9648
- }[] | undefined;
9649
- readOnly?: boolean | undefined;
9650
- description?: string | undefined;
9651
- required?: boolean | undefined;
9652
- disabled?: boolean | undefined;
9653
- placeholder?: string | undefined;
9654
- defaultValue?: string | number | boolean | undefined;
9655
- validations?: {
9656
- message: string;
9657
- type: ValidationErrorType;
9658
- format?: string | undefined;
9659
- pattern?: string | undefined;
9660
- min_length?: number | undefined;
9661
- max_length?: number | undefined;
9662
- min?: number | undefined;
9663
- max?: number | undefined;
9604
+ key: string;
9664
9605
  }[] | undefined;
9665
- order?: number | undefined;
9666
- visible?: boolean | undefined;
9667
- customizations?: Record<string, any> | undefined;
9668
- }[];
9669
- client_id?: string | undefined;
9670
- redirect_uri?: string | undefined;
9671
- language?: string | undefined;
9672
- controls?: {
9673
- type: "submit";
9606
+ } | undefined;
9607
+ style?: {
9608
+ css?: string | undefined;
9609
+ } | undefined;
9610
+ languages?: {
9611
+ default?: string | undefined;
9612
+ primary?: string | undefined;
9613
+ } | undefined;
9614
+ nodes?: ({
9615
+ type: "FLOW";
9674
9616
  id: string;
9675
- label: string;
9676
- disabled?: boolean | undefined;
9677
- order?: number | undefined;
9678
- visible?: boolean | undefined;
9679
- customizations?: Record<string, any> | undefined;
9680
- className?: string | undefined;
9681
- }[] | undefined;
9682
- post_submit_action?: "message" | "redirect" | undefined;
9683
- success_message?: string | undefined;
9684
- active?: boolean | undefined;
9685
- layout?: {
9686
- columns?: number | undefined;
9687
- template?: string | undefined;
9617
+ config: {
9618
+ next_node: string[];
9619
+ flow_id: string;
9620
+ };
9621
+ coordinates: {
9622
+ x: number;
9623
+ y: number;
9624
+ };
9625
+ alias: string;
9626
+ } | {
9627
+ type: "ROUTER";
9628
+ id: string;
9629
+ config: {
9630
+ rules: {
9631
+ id: string;
9632
+ alias: string;
9633
+ next_node: string[];
9634
+ condition?: any;
9635
+ }[];
9636
+ fallback: string[];
9637
+ };
9638
+ coordinates: {
9639
+ x: number;
9640
+ y: number;
9641
+ };
9642
+ alias: string;
9643
+ } | {
9644
+ type: "STEP";
9645
+ id: string;
9646
+ config: {
9647
+ components: any[];
9648
+ next_node: string[];
9649
+ };
9650
+ coordinates: {
9651
+ x: number;
9652
+ y: number;
9653
+ };
9654
+ alias: string;
9655
+ })[] | undefined;
9656
+ ending?: {
9657
+ coordinates?: {
9658
+ x: number;
9659
+ y: number;
9660
+ } | undefined;
9661
+ resume_flow?: boolean | undefined;
9662
+ redirection?: {
9663
+ delay?: number | undefined;
9664
+ target?: string | undefined;
9665
+ } | undefined;
9666
+ after_submit?: {
9667
+ flow_id?: string | undefined;
9668
+ } | undefined;
9669
+ } | undefined;
9670
+ messages?: {
9671
+ custom?: Record<string, any> | undefined;
9672
+ errors?: Record<string, any> | undefined;
9688
9673
  } | undefined;
9689
- css?: string | undefined;
9690
- javascript?: string | undefined;
9674
+ translations?: Record<string, any> | undefined;
9691
9675
  }>;
9692
9676
  export type FormInsert = z.input<typeof formInsertSchema>;
9693
9677
  /**
@@ -9696,292 +9680,487 @@ export type FormInsert = z.input<typeof formInsertSchema>;
9696
9680
  export declare const formSchema: z.ZodObject<{
9697
9681
  id: z.ZodString;
9698
9682
  name: z.ZodString;
9699
- type: z.ZodNativeEnum<typeof FormType>;
9700
- client_id: z.ZodOptional<z.ZodString>;
9701
- fields: z.ZodArray<z.ZodObject<{
9702
- id: z.ZodString;
9703
- name: z.ZodString;
9704
- type: z.ZodNativeEnum<typeof FormFieldType>;
9705
- label: z.ZodString;
9706
- placeholder: z.ZodOptional<z.ZodString>;
9707
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9708
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9709
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9710
- defaultValue: z.ZodOptional<z.ZodUnion<[
9711
- z.ZodString,
9712
- z.ZodNumber,
9713
- z.ZodBoolean
9714
- ]>>;
9715
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9716
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
9717
- message: z.ZodString;
9718
- min_length: z.ZodOptional<z.ZodNumber>;
9719
- max_length: z.ZodOptional<z.ZodNumber>;
9720
- min: z.ZodOptional<z.ZodNumber>;
9721
- max: z.ZodOptional<z.ZodNumber>;
9722
- pattern: z.ZodOptional<z.ZodString>;
9723
- format: z.ZodOptional<z.ZodString>;
9683
+ messages: z.ZodOptional<z.ZodObject<{
9684
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9685
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9686
+ }, "strip", z.ZodTypeAny, {
9687
+ custom?: Record<string, any> | undefined;
9688
+ errors?: Record<string, any> | undefined;
9689
+ }, {
9690
+ custom?: Record<string, any> | undefined;
9691
+ errors?: Record<string, any> | undefined;
9692
+ }>>;
9693
+ languages: z.ZodOptional<z.ZodObject<{
9694
+ primary: z.ZodOptional<z.ZodString>;
9695
+ default: z.ZodOptional<z.ZodString>;
9696
+ }, "strip", z.ZodTypeAny, {
9697
+ default?: string | undefined;
9698
+ primary?: string | undefined;
9699
+ }, {
9700
+ default?: string | undefined;
9701
+ primary?: string | undefined;
9702
+ }>>;
9703
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9704
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9705
+ z.ZodObject<{
9706
+ id: z.ZodString;
9707
+ type: z.ZodLiteral<"FLOW">;
9708
+ coordinates: z.ZodObject<{
9709
+ x: z.ZodNumber;
9710
+ y: z.ZodNumber;
9711
+ }, "strip", z.ZodTypeAny, {
9712
+ x: number;
9713
+ y: number;
9714
+ }, {
9715
+ x: number;
9716
+ y: number;
9717
+ }>;
9718
+ alias: z.ZodString;
9719
+ config: z.ZodObject<{
9720
+ flow_id: z.ZodString;
9721
+ next_node: z.ZodArray<z.ZodString, "many">;
9722
+ }, "strip", z.ZodTypeAny, {
9723
+ next_node: string[];
9724
+ flow_id: string;
9725
+ }, {
9726
+ next_node: string[];
9727
+ flow_id: string;
9728
+ }>;
9724
9729
  }, "strip", z.ZodTypeAny, {
9725
- message: string;
9726
- type: ValidationErrorType;
9727
- format?: string | undefined;
9728
- pattern?: string | undefined;
9729
- min_length?: number | undefined;
9730
- max_length?: number | undefined;
9731
- min?: number | undefined;
9732
- max?: number | undefined;
9730
+ type: "FLOW";
9731
+ id: string;
9732
+ config: {
9733
+ next_node: string[];
9734
+ flow_id: string;
9735
+ };
9736
+ coordinates: {
9737
+ x: number;
9738
+ y: number;
9739
+ };
9740
+ alias: string;
9733
9741
  }, {
9734
- message: string;
9735
- type: ValidationErrorType;
9736
- format?: string | undefined;
9737
- pattern?: string | undefined;
9738
- min_length?: number | undefined;
9739
- max_length?: number | undefined;
9740
- min?: number | undefined;
9741
- max?: number | undefined;
9742
- }>, "many">>;
9743
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
9744
- label: z.ZodString;
9742
+ type: "FLOW";
9743
+ id: string;
9744
+ config: {
9745
+ next_node: string[];
9746
+ flow_id: string;
9747
+ };
9748
+ coordinates: {
9749
+ x: number;
9750
+ y: number;
9751
+ };
9752
+ alias: string;
9753
+ }>,
9754
+ z.ZodObject<{
9755
+ id: z.ZodString;
9756
+ type: z.ZodLiteral<"ROUTER">;
9757
+ coordinates: z.ZodObject<{
9758
+ x: z.ZodNumber;
9759
+ y: z.ZodNumber;
9760
+ }, "strip", z.ZodTypeAny, {
9761
+ x: number;
9762
+ y: number;
9763
+ }, {
9764
+ x: number;
9765
+ y: number;
9766
+ }>;
9767
+ alias: z.ZodString;
9768
+ config: z.ZodObject<{
9769
+ rules: z.ZodArray<z.ZodObject<{
9770
+ id: z.ZodString;
9771
+ alias: z.ZodString;
9772
+ condition: z.ZodAny;
9773
+ next_node: z.ZodArray<z.ZodString, "many">;
9774
+ }, "strip", z.ZodTypeAny, {
9775
+ id: string;
9776
+ alias: string;
9777
+ next_node: string[];
9778
+ condition?: any;
9779
+ }, {
9780
+ id: string;
9781
+ alias: string;
9782
+ next_node: string[];
9783
+ condition?: any;
9784
+ }>, "many">;
9785
+ fallback: z.ZodArray<z.ZodString, "many">;
9786
+ }, "strip", z.ZodTypeAny, {
9787
+ rules: {
9788
+ id: string;
9789
+ alias: string;
9790
+ next_node: string[];
9791
+ condition?: any;
9792
+ }[];
9793
+ fallback: string[];
9794
+ }, {
9795
+ rules: {
9796
+ id: string;
9797
+ alias: string;
9798
+ next_node: string[];
9799
+ condition?: any;
9800
+ }[];
9801
+ fallback: string[];
9802
+ }>;
9803
+ }, "strip", z.ZodTypeAny, {
9804
+ type: "ROUTER";
9805
+ id: string;
9806
+ config: {
9807
+ rules: {
9808
+ id: string;
9809
+ alias: string;
9810
+ next_node: string[];
9811
+ condition?: any;
9812
+ }[];
9813
+ fallback: string[];
9814
+ };
9815
+ coordinates: {
9816
+ x: number;
9817
+ y: number;
9818
+ };
9819
+ alias: string;
9820
+ }, {
9821
+ type: "ROUTER";
9822
+ id: string;
9823
+ config: {
9824
+ rules: {
9825
+ id: string;
9826
+ alias: string;
9827
+ next_node: string[];
9828
+ condition?: any;
9829
+ }[];
9830
+ fallback: string[];
9831
+ };
9832
+ coordinates: {
9833
+ x: number;
9834
+ y: number;
9835
+ };
9836
+ alias: string;
9837
+ }>,
9838
+ z.ZodObject<{
9839
+ id: z.ZodString;
9840
+ type: z.ZodLiteral<"STEP">;
9841
+ coordinates: z.ZodObject<{
9842
+ x: z.ZodNumber;
9843
+ y: z.ZodNumber;
9844
+ }, "strip", z.ZodTypeAny, {
9845
+ x: number;
9846
+ y: number;
9847
+ }, {
9848
+ x: number;
9849
+ y: number;
9850
+ }>;
9851
+ alias: z.ZodString;
9852
+ config: z.ZodObject<{
9853
+ components: z.ZodArray<z.ZodAny, "many">;
9854
+ next_node: z.ZodArray<z.ZodString, "many">;
9855
+ }, "strip", z.ZodTypeAny, {
9856
+ components: any[];
9857
+ next_node: string[];
9858
+ }, {
9859
+ components: any[];
9860
+ next_node: string[];
9861
+ }>;
9862
+ }, "strip", z.ZodTypeAny, {
9863
+ type: "STEP";
9864
+ id: string;
9865
+ config: {
9866
+ components: any[];
9867
+ next_node: string[];
9868
+ };
9869
+ coordinates: {
9870
+ x: number;
9871
+ y: number;
9872
+ };
9873
+ alias: string;
9874
+ }, {
9875
+ type: "STEP";
9876
+ id: string;
9877
+ config: {
9878
+ components: any[];
9879
+ next_node: string[];
9880
+ };
9881
+ coordinates: {
9882
+ x: number;
9883
+ y: number;
9884
+ };
9885
+ alias: string;
9886
+ }>
9887
+ ]>, "many">>;
9888
+ start: z.ZodOptional<z.ZodObject<{
9889
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9890
+ key: z.ZodString;
9745
9891
  value: z.ZodString;
9746
- checked: z.ZodOptional<z.ZodBoolean>;
9747
9892
  }, "strip", z.ZodTypeAny, {
9748
9893
  value: string;
9749
- label: string;
9750
- checked?: boolean | undefined;
9894
+ key: string;
9751
9895
  }, {
9752
9896
  value: string;
9753
- label: string;
9754
- checked?: boolean | undefined;
9897
+ key: string;
9755
9898
  }>, "many">>;
9756
- description: z.ZodOptional<z.ZodString>;
9757
- order: z.ZodOptional<z.ZodNumber>;
9758
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9759
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9899
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9900
+ coordinates: z.ZodOptional<z.ZodObject<{
9901
+ x: z.ZodNumber;
9902
+ y: z.ZodNumber;
9903
+ }, "strip", z.ZodTypeAny, {
9904
+ x: number;
9905
+ y: number;
9906
+ }, {
9907
+ x: number;
9908
+ y: number;
9909
+ }>>;
9760
9910
  }, "strip", z.ZodTypeAny, {
9761
- type: FormFieldType;
9762
- readOnly: boolean;
9763
- required: boolean;
9764
- name: string;
9765
- id: string;
9766
- disabled: boolean;
9767
- label: string;
9768
- visible: boolean;
9769
- options?: {
9911
+ coordinates?: {
9912
+ x: number;
9913
+ y: number;
9914
+ } | undefined;
9915
+ next_node?: string[] | undefined;
9916
+ hidden_fields?: {
9770
9917
  value: string;
9771
- label: string;
9772
- checked?: boolean | undefined;
9773
- }[] | undefined;
9774
- description?: string | undefined;
9775
- placeholder?: string | undefined;
9776
- defaultValue?: string | number | boolean | undefined;
9777
- validations?: {
9778
- message: string;
9779
- type: ValidationErrorType;
9780
- format?: string | undefined;
9781
- pattern?: string | undefined;
9782
- min_length?: number | undefined;
9783
- max_length?: number | undefined;
9784
- min?: number | undefined;
9785
- max?: number | undefined;
9918
+ key: string;
9786
9919
  }[] | undefined;
9787
- order?: number | undefined;
9788
- customizations?: Record<string, any> | undefined;
9789
9920
  }, {
9790
- type: FormFieldType;
9791
- name: string;
9792
- id: string;
9793
- label: string;
9794
- options?: {
9921
+ coordinates?: {
9922
+ x: number;
9923
+ y: number;
9924
+ } | undefined;
9925
+ next_node?: string[] | undefined;
9926
+ hidden_fields?: {
9795
9927
  value: string;
9796
- label: string;
9797
- checked?: boolean | undefined;
9798
- }[] | undefined;
9799
- readOnly?: boolean | undefined;
9800
- description?: string | undefined;
9801
- required?: boolean | undefined;
9802
- disabled?: boolean | undefined;
9803
- placeholder?: string | undefined;
9804
- defaultValue?: string | number | boolean | undefined;
9805
- validations?: {
9806
- message: string;
9807
- type: ValidationErrorType;
9808
- format?: string | undefined;
9809
- pattern?: string | undefined;
9810
- min_length?: number | undefined;
9811
- max_length?: number | undefined;
9812
- min?: number | undefined;
9813
- max?: number | undefined;
9928
+ key: string;
9814
9929
  }[] | undefined;
9815
- order?: number | undefined;
9816
- visible?: boolean | undefined;
9817
- customizations?: Record<string, any> | undefined;
9818
- }>, "many">;
9819
- controls: z.ZodOptional<z.ZodArray<z.ZodObject<{
9820
- id: z.ZodString;
9821
- type: z.ZodLiteral<"submit">;
9822
- label: z.ZodString;
9823
- className: z.ZodOptional<z.ZodString>;
9824
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9825
- order: z.ZodOptional<z.ZodNumber>;
9826
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9827
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9828
- }, "strip", z.ZodTypeAny, {
9829
- type: "submit";
9830
- id: string;
9831
- disabled: boolean;
9832
- label: string;
9833
- visible: boolean;
9834
- order?: number | undefined;
9835
- customizations?: Record<string, any> | undefined;
9836
- className?: string | undefined;
9930
+ }>>;
9931
+ ending: z.ZodOptional<z.ZodObject<{
9932
+ redirection: z.ZodOptional<z.ZodObject<{
9933
+ delay: z.ZodOptional<z.ZodNumber>;
9934
+ target: z.ZodOptional<z.ZodString>;
9935
+ }, "strip", z.ZodTypeAny, {
9936
+ delay?: number | undefined;
9937
+ target?: string | undefined;
9938
+ }, {
9939
+ delay?: number | undefined;
9940
+ target?: string | undefined;
9941
+ }>>;
9942
+ after_submit: z.ZodOptional<z.ZodObject<{
9943
+ flow_id: z.ZodOptional<z.ZodString>;
9944
+ }, "strip", z.ZodTypeAny, {
9945
+ flow_id?: string | undefined;
9946
+ }, {
9947
+ flow_id?: string | undefined;
9948
+ }>>;
9949
+ coordinates: z.ZodOptional<z.ZodObject<{
9950
+ x: z.ZodNumber;
9951
+ y: z.ZodNumber;
9952
+ }, "strip", z.ZodTypeAny, {
9953
+ x: number;
9954
+ y: number;
9955
+ }, {
9956
+ x: number;
9957
+ y: number;
9958
+ }>>;
9959
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9960
+ }, "strip", z.ZodTypeAny, {
9961
+ coordinates?: {
9962
+ x: number;
9963
+ y: number;
9964
+ } | undefined;
9965
+ resume_flow?: boolean | undefined;
9966
+ redirection?: {
9967
+ delay?: number | undefined;
9968
+ target?: string | undefined;
9969
+ } | undefined;
9970
+ after_submit?: {
9971
+ flow_id?: string | undefined;
9972
+ } | undefined;
9837
9973
  }, {
9838
- type: "submit";
9839
- id: string;
9840
- label: string;
9841
- disabled?: boolean | undefined;
9842
- order?: number | undefined;
9843
- visible?: boolean | undefined;
9844
- customizations?: Record<string, any> | undefined;
9845
- className?: string | undefined;
9846
- }>, "many">>;
9847
- redirect_uri: z.ZodOptional<z.ZodString>;
9848
- post_submit_action: z.ZodOptional<z.ZodEnum<[
9849
- "redirect",
9850
- "message"
9851
- ]>>;
9852
- success_message: z.ZodOptional<z.ZodString>;
9853
- language: z.ZodOptional<z.ZodString>;
9854
- active: z.ZodDefault<z.ZodBoolean>;
9855
- layout: z.ZodOptional<z.ZodObject<{
9856
- columns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9857
- template: z.ZodOptional<z.ZodString>;
9974
+ coordinates?: {
9975
+ x: number;
9976
+ y: number;
9977
+ } | undefined;
9978
+ resume_flow?: boolean | undefined;
9979
+ redirection?: {
9980
+ delay?: number | undefined;
9981
+ target?: string | undefined;
9982
+ } | undefined;
9983
+ after_submit?: {
9984
+ flow_id?: string | undefined;
9985
+ } | undefined;
9986
+ }>>;
9987
+ style: z.ZodOptional<z.ZodObject<{
9988
+ css: z.ZodOptional<z.ZodString>;
9858
9989
  }, "strip", z.ZodTypeAny, {
9859
- columns: number;
9860
- template?: string | undefined;
9990
+ css?: string | undefined;
9861
9991
  }, {
9862
- columns?: number | undefined;
9863
- template?: string | undefined;
9992
+ css?: string | undefined;
9864
9993
  }>>;
9865
- css: z.ZodOptional<z.ZodString>;
9866
- javascript: z.ZodOptional<z.ZodString>;
9867
9994
  created_at: z.ZodString;
9868
9995
  updated_at: z.ZodString;
9869
9996
  }, "strip", z.ZodTypeAny, {
9870
- type: FormType;
9871
9997
  created_at: string;
9872
9998
  updated_at: string;
9873
9999
  name: string;
9874
10000
  id: string;
9875
- fields: {
9876
- type: FormFieldType;
9877
- readOnly: boolean;
9878
- required: boolean;
9879
- name: string;
9880
- id: string;
9881
- disabled: boolean;
9882
- label: string;
9883
- visible: boolean;
9884
- options?: {
10001
+ start?: {
10002
+ coordinates?: {
10003
+ x: number;
10004
+ y: number;
10005
+ } | undefined;
10006
+ next_node?: string[] | undefined;
10007
+ hidden_fields?: {
9885
10008
  value: string;
9886
- label: string;
9887
- checked?: boolean | undefined;
9888
- }[] | undefined;
9889
- description?: string | undefined;
9890
- placeholder?: string | undefined;
9891
- defaultValue?: string | number | boolean | undefined;
9892
- validations?: {
9893
- message: string;
9894
- type: ValidationErrorType;
9895
- format?: string | undefined;
9896
- pattern?: string | undefined;
9897
- min_length?: number | undefined;
9898
- max_length?: number | undefined;
9899
- min?: number | undefined;
9900
- max?: number | undefined;
10009
+ key: string;
9901
10010
  }[] | undefined;
9902
- order?: number | undefined;
9903
- customizations?: Record<string, any> | undefined;
9904
- }[];
9905
- active: boolean;
9906
- client_id?: string | undefined;
9907
- redirect_uri?: string | undefined;
9908
- language?: string | undefined;
9909
- controls?: {
9910
- type: "submit";
10011
+ } | undefined;
10012
+ style?: {
10013
+ css?: string | undefined;
10014
+ } | undefined;
10015
+ languages?: {
10016
+ default?: string | undefined;
10017
+ primary?: string | undefined;
10018
+ } | undefined;
10019
+ nodes?: ({
10020
+ type: "FLOW";
9911
10021
  id: string;
9912
- disabled: boolean;
9913
- label: string;
9914
- visible: boolean;
9915
- order?: number | undefined;
9916
- customizations?: Record<string, any> | undefined;
9917
- className?: string | undefined;
9918
- }[] | undefined;
9919
- post_submit_action?: "message" | "redirect" | undefined;
9920
- success_message?: string | undefined;
9921
- layout?: {
9922
- columns: number;
9923
- template?: string | undefined;
10022
+ config: {
10023
+ next_node: string[];
10024
+ flow_id: string;
10025
+ };
10026
+ coordinates: {
10027
+ x: number;
10028
+ y: number;
10029
+ };
10030
+ alias: string;
10031
+ } | {
10032
+ type: "ROUTER";
10033
+ id: string;
10034
+ config: {
10035
+ rules: {
10036
+ id: string;
10037
+ alias: string;
10038
+ next_node: string[];
10039
+ condition?: any;
10040
+ }[];
10041
+ fallback: string[];
10042
+ };
10043
+ coordinates: {
10044
+ x: number;
10045
+ y: number;
10046
+ };
10047
+ alias: string;
10048
+ } | {
10049
+ type: "STEP";
10050
+ id: string;
10051
+ config: {
10052
+ components: any[];
10053
+ next_node: string[];
10054
+ };
10055
+ coordinates: {
10056
+ x: number;
10057
+ y: number;
10058
+ };
10059
+ alias: string;
10060
+ })[] | undefined;
10061
+ ending?: {
10062
+ coordinates?: {
10063
+ x: number;
10064
+ y: number;
10065
+ } | undefined;
10066
+ resume_flow?: boolean | undefined;
10067
+ redirection?: {
10068
+ delay?: number | undefined;
10069
+ target?: string | undefined;
10070
+ } | undefined;
10071
+ after_submit?: {
10072
+ flow_id?: string | undefined;
10073
+ } | undefined;
10074
+ } | undefined;
10075
+ messages?: {
10076
+ custom?: Record<string, any> | undefined;
10077
+ errors?: Record<string, any> | undefined;
9924
10078
  } | undefined;
9925
- css?: string | undefined;
9926
- javascript?: string | undefined;
10079
+ translations?: Record<string, any> | undefined;
9927
10080
  }, {
9928
- type: FormType;
9929
10081
  created_at: string;
9930
10082
  updated_at: string;
9931
10083
  name: string;
9932
10084
  id: string;
9933
- fields: {
9934
- type: FormFieldType;
9935
- name: string;
9936
- id: string;
9937
- label: string;
9938
- options?: {
10085
+ start?: {
10086
+ coordinates?: {
10087
+ x: number;
10088
+ y: number;
10089
+ } | undefined;
10090
+ next_node?: string[] | undefined;
10091
+ hidden_fields?: {
9939
10092
  value: string;
9940
- label: string;
9941
- checked?: boolean | undefined;
9942
- }[] | undefined;
9943
- readOnly?: boolean | undefined;
9944
- description?: string | undefined;
9945
- required?: boolean | undefined;
9946
- disabled?: boolean | undefined;
9947
- placeholder?: string | undefined;
9948
- defaultValue?: string | number | boolean | undefined;
9949
- validations?: {
9950
- message: string;
9951
- type: ValidationErrorType;
9952
- format?: string | undefined;
9953
- pattern?: string | undefined;
9954
- min_length?: number | undefined;
9955
- max_length?: number | undefined;
9956
- min?: number | undefined;
9957
- max?: number | undefined;
10093
+ key: string;
9958
10094
  }[] | undefined;
9959
- order?: number | undefined;
9960
- visible?: boolean | undefined;
9961
- customizations?: Record<string, any> | undefined;
9962
- }[];
9963
- client_id?: string | undefined;
9964
- redirect_uri?: string | undefined;
9965
- language?: string | undefined;
9966
- controls?: {
9967
- type: "submit";
10095
+ } | undefined;
10096
+ style?: {
10097
+ css?: string | undefined;
10098
+ } | undefined;
10099
+ languages?: {
10100
+ default?: string | undefined;
10101
+ primary?: string | undefined;
10102
+ } | undefined;
10103
+ nodes?: ({
10104
+ type: "FLOW";
9968
10105
  id: string;
9969
- label: string;
9970
- disabled?: boolean | undefined;
9971
- order?: number | undefined;
9972
- visible?: boolean | undefined;
9973
- customizations?: Record<string, any> | undefined;
9974
- className?: string | undefined;
9975
- }[] | undefined;
9976
- post_submit_action?: "message" | "redirect" | undefined;
9977
- success_message?: string | undefined;
9978
- active?: boolean | undefined;
9979
- layout?: {
9980
- columns?: number | undefined;
9981
- template?: string | undefined;
10106
+ config: {
10107
+ next_node: string[];
10108
+ flow_id: string;
10109
+ };
10110
+ coordinates: {
10111
+ x: number;
10112
+ y: number;
10113
+ };
10114
+ alias: string;
10115
+ } | {
10116
+ type: "ROUTER";
10117
+ id: string;
10118
+ config: {
10119
+ rules: {
10120
+ id: string;
10121
+ alias: string;
10122
+ next_node: string[];
10123
+ condition?: any;
10124
+ }[];
10125
+ fallback: string[];
10126
+ };
10127
+ coordinates: {
10128
+ x: number;
10129
+ y: number;
10130
+ };
10131
+ alias: string;
10132
+ } | {
10133
+ type: "STEP";
10134
+ id: string;
10135
+ config: {
10136
+ components: any[];
10137
+ next_node: string[];
10138
+ };
10139
+ coordinates: {
10140
+ x: number;
10141
+ y: number;
10142
+ };
10143
+ alias: string;
10144
+ })[] | undefined;
10145
+ ending?: {
10146
+ coordinates?: {
10147
+ x: number;
10148
+ y: number;
10149
+ } | undefined;
10150
+ resume_flow?: boolean | undefined;
10151
+ redirection?: {
10152
+ delay?: number | undefined;
10153
+ target?: string | undefined;
10154
+ } | undefined;
10155
+ after_submit?: {
10156
+ flow_id?: string | undefined;
10157
+ } | undefined;
10158
+ } | undefined;
10159
+ messages?: {
10160
+ custom?: Record<string, any> | undefined;
10161
+ errors?: Record<string, any> | undefined;
9982
10162
  } | undefined;
9983
- css?: string | undefined;
9984
- javascript?: string | undefined;
10163
+ translations?: Record<string, any> | undefined;
9985
10164
  }>;
9986
10165
  export type Form = z.infer<typeof formSchema>;
9987
10166
  export declare const hookInsertSchema: z.ZodObject<{
@@ -13141,6 +13320,712 @@ export declare function init(config: AuthHeroConfig): {
13141
13320
  Bindings: Bindings;
13142
13321
  Variables: Variables;
13143
13322
  }, import("hono/types").MergeSchemaPath<{
13323
+ "/": {
13324
+ $get: {
13325
+ input: {
13326
+ query: {
13327
+ sort?: string | undefined;
13328
+ page?: string | undefined;
13329
+ per_page?: string | undefined;
13330
+ include_totals?: string | undefined;
13331
+ q?: string | undefined;
13332
+ };
13333
+ } & {
13334
+ header: {
13335
+ "tenant-id": string;
13336
+ };
13337
+ };
13338
+ output: {
13339
+ created_at: string;
13340
+ updated_at: string;
13341
+ name: string;
13342
+ id: string;
13343
+ start?: {
13344
+ coordinates?: {
13345
+ x: number;
13346
+ y: number;
13347
+ } | undefined;
13348
+ next_node?: string[] | undefined | undefined;
13349
+ hidden_fields?: {
13350
+ value: string;
13351
+ key: string;
13352
+ }[] | undefined;
13353
+ } | undefined;
13354
+ style?: {
13355
+ css?: string | undefined | undefined;
13356
+ } | undefined;
13357
+ languages?: {
13358
+ default?: string | undefined | undefined;
13359
+ primary?: string | undefined | undefined;
13360
+ } | undefined;
13361
+ nodes?: ({
13362
+ type: "FLOW";
13363
+ id: string;
13364
+ config: {
13365
+ next_node: string[];
13366
+ flow_id: string;
13367
+ };
13368
+ coordinates: {
13369
+ x: number;
13370
+ y: number;
13371
+ };
13372
+ alias: string;
13373
+ } | {
13374
+ type: "ROUTER";
13375
+ id: string;
13376
+ config: {
13377
+ rules: {
13378
+ id: string;
13379
+ alias: string;
13380
+ next_node: string[];
13381
+ condition?: any;
13382
+ }[];
13383
+ fallback: string[];
13384
+ };
13385
+ coordinates: {
13386
+ x: number;
13387
+ y: number;
13388
+ };
13389
+ alias: string;
13390
+ } | {
13391
+ type: "STEP";
13392
+ id: string;
13393
+ config: {
13394
+ components: any[];
13395
+ next_node: string[];
13396
+ };
13397
+ coordinates: {
13398
+ x: number;
13399
+ y: number;
13400
+ };
13401
+ alias: string;
13402
+ })[] | undefined;
13403
+ ending?: {
13404
+ coordinates?: {
13405
+ x: number;
13406
+ y: number;
13407
+ } | undefined;
13408
+ resume_flow?: boolean | undefined | undefined;
13409
+ redirection?: {
13410
+ delay?: number | undefined | undefined;
13411
+ target?: string | undefined | undefined;
13412
+ } | undefined;
13413
+ after_submit?: {
13414
+ flow_id?: string | undefined | undefined;
13415
+ } | undefined;
13416
+ } | undefined;
13417
+ messages?: {
13418
+ custom?: {
13419
+ [x: string]: any;
13420
+ } | undefined;
13421
+ errors?: {
13422
+ [x: string]: any;
13423
+ } | undefined;
13424
+ } | undefined;
13425
+ translations?: {
13426
+ [x: string]: any;
13427
+ } | undefined;
13428
+ }[] | {
13429
+ length: number;
13430
+ start: number;
13431
+ limit: number;
13432
+ forms: {
13433
+ created_at: string;
13434
+ updated_at: string;
13435
+ name: string;
13436
+ id: string;
13437
+ start?: {
13438
+ coordinates?: {
13439
+ x: number;
13440
+ y: number;
13441
+ } | undefined;
13442
+ next_node?: string[] | undefined | undefined;
13443
+ hidden_fields?: {
13444
+ value: string;
13445
+ key: string;
13446
+ }[] | undefined;
13447
+ } | undefined;
13448
+ style?: {
13449
+ css?: string | undefined | undefined;
13450
+ } | undefined;
13451
+ languages?: {
13452
+ default?: string | undefined | undefined;
13453
+ primary?: string | undefined | undefined;
13454
+ } | undefined;
13455
+ nodes?: ({
13456
+ type: "FLOW";
13457
+ id: string;
13458
+ config: {
13459
+ next_node: string[];
13460
+ flow_id: string;
13461
+ };
13462
+ coordinates: {
13463
+ x: number;
13464
+ y: number;
13465
+ };
13466
+ alias: string;
13467
+ } | {
13468
+ type: "ROUTER";
13469
+ id: string;
13470
+ config: {
13471
+ rules: {
13472
+ id: string;
13473
+ alias: string;
13474
+ next_node: string[];
13475
+ condition?: any;
13476
+ }[];
13477
+ fallback: string[];
13478
+ };
13479
+ coordinates: {
13480
+ x: number;
13481
+ y: number;
13482
+ };
13483
+ alias: string;
13484
+ } | {
13485
+ type: "STEP";
13486
+ id: string;
13487
+ config: {
13488
+ components: any[];
13489
+ next_node: string[];
13490
+ };
13491
+ coordinates: {
13492
+ x: number;
13493
+ y: number;
13494
+ };
13495
+ alias: string;
13496
+ })[] | undefined;
13497
+ ending?: {
13498
+ coordinates?: {
13499
+ x: number;
13500
+ y: number;
13501
+ } | undefined;
13502
+ resume_flow?: boolean | undefined | undefined;
13503
+ redirection?: {
13504
+ delay?: number | undefined | undefined;
13505
+ target?: string | undefined | undefined;
13506
+ } | undefined;
13507
+ after_submit?: {
13508
+ flow_id?: string | undefined | undefined;
13509
+ } | undefined;
13510
+ } | undefined;
13511
+ messages?: {
13512
+ custom?: {
13513
+ [x: string]: any;
13514
+ } | undefined;
13515
+ errors?: {
13516
+ [x: string]: any;
13517
+ } | undefined;
13518
+ } | undefined;
13519
+ translations?: {
13520
+ [x: string]: any;
13521
+ } | undefined;
13522
+ }[];
13523
+ };
13524
+ outputFormat: "json";
13525
+ status: 200;
13526
+ };
13527
+ };
13528
+ } & {
13529
+ "/:id": {
13530
+ $get: {
13531
+ input: {
13532
+ param: {
13533
+ id: string;
13534
+ };
13535
+ } & {
13536
+ header: {
13537
+ "tenant-id": string;
13538
+ };
13539
+ };
13540
+ output: {
13541
+ created_at: string;
13542
+ updated_at: string;
13543
+ name: string;
13544
+ id: string;
13545
+ start?: {
13546
+ coordinates?: {
13547
+ x: number;
13548
+ y: number;
13549
+ } | undefined;
13550
+ next_node?: string[] | undefined | undefined;
13551
+ hidden_fields?: {
13552
+ value: string;
13553
+ key: string;
13554
+ }[] | undefined;
13555
+ } | undefined;
13556
+ style?: {
13557
+ css?: string | undefined | undefined;
13558
+ } | undefined;
13559
+ languages?: {
13560
+ default?: string | undefined | undefined;
13561
+ primary?: string | undefined | undefined;
13562
+ } | undefined;
13563
+ nodes?: ({
13564
+ type: "FLOW";
13565
+ id: string;
13566
+ config: {
13567
+ next_node: string[];
13568
+ flow_id: string;
13569
+ };
13570
+ coordinates: {
13571
+ x: number;
13572
+ y: number;
13573
+ };
13574
+ alias: string;
13575
+ } | {
13576
+ type: "ROUTER";
13577
+ id: string;
13578
+ config: {
13579
+ rules: {
13580
+ id: string;
13581
+ alias: string;
13582
+ next_node: string[];
13583
+ condition?: any;
13584
+ }[];
13585
+ fallback: string[];
13586
+ };
13587
+ coordinates: {
13588
+ x: number;
13589
+ y: number;
13590
+ };
13591
+ alias: string;
13592
+ } | {
13593
+ type: "STEP";
13594
+ id: string;
13595
+ config: {
13596
+ components: any[];
13597
+ next_node: string[];
13598
+ };
13599
+ coordinates: {
13600
+ x: number;
13601
+ y: number;
13602
+ };
13603
+ alias: string;
13604
+ })[] | undefined;
13605
+ ending?: {
13606
+ coordinates?: {
13607
+ x: number;
13608
+ y: number;
13609
+ } | undefined;
13610
+ resume_flow?: boolean | undefined | undefined;
13611
+ redirection?: {
13612
+ delay?: number | undefined | undefined;
13613
+ target?: string | undefined | undefined;
13614
+ } | undefined;
13615
+ after_submit?: {
13616
+ flow_id?: string | undefined | undefined;
13617
+ } | undefined;
13618
+ } | undefined;
13619
+ messages?: {
13620
+ custom?: {
13621
+ [x: string]: any;
13622
+ } | undefined;
13623
+ errors?: {
13624
+ [x: string]: any;
13625
+ } | undefined;
13626
+ } | undefined;
13627
+ translations?: {
13628
+ [x: string]: any;
13629
+ } | undefined;
13630
+ };
13631
+ outputFormat: "json";
13632
+ status: 200;
13633
+ };
13634
+ };
13635
+ } & {
13636
+ "/:id": {
13637
+ $delete: {
13638
+ input: {
13639
+ param: {
13640
+ id: string;
13641
+ };
13642
+ } & {
13643
+ header: {
13644
+ "tenant-id": string;
13645
+ };
13646
+ };
13647
+ output: {};
13648
+ outputFormat: string;
13649
+ status: 200;
13650
+ };
13651
+ };
13652
+ } & {
13653
+ "/:id": {
13654
+ $patch: {
13655
+ input: {
13656
+ param: {
13657
+ id: string;
13658
+ };
13659
+ } & {
13660
+ header: {
13661
+ "tenant-id": string;
13662
+ };
13663
+ } & {
13664
+ json: {
13665
+ name?: string | undefined;
13666
+ start?: {
13667
+ coordinates?: {
13668
+ x: number;
13669
+ y: number;
13670
+ } | undefined;
13671
+ next_node?: string[] | undefined;
13672
+ hidden_fields?: {
13673
+ value: string;
13674
+ key: string;
13675
+ }[] | undefined;
13676
+ } | undefined;
13677
+ style?: {
13678
+ css?: string | undefined;
13679
+ } | undefined;
13680
+ languages?: {
13681
+ default?: string | undefined;
13682
+ primary?: string | undefined;
13683
+ } | undefined;
13684
+ nodes?: ({
13685
+ type: "FLOW";
13686
+ id: string;
13687
+ config: {
13688
+ next_node: string[];
13689
+ flow_id: string;
13690
+ };
13691
+ coordinates: {
13692
+ x: number;
13693
+ y: number;
13694
+ };
13695
+ alias: string;
13696
+ } | {
13697
+ type: "ROUTER";
13698
+ id: string;
13699
+ config: {
13700
+ rules: {
13701
+ id: string;
13702
+ alias: string;
13703
+ next_node: string[];
13704
+ condition?: any;
13705
+ }[];
13706
+ fallback: string[];
13707
+ };
13708
+ coordinates: {
13709
+ x: number;
13710
+ y: number;
13711
+ };
13712
+ alias: string;
13713
+ } | {
13714
+ type: "STEP";
13715
+ id: string;
13716
+ config: {
13717
+ components: any[];
13718
+ next_node: string[];
13719
+ };
13720
+ coordinates: {
13721
+ x: number;
13722
+ y: number;
13723
+ };
13724
+ alias: string;
13725
+ })[] | undefined;
13726
+ ending?: {
13727
+ coordinates?: {
13728
+ x: number;
13729
+ y: number;
13730
+ } | undefined;
13731
+ resume_flow?: boolean | undefined;
13732
+ redirection?: {
13733
+ delay?: number | undefined;
13734
+ target?: string | undefined;
13735
+ } | undefined;
13736
+ after_submit?: {
13737
+ flow_id?: string | undefined;
13738
+ } | undefined;
13739
+ } | undefined;
13740
+ messages?: {
13741
+ custom?: Record<string, any> | undefined;
13742
+ errors?: Record<string, any> | undefined;
13743
+ } | undefined;
13744
+ translations?: Record<string, any> | undefined;
13745
+ };
13746
+ };
13747
+ output: {
13748
+ created_at: string;
13749
+ updated_at: string;
13750
+ name: string;
13751
+ id: string;
13752
+ start?: {
13753
+ coordinates?: {
13754
+ x: number;
13755
+ y: number;
13756
+ } | undefined;
13757
+ next_node?: string[] | undefined | undefined;
13758
+ hidden_fields?: {
13759
+ value: string;
13760
+ key: string;
13761
+ }[] | undefined;
13762
+ } | undefined;
13763
+ style?: {
13764
+ css?: string | undefined | undefined;
13765
+ } | undefined;
13766
+ languages?: {
13767
+ default?: string | undefined | undefined;
13768
+ primary?: string | undefined | undefined;
13769
+ } | undefined;
13770
+ nodes?: ({
13771
+ type: "FLOW";
13772
+ id: string;
13773
+ config: {
13774
+ next_node: string[];
13775
+ flow_id: string;
13776
+ };
13777
+ coordinates: {
13778
+ x: number;
13779
+ y: number;
13780
+ };
13781
+ alias: string;
13782
+ } | {
13783
+ type: "ROUTER";
13784
+ id: string;
13785
+ config: {
13786
+ rules: {
13787
+ id: string;
13788
+ alias: string;
13789
+ next_node: string[];
13790
+ condition?: any;
13791
+ }[];
13792
+ fallback: string[];
13793
+ };
13794
+ coordinates: {
13795
+ x: number;
13796
+ y: number;
13797
+ };
13798
+ alias: string;
13799
+ } | {
13800
+ type: "STEP";
13801
+ id: string;
13802
+ config: {
13803
+ components: any[];
13804
+ next_node: string[];
13805
+ };
13806
+ coordinates: {
13807
+ x: number;
13808
+ y: number;
13809
+ };
13810
+ alias: string;
13811
+ })[] | undefined;
13812
+ ending?: {
13813
+ coordinates?: {
13814
+ x: number;
13815
+ y: number;
13816
+ } | undefined;
13817
+ resume_flow?: boolean | undefined | undefined;
13818
+ redirection?: {
13819
+ delay?: number | undefined | undefined;
13820
+ target?: string | undefined | undefined;
13821
+ } | undefined;
13822
+ after_submit?: {
13823
+ flow_id?: string | undefined | undefined;
13824
+ } | undefined;
13825
+ } | undefined;
13826
+ messages?: {
13827
+ custom?: {
13828
+ [x: string]: any;
13829
+ } | undefined;
13830
+ errors?: {
13831
+ [x: string]: any;
13832
+ } | undefined;
13833
+ } | undefined;
13834
+ translations?: {
13835
+ [x: string]: any;
13836
+ } | undefined;
13837
+ };
13838
+ outputFormat: "json";
13839
+ status: 200;
13840
+ };
13841
+ };
13842
+ } & {
13843
+ "/": {
13844
+ $post: {
13845
+ input: {
13846
+ header: {
13847
+ "tenant-id": string;
13848
+ };
13849
+ } & {
13850
+ json: {
13851
+ name: string;
13852
+ start?: {
13853
+ coordinates?: {
13854
+ x: number;
13855
+ y: number;
13856
+ } | undefined;
13857
+ next_node?: string[] | undefined;
13858
+ hidden_fields?: {
13859
+ value: string;
13860
+ key: string;
13861
+ }[] | undefined;
13862
+ } | undefined;
13863
+ style?: {
13864
+ css?: string | undefined;
13865
+ } | undefined;
13866
+ languages?: {
13867
+ default?: string | undefined;
13868
+ primary?: string | undefined;
13869
+ } | undefined;
13870
+ nodes?: ({
13871
+ type: "FLOW";
13872
+ id: string;
13873
+ config: {
13874
+ next_node: string[];
13875
+ flow_id: string;
13876
+ };
13877
+ coordinates: {
13878
+ x: number;
13879
+ y: number;
13880
+ };
13881
+ alias: string;
13882
+ } | {
13883
+ type: "ROUTER";
13884
+ id: string;
13885
+ config: {
13886
+ rules: {
13887
+ id: string;
13888
+ alias: string;
13889
+ next_node: string[];
13890
+ condition?: any;
13891
+ }[];
13892
+ fallback: string[];
13893
+ };
13894
+ coordinates: {
13895
+ x: number;
13896
+ y: number;
13897
+ };
13898
+ alias: string;
13899
+ } | {
13900
+ type: "STEP";
13901
+ id: string;
13902
+ config: {
13903
+ components: any[];
13904
+ next_node: string[];
13905
+ };
13906
+ coordinates: {
13907
+ x: number;
13908
+ y: number;
13909
+ };
13910
+ alias: string;
13911
+ })[] | undefined;
13912
+ ending?: {
13913
+ coordinates?: {
13914
+ x: number;
13915
+ y: number;
13916
+ } | undefined;
13917
+ resume_flow?: boolean | undefined;
13918
+ redirection?: {
13919
+ delay?: number | undefined;
13920
+ target?: string | undefined;
13921
+ } | undefined;
13922
+ after_submit?: {
13923
+ flow_id?: string | undefined;
13924
+ } | undefined;
13925
+ } | undefined;
13926
+ messages?: {
13927
+ custom?: Record<string, any> | undefined;
13928
+ errors?: Record<string, any> | undefined;
13929
+ } | undefined;
13930
+ translations?: Record<string, any> | undefined;
13931
+ };
13932
+ };
13933
+ output: {
13934
+ created_at: string;
13935
+ updated_at: string;
13936
+ name: string;
13937
+ id: string;
13938
+ start?: {
13939
+ coordinates?: {
13940
+ x: number;
13941
+ y: number;
13942
+ } | undefined;
13943
+ next_node?: string[] | undefined | undefined;
13944
+ hidden_fields?: {
13945
+ value: string;
13946
+ key: string;
13947
+ }[] | undefined;
13948
+ } | undefined;
13949
+ style?: {
13950
+ css?: string | undefined | undefined;
13951
+ } | undefined;
13952
+ languages?: {
13953
+ default?: string | undefined | undefined;
13954
+ primary?: string | undefined | undefined;
13955
+ } | undefined;
13956
+ nodes?: ({
13957
+ type: "FLOW";
13958
+ id: string;
13959
+ config: {
13960
+ next_node: string[];
13961
+ flow_id: string;
13962
+ };
13963
+ coordinates: {
13964
+ x: number;
13965
+ y: number;
13966
+ };
13967
+ alias: string;
13968
+ } | {
13969
+ type: "ROUTER";
13970
+ id: string;
13971
+ config: {
13972
+ rules: {
13973
+ id: string;
13974
+ alias: string;
13975
+ next_node: string[];
13976
+ condition?: any;
13977
+ }[];
13978
+ fallback: string[];
13979
+ };
13980
+ coordinates: {
13981
+ x: number;
13982
+ y: number;
13983
+ };
13984
+ alias: string;
13985
+ } | {
13986
+ type: "STEP";
13987
+ id: string;
13988
+ config: {
13989
+ components: any[];
13990
+ next_node: string[];
13991
+ };
13992
+ coordinates: {
13993
+ x: number;
13994
+ y: number;
13995
+ };
13996
+ alias: string;
13997
+ })[] | undefined;
13998
+ ending?: {
13999
+ coordinates?: {
14000
+ x: number;
14001
+ y: number;
14002
+ } | undefined;
14003
+ resume_flow?: boolean | undefined | undefined;
14004
+ redirection?: {
14005
+ delay?: number | undefined | undefined;
14006
+ target?: string | undefined | undefined;
14007
+ } | undefined;
14008
+ after_submit?: {
14009
+ flow_id?: string | undefined | undefined;
14010
+ } | undefined;
14011
+ } | undefined;
14012
+ messages?: {
14013
+ custom?: {
14014
+ [x: string]: any;
14015
+ } | undefined;
14016
+ errors?: {
14017
+ [x: string]: any;
14018
+ } | undefined;
14019
+ } | undefined;
14020
+ translations?: {
14021
+ [x: string]: any;
14022
+ } | undefined;
14023
+ };
14024
+ outputFormat: "json";
14025
+ status: 201;
14026
+ };
14027
+ };
14028
+ }, "/forms"> & import("hono/types").MergeSchemaPath<{
13144
14029
  "/:id": {
13145
14030
  $get: {
13146
14031
  input: {