@n8n/api-types 1.19.1 → 1.21.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.
Files changed (96) hide show
  1. package/dist/agent-builder-interactive.d.ts +159 -0
  2. package/dist/agent-builder-interactive.js +67 -0
  3. package/dist/agent-builder-interactive.js.map +1 -0
  4. package/dist/agent-sse.d.ts +83 -0
  5. package/dist/agent-sse.js +3 -0
  6. package/dist/agent-sse.js.map +1 -0
  7. package/dist/agents.d.ts +258 -0
  8. package/dist/agents.js +52 -0
  9. package/dist/agents.js.map +1 -0
  10. package/dist/build.tsbuildinfo +1 -1
  11. package/dist/chat-hub.d.ts +18 -18
  12. package/dist/dto/agents/agent-build-resume.dto.d.ts +61 -0
  13. package/dist/dto/agents/agent-build-resume.dto.js +14 -0
  14. package/dist/dto/agents/agent-build-resume.dto.js.map +1 -0
  15. package/dist/dto/agents/agent-chat-message.dto.d.ts +11 -0
  16. package/dist/dto/agents/agent-chat-message.dto.js +12 -0
  17. package/dist/dto/agents/agent-chat-message.dto.js.map +1 -0
  18. package/dist/dto/agents/agent-integration.dto.d.ts +11 -0
  19. package/dist/dto/agents/agent-integration.dto.js +12 -0
  20. package/dist/dto/agents/agent-integration.dto.js.map +1 -0
  21. package/dist/dto/agents/create-agent-skill.dto.d.ts +27 -0
  22. package/dist/dto/agents/create-agent-skill.dto.js +17 -0
  23. package/dist/dto/agents/create-agent-skill.dto.js.map +1 -0
  24. package/dist/dto/agents/create-agent.dto.d.ts +9 -0
  25. package/dist/dto/agents/create-agent.dto.js +11 -0
  26. package/dist/dto/agents/create-agent.dto.js.map +1 -0
  27. package/dist/dto/agents/update-agent-config.dto.d.ts +9 -0
  28. package/dist/dto/agents/update-agent-config.dto.js +11 -0
  29. package/dist/dto/agents/update-agent-config.dto.js.map +1 -0
  30. package/dist/dto/agents/update-agent-schedule.dto.d.ts +11 -0
  31. package/dist/dto/agents/update-agent-schedule.dto.js +12 -0
  32. package/dist/dto/agents/update-agent-schedule.dto.js.map +1 -0
  33. package/dist/dto/agents/update-agent-skill.dto.d.ts +12 -0
  34. package/dist/dto/agents/update-agent-skill.dto.js +13 -0
  35. package/dist/dto/agents/update-agent-skill.dto.js.map +1 -0
  36. package/dist/dto/agents/update-agent.dto.d.ts +13 -0
  37. package/dist/dto/agents/update-agent.dto.js +13 -0
  38. package/dist/dto/agents/update-agent.dto.js.map +1 -0
  39. package/dist/dto/ai/ai-build-request.dto.d.ts +6 -6
  40. package/dist/dto/ai/ai-gateway-config-response.dto.d.ts +2 -0
  41. package/dist/dto/ai/ai-gateway-config-response.dto.js +1 -0
  42. package/dist/dto/ai/ai-gateway-config-response.dto.js.map +1 -1
  43. package/dist/dto/encryption/encryption-key-response.dto.d.ts +2 -7
  44. package/dist/dto/encryption/list-encryption-keys-query.dto.d.ts +14 -2
  45. package/dist/dto/encryption/list-encryption-keys-query.dto.js +19 -2
  46. package/dist/dto/encryption/list-encryption-keys-query.dto.js.map +1 -1
  47. package/dist/dto/evaluations/evaluation-config.dto.d.ts +845 -0
  48. package/dist/dto/evaluations/evaluation-config.dto.js +96 -0
  49. package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -0
  50. package/dist/dto/evaluations/evaluation-error-code.d.ts +38 -0
  51. package/dist/dto/evaluations/evaluation-error-code.js +29 -0
  52. package/dist/dto/evaluations/evaluation-error-code.js.map +1 -0
  53. package/dist/dto/evaluations/index.d.ts +2 -0
  54. package/dist/dto/evaluations/index.js +19 -0
  55. package/dist/dto/evaluations/index.js.map +1 -0
  56. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  57. package/dist/dto/index.d.ts +14 -4
  58. package/dist/dto/index.js +39 -1
  59. package/dist/dto/index.js.map +1 -1
  60. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +95 -42
  61. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +47 -18
  62. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
  63. package/dist/dto/oauth/oauth-client.dto.d.ts +11 -0
  64. package/dist/dto/oauth/oauth-client.dto.js +8 -1
  65. package/dist/dto/oauth/oauth-client.dto.js.map +1 -1
  66. package/dist/dto/project/update-project.dto.d.ts +2 -2
  67. package/dist/dto/provisioning/config.dto.d.ts +2 -0
  68. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
  69. package/dist/dto/workflow-history/update-workflow-history-version.dto.d.ts +1 -1
  70. package/dist/dto/workflows/activate-workflow.dto.d.ts +1 -1
  71. package/dist/dto/workflows/create-workflow.dto.d.ts +2 -2
  72. package/dist/dto/workflows/update-workflow.dto.d.ts +2 -2
  73. package/dist/frontend-settings.d.ts +8 -1
  74. package/dist/index.d.ts +7 -2
  75. package/dist/index.js +29 -3
  76. package/dist/index.js.map +1 -1
  77. package/dist/instance-registry-types.d.ts +174 -69
  78. package/dist/instance-registry-types.js +15 -1
  79. package/dist/instance-registry-types.js.map +1 -1
  80. package/dist/schemas/agent-run-reducer.js +1 -0
  81. package/dist/schemas/agent-run-reducer.js.map +1 -1
  82. package/dist/schemas/breaking-changes.schema.d.ts +48 -48
  83. package/dist/schemas/encryption-key.schema.d.ts +70 -0
  84. package/dist/schemas/encryption-key.schema.js +17 -0
  85. package/dist/schemas/encryption-key.schema.js.map +1 -0
  86. package/dist/schemas/evaluations.schema.d.ts +18 -0
  87. package/dist/schemas/evaluations.schema.js +14 -0
  88. package/dist/schemas/evaluations.schema.js.map +1 -0
  89. package/dist/schemas/instance-ai.schema.d.ts +337 -166
  90. package/dist/schemas/instance-ai.schema.js +80 -8
  91. package/dist/schemas/instance-ai.schema.js.map +1 -1
  92. package/dist/schemas/secrets-provider.schema.d.ts +10 -10
  93. package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
  94. package/dist/schemas/user.schema.d.ts +12 -12
  95. package/dist/schemas/workflow-execution-status.schema.d.ts +4 -4
  96. package/package.json +5 -5
@@ -35,6 +35,14 @@ export declare const domainAccessMetaSchema: z.ZodObject<{
35
35
  host: string;
36
36
  }>;
37
37
  export type DomainAccessMeta = z.infer<typeof domainAccessMetaSchema>;
38
+ export declare const webSearchMetaSchema: z.ZodObject<{
39
+ query: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ query: string;
42
+ }, {
43
+ query: string;
44
+ }>;
45
+ export type WebSearchMeta = z.infer<typeof webSearchMetaSchema>;
38
46
  export declare const UNSAFE_OBJECT_KEYS: Set<string>;
39
47
  export declare function isSafeObjectKey(key: string): boolean;
40
48
  export declare const runStartPayloadSchema: z.ZodObject<{
@@ -340,6 +348,22 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
340
348
  required?: boolean | undefined;
341
349
  }>, "many">>;
342
350
  needsAction: z.ZodOptional<z.ZodBoolean>;
351
+ subnodeRootNode: z.ZodOptional<z.ZodObject<{
352
+ name: z.ZodString;
353
+ type: z.ZodString;
354
+ typeVersion: z.ZodNumber;
355
+ id: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: string;
358
+ id: string;
359
+ name: string;
360
+ typeVersion: number;
361
+ }, {
362
+ type: string;
363
+ id: string;
364
+ name: string;
365
+ typeVersion: number;
366
+ }>>;
343
367
  }, "strip", z.ZodTypeAny, {
344
368
  node: {
345
369
  type: string;
@@ -383,6 +407,12 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
383
407
  required?: boolean | undefined;
384
408
  }[] | undefined;
385
409
  needsAction?: boolean | undefined;
410
+ subnodeRootNode?: {
411
+ type: string;
412
+ id: string;
413
+ name: string;
414
+ typeVersion: number;
415
+ } | undefined;
386
416
  }, {
387
417
  node: {
388
418
  type: string;
@@ -426,6 +456,12 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
426
456
  required?: boolean | undefined;
427
457
  }[] | undefined;
428
458
  needsAction?: boolean | undefined;
459
+ subnodeRootNode?: {
460
+ type: string;
461
+ id: string;
462
+ name: string;
463
+ typeVersion: number;
464
+ } | undefined;
429
465
  }>;
430
466
  export type InstanceAiWorkflowSetupNode = z.infer<typeof workflowSetupNodeSchema>;
431
467
  export declare const taskItemSchema: z.ZodObject<{
@@ -433,13 +469,13 @@ export declare const taskItemSchema: z.ZodObject<{
433
469
  description: z.ZodString;
434
470
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
435
471
  }, "strip", z.ZodTypeAny, {
436
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
437
- id: string;
472
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
438
473
  description: string;
439
- }, {
440
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
441
474
  id: string;
475
+ }, {
476
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
442
477
  description: string;
478
+ id: string;
443
479
  }>;
444
480
  export type TaskItem = z.infer<typeof taskItemSchema>;
445
481
  export declare const taskListSchema: z.ZodObject<{
@@ -448,25 +484,25 @@ export declare const taskListSchema: z.ZodObject<{
448
484
  description: z.ZodString;
449
485
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
450
486
  }, "strip", z.ZodTypeAny, {
451
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
452
- id: string;
487
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
453
488
  description: string;
454
- }, {
455
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
456
489
  id: string;
490
+ }, {
491
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
457
492
  description: string;
493
+ id: string;
458
494
  }>, "many">;
459
495
  }, "strip", z.ZodTypeAny, {
460
496
  tasks: {
461
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
462
- id: string;
497
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
463
498
  description: string;
499
+ id: string;
464
500
  }[];
465
501
  }, {
466
502
  tasks: {
467
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
468
- id: string;
503
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
469
504
  description: string;
505
+ id: string;
470
506
  }[];
471
507
  }>;
472
508
  export type TaskList = z.infer<typeof taskListSchema>;
@@ -497,7 +533,9 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
497
533
  }>;
498
534
  export type PlannedTaskArg = z.infer<typeof plannedTaskArgSchema>;
499
535
  export declare const GATEWAY_CONFIRMATION_REQUIRED_PREFIX = "GATEWAY_CONFIRMATION_REQUIRED::";
500
- export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
536
+ export declare const instanceGatewayResourceDecisionSchema: z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>;
537
+ export type InstanceGatewayResourceDecision = z.infer<typeof instanceGatewayResourceDecisionSchema>;
538
+ export declare const gatewayConfirmationRequiredWirePayloadSchema: z.ZodObject<{
501
539
  toolGroup: z.ZodString;
502
540
  resource: z.ZodString;
503
541
  description: z.ZodString;
@@ -505,15 +543,35 @@ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
505
543
  }, "strip", z.ZodTypeAny, {
506
544
  options: string[];
507
545
  description: string;
508
- toolGroup: string;
509
546
  resource: string;
547
+ toolGroup: string;
510
548
  }, {
511
549
  options: string[];
512
550
  description: string;
551
+ resource: string;
552
+ toolGroup: string;
553
+ }>;
554
+ export type GatewayConfirmationRequiredWirePayload = z.infer<typeof gatewayConfirmationRequiredWirePayloadSchema>;
555
+ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
556
+ toolGroup: z.ZodString;
557
+ resource: z.ZodString;
558
+ description: z.ZodString;
559
+ } & {
560
+ options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
561
+ }, "strip", z.ZodTypeAny, {
562
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
563
+ description: string;
564
+ resource: string;
513
565
  toolGroup: string;
566
+ }, {
567
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
568
+ description: string;
514
569
  resource: string;
570
+ toolGroup: string;
515
571
  }>;
516
572
  export type GatewayConfirmationRequiredPayload = z.infer<typeof gatewayConfirmationRequiredPayloadSchema>;
573
+ export declare const confirmationInputTypeSchema: z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>;
574
+ export type InstanceAiConfirmationInputType = z.infer<typeof confirmationInputTypeSchema>;
517
575
  export declare const confirmationRequestPayloadSchema: z.ZodObject<{
518
576
  requestId: z.ZodString;
519
577
  inputThreadId: z.ZodOptional<z.ZodString>;
@@ -554,7 +612,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
554
612
  suggestedName?: string | undefined;
555
613
  }>, "many">>;
556
614
  projectId: z.ZodOptional<z.ZodString>;
557
- inputType: z.ZodOptional<z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision"]>>;
615
+ inputType: z.ZodOptional<z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>>;
558
616
  questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
559
617
  id: z.ZodString;
560
618
  question: z.ZodString;
@@ -562,13 +620,13 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
562
620
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
621
  }, "strip", z.ZodTypeAny, {
564
622
  type: "text" | "single" | "multi";
565
- id: string;
566
623
  question: string;
624
+ id: string;
567
625
  options?: string[] | undefined;
568
626
  }, {
569
627
  type: "text" | "single" | "multi";
570
- id: string;
571
628
  question: string;
629
+ id: string;
572
630
  options?: string[] | undefined;
573
631
  }>, "many">>;
574
632
  introMessage: z.ZodOptional<z.ZodString>;
@@ -578,25 +636,25 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
578
636
  description: z.ZodString;
579
637
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
580
638
  }, "strip", z.ZodTypeAny, {
581
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
582
- id: string;
639
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
583
640
  description: string;
584
- }, {
585
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
586
641
  id: string;
642
+ }, {
643
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
587
644
  description: string;
645
+ id: string;
588
646
  }>, "many">;
589
647
  }, "strip", z.ZodTypeAny, {
590
648
  tasks: {
591
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
592
- id: string;
649
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
593
650
  description: string;
651
+ id: string;
594
652
  }[];
595
653
  }, {
596
654
  tasks: {
597
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
598
- id: string;
655
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
599
656
  description: string;
657
+ id: string;
600
658
  }[];
601
659
  }>>;
602
660
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -634,6 +692,13 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
634
692
  url: string;
635
693
  host: string;
636
694
  }>>;
695
+ webSearch: z.ZodOptional<z.ZodObject<{
696
+ query: z.ZodString;
697
+ }, "strip", z.ZodTypeAny, {
698
+ query: string;
699
+ }, {
700
+ query: string;
701
+ }>>;
637
702
  credentialFlow: z.ZodOptional<z.ZodObject<{
638
703
  stage: z.ZodEnum<["generic", "finalize"]>;
639
704
  }, "strip", z.ZodTypeAny, {
@@ -756,6 +821,22 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
756
821
  required?: boolean | undefined;
757
822
  }>, "many">>;
758
823
  needsAction: z.ZodOptional<z.ZodBoolean>;
824
+ subnodeRootNode: z.ZodOptional<z.ZodObject<{
825
+ name: z.ZodString;
826
+ type: z.ZodString;
827
+ typeVersion: z.ZodNumber;
828
+ id: z.ZodString;
829
+ }, "strip", z.ZodTypeAny, {
830
+ type: string;
831
+ id: string;
832
+ name: string;
833
+ typeVersion: number;
834
+ }, {
835
+ type: string;
836
+ id: string;
837
+ name: string;
838
+ typeVersion: number;
839
+ }>>;
759
840
  }, "strip", z.ZodTypeAny, {
760
841
  node: {
761
842
  type: string;
@@ -799,6 +880,12 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
799
880
  required?: boolean | undefined;
800
881
  }[] | undefined;
801
882
  needsAction?: boolean | undefined;
883
+ subnodeRootNode?: {
884
+ type: string;
885
+ id: string;
886
+ name: string;
887
+ typeVersion: number;
888
+ } | undefined;
802
889
  }, {
803
890
  node: {
804
891
  type: string;
@@ -842,23 +929,30 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
842
929
  required?: boolean | undefined;
843
930
  }[] | undefined;
844
931
  needsAction?: boolean | undefined;
932
+ subnodeRootNode?: {
933
+ type: string;
934
+ id: string;
935
+ name: string;
936
+ typeVersion: number;
937
+ } | undefined;
845
938
  }>, "many">>;
846
939
  workflowId: z.ZodOptional<z.ZodString>;
847
940
  resourceDecision: z.ZodOptional<z.ZodObject<{
848
941
  toolGroup: z.ZodString;
849
942
  resource: z.ZodString;
850
943
  description: z.ZodString;
851
- options: z.ZodArray<z.ZodString, "many">;
944
+ } & {
945
+ options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
852
946
  }, "strip", z.ZodTypeAny, {
853
- options: string[];
947
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
854
948
  description: string;
855
- toolGroup: string;
856
949
  resource: string;
950
+ toolGroup: string;
857
951
  }, {
858
- options: string[];
952
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
859
953
  description: string;
860
- toolGroup: string;
861
954
  resource: string;
955
+ toolGroup: string;
862
956
  }>>;
863
957
  }, "strip", z.ZodTypeAny, {
864
958
  message: string;
@@ -871,11 +965,17 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
871
965
  projectId?: string | undefined;
872
966
  tasks?: {
873
967
  tasks: {
874
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
875
- id: string;
968
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
876
969
  description: string;
970
+ id: string;
877
971
  }[];
878
972
  } | undefined;
973
+ questions?: {
974
+ type: "text" | "single" | "multi";
975
+ question: string;
976
+ id: string;
977
+ options?: string[] | undefined;
978
+ }[] | undefined;
879
979
  inputThreadId?: string | undefined;
880
980
  credentialRequests?: {
881
981
  credentialType: string;
@@ -886,13 +986,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
886
986
  }[];
887
987
  suggestedName?: string | undefined;
888
988
  }[] | undefined;
889
- questions?: {
890
- type: "text" | "single" | "multi";
891
- id: string;
892
- question: string;
893
- options?: string[] | undefined;
894
- }[] | undefined;
895
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
989
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
896
990
  introMessage?: string | undefined;
897
991
  planItems?: {
898
992
  id: string;
@@ -907,6 +1001,9 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
907
1001
  url: string;
908
1002
  host: string;
909
1003
  } | undefined;
1004
+ webSearch?: {
1005
+ query: string;
1006
+ } | undefined;
910
1007
  credentialFlow?: {
911
1008
  stage: "generic" | "finalize";
912
1009
  } | undefined;
@@ -953,12 +1050,18 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
953
1050
  required?: boolean | undefined;
954
1051
  }[] | undefined;
955
1052
  needsAction?: boolean | undefined;
1053
+ subnodeRootNode?: {
1054
+ type: string;
1055
+ id: string;
1056
+ name: string;
1057
+ typeVersion: number;
1058
+ } | undefined;
956
1059
  }[] | undefined;
957
1060
  resourceDecision?: {
958
- options: string[];
1061
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
959
1062
  description: string;
960
- toolGroup: string;
961
1063
  resource: string;
1064
+ toolGroup: string;
962
1065
  } | undefined;
963
1066
  }, {
964
1067
  message: string;
@@ -971,11 +1074,17 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
971
1074
  projectId?: string | undefined;
972
1075
  tasks?: {
973
1076
  tasks: {
974
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
975
- id: string;
1077
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
976
1078
  description: string;
1079
+ id: string;
977
1080
  }[];
978
1081
  } | undefined;
1082
+ questions?: {
1083
+ type: "text" | "single" | "multi";
1084
+ question: string;
1085
+ id: string;
1086
+ options?: string[] | undefined;
1087
+ }[] | undefined;
979
1088
  inputThreadId?: string | undefined;
980
1089
  credentialRequests?: {
981
1090
  credentialType: string;
@@ -986,13 +1095,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
986
1095
  }[];
987
1096
  suggestedName?: string | undefined;
988
1097
  }[] | undefined;
989
- questions?: {
990
- type: "text" | "single" | "multi";
991
- id: string;
992
- question: string;
993
- options?: string[] | undefined;
994
- }[] | undefined;
995
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
1098
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
996
1099
  introMessage?: string | undefined;
997
1100
  planItems?: {
998
1101
  id: string;
@@ -1007,6 +1110,9 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1007
1110
  url: string;
1008
1111
  host: string;
1009
1112
  } | undefined;
1113
+ webSearch?: {
1114
+ query: string;
1115
+ } | undefined;
1010
1116
  credentialFlow?: {
1011
1117
  stage: "generic" | "finalize";
1012
1118
  } | undefined;
@@ -1053,14 +1159,22 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1053
1159
  required?: boolean | undefined;
1054
1160
  }[] | undefined;
1055
1161
  needsAction?: boolean | undefined;
1162
+ subnodeRootNode?: {
1163
+ type: string;
1164
+ id: string;
1165
+ name: string;
1166
+ typeVersion: number;
1167
+ } | undefined;
1056
1168
  }[] | undefined;
1057
1169
  resourceDecision?: {
1058
- options: string[];
1170
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
1059
1171
  description: string;
1060
- toolGroup: string;
1061
1172
  resource: string;
1173
+ toolGroup: string;
1062
1174
  } | undefined;
1063
1175
  }>;
1176
+ export type InstanceAiConfirmationRequestPayload = z.infer<typeof confirmationRequestPayloadSchema>;
1177
+ export declare function isDisplayableConfirmationRequest(payload: InstanceAiConfirmationRequestPayload): boolean;
1064
1178
  export declare const statusPayloadSchema: z.ZodObject<{
1065
1179
  message: z.ZodString;
1066
1180
  }, "strip", z.ZodTypeAny, {
@@ -1618,25 +1732,25 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1618
1732
  description: z.ZodString;
1619
1733
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
1620
1734
  }, "strip", z.ZodTypeAny, {
1621
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1622
- id: string;
1735
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1623
1736
  description: string;
1624
- }, {
1625
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1626
1737
  id: string;
1738
+ }, {
1739
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1627
1740
  description: string;
1741
+ id: string;
1628
1742
  }>, "many">;
1629
1743
  }, "strip", z.ZodTypeAny, {
1630
1744
  tasks: {
1631
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1632
- id: string;
1745
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1633
1746
  description: string;
1747
+ id: string;
1634
1748
  }[];
1635
1749
  }, {
1636
1750
  tasks: {
1637
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1638
- id: string;
1751
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1639
1752
  description: string;
1753
+ id: string;
1640
1754
  }[];
1641
1755
  }>;
1642
1756
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1667,9 +1781,9 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1667
1781
  }, "strip", z.ZodTypeAny, {
1668
1782
  tasks: {
1669
1783
  tasks: {
1670
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1671
- id: string;
1784
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1672
1785
  description: string;
1786
+ id: string;
1673
1787
  }[];
1674
1788
  };
1675
1789
  planItems?: {
@@ -1684,9 +1798,9 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1684
1798
  }, {
1685
1799
  tasks: {
1686
1800
  tasks: {
1687
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
1688
- id: string;
1801
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1689
1802
  description: string;
1803
+ id: string;
1690
1804
  }[];
1691
1805
  };
1692
1806
  planItems?: {
@@ -2139,7 +2253,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2139
2253
  suggestedName?: string | undefined;
2140
2254
  }>, "many">>;
2141
2255
  projectId: z.ZodOptional<z.ZodString>;
2142
- inputType: z.ZodOptional<z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision"]>>;
2256
+ inputType: z.ZodOptional<z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>>;
2143
2257
  questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2144
2258
  id: z.ZodString;
2145
2259
  question: z.ZodString;
@@ -2147,13 +2261,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2147
2261
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2148
2262
  }, "strip", z.ZodTypeAny, {
2149
2263
  type: "text" | "single" | "multi";
2150
- id: string;
2151
2264
  question: string;
2265
+ id: string;
2152
2266
  options?: string[] | undefined;
2153
2267
  }, {
2154
2268
  type: "text" | "single" | "multi";
2155
- id: string;
2156
2269
  question: string;
2270
+ id: string;
2157
2271
  options?: string[] | undefined;
2158
2272
  }>, "many">>;
2159
2273
  introMessage: z.ZodOptional<z.ZodString>;
@@ -2163,25 +2277,25 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2163
2277
  description: z.ZodString;
2164
2278
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
2165
2279
  }, "strip", z.ZodTypeAny, {
2166
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2167
- id: string;
2280
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2168
2281
  description: string;
2169
- }, {
2170
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2171
2282
  id: string;
2283
+ }, {
2284
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2172
2285
  description: string;
2286
+ id: string;
2173
2287
  }>, "many">;
2174
2288
  }, "strip", z.ZodTypeAny, {
2175
2289
  tasks: {
2176
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2177
- id: string;
2290
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2178
2291
  description: string;
2292
+ id: string;
2179
2293
  }[];
2180
2294
  }, {
2181
2295
  tasks: {
2182
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2183
- id: string;
2296
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2184
2297
  description: string;
2298
+ id: string;
2185
2299
  }[];
2186
2300
  }>>;
2187
2301
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2219,6 +2333,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2219
2333
  url: string;
2220
2334
  host: string;
2221
2335
  }>>;
2336
+ webSearch: z.ZodOptional<z.ZodObject<{
2337
+ query: z.ZodString;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ query: string;
2340
+ }, {
2341
+ query: string;
2342
+ }>>;
2222
2343
  credentialFlow: z.ZodOptional<z.ZodObject<{
2223
2344
  stage: z.ZodEnum<["generic", "finalize"]>;
2224
2345
  }, "strip", z.ZodTypeAny, {
@@ -2341,6 +2462,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2341
2462
  required?: boolean | undefined;
2342
2463
  }>, "many">>;
2343
2464
  needsAction: z.ZodOptional<z.ZodBoolean>;
2465
+ subnodeRootNode: z.ZodOptional<z.ZodObject<{
2466
+ name: z.ZodString;
2467
+ type: z.ZodString;
2468
+ typeVersion: z.ZodNumber;
2469
+ id: z.ZodString;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ type: string;
2472
+ id: string;
2473
+ name: string;
2474
+ typeVersion: number;
2475
+ }, {
2476
+ type: string;
2477
+ id: string;
2478
+ name: string;
2479
+ typeVersion: number;
2480
+ }>>;
2344
2481
  }, "strip", z.ZodTypeAny, {
2345
2482
  node: {
2346
2483
  type: string;
@@ -2384,6 +2521,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2384
2521
  required?: boolean | undefined;
2385
2522
  }[] | undefined;
2386
2523
  needsAction?: boolean | undefined;
2524
+ subnodeRootNode?: {
2525
+ type: string;
2526
+ id: string;
2527
+ name: string;
2528
+ typeVersion: number;
2529
+ } | undefined;
2387
2530
  }, {
2388
2531
  node: {
2389
2532
  type: string;
@@ -2427,23 +2570,30 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2427
2570
  required?: boolean | undefined;
2428
2571
  }[] | undefined;
2429
2572
  needsAction?: boolean | undefined;
2573
+ subnodeRootNode?: {
2574
+ type: string;
2575
+ id: string;
2576
+ name: string;
2577
+ typeVersion: number;
2578
+ } | undefined;
2430
2579
  }>, "many">>;
2431
2580
  workflowId: z.ZodOptional<z.ZodString>;
2432
2581
  resourceDecision: z.ZodOptional<z.ZodObject<{
2433
2582
  toolGroup: z.ZodString;
2434
2583
  resource: z.ZodString;
2435
2584
  description: z.ZodString;
2436
- options: z.ZodArray<z.ZodString, "many">;
2585
+ } & {
2586
+ options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
2437
2587
  }, "strip", z.ZodTypeAny, {
2438
- options: string[];
2588
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2439
2589
  description: string;
2440
- toolGroup: string;
2441
2590
  resource: string;
2591
+ toolGroup: string;
2442
2592
  }, {
2443
- options: string[];
2593
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2444
2594
  description: string;
2445
- toolGroup: string;
2446
2595
  resource: string;
2596
+ toolGroup: string;
2447
2597
  }>>;
2448
2598
  }, "strip", z.ZodTypeAny, {
2449
2599
  message: string;
@@ -2456,11 +2606,17 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2456
2606
  projectId?: string | undefined;
2457
2607
  tasks?: {
2458
2608
  tasks: {
2459
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2460
- id: string;
2609
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2461
2610
  description: string;
2611
+ id: string;
2462
2612
  }[];
2463
2613
  } | undefined;
2614
+ questions?: {
2615
+ type: "text" | "single" | "multi";
2616
+ question: string;
2617
+ id: string;
2618
+ options?: string[] | undefined;
2619
+ }[] | undefined;
2464
2620
  inputThreadId?: string | undefined;
2465
2621
  credentialRequests?: {
2466
2622
  credentialType: string;
@@ -2471,13 +2627,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2471
2627
  }[];
2472
2628
  suggestedName?: string | undefined;
2473
2629
  }[] | undefined;
2474
- questions?: {
2475
- type: "text" | "single" | "multi";
2476
- id: string;
2477
- question: string;
2478
- options?: string[] | undefined;
2479
- }[] | undefined;
2480
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2630
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
2481
2631
  introMessage?: string | undefined;
2482
2632
  planItems?: {
2483
2633
  id: string;
@@ -2492,6 +2642,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2492
2642
  url: string;
2493
2643
  host: string;
2494
2644
  } | undefined;
2645
+ webSearch?: {
2646
+ query: string;
2647
+ } | undefined;
2495
2648
  credentialFlow?: {
2496
2649
  stage: "generic" | "finalize";
2497
2650
  } | undefined;
@@ -2538,12 +2691,18 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2538
2691
  required?: boolean | undefined;
2539
2692
  }[] | undefined;
2540
2693
  needsAction?: boolean | undefined;
2694
+ subnodeRootNode?: {
2695
+ type: string;
2696
+ id: string;
2697
+ name: string;
2698
+ typeVersion: number;
2699
+ } | undefined;
2541
2700
  }[] | undefined;
2542
2701
  resourceDecision?: {
2543
- options: string[];
2702
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2544
2703
  description: string;
2545
- toolGroup: string;
2546
2704
  resource: string;
2705
+ toolGroup: string;
2547
2706
  } | undefined;
2548
2707
  }, {
2549
2708
  message: string;
@@ -2556,11 +2715,17 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2556
2715
  projectId?: string | undefined;
2557
2716
  tasks?: {
2558
2717
  tasks: {
2559
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2560
- id: string;
2718
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2561
2719
  description: string;
2720
+ id: string;
2562
2721
  }[];
2563
2722
  } | undefined;
2723
+ questions?: {
2724
+ type: "text" | "single" | "multi";
2725
+ question: string;
2726
+ id: string;
2727
+ options?: string[] | undefined;
2728
+ }[] | undefined;
2564
2729
  inputThreadId?: string | undefined;
2565
2730
  credentialRequests?: {
2566
2731
  credentialType: string;
@@ -2571,13 +2736,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2571
2736
  }[];
2572
2737
  suggestedName?: string | undefined;
2573
2738
  }[] | undefined;
2574
- questions?: {
2575
- type: "text" | "single" | "multi";
2576
- id: string;
2577
- question: string;
2578
- options?: string[] | undefined;
2579
- }[] | undefined;
2580
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2739
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
2581
2740
  introMessage?: string | undefined;
2582
2741
  planItems?: {
2583
2742
  id: string;
@@ -2592,6 +2751,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2592
2751
  url: string;
2593
2752
  host: string;
2594
2753
  } | undefined;
2754
+ webSearch?: {
2755
+ query: string;
2756
+ } | undefined;
2595
2757
  credentialFlow?: {
2596
2758
  stage: "generic" | "finalize";
2597
2759
  } | undefined;
@@ -2638,12 +2800,18 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2638
2800
  required?: boolean | undefined;
2639
2801
  }[] | undefined;
2640
2802
  needsAction?: boolean | undefined;
2803
+ subnodeRootNode?: {
2804
+ type: string;
2805
+ id: string;
2806
+ name: string;
2807
+ typeVersion: number;
2808
+ } | undefined;
2641
2809
  }[] | undefined;
2642
2810
  resourceDecision?: {
2643
- options: string[];
2811
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2644
2812
  description: string;
2645
- toolGroup: string;
2646
2813
  resource: string;
2814
+ toolGroup: string;
2647
2815
  } | undefined;
2648
2816
  }>;
2649
2817
  runId: z.ZodString;
@@ -2665,11 +2833,17 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2665
2833
  projectId?: string | undefined;
2666
2834
  tasks?: {
2667
2835
  tasks: {
2668
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2669
- id: string;
2836
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2670
2837
  description: string;
2838
+ id: string;
2671
2839
  }[];
2672
2840
  } | undefined;
2841
+ questions?: {
2842
+ type: "text" | "single" | "multi";
2843
+ question: string;
2844
+ id: string;
2845
+ options?: string[] | undefined;
2846
+ }[] | undefined;
2673
2847
  inputThreadId?: string | undefined;
2674
2848
  credentialRequests?: {
2675
2849
  credentialType: string;
@@ -2680,13 +2854,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2680
2854
  }[];
2681
2855
  suggestedName?: string | undefined;
2682
2856
  }[] | undefined;
2683
- questions?: {
2684
- type: "text" | "single" | "multi";
2685
- id: string;
2686
- question: string;
2687
- options?: string[] | undefined;
2688
- }[] | undefined;
2689
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2857
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
2690
2858
  introMessage?: string | undefined;
2691
2859
  planItems?: {
2692
2860
  id: string;
@@ -2701,6 +2869,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2701
2869
  url: string;
2702
2870
  host: string;
2703
2871
  } | undefined;
2872
+ webSearch?: {
2873
+ query: string;
2874
+ } | undefined;
2704
2875
  credentialFlow?: {
2705
2876
  stage: "generic" | "finalize";
2706
2877
  } | undefined;
@@ -2747,12 +2918,18 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2747
2918
  required?: boolean | undefined;
2748
2919
  }[] | undefined;
2749
2920
  needsAction?: boolean | undefined;
2921
+ subnodeRootNode?: {
2922
+ type: string;
2923
+ id: string;
2924
+ name: string;
2925
+ typeVersion: number;
2926
+ } | undefined;
2750
2927
  }[] | undefined;
2751
2928
  resourceDecision?: {
2752
- options: string[];
2929
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2753
2930
  description: string;
2754
- toolGroup: string;
2755
2931
  resource: string;
2932
+ toolGroup: string;
2756
2933
  } | undefined;
2757
2934
  };
2758
2935
  runId: string;
@@ -2772,11 +2949,17 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2772
2949
  projectId?: string | undefined;
2773
2950
  tasks?: {
2774
2951
  tasks: {
2775
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2776
- id: string;
2952
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2777
2953
  description: string;
2954
+ id: string;
2778
2955
  }[];
2779
2956
  } | undefined;
2957
+ questions?: {
2958
+ type: "text" | "single" | "multi";
2959
+ question: string;
2960
+ id: string;
2961
+ options?: string[] | undefined;
2962
+ }[] | undefined;
2780
2963
  inputThreadId?: string | undefined;
2781
2964
  credentialRequests?: {
2782
2965
  credentialType: string;
@@ -2787,13 +2970,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2787
2970
  }[];
2788
2971
  suggestedName?: string | undefined;
2789
2972
  }[] | undefined;
2790
- questions?: {
2791
- type: "text" | "single" | "multi";
2792
- id: string;
2793
- question: string;
2794
- options?: string[] | undefined;
2795
- }[] | undefined;
2796
- inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | undefined;
2973
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
2797
2974
  introMessage?: string | undefined;
2798
2975
  planItems?: {
2799
2976
  id: string;
@@ -2808,6 +2985,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2808
2985
  url: string;
2809
2986
  host: string;
2810
2987
  } | undefined;
2988
+ webSearch?: {
2989
+ query: string;
2990
+ } | undefined;
2811
2991
  credentialFlow?: {
2812
2992
  stage: "generic" | "finalize";
2813
2993
  } | undefined;
@@ -2854,12 +3034,18 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2854
3034
  required?: boolean | undefined;
2855
3035
  }[] | undefined;
2856
3036
  needsAction?: boolean | undefined;
3037
+ subnodeRootNode?: {
3038
+ type: string;
3039
+ id: string;
3040
+ name: string;
3041
+ typeVersion: number;
3042
+ } | undefined;
2857
3043
  }[] | undefined;
2858
3044
  resourceDecision?: {
2859
- options: string[];
3045
+ options: ("denyOnce" | "allowOnce" | "allowForSession")[];
2860
3046
  description: string;
2861
- toolGroup: string;
2862
3047
  resource: string;
3048
+ toolGroup: string;
2863
3049
  } | undefined;
2864
3050
  };
2865
3051
  runId: string;
@@ -2873,25 +3059,25 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2873
3059
  description: z.ZodString;
2874
3060
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
2875
3061
  }, "strip", z.ZodTypeAny, {
2876
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2877
- id: string;
3062
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2878
3063
  description: string;
2879
- }, {
2880
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2881
3064
  id: string;
3065
+ }, {
3066
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2882
3067
  description: string;
3068
+ id: string;
2883
3069
  }>, "many">;
2884
3070
  }, "strip", z.ZodTypeAny, {
2885
3071
  tasks: {
2886
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2887
- id: string;
3072
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2888
3073
  description: string;
3074
+ id: string;
2889
3075
  }[];
2890
3076
  }, {
2891
3077
  tasks: {
2892
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2893
- id: string;
3078
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2894
3079
  description: string;
3080
+ id: string;
2895
3081
  }[];
2896
3082
  }>;
2897
3083
  planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2922,9 +3108,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2922
3108
  }, "strip", z.ZodTypeAny, {
2923
3109
  tasks: {
2924
3110
  tasks: {
2925
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2926
- id: string;
3111
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2927
3112
  description: string;
3113
+ id: string;
2928
3114
  }[];
2929
3115
  };
2930
3116
  planItems?: {
@@ -2939,9 +3125,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2939
3125
  }, {
2940
3126
  tasks: {
2941
3127
  tasks: {
2942
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2943
- id: string;
3128
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2944
3129
  description: string;
3130
+ id: string;
2945
3131
  }[];
2946
3132
  };
2947
3133
  planItems?: {
@@ -2965,9 +3151,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2965
3151
  payload: {
2966
3152
  tasks: {
2967
3153
  tasks: {
2968
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2969
- id: string;
3154
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2970
3155
  description: string;
3156
+ id: string;
2971
3157
  }[];
2972
3158
  };
2973
3159
  planItems?: {
@@ -2989,9 +3175,9 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2989
3175
  payload: {
2990
3176
  tasks: {
2991
3177
  tasks: {
2992
- status: "cancelled" | "failed" | "todo" | "in_progress" | "done";
2993
- id: string;
3178
+ status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2994
3179
  description: string;
3180
+ id: string;
2995
3181
  }[];
2996
3182
  };
2997
3183
  planItems?: {
@@ -3308,27 +3494,6 @@ export declare class InstanceAiThreadMessagesQuery extends InstanceAiThreadMessa
3308
3494
  export interface InstanceAiSendMessageResponse {
3309
3495
  runId: string;
3310
3496
  }
3311
- export interface InstanceAiConfirmResponse {
3312
- approved: boolean;
3313
- credentialId?: string;
3314
- credentials?: Record<string, string>;
3315
- nodeCredentials?: Record<string, Record<string, string>>;
3316
- autoSetup?: {
3317
- credentialType: string;
3318
- };
3319
- userInput?: string;
3320
- domainAccessAction?: DomainAccessAction;
3321
- resourceDecision?: string;
3322
- action?: 'apply' | 'test-trigger';
3323
- nodeParameters?: Record<string, Record<string, unknown>>;
3324
- testTriggerNode?: string;
3325
- answers?: Array<{
3326
- questionId: string;
3327
- selectedOptions: string[];
3328
- customText?: string;
3329
- skipped?: boolean;
3330
- }>;
3331
- }
3332
3497
  export interface InstanceAiConfirmation {
3333
3498
  requestId: string;
3334
3499
  inputThreadId?: string;
@@ -3336,8 +3501,9 @@ export interface InstanceAiConfirmation {
3336
3501
  message: string;
3337
3502
  credentialRequests?: InstanceAiCredentialRequest[];
3338
3503
  projectId?: string;
3339
- inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision';
3504
+ inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision' | 'continue';
3340
3505
  domainAccess?: DomainAccessMeta;
3506
+ webSearch?: WebSearchMeta;
3341
3507
  credentialFlow?: InstanceAiCredentialFlow;
3342
3508
  setupRequests?: InstanceAiWorkflowSetupNode[];
3343
3509
  workflowId?: string;
@@ -3422,6 +3588,7 @@ export interface InstanceAiThreadSummary {
3422
3588
  id: string;
3423
3589
  title: string;
3424
3590
  createdAt: string;
3591
+ updatedAt: string;
3425
3592
  metadata?: Record<string, unknown>;
3426
3593
  }
3427
3594
  export type InstanceAiSSEConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
@@ -3492,8 +3659,10 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
3492
3659
  cleanupTestExecutions: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3493
3660
  readFilesystem: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3494
3661
  fetchUrl: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3662
+ webSearch: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3495
3663
  restoreWorkflowVersion: z.ZodEnum<["require_approval", "always_allow", "blocked"]>;
3496
3664
  }, "strip", z.ZodTypeAny, {
3665
+ webSearch: "require_approval" | "always_allow" | "blocked";
3497
3666
  createWorkflow: "require_approval" | "always_allow" | "blocked";
3498
3667
  updateWorkflow: "require_approval" | "always_allow" | "blocked";
3499
3668
  runWorkflow: "require_approval" | "always_allow" | "blocked";
@@ -3513,6 +3682,7 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
3513
3682
  fetchUrl: "require_approval" | "always_allow" | "blocked";
3514
3683
  restoreWorkflowVersion: "require_approval" | "always_allow" | "blocked";
3515
3684
  }, {
3685
+ webSearch: "require_approval" | "always_allow" | "blocked";
3516
3686
  createWorkflow: "require_approval" | "always_allow" | "blocked";
3517
3687
  updateWorkflow: "require_approval" | "always_allow" | "blocked";
3518
3688
  runWorkflow: "require_approval" | "always_allow" | "blocked";
@@ -3552,7 +3722,6 @@ export interface InstanceAiAdminSettingsResponse {
3552
3722
  n8nSandboxCredentialId: string | null;
3553
3723
  searchCredentialId: string | null;
3554
3724
  localGatewayDisabled: boolean;
3555
- optinModalDismissed: boolean;
3556
3725
  }
3557
3726
  declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").ZodClass<{
3558
3727
  enabled?: boolean | undefined;
@@ -3562,6 +3731,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3562
3731
  subAgentMaxSteps?: number | undefined;
3563
3732
  browserMcp?: boolean | undefined;
3564
3733
  permissions?: {
3734
+ webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
3565
3735
  createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3566
3736
  updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3567
3737
  runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
@@ -3590,7 +3760,6 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3590
3760
  n8nSandboxCredentialId?: string | null | undefined;
3591
3761
  searchCredentialId?: string | null | undefined;
3592
3762
  localGatewayDisabled?: boolean | undefined;
3593
- optinModalDismissed?: boolean | undefined;
3594
3763
  }, {
3595
3764
  enabled: z.ZodOptional<z.ZodBoolean>;
3596
3765
  lastMessages: z.ZodOptional<z.ZodNumber>;
@@ -3616,8 +3785,10 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3616
3785
  cleanupTestExecutions: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3617
3786
  readFilesystem: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3618
3787
  fetchUrl: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3788
+ webSearch: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3619
3789
  restoreWorkflowVersion: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
3620
3790
  }, "strip", z.ZodTypeAny, {
3791
+ webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
3621
3792
  createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3622
3793
  updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3623
3794
  runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
@@ -3637,6 +3808,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3637
3808
  fetchUrl?: "require_approval" | "always_allow" | "blocked" | undefined;
3638
3809
  restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
3639
3810
  }, {
3811
+ webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
3640
3812
  createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3641
3813
  updateWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
3642
3814
  runWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
@@ -3665,7 +3837,6 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
3665
3837
  n8nSandboxCredentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3666
3838
  searchCredentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3667
3839
  localGatewayDisabled: z.ZodOptional<z.ZodBoolean>;
3668
- optinModalDismissed: z.ZodOptional<z.ZodBoolean>;
3669
3840
  }>;
3670
3841
  export declare class InstanceAiAdminSettingsUpdateRequest extends InstanceAiAdminSettingsUpdateRequest_base {
3671
3842
  }
@@ -3678,8 +3849,8 @@ export interface InstanceAiUserPreferencesResponse {
3678
3849
  }
3679
3850
  declare const InstanceAiUserPreferencesUpdateRequest_base: import("../zod-class").ZodClass<{
3680
3851
  credentialId?: string | null | undefined;
3681
- localGatewayDisabled?: boolean | undefined;
3682
3852
  modelName?: string | undefined;
3853
+ localGatewayDisabled?: boolean | undefined;
3683
3854
  }, {
3684
3855
  credentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3685
3856
  modelName: z.ZodOptional<z.ZodString>;