@n8n/api-types 1.38.0 → 1.39.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 (150) hide show
  1. package/dist/agents/agent-integration.schema.d.ts +124 -0
  2. package/dist/agents/agent-integration.schema.js +21 -13
  3. package/dist/agents/agent-integration.schema.js.map +1 -1
  4. package/dist/agents/agent-interaction.schema.d.ts +7 -0
  5. package/dist/agents/agent-json-config.schema.d.ts +196 -0
  6. package/dist/agents/agent-json-config.schema.js +5 -3
  7. package/dist/agents/agent-json-config.schema.js.map +1 -1
  8. package/dist/agents/agent-skill.schema.d.ts +6 -18
  9. package/dist/agents/agent-skill.schema.js +13 -22
  10. package/dist/agents/agent-skill.schema.js.map +1 -1
  11. package/dist/agents/dto.d.ts +11 -40
  12. package/dist/agents/dto.js +3 -5
  13. package/dist/agents/dto.js.map +1 -1
  14. package/dist/agents/inline-agent-config.schema.d.ts +86 -16
  15. package/dist/agents/sub-agent.schema.d.ts +1 -1
  16. package/dist/agents/types.d.ts +2 -1
  17. package/dist/agents/types.js +6 -8
  18. package/dist/agents/types.js.map +1 -1
  19. package/dist/build.tsbuildinfo +1 -1
  20. package/dist/constants/role-mapping.d.ts +1 -0
  21. package/dist/constants/role-mapping.js +2 -1
  22. package/dist/constants/role-mapping.js.map +1 -1
  23. package/dist/dto/credentials/credential-public.dto.d.ts +221 -0
  24. package/dist/dto/credentials/credential-public.dto.js +31 -0
  25. package/dist/dto/credentials/credential-public.dto.js.map +1 -0
  26. package/dist/dto/credentials/list-credentials-query.dto.d.ts +11 -0
  27. package/dist/dto/credentials/list-credentials-query.dto.js +13 -0
  28. package/dist/dto/credentials/list-credentials-query.dto.js.map +1 -0
  29. package/dist/dto/executions/execution-public.dto.d.ts +467 -0
  30. package/dist/dto/executions/execution-public.dto.js +86 -0
  31. package/dist/dto/executions/execution-public.dto.js.map +1 -0
  32. package/dist/dto/executions/execution-public.openapi.d.ts +56 -0
  33. package/dist/dto/executions/execution-public.openapi.js +113 -0
  34. package/dist/dto/executions/execution-public.openapi.js.map +1 -0
  35. package/dist/dto/executions/execution-tags-public.dto.d.ts +24 -0
  36. package/dist/dto/executions/execution-tags-public.dto.js +9 -0
  37. package/dist/dto/executions/execution-tags-public.dto.js.map +1 -0
  38. package/dist/dto/executions/get-execution-query.dto.d.ts +13 -0
  39. package/dist/dto/executions/get-execution-query.dto.js +28 -0
  40. package/dist/dto/executions/get-execution-query.dto.js.map +1 -0
  41. package/dist/dto/executions/list-executions-query.dto.d.ts +28 -0
  42. package/dist/dto/executions/list-executions-query.dto.js +50 -0
  43. package/dist/dto/executions/list-executions-query.dto.js.map +1 -0
  44. package/dist/dto/executions/retried-execution-public.dto.d.ts +152 -0
  45. package/dist/dto/executions/retried-execution-public.dto.js +33 -0
  46. package/dist/dto/executions/retried-execution-public.dto.js.map +1 -0
  47. package/dist/dto/executions/retried-execution-public.openapi.d.ts +10 -0
  48. package/dist/dto/executions/retried-execution-public.openapi.js +42 -0
  49. package/dist/dto/executions/retried-execution-public.openapi.js.map +1 -0
  50. package/dist/dto/executions/retry-execution-public.dto.d.ts +17 -0
  51. package/dist/dto/executions/retry-execution-public.dto.js +14 -0
  52. package/dist/dto/executions/retry-execution-public.dto.js.map +1 -0
  53. package/dist/dto/executions/stop-many-executions-public.dto.d.ts +23 -0
  54. package/dist/dto/executions/stop-many-executions-public.dto.js +41 -0
  55. package/dist/dto/executions/stop-many-executions-public.dto.js.map +1 -0
  56. package/dist/dto/executions/stopped-execution-public.dto.d.ts +51 -0
  57. package/dist/dto/executions/stopped-execution-public.dto.js +24 -0
  58. package/dist/dto/executions/stopped-execution-public.dto.js.map +1 -0
  59. package/dist/dto/executions/stopped-execution-public.openapi.d.ts +25 -0
  60. package/dist/dto/executions/stopped-execution-public.openapi.js +22 -0
  61. package/dist/dto/executions/stopped-execution-public.openapi.js.map +1 -0
  62. package/dist/dto/git-connections/git-connections.dto.d.ts +37 -0
  63. package/dist/dto/git-connections/git-connections.dto.js +10 -2
  64. package/dist/dto/git-connections/git-connections.dto.js.map +1 -1
  65. package/dist/dto/index.d.ts +21 -2
  66. package/dist/dto/index.js +66 -4
  67. package/dist/dto/index.js.map +1 -1
  68. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +14 -0
  69. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +5 -0
  70. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
  71. package/dist/dto/openapi-nullable.d.ts +2 -0
  72. package/dist/dto/openapi-nullable.js +7 -0
  73. package/dist/dto/openapi-nullable.js.map +1 -0
  74. package/dist/dto/otel/test-otel-trace.dto.d.ts +3 -1
  75. package/dist/dto/otel/test-otel-trace.dto.js +1 -0
  76. package/dist/dto/otel/test-otel-trace.dto.js.map +1 -1
  77. package/dist/dto/otel/update-otel-settings.dto.d.ts +6 -0
  78. package/dist/dto/otel/update-otel-settings.dto.js +9 -2
  79. package/dist/dto/otel/update-otel-settings.dto.js.map +1 -1
  80. package/dist/dto/packages/export-package-request.dto.d.ts +2 -0
  81. package/dist/dto/packages/export-package-request.dto.js +1 -0
  82. package/dist/dto/packages/export-package-request.dto.js.map +1 -1
  83. package/dist/dto/promotions/promotable-resource.dto.d.ts +45 -0
  84. package/dist/dto/promotions/promotable-resource.dto.js +21 -0
  85. package/dist/dto/promotions/promotable-resource.dto.js.map +1 -0
  86. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +27 -13
  87. package/dist/dto/source-control/source-control-push-conflict-error-public.dto.d.ts +249 -0
  88. package/dist/dto/source-control/source-control-push-conflict-error-public.dto.js +13 -0
  89. package/dist/dto/source-control/source-control-push-conflict-error-public.dto.js.map +1 -0
  90. package/dist/dto/source-control/source-control-push-request-public.dto.d.ts +25 -0
  91. package/dist/dto/source-control/source-control-push-request-public.dto.js +18 -0
  92. package/dist/dto/source-control/source-control-push-request-public.dto.js.map +1 -0
  93. package/dist/dto/source-control/source-control-push-response-public.dto.d.ts +247 -0
  94. package/dist/dto/source-control/source-control-push-response-public.dto.js +12 -0
  95. package/dist/dto/source-control/source-control-push-response-public.dto.js.map +1 -0
  96. package/dist/dto/source-control/source-control-status-public.dto.d.ts +247 -0
  97. package/dist/dto/source-control/source-control-status-public.dto.js +12 -0
  98. package/dist/dto/source-control/source-control-status-public.dto.js.map +1 -0
  99. package/dist/dto/source-control/source-control-status-query-public.dto.d.ts +9 -0
  100. package/dist/dto/source-control/source-control-status-query-public.dto.js +11 -0
  101. package/dist/dto/source-control/source-control-status-query-public.dto.js.map +1 -0
  102. package/dist/dto/tag/tag-public.dto.d.ts +1 -0
  103. package/dist/dto/tag/tag-public.dto.js +5 -4
  104. package/dist/dto/tag/tag-public.dto.js.map +1 -1
  105. package/dist/dto/worker-pools/update-project-pool-settings.dto.d.ts +9 -0
  106. package/dist/dto/worker-pools/update-project-pool-settings.dto.js +12 -0
  107. package/dist/dto/worker-pools/update-project-pool-settings.dto.js.map +1 -0
  108. package/dist/dto/workflow-history/workflow-version-public.dto.d.ts +106 -0
  109. package/dist/dto/workflow-history/workflow-version-public.dto.js +13 -0
  110. package/dist/dto/workflow-history/workflow-version-public.dto.js.map +1 -0
  111. package/dist/dto/workflows/workflow-public.dto.js +3 -4
  112. package/dist/dto/workflows/workflow-public.dto.js.map +1 -1
  113. package/dist/dto/workflows/workflow-public.openapi.js +6 -8
  114. package/dist/dto/workflows/workflow-public.openapi.js.map +1 -1
  115. package/dist/dto/workflows/workflow-publish-forbidden-error-public.dto.d.ts +26 -0
  116. package/dist/dto/workflows/workflow-publish-forbidden-error-public.dto.js +14 -0
  117. package/dist/dto/workflows/workflow-publish-forbidden-error-public.dto.js.map +1 -0
  118. package/dist/dto/workflows/workflow-tags-public.dto.d.ts +1 -0
  119. package/dist/dto/workflows/workflow-tags-public.dto.js +2 -1
  120. package/dist/dto/workflows/workflow-tags-public.dto.js.map +1 -1
  121. package/dist/frontend-settings.d.ts +7 -0
  122. package/dist/index.d.ts +6 -5
  123. package/dist/index.js +20 -5
  124. package/dist/index.js.map +1 -1
  125. package/dist/instance-registry-types.d.ts +8 -0
  126. package/dist/instance-registry-types.js +1 -0
  127. package/dist/instance-registry-types.js.map +1 -1
  128. package/dist/push/instance-ai.d.ts +5 -0
  129. package/dist/scaling.d.ts +2 -0
  130. package/dist/schemas/agent-run-reducer.js +14 -24
  131. package/dist/schemas/agent-run-reducer.js.map +1 -1
  132. package/dist/schemas/content-import-policy-result.schema.js.map +1 -1
  133. package/dist/schemas/instance-ai.schema.d.ts +1482 -243
  134. package/dist/schemas/instance-ai.schema.js +91 -4
  135. package/dist/schemas/instance-ai.schema.js.map +1 -1
  136. package/dist/schemas/mcp-registry.schema.d.ts +6 -1
  137. package/dist/schemas/object-guard.schema.d.ts +3 -0
  138. package/dist/schemas/object-guard.schema.js +10 -0
  139. package/dist/schemas/object-guard.schema.js.map +1 -0
  140. package/dist/schemas/source-controlled-file.schema.d.ts +24 -11
  141. package/dist/schemas/workflow-publication-status.schema.d.ts +2 -0
  142. package/dist/schemas/workflow-publication-status.schema.js +14 -2
  143. package/dist/schemas/workflow-publication-status.schema.js.map +1 -1
  144. package/dist/worker-pools.d.ts +4 -0
  145. package/dist/worker-pools.js +3 -0
  146. package/dist/worker-pools.js.map +1 -0
  147. package/dist/workflow-publish-blocked-details.d.ts +36 -7
  148. package/dist/workflow-publish-blocked-details.js +15 -6
  149. package/dist/workflow-publish-blocked-details.js.map +1 -1
  150. package/package.json +10 -10
@@ -9,6 +9,7 @@ export type InstanceAiCredits = {
9
9
  export declare const AI_GATEWAY_MANAGED_TAG = "__AI_GATEWAY_MANAGED__";
10
10
  export declare function buildRunWorkflowSessionGrantKey(workflowId: string): string;
11
11
  export declare function buildUpdateWorkflowSessionGrantKey(workflowId: string): string;
12
+ export declare function buildCredentialDestinationGrantKey(workflowId: string, origin: string): string;
12
13
  export declare function buildDataTablesSessionGrantKey(action: string): string;
13
14
  export declare function buildSetupSkipGrantKey(subject: string): string;
14
15
  export declare function parseSetupSkipGrants(keys: ReadonlySet<string>): Set<string>;
@@ -33,7 +34,7 @@ export type ThreadId = string & {
33
34
  export type ToolCallId = string & {
34
35
  readonly __brand: 'ToolCallId';
35
36
  };
36
- export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-input-start", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "filesystem-request", "thread-title-updated", "status", "error"]>;
37
+ export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-input-start", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "setup-items", "filesystem-request", "thread-title-updated", "status", "error"]>;
37
38
  export type InstanceAiEventType = z.infer<typeof instanceAiEventTypeSchema>;
38
39
  export declare const INSTANCE_AI_EPHEMERAL_EVENT_TYPES: ReadonlySet<InstanceAiEventType>;
39
40
  export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
@@ -85,14 +86,20 @@ export declare const runStartPayloadSchema: z.ZodObject<{
85
86
  messageId: z.ZodString;
86
87
  traceId: z.ZodOptional<z.ZodString>;
87
88
  messageGroupId: z.ZodOptional<z.ZodString>;
89
+ langsmithRunId: z.ZodOptional<z.ZodString>;
90
+ langsmithTraceId: z.ZodOptional<z.ZodString>;
88
91
  }, "strip", z.ZodTypeAny, {
89
92
  messageId: string;
90
93
  traceId?: string | undefined;
91
94
  messageGroupId?: string | undefined;
95
+ langsmithRunId?: string | undefined;
96
+ langsmithTraceId?: string | undefined;
92
97
  }, {
93
98
  messageId: string;
94
99
  traceId?: string | undefined;
95
100
  messageGroupId?: string | undefined;
101
+ langsmithRunId?: string | undefined;
102
+ langsmithTraceId?: string | undefined;
96
103
  }>;
97
104
  export declare const runFinishPayloadSchema: z.ZodObject<{
98
105
  status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
@@ -314,6 +321,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
314
321
  testUrl: z.ZodOptional<z.ZodString>;
315
322
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
316
323
  serviceHost: z.ZodOptional<z.ZodString>;
324
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
317
325
  }, "strip", z.ZodTypeAny, {
318
326
  template: {
319
327
  headers?: Record<string, string> | undefined;
@@ -332,6 +340,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
332
340
  testUrl?: string | undefined;
333
341
  acceptedStatusCodes?: number[] | undefined;
334
342
  serviceHost?: string | undefined;
343
+ serviceOrigin?: string | undefined;
335
344
  }, {
336
345
  template: {
337
346
  headers?: Record<string, string> | undefined;
@@ -350,6 +359,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
350
359
  testUrl?: string | undefined;
351
360
  acceptedStatusCodes?: number[] | undefined;
352
361
  serviceHost?: string | undefined;
362
+ serviceOrigin?: string | undefined;
353
363
  }>;
354
364
  export type InstanceAiCredentialSetupHint = z.infer<typeof credentialSetupHintSchema>;
355
365
  export declare const credentialRequestSchema: z.ZodObject<{
@@ -404,6 +414,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
404
414
  testUrl: z.ZodOptional<z.ZodString>;
405
415
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
406
416
  serviceHost: z.ZodOptional<z.ZodString>;
417
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
407
418
  }, "strip", z.ZodTypeAny, {
408
419
  template: {
409
420
  headers?: Record<string, string> | undefined;
@@ -422,6 +433,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
422
433
  testUrl?: string | undefined;
423
434
  acceptedStatusCodes?: number[] | undefined;
424
435
  serviceHost?: string | undefined;
436
+ serviceOrigin?: string | undefined;
425
437
  }, {
426
438
  template: {
427
439
  headers?: Record<string, string> | undefined;
@@ -440,6 +452,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
440
452
  testUrl?: string | undefined;
441
453
  acceptedStatusCodes?: number[] | undefined;
442
454
  serviceHost?: string | undefined;
455
+ serviceOrigin?: string | undefined;
443
456
  }>>;
444
457
  preferNew: z.ZodOptional<z.ZodBoolean>;
445
458
  }, "strip", z.ZodTypeAny, {
@@ -468,6 +481,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
468
481
  testUrl?: string | undefined;
469
482
  acceptedStatusCodes?: number[] | undefined;
470
483
  serviceHost?: string | undefined;
484
+ serviceOrigin?: string | undefined;
471
485
  } | undefined;
472
486
  preferNew?: boolean | undefined;
473
487
  }, {
@@ -496,6 +510,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
496
510
  testUrl?: string | undefined;
497
511
  acceptedStatusCodes?: number[] | undefined;
498
512
  serviceHost?: string | undefined;
513
+ serviceOrigin?: string | undefined;
499
514
  } | undefined;
500
515
  preferNew?: boolean | undefined;
501
516
  }>;
@@ -508,6 +523,26 @@ export declare const credentialFlowSchema: z.ZodObject<{
508
523
  stage: "finalize" | "generic";
509
524
  }>;
510
525
  export type InstanceAiCredentialFlow = z.infer<typeof credentialFlowSchema>;
526
+ export declare const credentialDestinationSchema: z.ZodObject<{
527
+ origin: z.ZodEffects<z.ZodString, string, string>;
528
+ nodeNames: z.ZodArray<z.ZodString, "many">;
529
+ }, "strip", z.ZodTypeAny, {
530
+ origin: string;
531
+ nodeNames: string[];
532
+ }, {
533
+ origin: string;
534
+ nodeNames: string[];
535
+ }>;
536
+ export type InstanceAiCredentialDestination = z.infer<typeof credentialDestinationSchema>;
537
+ export declare const credentialDestinationDecisionSchema: z.ZodObject<Pick<{
538
+ origin: z.ZodEffects<z.ZodString, string, string>;
539
+ nodeNames: z.ZodArray<z.ZodString, "many">;
540
+ }, "origin">, "strip", z.ZodTypeAny, {
541
+ origin: string;
542
+ }, {
543
+ origin: string;
544
+ }>;
545
+ export type InstanceAiCredentialDestinationDecision = z.infer<typeof credentialDestinationDecisionSchema>;
511
546
  export declare const workflowSetupNodeSchema: z.ZodObject<{
512
547
  node: z.ZodObject<{
513
548
  name: z.ZodString;
@@ -618,6 +653,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
618
653
  testUrl: z.ZodOptional<z.ZodString>;
619
654
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
620
655
  serviceHost: z.ZodOptional<z.ZodString>;
656
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
621
657
  }, "strip", z.ZodTypeAny, {
622
658
  template: {
623
659
  headers?: Record<string, string> | undefined;
@@ -636,6 +672,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
636
672
  testUrl?: string | undefined;
637
673
  acceptedStatusCodes?: number[] | undefined;
638
674
  serviceHost?: string | undefined;
675
+ serviceOrigin?: string | undefined;
639
676
  }, {
640
677
  template: {
641
678
  headers?: Record<string, string> | undefined;
@@ -654,6 +691,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
654
691
  testUrl?: string | undefined;
655
692
  acceptedStatusCodes?: number[] | undefined;
656
693
  serviceHost?: string | undefined;
694
+ serviceOrigin?: string | undefined;
657
695
  }>>;
658
696
  isTrigger: z.ZodBoolean;
659
697
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -776,6 +814,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
776
814
  testUrl?: string | undefined;
777
815
  acceptedStatusCodes?: number[] | undefined;
778
816
  serviceHost?: string | undefined;
817
+ serviceOrigin?: string | undefined;
779
818
  } | undefined;
780
819
  isTrigger: boolean;
781
820
  isFirstTrigger?: boolean | undefined;
@@ -850,6 +889,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
850
889
  testUrl?: string | undefined;
851
890
  acceptedStatusCodes?: number[] | undefined;
852
891
  serviceHost?: string | undefined;
892
+ serviceOrigin?: string | undefined;
853
893
  } | undefined;
854
894
  isTrigger: boolean;
855
895
  isFirstTrigger?: boolean | undefined;
@@ -1018,17 +1058,37 @@ export declare const mcpConnectServerSchema: z.ZodObject<{
1018
1058
  serverSlug: z.ZodString;
1019
1059
  title: z.ZodString;
1020
1060
  tagline: z.ZodOptional<z.ZodString>;
1021
- credentialType: z.ZodString;
1061
+ usesCredentials: z.ZodArray<z.ZodObject<{
1062
+ credentialType: z.ZodString;
1063
+ name: z.ZodString;
1064
+ value: z.ZodString;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ credentialType: string;
1067
+ name: string;
1068
+ value: string;
1069
+ }, {
1070
+ credentialType: string;
1071
+ name: string;
1072
+ value: string;
1073
+ }>, "many">;
1022
1074
  }, "strip", z.ZodTypeAny, {
1023
1075
  serverSlug: string;
1024
1076
  title: string;
1025
1077
  tagline?: string | undefined;
1026
- credentialType: string;
1078
+ usesCredentials: {
1079
+ credentialType: string;
1080
+ name: string;
1081
+ value: string;
1082
+ }[];
1027
1083
  }, {
1028
1084
  serverSlug: string;
1029
1085
  title: string;
1030
1086
  tagline?: string | undefined;
1031
- credentialType: string;
1087
+ usesCredentials: {
1088
+ credentialType: string;
1089
+ name: string;
1090
+ value: string;
1091
+ }[];
1032
1092
  }>;
1033
1093
  export type InstanceAiMcpConnectServer = z.infer<typeof mcpConnectServerSchema>;
1034
1094
  export declare const mcpConnectRequestSchema: z.ZodObject<{
@@ -1036,31 +1096,59 @@ export declare const mcpConnectRequestSchema: z.ZodObject<{
1036
1096
  serverSlug: z.ZodString;
1037
1097
  title: z.ZodString;
1038
1098
  tagline: z.ZodOptional<z.ZodString>;
1039
- credentialType: z.ZodString;
1099
+ usesCredentials: z.ZodArray<z.ZodObject<{
1100
+ credentialType: z.ZodString;
1101
+ name: z.ZodString;
1102
+ value: z.ZodString;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ credentialType: string;
1105
+ name: string;
1106
+ value: string;
1107
+ }, {
1108
+ credentialType: string;
1109
+ name: string;
1110
+ value: string;
1111
+ }>, "many">;
1040
1112
  }, "strip", z.ZodTypeAny, {
1041
1113
  serverSlug: string;
1042
1114
  title: string;
1043
1115
  tagline?: string | undefined;
1044
- credentialType: string;
1116
+ usesCredentials: {
1117
+ credentialType: string;
1118
+ name: string;
1119
+ value: string;
1120
+ }[];
1045
1121
  }, {
1046
1122
  serverSlug: string;
1047
1123
  title: string;
1048
1124
  tagline?: string | undefined;
1049
- credentialType: string;
1125
+ usesCredentials: {
1126
+ credentialType: string;
1127
+ name: string;
1128
+ value: string;
1129
+ }[];
1050
1130
  }>, "many">;
1051
1131
  }, "strip", z.ZodTypeAny, {
1052
1132
  servers: {
1053
1133
  serverSlug: string;
1054
1134
  title: string;
1055
1135
  tagline?: string | undefined;
1056
- credentialType: string;
1136
+ usesCredentials: {
1137
+ credentialType: string;
1138
+ name: string;
1139
+ value: string;
1140
+ }[];
1057
1141
  }[];
1058
1142
  }, {
1059
1143
  servers: {
1060
1144
  serverSlug: string;
1061
1145
  title: string;
1062
1146
  tagline?: string | undefined;
1063
- credentialType: string;
1147
+ usesCredentials: {
1148
+ credentialType: string;
1149
+ name: string;
1150
+ value: string;
1151
+ }[];
1064
1152
  }[];
1065
1153
  }>;
1066
1154
  export type InstanceAiMcpConnectRequest = z.infer<typeof mcpConnectRequestSchema>;
@@ -1164,6 +1252,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1164
1252
  testUrl: z.ZodOptional<z.ZodString>;
1165
1253
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1166
1254
  serviceHost: z.ZodOptional<z.ZodString>;
1255
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1167
1256
  }, "strip", z.ZodTypeAny, {
1168
1257
  template: {
1169
1258
  headers?: Record<string, string> | undefined;
@@ -1182,6 +1271,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1182
1271
  testUrl?: string | undefined;
1183
1272
  acceptedStatusCodes?: number[] | undefined;
1184
1273
  serviceHost?: string | undefined;
1274
+ serviceOrigin?: string | undefined;
1185
1275
  }, {
1186
1276
  template: {
1187
1277
  headers?: Record<string, string> | undefined;
@@ -1200,6 +1290,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1200
1290
  testUrl?: string | undefined;
1201
1291
  acceptedStatusCodes?: number[] | undefined;
1202
1292
  serviceHost?: string | undefined;
1293
+ serviceOrigin?: string | undefined;
1203
1294
  }>>;
1204
1295
  preferNew: z.ZodOptional<z.ZodBoolean>;
1205
1296
  }, "strip", z.ZodTypeAny, {
@@ -1228,6 +1319,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1228
1319
  testUrl?: string | undefined;
1229
1320
  acceptedStatusCodes?: number[] | undefined;
1230
1321
  serviceHost?: string | undefined;
1322
+ serviceOrigin?: string | undefined;
1231
1323
  } | undefined;
1232
1324
  preferNew?: boolean | undefined;
1233
1325
  }, {
@@ -1256,6 +1348,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1256
1348
  testUrl?: string | undefined;
1257
1349
  acceptedStatusCodes?: number[] | undefined;
1258
1350
  serviceHost?: string | undefined;
1351
+ serviceOrigin?: string | undefined;
1259
1352
  } | undefined;
1260
1353
  preferNew?: boolean | undefined;
1261
1354
  }>, "many">>;
@@ -1363,6 +1456,16 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1363
1456
  }, {
1364
1457
  stage: "finalize" | "generic";
1365
1458
  }>>;
1459
+ credentialDestination: z.ZodOptional<z.ZodObject<{
1460
+ origin: z.ZodEffects<z.ZodString, string, string>;
1461
+ nodeNames: z.ZodArray<z.ZodString, "many">;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ origin: string;
1464
+ nodeNames: string[];
1465
+ }, {
1466
+ origin: string;
1467
+ nodeNames: string[];
1468
+ }>>;
1366
1469
  setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1367
1470
  node: z.ZodObject<{
1368
1471
  name: z.ZodString;
@@ -1473,6 +1576,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1473
1576
  testUrl: z.ZodOptional<z.ZodString>;
1474
1577
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1475
1578
  serviceHost: z.ZodOptional<z.ZodString>;
1579
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1476
1580
  }, "strip", z.ZodTypeAny, {
1477
1581
  template: {
1478
1582
  headers?: Record<string, string> | undefined;
@@ -1491,6 +1595,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1491
1595
  testUrl?: string | undefined;
1492
1596
  acceptedStatusCodes?: number[] | undefined;
1493
1597
  serviceHost?: string | undefined;
1598
+ serviceOrigin?: string | undefined;
1494
1599
  }, {
1495
1600
  template: {
1496
1601
  headers?: Record<string, string> | undefined;
@@ -1509,6 +1614,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1509
1614
  testUrl?: string | undefined;
1510
1615
  acceptedStatusCodes?: number[] | undefined;
1511
1616
  serviceHost?: string | undefined;
1617
+ serviceOrigin?: string | undefined;
1512
1618
  }>>;
1513
1619
  isTrigger: z.ZodBoolean;
1514
1620
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -1631,6 +1737,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1631
1737
  testUrl?: string | undefined;
1632
1738
  acceptedStatusCodes?: number[] | undefined;
1633
1739
  serviceHost?: string | undefined;
1740
+ serviceOrigin?: string | undefined;
1634
1741
  } | undefined;
1635
1742
  isTrigger: boolean;
1636
1743
  isFirstTrigger?: boolean | undefined;
@@ -1705,6 +1812,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1705
1812
  testUrl?: string | undefined;
1706
1813
  acceptedStatusCodes?: number[] | undefined;
1707
1814
  serviceHost?: string | undefined;
1815
+ serviceOrigin?: string | undefined;
1708
1816
  } | undefined;
1709
1817
  isTrigger: boolean;
1710
1818
  isFirstTrigger?: boolean | undefined;
@@ -1773,31 +1881,59 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1773
1881
  serverSlug: z.ZodString;
1774
1882
  title: z.ZodString;
1775
1883
  tagline: z.ZodOptional<z.ZodString>;
1776
- credentialType: z.ZodString;
1884
+ usesCredentials: z.ZodArray<z.ZodObject<{
1885
+ credentialType: z.ZodString;
1886
+ name: z.ZodString;
1887
+ value: z.ZodString;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ credentialType: string;
1890
+ name: string;
1891
+ value: string;
1892
+ }, {
1893
+ credentialType: string;
1894
+ name: string;
1895
+ value: string;
1896
+ }>, "many">;
1777
1897
  }, "strip", z.ZodTypeAny, {
1778
1898
  serverSlug: string;
1779
1899
  title: string;
1780
1900
  tagline?: string | undefined;
1781
- credentialType: string;
1901
+ usesCredentials: {
1902
+ credentialType: string;
1903
+ name: string;
1904
+ value: string;
1905
+ }[];
1782
1906
  }, {
1783
1907
  serverSlug: string;
1784
1908
  title: string;
1785
1909
  tagline?: string | undefined;
1786
- credentialType: string;
1910
+ usesCredentials: {
1911
+ credentialType: string;
1912
+ name: string;
1913
+ value: string;
1914
+ }[];
1787
1915
  }>, "many">;
1788
1916
  }, "strip", z.ZodTypeAny, {
1789
1917
  servers: {
1790
1918
  serverSlug: string;
1791
1919
  title: string;
1792
1920
  tagline?: string | undefined;
1793
- credentialType: string;
1921
+ usesCredentials: {
1922
+ credentialType: string;
1923
+ name: string;
1924
+ value: string;
1925
+ }[];
1794
1926
  }[];
1795
1927
  }, {
1796
1928
  servers: {
1797
1929
  serverSlug: string;
1798
1930
  title: string;
1799
1931
  tagline?: string | undefined;
1800
- credentialType: string;
1932
+ usesCredentials: {
1933
+ credentialType: string;
1934
+ name: string;
1935
+ value: string;
1936
+ }[];
1801
1937
  }[];
1802
1938
  }>>;
1803
1939
  }, "strip", z.ZodTypeAny, {
@@ -1839,6 +1975,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1839
1975
  testUrl?: string | undefined;
1840
1976
  acceptedStatusCodes?: number[] | undefined;
1841
1977
  serviceHost?: string | undefined;
1978
+ serviceOrigin?: string | undefined;
1842
1979
  } | undefined;
1843
1980
  preferNew?: boolean | undefined;
1844
1981
  }[] | undefined;
@@ -1880,6 +2017,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1880
2017
  credentialFlow?: {
1881
2018
  stage: "finalize" | "generic";
1882
2019
  } | undefined;
2020
+ credentialDestination?: {
2021
+ origin: string;
2022
+ nodeNames: string[];
2023
+ } | undefined;
1883
2024
  setupRequests?: {
1884
2025
  node: {
1885
2026
  name: string;
@@ -1920,6 +2061,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1920
2061
  testUrl?: string | undefined;
1921
2062
  acceptedStatusCodes?: number[] | undefined;
1922
2063
  serviceHost?: string | undefined;
2064
+ serviceOrigin?: string | undefined;
1923
2065
  } | undefined;
1924
2066
  isTrigger: boolean;
1925
2067
  isFirstTrigger?: boolean | undefined;
@@ -1971,7 +2113,11 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1971
2113
  serverSlug: string;
1972
2114
  title: string;
1973
2115
  tagline?: string | undefined;
1974
- credentialType: string;
2116
+ usesCredentials: {
2117
+ credentialType: string;
2118
+ name: string;
2119
+ value: string;
2120
+ }[];
1975
2121
  }[];
1976
2122
  } | undefined;
1977
2123
  }, {
@@ -2013,6 +2159,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2013
2159
  testUrl?: string | undefined;
2014
2160
  acceptedStatusCodes?: number[] | undefined;
2015
2161
  serviceHost?: string | undefined;
2162
+ serviceOrigin?: string | undefined;
2016
2163
  } | undefined;
2017
2164
  preferNew?: boolean | undefined;
2018
2165
  }[] | undefined;
@@ -2054,6 +2201,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2054
2201
  credentialFlow?: {
2055
2202
  stage: "finalize" | "generic";
2056
2203
  } | undefined;
2204
+ credentialDestination?: {
2205
+ origin: string;
2206
+ nodeNames: string[];
2207
+ } | undefined;
2057
2208
  setupRequests?: {
2058
2209
  node: {
2059
2210
  name: string;
@@ -2094,6 +2245,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2094
2245
  testUrl?: string | undefined;
2095
2246
  acceptedStatusCodes?: number[] | undefined;
2096
2247
  serviceHost?: string | undefined;
2248
+ serviceOrigin?: string | undefined;
2097
2249
  } | undefined;
2098
2250
  isTrigger: boolean;
2099
2251
  isFirstTrigger?: boolean | undefined;
@@ -2145,7 +2297,11 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
2145
2297
  serverSlug: string;
2146
2298
  title: string;
2147
2299
  tagline?: string | undefined;
2148
- credentialType: string;
2300
+ usesCredentials: {
2301
+ credentialType: string;
2302
+ name: string;
2303
+ value: string;
2304
+ }[];
2149
2305
  }[];
2150
2306
  } | undefined;
2151
2307
  }>;
@@ -2923,140 +3079,558 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2923
3079
  isSupportingWorkflow?: boolean | undefined;
2924
3080
  }[] | undefined;
2925
3081
  }>;
2926
- export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
2927
- title: z.ZodString;
2928
- }, "strip", z.ZodTypeAny, {
2929
- title: string;
2930
- }, {
2931
- title: string;
2932
- }>;
2933
- export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2934
- runId: z.ZodString;
2935
- agentId: z.ZodString;
2936
- userId: z.ZodOptional<z.ZodString>;
2937
- responseId: z.ZodOptional<z.ZodString>;
2938
- ts: z.ZodOptional<z.ZodNumber>;
2939
- type: z.ZodLiteral<"run-start">;
2940
- payload: z.ZodObject<{
2941
- messageId: z.ZodString;
2942
- traceId: z.ZodOptional<z.ZodString>;
2943
- messageGroupId: z.ZodOptional<z.ZodString>;
2944
- }, "strip", z.ZodTypeAny, {
2945
- messageId: string;
2946
- traceId?: string | undefined;
2947
- messageGroupId?: string | undefined;
2948
- }, {
2949
- messageId: string;
2950
- traceId?: string | undefined;
2951
- messageGroupId?: string | undefined;
2952
- }>;
2953
- }, "strip", z.ZodTypeAny, {
2954
- runId: string;
2955
- agentId: string;
2956
- userId?: string | undefined;
2957
- responseId?: string | undefined;
2958
- ts?: number | undefined;
2959
- type: "run-start";
2960
- payload: {
2961
- messageId: string;
2962
- traceId?: string | undefined;
2963
- messageGroupId?: string | undefined;
2964
- };
2965
- }, {
2966
- runId: string;
2967
- agentId: string;
2968
- userId?: string | undefined;
2969
- responseId?: string | undefined;
2970
- ts?: number | undefined;
2971
- type: "run-start";
2972
- payload: {
2973
- messageId: string;
2974
- traceId?: string | undefined;
2975
- messageGroupId?: string | undefined;
2976
- };
2977
- }>, z.ZodObject<{
2978
- runId: z.ZodString;
2979
- agentId: z.ZodString;
2980
- userId: z.ZodOptional<z.ZodString>;
2981
- responseId: z.ZodOptional<z.ZodString>;
2982
- ts: z.ZodOptional<z.ZodNumber>;
2983
- type: z.ZodLiteral<"run-finish">;
2984
- payload: z.ZodObject<{
2985
- status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
2986
- reason: z.ZodOptional<z.ZodString>;
2987
- archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3082
+ export declare const setupItemSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3083
+ id: z.ZodString;
3084
+ kind: z.ZodLiteral<"credential">;
3085
+ credentialType: z.ZodString;
3086
+ appDisplayName: z.ZodOptional<z.ZodString>;
3087
+ nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3088
+ nodeName: z.ZodString;
2988
3089
  }, "strip", z.ZodTypeAny, {
2989
- status: "cancelled" | "completed" | "error" | "interrupted";
2990
- reason?: string | undefined;
2991
- archivedWorkflowIds?: string[] | undefined;
3090
+ nodeName: string;
2992
3091
  }, {
2993
- status: "cancelled" | "completed" | "error" | "interrupted";
2994
- reason?: string | undefined;
2995
- archivedWorkflowIds?: string[] | undefined;
2996
- }>;
2997
- }, "strip", z.ZodTypeAny, {
2998
- runId: string;
2999
- agentId: string;
3000
- userId?: string | undefined;
3001
- responseId?: string | undefined;
3002
- ts?: number | undefined;
3003
- type: "run-finish";
3004
- payload: {
3005
- status: "cancelled" | "completed" | "error" | "interrupted";
3006
- reason?: string | undefined;
3007
- archivedWorkflowIds?: string[] | undefined;
3008
- };
3009
- }, {
3010
- runId: string;
3011
- agentId: string;
3012
- userId?: string | undefined;
3013
- responseId?: string | undefined;
3014
- ts?: number | undefined;
3015
- type: "run-finish";
3016
- payload: {
3017
- status: "cancelled" | "completed" | "error" | "interrupted";
3018
- reason?: string | undefined;
3019
- archivedWorkflowIds?: string[] | undefined;
3020
- };
3021
- }>, z.ZodObject<{
3022
- runId: z.ZodString;
3023
- agentId: z.ZodString;
3024
- userId: z.ZodOptional<z.ZodString>;
3025
- responseId: z.ZodOptional<z.ZodString>;
3026
- ts: z.ZodOptional<z.ZodNumber>;
3027
- type: z.ZodLiteral<"agent-spawned">;
3028
- payload: z.ZodObject<{
3029
- parentId: z.ZodString;
3030
- role: z.ZodString;
3031
- tools: z.ZodArray<z.ZodString, "many">;
3032
- taskId: z.ZodOptional<z.ZodString>;
3033
- kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
3034
- title: z.ZodOptional<z.ZodString>;
3035
- subtitle: z.ZodOptional<z.ZodString>;
3036
- goal: z.ZodOptional<z.ZodString>;
3037
- targetResource: z.ZodOptional<z.ZodObject<{
3038
- type: z.ZodEnum<["workflow", "data-table", "credential", "other", "agent", "config-eval"]>;
3039
- id: z.ZodOptional<z.ZodString>;
3040
- name: z.ZodOptional<z.ZodString>;
3041
- projectId: z.ZodOptional<z.ZodString>;
3092
+ nodeName: string;
3093
+ }>, "many">>;
3094
+ setupHint: z.ZodOptional<z.ZodObject<{
3095
+ template: z.ZodObject<{
3096
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3097
+ qs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3098
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3042
3099
  }, "strip", z.ZodTypeAny, {
3043
- type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
3044
- id?: string | undefined;
3045
- name?: string | undefined;
3046
- projectId?: string | undefined;
3100
+ headers?: Record<string, string> | undefined;
3101
+ qs?: Record<string, string> | undefined;
3102
+ body?: Record<string, unknown> | undefined;
3047
3103
  }, {
3048
- type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
3049
- id?: string | undefined;
3050
- name?: string | undefined;
3051
- projectId?: string | undefined;
3052
- }>>;
3104
+ headers?: Record<string, string> | undefined;
3105
+ qs?: Record<string, string> | undefined;
3106
+ body?: Record<string, unknown> | undefined;
3107
+ }>;
3108
+ placeholders: z.ZodArray<z.ZodObject<{
3109
+ name: z.ZodString;
3110
+ title: z.ZodString;
3111
+ info: z.ZodOptional<z.ZodString>;
3112
+ type: z.ZodOptional<z.ZodEnum<["password", "plain"]>>;
3113
+ optional: z.ZodOptional<z.ZodBoolean>;
3114
+ }, "strip", z.ZodTypeAny, {
3115
+ name: string;
3116
+ title: string;
3117
+ info?: string | undefined;
3118
+ type?: "password" | "plain" | undefined;
3119
+ optional?: boolean | undefined;
3120
+ }, {
3121
+ name: string;
3122
+ title: string;
3123
+ info?: string | undefined;
3124
+ type?: "password" | "plain" | undefined;
3125
+ optional?: boolean | undefined;
3126
+ }>, "many">;
3127
+ docsUrl: z.ZodOptional<z.ZodString>;
3128
+ suggestedName: z.ZodOptional<z.ZodString>;
3129
+ testUrl: z.ZodOptional<z.ZodString>;
3130
+ acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3131
+ serviceHost: z.ZodOptional<z.ZodString>;
3132
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3053
3133
  }, "strip", z.ZodTypeAny, {
3054
- parentId: string;
3055
- role: string;
3056
- tools: string[];
3057
- taskId?: string | undefined;
3058
- kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
3059
- title?: string | undefined;
3134
+ template: {
3135
+ headers?: Record<string, string> | undefined;
3136
+ qs?: Record<string, string> | undefined;
3137
+ body?: Record<string, unknown> | undefined;
3138
+ };
3139
+ placeholders: {
3140
+ name: string;
3141
+ title: string;
3142
+ info?: string | undefined;
3143
+ type?: "password" | "plain" | undefined;
3144
+ optional?: boolean | undefined;
3145
+ }[];
3146
+ docsUrl?: string | undefined;
3147
+ suggestedName?: string | undefined;
3148
+ testUrl?: string | undefined;
3149
+ acceptedStatusCodes?: number[] | undefined;
3150
+ serviceHost?: string | undefined;
3151
+ serviceOrigin?: string | undefined;
3152
+ }, {
3153
+ template: {
3154
+ headers?: Record<string, string> | undefined;
3155
+ qs?: Record<string, string> | undefined;
3156
+ body?: Record<string, unknown> | undefined;
3157
+ };
3158
+ placeholders: {
3159
+ name: string;
3160
+ title: string;
3161
+ info?: string | undefined;
3162
+ type?: "password" | "plain" | undefined;
3163
+ optional?: boolean | undefined;
3164
+ }[];
3165
+ docsUrl?: string | undefined;
3166
+ suggestedName?: string | undefined;
3167
+ testUrl?: string | undefined;
3168
+ acceptedStatusCodes?: number[] | undefined;
3169
+ serviceHost?: string | undefined;
3170
+ serviceOrigin?: string | undefined;
3171
+ }>>;
3172
+ reason: z.ZodOptional<z.ZodString>;
3173
+ }, "strip", z.ZodTypeAny, {
3174
+ id: string;
3175
+ kind: "credential";
3176
+ credentialType: string;
3177
+ appDisplayName?: string | undefined;
3178
+ nodeBindings?: {
3179
+ nodeName: string;
3180
+ }[] | undefined;
3181
+ setupHint?: {
3182
+ template: {
3183
+ headers?: Record<string, string> | undefined;
3184
+ qs?: Record<string, string> | undefined;
3185
+ body?: Record<string, unknown> | undefined;
3186
+ };
3187
+ placeholders: {
3188
+ name: string;
3189
+ title: string;
3190
+ info?: string | undefined;
3191
+ type?: "password" | "plain" | undefined;
3192
+ optional?: boolean | undefined;
3193
+ }[];
3194
+ docsUrl?: string | undefined;
3195
+ suggestedName?: string | undefined;
3196
+ testUrl?: string | undefined;
3197
+ acceptedStatusCodes?: number[] | undefined;
3198
+ serviceHost?: string | undefined;
3199
+ serviceOrigin?: string | undefined;
3200
+ } | undefined;
3201
+ reason?: string | undefined;
3202
+ }, {
3203
+ id: string;
3204
+ kind: "credential";
3205
+ credentialType: string;
3206
+ appDisplayName?: string | undefined;
3207
+ nodeBindings?: {
3208
+ nodeName: string;
3209
+ }[] | undefined;
3210
+ setupHint?: {
3211
+ template: {
3212
+ headers?: Record<string, string> | undefined;
3213
+ qs?: Record<string, string> | undefined;
3214
+ body?: Record<string, unknown> | undefined;
3215
+ };
3216
+ placeholders: {
3217
+ name: string;
3218
+ title: string;
3219
+ info?: string | undefined;
3220
+ type?: "password" | "plain" | undefined;
3221
+ optional?: boolean | undefined;
3222
+ }[];
3223
+ docsUrl?: string | undefined;
3224
+ suggestedName?: string | undefined;
3225
+ testUrl?: string | undefined;
3226
+ acceptedStatusCodes?: number[] | undefined;
3227
+ serviceHost?: string | undefined;
3228
+ serviceOrigin?: string | undefined;
3229
+ } | undefined;
3230
+ reason?: string | undefined;
3231
+ }>, z.ZodObject<{
3232
+ id: z.ZodString;
3233
+ kind: z.ZodLiteral<"parameters">;
3234
+ nodeName: z.ZodString;
3235
+ parameterNames: z.ZodArray<z.ZodString, "many">;
3236
+ }, "strip", z.ZodTypeAny, {
3237
+ id: string;
3238
+ kind: "parameters";
3239
+ nodeName: string;
3240
+ parameterNames: string[];
3241
+ }, {
3242
+ id: string;
3243
+ kind: "parameters";
3244
+ nodeName: string;
3245
+ parameterNames: string[];
3246
+ }>]>;
3247
+ export type InstanceAiSetupItem = z.infer<typeof setupItemSchema>;
3248
+ export declare const setupItemsPayloadSchema: z.ZodObject<{
3249
+ workflowId: z.ZodString;
3250
+ items: z.ZodEffects<z.ZodArray<z.ZodCatch<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3251
+ id: z.ZodString;
3252
+ kind: z.ZodLiteral<"credential">;
3253
+ credentialType: z.ZodString;
3254
+ appDisplayName: z.ZodOptional<z.ZodString>;
3255
+ nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3256
+ nodeName: z.ZodString;
3257
+ }, "strip", z.ZodTypeAny, {
3258
+ nodeName: string;
3259
+ }, {
3260
+ nodeName: string;
3261
+ }>, "many">>;
3262
+ setupHint: z.ZodOptional<z.ZodObject<{
3263
+ template: z.ZodObject<{
3264
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3265
+ qs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3266
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3267
+ }, "strip", z.ZodTypeAny, {
3268
+ headers?: Record<string, string> | undefined;
3269
+ qs?: Record<string, string> | undefined;
3270
+ body?: Record<string, unknown> | undefined;
3271
+ }, {
3272
+ headers?: Record<string, string> | undefined;
3273
+ qs?: Record<string, string> | undefined;
3274
+ body?: Record<string, unknown> | undefined;
3275
+ }>;
3276
+ placeholders: z.ZodArray<z.ZodObject<{
3277
+ name: z.ZodString;
3278
+ title: z.ZodString;
3279
+ info: z.ZodOptional<z.ZodString>;
3280
+ type: z.ZodOptional<z.ZodEnum<["password", "plain"]>>;
3281
+ optional: z.ZodOptional<z.ZodBoolean>;
3282
+ }, "strip", z.ZodTypeAny, {
3283
+ name: string;
3284
+ title: string;
3285
+ info?: string | undefined;
3286
+ type?: "password" | "plain" | undefined;
3287
+ optional?: boolean | undefined;
3288
+ }, {
3289
+ name: string;
3290
+ title: string;
3291
+ info?: string | undefined;
3292
+ type?: "password" | "plain" | undefined;
3293
+ optional?: boolean | undefined;
3294
+ }>, "many">;
3295
+ docsUrl: z.ZodOptional<z.ZodString>;
3296
+ suggestedName: z.ZodOptional<z.ZodString>;
3297
+ testUrl: z.ZodOptional<z.ZodString>;
3298
+ acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3299
+ serviceHost: z.ZodOptional<z.ZodString>;
3300
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3301
+ }, "strip", z.ZodTypeAny, {
3302
+ template: {
3303
+ headers?: Record<string, string> | undefined;
3304
+ qs?: Record<string, string> | undefined;
3305
+ body?: Record<string, unknown> | undefined;
3306
+ };
3307
+ placeholders: {
3308
+ name: string;
3309
+ title: string;
3310
+ info?: string | undefined;
3311
+ type?: "password" | "plain" | undefined;
3312
+ optional?: boolean | undefined;
3313
+ }[];
3314
+ docsUrl?: string | undefined;
3315
+ suggestedName?: string | undefined;
3316
+ testUrl?: string | undefined;
3317
+ acceptedStatusCodes?: number[] | undefined;
3318
+ serviceHost?: string | undefined;
3319
+ serviceOrigin?: string | undefined;
3320
+ }, {
3321
+ template: {
3322
+ headers?: Record<string, string> | undefined;
3323
+ qs?: Record<string, string> | undefined;
3324
+ body?: Record<string, unknown> | undefined;
3325
+ };
3326
+ placeholders: {
3327
+ name: string;
3328
+ title: string;
3329
+ info?: string | undefined;
3330
+ type?: "password" | "plain" | undefined;
3331
+ optional?: boolean | undefined;
3332
+ }[];
3333
+ docsUrl?: string | undefined;
3334
+ suggestedName?: string | undefined;
3335
+ testUrl?: string | undefined;
3336
+ acceptedStatusCodes?: number[] | undefined;
3337
+ serviceHost?: string | undefined;
3338
+ serviceOrigin?: string | undefined;
3339
+ }>>;
3340
+ reason: z.ZodOptional<z.ZodString>;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ id: string;
3343
+ kind: "credential";
3344
+ credentialType: string;
3345
+ appDisplayName?: string | undefined;
3346
+ nodeBindings?: {
3347
+ nodeName: string;
3348
+ }[] | undefined;
3349
+ setupHint?: {
3350
+ template: {
3351
+ headers?: Record<string, string> | undefined;
3352
+ qs?: Record<string, string> | undefined;
3353
+ body?: Record<string, unknown> | undefined;
3354
+ };
3355
+ placeholders: {
3356
+ name: string;
3357
+ title: string;
3358
+ info?: string | undefined;
3359
+ type?: "password" | "plain" | undefined;
3360
+ optional?: boolean | undefined;
3361
+ }[];
3362
+ docsUrl?: string | undefined;
3363
+ suggestedName?: string | undefined;
3364
+ testUrl?: string | undefined;
3365
+ acceptedStatusCodes?: number[] | undefined;
3366
+ serviceHost?: string | undefined;
3367
+ serviceOrigin?: string | undefined;
3368
+ } | undefined;
3369
+ reason?: string | undefined;
3370
+ }, {
3371
+ id: string;
3372
+ kind: "credential";
3373
+ credentialType: string;
3374
+ appDisplayName?: string | undefined;
3375
+ nodeBindings?: {
3376
+ nodeName: string;
3377
+ }[] | undefined;
3378
+ setupHint?: {
3379
+ template: {
3380
+ headers?: Record<string, string> | undefined;
3381
+ qs?: Record<string, string> | undefined;
3382
+ body?: Record<string, unknown> | undefined;
3383
+ };
3384
+ placeholders: {
3385
+ name: string;
3386
+ title: string;
3387
+ info?: string | undefined;
3388
+ type?: "password" | "plain" | undefined;
3389
+ optional?: boolean | undefined;
3390
+ }[];
3391
+ docsUrl?: string | undefined;
3392
+ suggestedName?: string | undefined;
3393
+ testUrl?: string | undefined;
3394
+ acceptedStatusCodes?: number[] | undefined;
3395
+ serviceHost?: string | undefined;
3396
+ serviceOrigin?: string | undefined;
3397
+ } | undefined;
3398
+ reason?: string | undefined;
3399
+ }>, z.ZodObject<{
3400
+ id: z.ZodString;
3401
+ kind: z.ZodLiteral<"parameters">;
3402
+ nodeName: z.ZodString;
3403
+ parameterNames: z.ZodArray<z.ZodString, "many">;
3404
+ }, "strip", z.ZodTypeAny, {
3405
+ id: string;
3406
+ kind: "parameters";
3407
+ nodeName: string;
3408
+ parameterNames: string[];
3409
+ }, {
3410
+ id: string;
3411
+ kind: "parameters";
3412
+ nodeName: string;
3413
+ parameterNames: string[];
3414
+ }>]>>>, "many">, ({
3415
+ id: string;
3416
+ kind: "credential";
3417
+ credentialType: string;
3418
+ appDisplayName?: string | undefined;
3419
+ nodeBindings?: {
3420
+ nodeName: string;
3421
+ }[] | undefined;
3422
+ setupHint?: {
3423
+ template: {
3424
+ headers?: Record<string, string> | undefined;
3425
+ qs?: Record<string, string> | undefined;
3426
+ body?: Record<string, unknown> | undefined;
3427
+ };
3428
+ placeholders: {
3429
+ name: string;
3430
+ title: string;
3431
+ info?: string | undefined;
3432
+ type?: "password" | "plain" | undefined;
3433
+ optional?: boolean | undefined;
3434
+ }[];
3435
+ docsUrl?: string | undefined;
3436
+ suggestedName?: string | undefined;
3437
+ testUrl?: string | undefined;
3438
+ acceptedStatusCodes?: number[] | undefined;
3439
+ serviceHost?: string | undefined;
3440
+ serviceOrigin?: string | undefined;
3441
+ } | undefined;
3442
+ reason?: string | undefined;
3443
+ } | {
3444
+ id: string;
3445
+ kind: "parameters";
3446
+ nodeName: string;
3447
+ parameterNames: string[];
3448
+ })[], unknown[]>;
3449
+ }, "strip", z.ZodTypeAny, {
3450
+ workflowId: string;
3451
+ items: ({
3452
+ id: string;
3453
+ kind: "credential";
3454
+ credentialType: string;
3455
+ appDisplayName?: string | undefined;
3456
+ nodeBindings?: {
3457
+ nodeName: string;
3458
+ }[] | undefined;
3459
+ setupHint?: {
3460
+ template: {
3461
+ headers?: Record<string, string> | undefined;
3462
+ qs?: Record<string, string> | undefined;
3463
+ body?: Record<string, unknown> | undefined;
3464
+ };
3465
+ placeholders: {
3466
+ name: string;
3467
+ title: string;
3468
+ info?: string | undefined;
3469
+ type?: "password" | "plain" | undefined;
3470
+ optional?: boolean | undefined;
3471
+ }[];
3472
+ docsUrl?: string | undefined;
3473
+ suggestedName?: string | undefined;
3474
+ testUrl?: string | undefined;
3475
+ acceptedStatusCodes?: number[] | undefined;
3476
+ serviceHost?: string | undefined;
3477
+ serviceOrigin?: string | undefined;
3478
+ } | undefined;
3479
+ reason?: string | undefined;
3480
+ } | {
3481
+ id: string;
3482
+ kind: "parameters";
3483
+ nodeName: string;
3484
+ parameterNames: string[];
3485
+ })[];
3486
+ }, {
3487
+ workflowId: string;
3488
+ items: unknown[];
3489
+ }>;
3490
+ export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
3491
+ title: z.ZodString;
3492
+ }, "strip", z.ZodTypeAny, {
3493
+ title: string;
3494
+ }, {
3495
+ title: string;
3496
+ }>;
3497
+ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3498
+ runId: z.ZodString;
3499
+ agentId: z.ZodString;
3500
+ userId: z.ZodOptional<z.ZodString>;
3501
+ responseId: z.ZodOptional<z.ZodString>;
3502
+ ts: z.ZodOptional<z.ZodNumber>;
3503
+ type: z.ZodLiteral<"run-start">;
3504
+ payload: z.ZodObject<{
3505
+ messageId: z.ZodString;
3506
+ traceId: z.ZodOptional<z.ZodString>;
3507
+ messageGroupId: z.ZodOptional<z.ZodString>;
3508
+ langsmithRunId: z.ZodOptional<z.ZodString>;
3509
+ langsmithTraceId: z.ZodOptional<z.ZodString>;
3510
+ }, "strip", z.ZodTypeAny, {
3511
+ messageId: string;
3512
+ traceId?: string | undefined;
3513
+ messageGroupId?: string | undefined;
3514
+ langsmithRunId?: string | undefined;
3515
+ langsmithTraceId?: string | undefined;
3516
+ }, {
3517
+ messageId: string;
3518
+ traceId?: string | undefined;
3519
+ messageGroupId?: string | undefined;
3520
+ langsmithRunId?: string | undefined;
3521
+ langsmithTraceId?: string | undefined;
3522
+ }>;
3523
+ }, "strip", z.ZodTypeAny, {
3524
+ runId: string;
3525
+ agentId: string;
3526
+ userId?: string | undefined;
3527
+ responseId?: string | undefined;
3528
+ ts?: number | undefined;
3529
+ type: "run-start";
3530
+ payload: {
3531
+ messageId: string;
3532
+ traceId?: string | undefined;
3533
+ messageGroupId?: string | undefined;
3534
+ langsmithRunId?: string | undefined;
3535
+ langsmithTraceId?: string | undefined;
3536
+ };
3537
+ }, {
3538
+ runId: string;
3539
+ agentId: string;
3540
+ userId?: string | undefined;
3541
+ responseId?: string | undefined;
3542
+ ts?: number | undefined;
3543
+ type: "run-start";
3544
+ payload: {
3545
+ messageId: string;
3546
+ traceId?: string | undefined;
3547
+ messageGroupId?: string | undefined;
3548
+ langsmithRunId?: string | undefined;
3549
+ langsmithTraceId?: string | undefined;
3550
+ };
3551
+ }>, z.ZodObject<{
3552
+ runId: z.ZodString;
3553
+ agentId: z.ZodString;
3554
+ userId: z.ZodOptional<z.ZodString>;
3555
+ responseId: z.ZodOptional<z.ZodString>;
3556
+ ts: z.ZodOptional<z.ZodNumber>;
3557
+ type: z.ZodLiteral<"run-finish">;
3558
+ payload: z.ZodObject<{
3559
+ status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
3560
+ reason: z.ZodOptional<z.ZodString>;
3561
+ archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3562
+ }, "strip", z.ZodTypeAny, {
3563
+ status: "cancelled" | "completed" | "error" | "interrupted";
3564
+ reason?: string | undefined;
3565
+ archivedWorkflowIds?: string[] | undefined;
3566
+ }, {
3567
+ status: "cancelled" | "completed" | "error" | "interrupted";
3568
+ reason?: string | undefined;
3569
+ archivedWorkflowIds?: string[] | undefined;
3570
+ }>;
3571
+ }, "strip", z.ZodTypeAny, {
3572
+ runId: string;
3573
+ agentId: string;
3574
+ userId?: string | undefined;
3575
+ responseId?: string | undefined;
3576
+ ts?: number | undefined;
3577
+ type: "run-finish";
3578
+ payload: {
3579
+ status: "cancelled" | "completed" | "error" | "interrupted";
3580
+ reason?: string | undefined;
3581
+ archivedWorkflowIds?: string[] | undefined;
3582
+ };
3583
+ }, {
3584
+ runId: string;
3585
+ agentId: string;
3586
+ userId?: string | undefined;
3587
+ responseId?: string | undefined;
3588
+ ts?: number | undefined;
3589
+ type: "run-finish";
3590
+ payload: {
3591
+ status: "cancelled" | "completed" | "error" | "interrupted";
3592
+ reason?: string | undefined;
3593
+ archivedWorkflowIds?: string[] | undefined;
3594
+ };
3595
+ }>, z.ZodObject<{
3596
+ runId: z.ZodString;
3597
+ agentId: z.ZodString;
3598
+ userId: z.ZodOptional<z.ZodString>;
3599
+ responseId: z.ZodOptional<z.ZodString>;
3600
+ ts: z.ZodOptional<z.ZodNumber>;
3601
+ type: z.ZodLiteral<"agent-spawned">;
3602
+ payload: z.ZodObject<{
3603
+ parentId: z.ZodString;
3604
+ role: z.ZodString;
3605
+ tools: z.ZodArray<z.ZodString, "many">;
3606
+ taskId: z.ZodOptional<z.ZodString>;
3607
+ kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
3608
+ title: z.ZodOptional<z.ZodString>;
3609
+ subtitle: z.ZodOptional<z.ZodString>;
3610
+ goal: z.ZodOptional<z.ZodString>;
3611
+ targetResource: z.ZodOptional<z.ZodObject<{
3612
+ type: z.ZodEnum<["workflow", "data-table", "credential", "other", "agent", "config-eval"]>;
3613
+ id: z.ZodOptional<z.ZodString>;
3614
+ name: z.ZodOptional<z.ZodString>;
3615
+ projectId: z.ZodOptional<z.ZodString>;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
3618
+ id?: string | undefined;
3619
+ name?: string | undefined;
3620
+ projectId?: string | undefined;
3621
+ }, {
3622
+ type: "agent" | "config-eval" | "credential" | "data-table" | "other" | "workflow";
3623
+ id?: string | undefined;
3624
+ name?: string | undefined;
3625
+ projectId?: string | undefined;
3626
+ }>>;
3627
+ }, "strip", z.ZodTypeAny, {
3628
+ parentId: string;
3629
+ role: string;
3630
+ tools: string[];
3631
+ taskId?: string | undefined;
3632
+ kind?: "agent-builder" | "builder" | "data-table" | "eval-setup" | "planner" | undefined;
3633
+ title?: string | undefined;
3060
3634
  subtitle?: string | undefined;
3061
3635
  goal?: string | undefined;
3062
3636
  targetResource?: {
@@ -3592,6 +4166,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3592
4166
  testUrl: z.ZodOptional<z.ZodString>;
3593
4167
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3594
4168
  serviceHost: z.ZodOptional<z.ZodString>;
4169
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3595
4170
  }, "strip", z.ZodTypeAny, {
3596
4171
  template: {
3597
4172
  headers?: Record<string, string> | undefined;
@@ -3610,6 +4185,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3610
4185
  testUrl?: string | undefined;
3611
4186
  acceptedStatusCodes?: number[] | undefined;
3612
4187
  serviceHost?: string | undefined;
4188
+ serviceOrigin?: string | undefined;
3613
4189
  }, {
3614
4190
  template: {
3615
4191
  headers?: Record<string, string> | undefined;
@@ -3628,6 +4204,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3628
4204
  testUrl?: string | undefined;
3629
4205
  acceptedStatusCodes?: number[] | undefined;
3630
4206
  serviceHost?: string | undefined;
4207
+ serviceOrigin?: string | undefined;
3631
4208
  }>>;
3632
4209
  preferNew: z.ZodOptional<z.ZodBoolean>;
3633
4210
  }, "strip", z.ZodTypeAny, {
@@ -3656,6 +4233,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3656
4233
  testUrl?: string | undefined;
3657
4234
  acceptedStatusCodes?: number[] | undefined;
3658
4235
  serviceHost?: string | undefined;
4236
+ serviceOrigin?: string | undefined;
3659
4237
  } | undefined;
3660
4238
  preferNew?: boolean | undefined;
3661
4239
  }, {
@@ -3684,6 +4262,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3684
4262
  testUrl?: string | undefined;
3685
4263
  acceptedStatusCodes?: number[] | undefined;
3686
4264
  serviceHost?: string | undefined;
4265
+ serviceOrigin?: string | undefined;
3687
4266
  } | undefined;
3688
4267
  preferNew?: boolean | undefined;
3689
4268
  }>, "many">>;
@@ -3791,6 +4370,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3791
4370
  }, {
3792
4371
  stage: "finalize" | "generic";
3793
4372
  }>>;
4373
+ credentialDestination: z.ZodOptional<z.ZodObject<{
4374
+ origin: z.ZodEffects<z.ZodString, string, string>;
4375
+ nodeNames: z.ZodArray<z.ZodString, "many">;
4376
+ }, "strip", z.ZodTypeAny, {
4377
+ origin: string;
4378
+ nodeNames: string[];
4379
+ }, {
4380
+ origin: string;
4381
+ nodeNames: string[];
4382
+ }>>;
3794
4383
  setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3795
4384
  node: z.ZodObject<{
3796
4385
  name: z.ZodString;
@@ -3901,6 +4490,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3901
4490
  testUrl: z.ZodOptional<z.ZodString>;
3902
4491
  acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3903
4492
  serviceHost: z.ZodOptional<z.ZodString>;
4493
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3904
4494
  }, "strip", z.ZodTypeAny, {
3905
4495
  template: {
3906
4496
  headers?: Record<string, string> | undefined;
@@ -3919,6 +4509,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3919
4509
  testUrl?: string | undefined;
3920
4510
  acceptedStatusCodes?: number[] | undefined;
3921
4511
  serviceHost?: string | undefined;
4512
+ serviceOrigin?: string | undefined;
3922
4513
  }, {
3923
4514
  template: {
3924
4515
  headers?: Record<string, string> | undefined;
@@ -3937,6 +4528,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3937
4528
  testUrl?: string | undefined;
3938
4529
  acceptedStatusCodes?: number[] | undefined;
3939
4530
  serviceHost?: string | undefined;
4531
+ serviceOrigin?: string | undefined;
3940
4532
  }>>;
3941
4533
  isTrigger: z.ZodBoolean;
3942
4534
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -4059,6 +4651,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4059
4651
  testUrl?: string | undefined;
4060
4652
  acceptedStatusCodes?: number[] | undefined;
4061
4653
  serviceHost?: string | undefined;
4654
+ serviceOrigin?: string | undefined;
4062
4655
  } | undefined;
4063
4656
  isTrigger: boolean;
4064
4657
  isFirstTrigger?: boolean | undefined;
@@ -4133,6 +4726,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4133
4726
  testUrl?: string | undefined;
4134
4727
  acceptedStatusCodes?: number[] | undefined;
4135
4728
  serviceHost?: string | undefined;
4729
+ serviceOrigin?: string | undefined;
4136
4730
  } | undefined;
4137
4731
  isTrigger: boolean;
4138
4732
  isFirstTrigger?: boolean | undefined;
@@ -4201,31 +4795,59 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4201
4795
  serverSlug: z.ZodString;
4202
4796
  title: z.ZodString;
4203
4797
  tagline: z.ZodOptional<z.ZodString>;
4204
- credentialType: z.ZodString;
4798
+ usesCredentials: z.ZodArray<z.ZodObject<{
4799
+ credentialType: z.ZodString;
4800
+ name: z.ZodString;
4801
+ value: z.ZodString;
4802
+ }, "strip", z.ZodTypeAny, {
4803
+ credentialType: string;
4804
+ name: string;
4805
+ value: string;
4806
+ }, {
4807
+ credentialType: string;
4808
+ name: string;
4809
+ value: string;
4810
+ }>, "many">;
4205
4811
  }, "strip", z.ZodTypeAny, {
4206
4812
  serverSlug: string;
4207
4813
  title: string;
4208
4814
  tagline?: string | undefined;
4209
- credentialType: string;
4815
+ usesCredentials: {
4816
+ credentialType: string;
4817
+ name: string;
4818
+ value: string;
4819
+ }[];
4210
4820
  }, {
4211
4821
  serverSlug: string;
4212
4822
  title: string;
4213
4823
  tagline?: string | undefined;
4214
- credentialType: string;
4824
+ usesCredentials: {
4825
+ credentialType: string;
4826
+ name: string;
4827
+ value: string;
4828
+ }[];
4215
4829
  }>, "many">;
4216
4830
  }, "strip", z.ZodTypeAny, {
4217
4831
  servers: {
4218
4832
  serverSlug: string;
4219
4833
  title: string;
4220
4834
  tagline?: string | undefined;
4221
- credentialType: string;
4835
+ usesCredentials: {
4836
+ credentialType: string;
4837
+ name: string;
4838
+ value: string;
4839
+ }[];
4222
4840
  }[];
4223
4841
  }, {
4224
4842
  servers: {
4225
4843
  serverSlug: string;
4226
4844
  title: string;
4227
4845
  tagline?: string | undefined;
4228
- credentialType: string;
4846
+ usesCredentials: {
4847
+ credentialType: string;
4848
+ name: string;
4849
+ value: string;
4850
+ }[];
4229
4851
  }[];
4230
4852
  }>>;
4231
4853
  }, "strip", z.ZodTypeAny, {
@@ -4267,6 +4889,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4267
4889
  testUrl?: string | undefined;
4268
4890
  acceptedStatusCodes?: number[] | undefined;
4269
4891
  serviceHost?: string | undefined;
4892
+ serviceOrigin?: string | undefined;
4270
4893
  } | undefined;
4271
4894
  preferNew?: boolean | undefined;
4272
4895
  }[] | undefined;
@@ -4308,6 +4931,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4308
4931
  credentialFlow?: {
4309
4932
  stage: "finalize" | "generic";
4310
4933
  } | undefined;
4934
+ credentialDestination?: {
4935
+ origin: string;
4936
+ nodeNames: string[];
4937
+ } | undefined;
4311
4938
  setupRequests?: {
4312
4939
  node: {
4313
4940
  name: string;
@@ -4348,6 +4975,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4348
4975
  testUrl?: string | undefined;
4349
4976
  acceptedStatusCodes?: number[] | undefined;
4350
4977
  serviceHost?: string | undefined;
4978
+ serviceOrigin?: string | undefined;
4351
4979
  } | undefined;
4352
4980
  isTrigger: boolean;
4353
4981
  isFirstTrigger?: boolean | undefined;
@@ -4399,7 +5027,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4399
5027
  serverSlug: string;
4400
5028
  title: string;
4401
5029
  tagline?: string | undefined;
4402
- credentialType: string;
5030
+ usesCredentials: {
5031
+ credentialType: string;
5032
+ name: string;
5033
+ value: string;
5034
+ }[];
4403
5035
  }[];
4404
5036
  } | undefined;
4405
5037
  }, {
@@ -4441,6 +5073,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4441
5073
  testUrl?: string | undefined;
4442
5074
  acceptedStatusCodes?: number[] | undefined;
4443
5075
  serviceHost?: string | undefined;
5076
+ serviceOrigin?: string | undefined;
4444
5077
  } | undefined;
4445
5078
  preferNew?: boolean | undefined;
4446
5079
  }[] | undefined;
@@ -4482,6 +5115,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4482
5115
  credentialFlow?: {
4483
5116
  stage: "finalize" | "generic";
4484
5117
  } | undefined;
5118
+ credentialDestination?: {
5119
+ origin: string;
5120
+ nodeNames: string[];
5121
+ } | undefined;
4485
5122
  setupRequests?: {
4486
5123
  node: {
4487
5124
  name: string;
@@ -4522,6 +5159,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4522
5159
  testUrl?: string | undefined;
4523
5160
  acceptedStatusCodes?: number[] | undefined;
4524
5161
  serviceHost?: string | undefined;
5162
+ serviceOrigin?: string | undefined;
4525
5163
  } | undefined;
4526
5164
  isTrigger: boolean;
4527
5165
  isFirstTrigger?: boolean | undefined;
@@ -4573,7 +5211,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4573
5211
  serverSlug: string;
4574
5212
  title: string;
4575
5213
  tagline?: string | undefined;
4576
- credentialType: string;
5214
+ usesCredentials: {
5215
+ credentialType: string;
5216
+ name: string;
5217
+ value: string;
5218
+ }[];
4577
5219
  }[];
4578
5220
  } | undefined;
4579
5221
  }>;
@@ -4623,6 +5265,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4623
5265
  testUrl?: string | undefined;
4624
5266
  acceptedStatusCodes?: number[] | undefined;
4625
5267
  serviceHost?: string | undefined;
5268
+ serviceOrigin?: string | undefined;
4626
5269
  } | undefined;
4627
5270
  preferNew?: boolean | undefined;
4628
5271
  }[] | undefined;
@@ -4664,6 +5307,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4664
5307
  credentialFlow?: {
4665
5308
  stage: "finalize" | "generic";
4666
5309
  } | undefined;
5310
+ credentialDestination?: {
5311
+ origin: string;
5312
+ nodeNames: string[];
5313
+ } | undefined;
4667
5314
  setupRequests?: {
4668
5315
  node: {
4669
5316
  name: string;
@@ -4704,6 +5351,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4704
5351
  testUrl?: string | undefined;
4705
5352
  acceptedStatusCodes?: number[] | undefined;
4706
5353
  serviceHost?: string | undefined;
5354
+ serviceOrigin?: string | undefined;
4707
5355
  } | undefined;
4708
5356
  isTrigger: boolean;
4709
5357
  isFirstTrigger?: boolean | undefined;
@@ -4755,7 +5403,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4755
5403
  serverSlug: string;
4756
5404
  title: string;
4757
5405
  tagline?: string | undefined;
4758
- credentialType: string;
5406
+ usesCredentials: {
5407
+ credentialType: string;
5408
+ name: string;
5409
+ value: string;
5410
+ }[];
4759
5411
  }[];
4760
5412
  } | undefined;
4761
5413
  };
@@ -4805,6 +5457,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4805
5457
  testUrl?: string | undefined;
4806
5458
  acceptedStatusCodes?: number[] | undefined;
4807
5459
  serviceHost?: string | undefined;
5460
+ serviceOrigin?: string | undefined;
4808
5461
  } | undefined;
4809
5462
  preferNew?: boolean | undefined;
4810
5463
  }[] | undefined;
@@ -4846,6 +5499,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4846
5499
  credentialFlow?: {
4847
5500
  stage: "finalize" | "generic";
4848
5501
  } | undefined;
5502
+ credentialDestination?: {
5503
+ origin: string;
5504
+ nodeNames: string[];
5505
+ } | undefined;
4849
5506
  setupRequests?: {
4850
5507
  node: {
4851
5508
  name: string;
@@ -4886,6 +5543,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4886
5543
  testUrl?: string | undefined;
4887
5544
  acceptedStatusCodes?: number[] | undefined;
4888
5545
  serviceHost?: string | undefined;
5546
+ serviceOrigin?: string | undefined;
4889
5547
  } | undefined;
4890
5548
  isTrigger: boolean;
4891
5549
  isFirstTrigger?: boolean | undefined;
@@ -4937,7 +5595,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
4937
5595
  serverSlug: string;
4938
5596
  title: string;
4939
5597
  tagline?: string | undefined;
4940
- credentialType: string;
5598
+ usesCredentials: {
5599
+ credentialType: string;
5600
+ name: string;
5601
+ value: string;
5602
+ }[];
4941
5603
  }[];
4942
5604
  } | undefined;
4943
5605
  };
@@ -5039,14 +5701,317 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
5039
5701
  };
5040
5702
  planItems?: {
5041
5703
  id: string;
5042
- title: string;
5043
- kind: string;
5044
- spec: string;
5045
- deps: string[];
5046
- tools?: string[] | undefined;
5047
- workflowId?: string | undefined;
5048
- isSupportingWorkflow?: boolean | undefined;
5049
- }[] | undefined;
5704
+ title: string;
5705
+ kind: string;
5706
+ spec: string;
5707
+ deps: string[];
5708
+ tools?: string[] | undefined;
5709
+ workflowId?: string | undefined;
5710
+ isSupportingWorkflow?: boolean | undefined;
5711
+ }[] | undefined;
5712
+ }>;
5713
+ }, "strip", z.ZodTypeAny, {
5714
+ runId: string;
5715
+ agentId: string;
5716
+ userId?: string | undefined;
5717
+ responseId?: string | undefined;
5718
+ ts?: number | undefined;
5719
+ type: "tasks-update";
5720
+ payload: {
5721
+ tasks: {
5722
+ tasks: {
5723
+ id: string;
5724
+ description: string;
5725
+ detail?: string | undefined;
5726
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
5727
+ }[];
5728
+ };
5729
+ planItems?: {
5730
+ id: string;
5731
+ title: string;
5732
+ kind: string;
5733
+ spec: string;
5734
+ deps: string[];
5735
+ tools?: string[] | undefined;
5736
+ workflowId?: string | undefined;
5737
+ isSupportingWorkflow?: boolean | undefined;
5738
+ }[] | undefined;
5739
+ };
5740
+ }, {
5741
+ runId: string;
5742
+ agentId: string;
5743
+ userId?: string | undefined;
5744
+ responseId?: string | undefined;
5745
+ ts?: number | undefined;
5746
+ type: "tasks-update";
5747
+ payload: {
5748
+ tasks: {
5749
+ tasks: {
5750
+ id: string;
5751
+ description: string;
5752
+ detail?: string | undefined;
5753
+ status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
5754
+ }[];
5755
+ };
5756
+ planItems?: {
5757
+ id: string;
5758
+ title: string;
5759
+ kind: string;
5760
+ spec: string;
5761
+ deps: string[];
5762
+ tools?: string[] | undefined;
5763
+ workflowId?: string | undefined;
5764
+ isSupportingWorkflow?: boolean | undefined;
5765
+ }[] | undefined;
5766
+ };
5767
+ }>, z.ZodObject<{
5768
+ runId: z.ZodString;
5769
+ agentId: z.ZodString;
5770
+ userId: z.ZodOptional<z.ZodString>;
5771
+ responseId: z.ZodOptional<z.ZodString>;
5772
+ ts: z.ZodOptional<z.ZodNumber>;
5773
+ type: z.ZodLiteral<"setup-items">;
5774
+ payload: z.ZodObject<{
5775
+ workflowId: z.ZodString;
5776
+ items: z.ZodEffects<z.ZodArray<z.ZodCatch<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5777
+ id: z.ZodString;
5778
+ kind: z.ZodLiteral<"credential">;
5779
+ credentialType: z.ZodString;
5780
+ appDisplayName: z.ZodOptional<z.ZodString>;
5781
+ nodeBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
5782
+ nodeName: z.ZodString;
5783
+ }, "strip", z.ZodTypeAny, {
5784
+ nodeName: string;
5785
+ }, {
5786
+ nodeName: string;
5787
+ }>, "many">>;
5788
+ setupHint: z.ZodOptional<z.ZodObject<{
5789
+ template: z.ZodObject<{
5790
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5791
+ qs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5792
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5793
+ }, "strip", z.ZodTypeAny, {
5794
+ headers?: Record<string, string> | undefined;
5795
+ qs?: Record<string, string> | undefined;
5796
+ body?: Record<string, unknown> | undefined;
5797
+ }, {
5798
+ headers?: Record<string, string> | undefined;
5799
+ qs?: Record<string, string> | undefined;
5800
+ body?: Record<string, unknown> | undefined;
5801
+ }>;
5802
+ placeholders: z.ZodArray<z.ZodObject<{
5803
+ name: z.ZodString;
5804
+ title: z.ZodString;
5805
+ info: z.ZodOptional<z.ZodString>;
5806
+ type: z.ZodOptional<z.ZodEnum<["password", "plain"]>>;
5807
+ optional: z.ZodOptional<z.ZodBoolean>;
5808
+ }, "strip", z.ZodTypeAny, {
5809
+ name: string;
5810
+ title: string;
5811
+ info?: string | undefined;
5812
+ type?: "password" | "plain" | undefined;
5813
+ optional?: boolean | undefined;
5814
+ }, {
5815
+ name: string;
5816
+ title: string;
5817
+ info?: string | undefined;
5818
+ type?: "password" | "plain" | undefined;
5819
+ optional?: boolean | undefined;
5820
+ }>, "many">;
5821
+ docsUrl: z.ZodOptional<z.ZodString>;
5822
+ suggestedName: z.ZodOptional<z.ZodString>;
5823
+ testUrl: z.ZodOptional<z.ZodString>;
5824
+ acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5825
+ serviceHost: z.ZodOptional<z.ZodString>;
5826
+ serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5827
+ }, "strip", z.ZodTypeAny, {
5828
+ template: {
5829
+ headers?: Record<string, string> | undefined;
5830
+ qs?: Record<string, string> | undefined;
5831
+ body?: Record<string, unknown> | undefined;
5832
+ };
5833
+ placeholders: {
5834
+ name: string;
5835
+ title: string;
5836
+ info?: string | undefined;
5837
+ type?: "password" | "plain" | undefined;
5838
+ optional?: boolean | undefined;
5839
+ }[];
5840
+ docsUrl?: string | undefined;
5841
+ suggestedName?: string | undefined;
5842
+ testUrl?: string | undefined;
5843
+ acceptedStatusCodes?: number[] | undefined;
5844
+ serviceHost?: string | undefined;
5845
+ serviceOrigin?: string | undefined;
5846
+ }, {
5847
+ template: {
5848
+ headers?: Record<string, string> | undefined;
5849
+ qs?: Record<string, string> | undefined;
5850
+ body?: Record<string, unknown> | undefined;
5851
+ };
5852
+ placeholders: {
5853
+ name: string;
5854
+ title: string;
5855
+ info?: string | undefined;
5856
+ type?: "password" | "plain" | undefined;
5857
+ optional?: boolean | undefined;
5858
+ }[];
5859
+ docsUrl?: string | undefined;
5860
+ suggestedName?: string | undefined;
5861
+ testUrl?: string | undefined;
5862
+ acceptedStatusCodes?: number[] | undefined;
5863
+ serviceHost?: string | undefined;
5864
+ serviceOrigin?: string | undefined;
5865
+ }>>;
5866
+ reason: z.ZodOptional<z.ZodString>;
5867
+ }, "strip", z.ZodTypeAny, {
5868
+ id: string;
5869
+ kind: "credential";
5870
+ credentialType: string;
5871
+ appDisplayName?: string | undefined;
5872
+ nodeBindings?: {
5873
+ nodeName: string;
5874
+ }[] | undefined;
5875
+ setupHint?: {
5876
+ template: {
5877
+ headers?: Record<string, string> | undefined;
5878
+ qs?: Record<string, string> | undefined;
5879
+ body?: Record<string, unknown> | undefined;
5880
+ };
5881
+ placeholders: {
5882
+ name: string;
5883
+ title: string;
5884
+ info?: string | undefined;
5885
+ type?: "password" | "plain" | undefined;
5886
+ optional?: boolean | undefined;
5887
+ }[];
5888
+ docsUrl?: string | undefined;
5889
+ suggestedName?: string | undefined;
5890
+ testUrl?: string | undefined;
5891
+ acceptedStatusCodes?: number[] | undefined;
5892
+ serviceHost?: string | undefined;
5893
+ serviceOrigin?: string | undefined;
5894
+ } | undefined;
5895
+ reason?: string | undefined;
5896
+ }, {
5897
+ id: string;
5898
+ kind: "credential";
5899
+ credentialType: string;
5900
+ appDisplayName?: string | undefined;
5901
+ nodeBindings?: {
5902
+ nodeName: string;
5903
+ }[] | undefined;
5904
+ setupHint?: {
5905
+ template: {
5906
+ headers?: Record<string, string> | undefined;
5907
+ qs?: Record<string, string> | undefined;
5908
+ body?: Record<string, unknown> | undefined;
5909
+ };
5910
+ placeholders: {
5911
+ name: string;
5912
+ title: string;
5913
+ info?: string | undefined;
5914
+ type?: "password" | "plain" | undefined;
5915
+ optional?: boolean | undefined;
5916
+ }[];
5917
+ docsUrl?: string | undefined;
5918
+ suggestedName?: string | undefined;
5919
+ testUrl?: string | undefined;
5920
+ acceptedStatusCodes?: number[] | undefined;
5921
+ serviceHost?: string | undefined;
5922
+ serviceOrigin?: string | undefined;
5923
+ } | undefined;
5924
+ reason?: string | undefined;
5925
+ }>, z.ZodObject<{
5926
+ id: z.ZodString;
5927
+ kind: z.ZodLiteral<"parameters">;
5928
+ nodeName: z.ZodString;
5929
+ parameterNames: z.ZodArray<z.ZodString, "many">;
5930
+ }, "strip", z.ZodTypeAny, {
5931
+ id: string;
5932
+ kind: "parameters";
5933
+ nodeName: string;
5934
+ parameterNames: string[];
5935
+ }, {
5936
+ id: string;
5937
+ kind: "parameters";
5938
+ nodeName: string;
5939
+ parameterNames: string[];
5940
+ }>]>>>, "many">, ({
5941
+ id: string;
5942
+ kind: "credential";
5943
+ credentialType: string;
5944
+ appDisplayName?: string | undefined;
5945
+ nodeBindings?: {
5946
+ nodeName: string;
5947
+ }[] | undefined;
5948
+ setupHint?: {
5949
+ template: {
5950
+ headers?: Record<string, string> | undefined;
5951
+ qs?: Record<string, string> | undefined;
5952
+ body?: Record<string, unknown> | undefined;
5953
+ };
5954
+ placeholders: {
5955
+ name: string;
5956
+ title: string;
5957
+ info?: string | undefined;
5958
+ type?: "password" | "plain" | undefined;
5959
+ optional?: boolean | undefined;
5960
+ }[];
5961
+ docsUrl?: string | undefined;
5962
+ suggestedName?: string | undefined;
5963
+ testUrl?: string | undefined;
5964
+ acceptedStatusCodes?: number[] | undefined;
5965
+ serviceHost?: string | undefined;
5966
+ serviceOrigin?: string | undefined;
5967
+ } | undefined;
5968
+ reason?: string | undefined;
5969
+ } | {
5970
+ id: string;
5971
+ kind: "parameters";
5972
+ nodeName: string;
5973
+ parameterNames: string[];
5974
+ })[], unknown[]>;
5975
+ }, "strip", z.ZodTypeAny, {
5976
+ workflowId: string;
5977
+ items: ({
5978
+ id: string;
5979
+ kind: "credential";
5980
+ credentialType: string;
5981
+ appDisplayName?: string | undefined;
5982
+ nodeBindings?: {
5983
+ nodeName: string;
5984
+ }[] | undefined;
5985
+ setupHint?: {
5986
+ template: {
5987
+ headers?: Record<string, string> | undefined;
5988
+ qs?: Record<string, string> | undefined;
5989
+ body?: Record<string, unknown> | undefined;
5990
+ };
5991
+ placeholders: {
5992
+ name: string;
5993
+ title: string;
5994
+ info?: string | undefined;
5995
+ type?: "password" | "plain" | undefined;
5996
+ optional?: boolean | undefined;
5997
+ }[];
5998
+ docsUrl?: string | undefined;
5999
+ suggestedName?: string | undefined;
6000
+ testUrl?: string | undefined;
6001
+ acceptedStatusCodes?: number[] | undefined;
6002
+ serviceHost?: string | undefined;
6003
+ serviceOrigin?: string | undefined;
6004
+ } | undefined;
6005
+ reason?: string | undefined;
6006
+ } | {
6007
+ id: string;
6008
+ kind: "parameters";
6009
+ nodeName: string;
6010
+ parameterNames: string[];
6011
+ })[];
6012
+ }, {
6013
+ workflowId: string;
6014
+ items: unknown[];
5050
6015
  }>;
5051
6016
  }, "strip", z.ZodTypeAny, {
5052
6017
  runId: string;
@@ -5054,26 +6019,44 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
5054
6019
  userId?: string | undefined;
5055
6020
  responseId?: string | undefined;
5056
6021
  ts?: number | undefined;
5057
- type: "tasks-update";
6022
+ type: "setup-items";
5058
6023
  payload: {
5059
- tasks: {
5060
- tasks: {
5061
- id: string;
5062
- description: string;
5063
- detail?: string | undefined;
5064
- status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
5065
- }[];
5066
- };
5067
- planItems?: {
6024
+ workflowId: string;
6025
+ items: ({
5068
6026
  id: string;
5069
- title: string;
5070
- kind: string;
5071
- spec: string;
5072
- deps: string[];
5073
- tools?: string[] | undefined;
5074
- workflowId?: string | undefined;
5075
- isSupportingWorkflow?: boolean | undefined;
5076
- }[] | undefined;
6027
+ kind: "credential";
6028
+ credentialType: string;
6029
+ appDisplayName?: string | undefined;
6030
+ nodeBindings?: {
6031
+ nodeName: string;
6032
+ }[] | undefined;
6033
+ setupHint?: {
6034
+ template: {
6035
+ headers?: Record<string, string> | undefined;
6036
+ qs?: Record<string, string> | undefined;
6037
+ body?: Record<string, unknown> | undefined;
6038
+ };
6039
+ placeholders: {
6040
+ name: string;
6041
+ title: string;
6042
+ info?: string | undefined;
6043
+ type?: "password" | "plain" | undefined;
6044
+ optional?: boolean | undefined;
6045
+ }[];
6046
+ docsUrl?: string | undefined;
6047
+ suggestedName?: string | undefined;
6048
+ testUrl?: string | undefined;
6049
+ acceptedStatusCodes?: number[] | undefined;
6050
+ serviceHost?: string | undefined;
6051
+ serviceOrigin?: string | undefined;
6052
+ } | undefined;
6053
+ reason?: string | undefined;
6054
+ } | {
6055
+ id: string;
6056
+ kind: "parameters";
6057
+ nodeName: string;
6058
+ parameterNames: string[];
6059
+ })[];
5077
6060
  };
5078
6061
  }, {
5079
6062
  runId: string;
@@ -5081,26 +6064,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
5081
6064
  userId?: string | undefined;
5082
6065
  responseId?: string | undefined;
5083
6066
  ts?: number | undefined;
5084
- type: "tasks-update";
6067
+ type: "setup-items";
5085
6068
  payload: {
5086
- tasks: {
5087
- tasks: {
5088
- id: string;
5089
- description: string;
5090
- detail?: string | undefined;
5091
- status: "cancelled" | "done" | "failed" | "in_progress" | "todo";
5092
- }[];
5093
- };
5094
- planItems?: {
5095
- id: string;
5096
- title: string;
5097
- kind: string;
5098
- spec: string;
5099
- deps: string[];
5100
- tools?: string[] | undefined;
5101
- workflowId?: string | undefined;
5102
- isSupportingWorkflow?: boolean | undefined;
5103
- }[] | undefined;
6069
+ workflowId: string;
6070
+ items: unknown[];
5104
6071
  };
5105
6072
  }>, z.ZodObject<{
5106
6073
  runId: z.ZodString;
@@ -5322,6 +6289,9 @@ export type InstanceAiConfirmationRequestEvent = Extract<InstanceAiEvent, {
5322
6289
  export type InstanceAiTasksUpdateEvent = Extract<InstanceAiEvent, {
5323
6290
  type: 'tasks-update';
5324
6291
  }>;
6292
+ export type InstanceAiSetupItemsEvent = Extract<InstanceAiEvent, {
6293
+ type: 'setup-items';
6294
+ }>;
5325
6295
  export type InstanceAiStatusEvent = Extract<InstanceAiEvent, {
5326
6296
  type: 'status';
5327
6297
  }>;
@@ -5886,6 +6856,17 @@ export declare const instanceAiAgentPreviewHandoffContextSchema: z.ZodObject<{
5886
6856
  sessionTitle?: string | undefined;
5887
6857
  }>;
5888
6858
  export type InstanceAiAgentPreviewHandoffContext = z.infer<typeof instanceAiAgentPreviewHandoffContextSchema>;
6859
+ export declare const instanceAiSetupPanelExecuteHandoffContextSchema: z.ZodObject<{
6860
+ source: z.ZodLiteral<"setup-panel-execute">;
6861
+ workflowId: z.ZodString;
6862
+ }, "strip", z.ZodTypeAny, {
6863
+ source: "setup-panel-execute";
6864
+ workflowId: string;
6865
+ }, {
6866
+ source: "setup-panel-execute";
6867
+ workflowId: string;
6868
+ }>;
6869
+ export type InstanceAiSetupPanelExecuteHandoffContext = z.infer<typeof instanceAiSetupPanelExecuteHandoffContextSchema>;
5889
6870
  export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
5890
6871
  source: z.ZodLiteral<"credential-modal">;
5891
6872
  credential: z.ZodObject<{
@@ -5969,6 +6950,15 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
5969
6950
  agentName?: string | undefined;
5970
6951
  agentIcon?: string | undefined;
5971
6952
  sessionTitle?: string | undefined;
6953
+ }>, z.ZodObject<{
6954
+ source: z.ZodLiteral<"setup-panel-execute">;
6955
+ workflowId: z.ZodString;
6956
+ }, "strip", z.ZodTypeAny, {
6957
+ source: "setup-panel-execute";
6958
+ workflowId: string;
6959
+ }, {
6960
+ source: "setup-panel-execute";
6961
+ workflowId: string;
5972
6962
  }>]>;
5973
6963
  export type InstanceAiHandoffContext = z.infer<typeof instanceAiHandoffContextSchema>;
5974
6964
  declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
@@ -6030,6 +7020,9 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
6030
7020
  agentName?: string | undefined;
6031
7021
  agentIcon?: string | undefined;
6032
7022
  sessionTitle?: string | undefined;
7023
+ } | {
7024
+ source: "setup-panel-execute";
7025
+ workflowId: string;
6033
7026
  } | undefined;
6034
7027
  timeZone?: string | undefined;
6035
7028
  pushRef?: string | undefined;
@@ -6272,6 +7265,15 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
6272
7265
  agentName?: string | undefined;
6273
7266
  agentIcon?: string | undefined;
6274
7267
  sessionTitle?: string | undefined;
7268
+ }>, z.ZodObject<{
7269
+ source: z.ZodLiteral<"setup-panel-execute">;
7270
+ workflowId: z.ZodString;
7271
+ }, "strip", z.ZodTypeAny, {
7272
+ source: "setup-panel-execute";
7273
+ workflowId: string;
7274
+ }, {
7275
+ source: "setup-panel-execute";
7276
+ workflowId: string;
6275
7277
  }>]>>;
6276
7278
  timeZone: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
6277
7279
  pushRef: z.ZodOptional<z.ZodString>;
@@ -6306,6 +7308,17 @@ declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClas
6306
7308
  }>;
6307
7309
  export declare class InstanceAiEnsureThreadRequest extends InstanceAiEnsureThreadRequest_base {
6308
7310
  }
7311
+ declare const InstanceAiPersistPendingAgentRequest_base: import("../zod-class").ZodClass<{
7312
+ projectId: string;
7313
+ agentId: string;
7314
+ name: string;
7315
+ }, {
7316
+ projectId: z.ZodString;
7317
+ agentId: z.ZodString;
7318
+ name: z.ZodString;
7319
+ }>;
7320
+ export declare class InstanceAiPersistPendingAgentRequest extends InstanceAiPersistPendingAgentRequest_base {
7321
+ }
6309
7322
  export declare const instanceAiGatewayKeySchema: z.ZodString;
6310
7323
  declare const InstanceAiGatewayEventsQuery_base: import("../zod-class").ZodClass<{
6311
7324
  apiKey: string;
@@ -6338,35 +7351,15 @@ export declare class InstanceAiThreadMessagesQuery extends InstanceAiThreadMessa
6338
7351
  export interface InstanceAiSendMessageResponse {
6339
7352
  runId: string;
6340
7353
  }
6341
- export interface InstanceAiConfirmation {
6342
- requestId: string;
6343
- inputThreadId?: string;
6344
- severity: InstanceAiConfirmationSeverity;
6345
- message: string;
6346
- targetApproval?: InstanceAiTargetApproval;
6347
- credentialRequests?: InstanceAiCredentialRequest[];
6348
- requireUserSelection?: boolean;
6349
- projectId?: string;
6350
- inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision' | 'continue';
6351
- domainAccess?: DomainAccessMeta;
6352
- webSearch?: WebSearchMeta;
6353
- credentialFlow?: InstanceAiCredentialFlow;
6354
- setupRequests?: InstanceAiWorkflowSetupNode[];
6355
- workflowId?: string;
6356
- planItems?: PlannedTaskArg[];
6357
- questions?: Array<{
6358
- id: string;
6359
- question: string;
6360
- type: 'single' | 'multi' | 'text';
6361
- options?: string[];
6362
- }>;
6363
- introMessage?: string;
6364
- tasks?: TaskList;
6365
- resourceDecision?: GatewayConfirmationRequiredPayload;
6366
- channelConfig?: InstanceAiChannelConfig;
6367
- mcpConnectRequest?: InstanceAiMcpConnectRequest;
7354
+ export declare const INSTANCE_AI_RUN_LIMIT_REASONS: readonly ['user_run_limit', 'instance_run_limit'];
7355
+ export type InstanceAiRunLimitReason = (typeof INSTANCE_AI_RUN_LIMIT_REASONS)[number];
7356
+ export type InstanceAiRunLimitMeta = {
7357
+ reason: InstanceAiRunLimitReason;
7358
+ limit: number;
7359
+ };
7360
+ export type InstanceAiConfirmation = Omit<InstanceAiConfirmationRequestPayload, 'toolCallId' | 'toolName' | 'args'> & {
6368
7361
  expired?: boolean;
6369
- }
7362
+ };
6370
7363
  export interface InstanceAiToolCallState {
6371
7364
  toolCallId: string;
6372
7365
  toolName: string;
@@ -6416,6 +7409,7 @@ export interface InstanceAiAgentNode {
6416
7409
  timeline: InstanceAiTimelineEntry[];
6417
7410
  tasks?: TaskList;
6418
7411
  planItems?: PlannedTaskArg[];
7412
+ setupItemsByWorkflowId?: Record<string, InstanceAiSetupItem[]>;
6419
7413
  result?: string;
6420
7414
  error?: string;
6421
7415
  errorDetails?: {
@@ -7034,6 +8028,10 @@ export declare const CONFIG_EVALUATIONS_ENABLED_VARIANT = "variant";
7034
8028
  export declare const INSTANCE_AI_MCP_CONNECTIONS_FLAG = "089_instance_ai_mcp_connections";
7035
8029
  export declare const INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = "variant";
7036
8030
  export declare const CANVAS_NODE_CONTEXT_FLAG = "104_canvas_aia_node_context";
8031
+ export declare const INSTANCE_AI_CONVERSATION_HISTORY_FLAG = "109_instance_ai_conversation_history";
8032
+ export declare const INSTANCE_AI_CONVERSATION_HISTORY_ENABLED_VARIANT = "variant";
8033
+ export declare const INSTANCE_AI_NODE_USAGE_FLAG = "109_instance_ai_node_usage";
8034
+ export declare const INSTANCE_AI_FOLDER_EXPLORATION_FLAG = "110_instance_ai_folder_exploration";
7037
8035
  export interface InstanceAiEvalRewrittenCredential {
7038
8036
  nodeName: string;
7039
8037
  credentialType: string;
@@ -7184,6 +8182,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
7184
8182
  name: z.ZodString;
7185
8183
  model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
7186
8184
  credential: z.ZodOptional<z.ZodString>;
8185
+ modelDeploymentName: z.ZodOptional<z.ZodString>;
7187
8186
  instructions: z.ZodString;
7188
8187
  personalisation: z.ZodOptional<z.ZodObject<{
7189
8188
  icon: z.ZodString;
@@ -7797,18 +8796,23 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
7797
8796
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
7798
8797
  accessMode: z.ZodEnum<["private", "public"]>;
7799
8798
  allowedUsers: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
8799
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7800
8800
  }, "strict", z.ZodTypeAny, {
7801
8801
  accessMode: "private" | "public";
7802
8802
  allowedUsers: string[];
8803
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7803
8804
  }, {
7804
8805
  accessMode: "private" | "public";
7805
8806
  allowedUsers?: string[] | undefined;
8807
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7806
8808
  }>, {
7807
8809
  accessMode: "private" | "public";
7808
8810
  allowedUsers: string[];
8811
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7809
8812
  }, {
7810
8813
  accessMode: "private" | "public";
7811
8814
  allowedUsers?: string[] | undefined;
8815
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7812
8816
  }>>;
7813
8817
  }, "strip", z.ZodTypeAny, {
7814
8818
  type: "telegram";
@@ -7816,6 +8820,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
7816
8820
  settings?: {
7817
8821
  accessMode: "private" | "public";
7818
8822
  allowedUsers: string[];
8823
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7819
8824
  } | undefined;
7820
8825
  }, {
7821
8826
  type: "telegram";
@@ -7823,6 +8828,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
7823
8828
  settings?: {
7824
8829
  accessMode: "private" | "public";
7825
8830
  allowedUsers?: string[] | undefined;
8831
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7826
8832
  } | undefined;
7827
8833
  }>, z.ZodObject<{
7828
8834
  type: z.ZodLiteral<"slack">;
@@ -7830,41 +8836,74 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
7830
8836
  } & {
7831
8837
  settings: z.ZodOptional<z.ZodObject<{
7832
8838
  messagingExperience: z.ZodEnum<["assistant", "agent"]>;
8839
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7833
8840
  }, "strict", z.ZodTypeAny, {
7834
8841
  messagingExperience: "agent" | "assistant";
8842
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7835
8843
  }, {
7836
8844
  messagingExperience: "agent" | "assistant";
8845
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7837
8846
  }>>;
7838
8847
  }, "strip", z.ZodTypeAny, {
7839
8848
  type: "slack";
7840
8849
  credentialId: string;
7841
8850
  settings?: {
7842
8851
  messagingExperience: "agent" | "assistant";
8852
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7843
8853
  } | undefined;
7844
8854
  }, {
7845
8855
  type: "slack";
7846
8856
  credentialId: string;
7847
8857
  settings?: {
7848
8858
  messagingExperience: "agent" | "assistant";
8859
+ sessionIdleTimeoutMinutes?: number | null | undefined;
7849
8860
  } | undefined;
7850
8861
  }>, z.ZodObject<{
7851
8862
  type: z.ZodLiteral<"linear">;
7852
8863
  credentialId: z.ZodString;
8864
+ } & {
8865
+ settings: z.ZodOptional<z.ZodObject<{
8866
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8867
+ }, "strict", z.ZodTypeAny, {
8868
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8869
+ }, {
8870
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8871
+ }>>;
7853
8872
  }, "strip", z.ZodTypeAny, {
7854
8873
  type: "linear";
7855
8874
  credentialId: string;
8875
+ settings?: {
8876
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8877
+ } | undefined;
7856
8878
  }, {
7857
8879
  type: "linear";
7858
8880
  credentialId: string;
8881
+ settings?: {
8882
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8883
+ } | undefined;
7859
8884
  }>, z.ZodObject<{
7860
8885
  type: z.ZodLiteral<"discord">;
7861
8886
  credentialId: z.ZodString;
8887
+ } & {
8888
+ settings: z.ZodOptional<z.ZodObject<{
8889
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8890
+ }, "strict", z.ZodTypeAny, {
8891
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8892
+ }, {
8893
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8894
+ }>>;
7862
8895
  }, "strip", z.ZodTypeAny, {
7863
8896
  type: "discord";
7864
8897
  credentialId: string;
8898
+ settings?: {
8899
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8900
+ } | undefined;
7865
8901
  }, {
7866
8902
  type: "discord";
7867
8903
  credentialId: string;
8904
+ settings?: {
8905
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8906
+ } | undefined;
7868
8907
  }>]>, "many">>;
7869
8908
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
7870
8909
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -8320,6 +9359,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8320
9359
  name: string;
8321
9360
  model: string;
8322
9361
  credential?: string | undefined;
9362
+ modelDeploymentName?: string | undefined;
8323
9363
  instructions: string;
8324
9364
  personalisation?: {
8325
9365
  icon: string;
@@ -8442,19 +9482,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8442
9482
  settings?: {
8443
9483
  accessMode: "private" | "public";
8444
9484
  allowedUsers: string[];
9485
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8445
9486
  } | undefined;
8446
9487
  } | {
8447
9488
  type: "slack";
8448
9489
  credentialId: string;
8449
9490
  settings?: {
8450
9491
  messagingExperience: "agent" | "assistant";
9492
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8451
9493
  } | undefined;
8452
9494
  } | {
8453
9495
  type: "linear";
8454
9496
  credentialId: string;
9497
+ settings?: {
9498
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9499
+ } | undefined;
8455
9500
  } | {
8456
9501
  type: "discord";
8457
9502
  credentialId: string;
9503
+ settings?: {
9504
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9505
+ } | undefined;
8458
9506
  })[] | undefined;
8459
9507
  mcpServers?: {
8460
9508
  name: string;
@@ -8544,6 +9592,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8544
9592
  name: string;
8545
9593
  model: string;
8546
9594
  credential?: string | undefined;
9595
+ modelDeploymentName?: string | undefined;
8547
9596
  instructions: string;
8548
9597
  personalisation?: {
8549
9598
  icon: string;
@@ -8666,19 +9715,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8666
9715
  settings?: {
8667
9716
  accessMode: "private" | "public";
8668
9717
  allowedUsers?: string[] | undefined;
9718
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8669
9719
  } | undefined;
8670
9720
  } | {
8671
9721
  type: "slack";
8672
9722
  credentialId: string;
8673
9723
  settings?: {
8674
9724
  messagingExperience: "agent" | "assistant";
9725
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8675
9726
  } | undefined;
8676
9727
  } | {
8677
9728
  type: "linear";
8678
9729
  credentialId: string;
9730
+ settings?: {
9731
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9732
+ } | undefined;
8679
9733
  } | {
8680
9734
  type: "discord";
8681
9735
  credentialId: string;
9736
+ settings?: {
9737
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9738
+ } | undefined;
8682
9739
  })[] | undefined;
8683
9740
  mcpServers?: {
8684
9741
  name: string;
@@ -8768,6 +9825,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8768
9825
  name: string;
8769
9826
  model: string;
8770
9827
  credential?: string | undefined;
9828
+ modelDeploymentName?: string | undefined;
8771
9829
  instructions: string;
8772
9830
  personalisation?: {
8773
9831
  icon: string;
@@ -8890,19 +9948,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8890
9948
  settings?: {
8891
9949
  accessMode: "private" | "public";
8892
9950
  allowedUsers: string[];
9951
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8893
9952
  } | undefined;
8894
9953
  } | {
8895
9954
  type: "slack";
8896
9955
  credentialId: string;
8897
9956
  settings?: {
8898
9957
  messagingExperience: "agent" | "assistant";
9958
+ sessionIdleTimeoutMinutes?: number | null | undefined;
8899
9959
  } | undefined;
8900
9960
  } | {
8901
9961
  type: "linear";
8902
9962
  credentialId: string;
9963
+ settings?: {
9964
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9965
+ } | undefined;
8903
9966
  } | {
8904
9967
  type: "discord";
8905
9968
  credentialId: string;
9969
+ settings?: {
9970
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9971
+ } | undefined;
8906
9972
  })[] | undefined;
8907
9973
  mcpServers?: {
8908
9974
  name: string;
@@ -8992,6 +10058,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
8992
10058
  name: string;
8993
10059
  model: string;
8994
10060
  credential?: string | undefined;
10061
+ modelDeploymentName?: string | undefined;
8995
10062
  instructions: string;
8996
10063
  personalisation?: {
8997
10064
  icon: string;
@@ -9114,19 +10181,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9114
10181
  settings?: {
9115
10182
  accessMode: "private" | "public";
9116
10183
  allowedUsers?: string[] | undefined;
10184
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9117
10185
  } | undefined;
9118
10186
  } | {
9119
10187
  type: "slack";
9120
10188
  credentialId: string;
9121
10189
  settings?: {
9122
10190
  messagingExperience: "agent" | "assistant";
10191
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9123
10192
  } | undefined;
9124
10193
  } | {
9125
10194
  type: "linear";
9126
10195
  credentialId: string;
10196
+ settings?: {
10197
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10198
+ } | undefined;
9127
10199
  } | {
9128
10200
  type: "discord";
9129
10201
  credentialId: string;
10202
+ settings?: {
10203
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10204
+ } | undefined;
9130
10205
  })[] | undefined;
9131
10206
  mcpServers?: {
9132
10207
  name: string;
@@ -9216,9 +10291,9 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9216
10291
  skills: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9217
10292
  name: z.ZodString;
9218
10293
  description: z.ZodString;
9219
- instructions: z.ZodEffects<z.ZodString, string, string>;
10294
+ instructions: z.ZodString;
9220
10295
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9221
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
10296
+ references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
9222
10297
  path: z.ZodEffects<z.ZodString, string, string>;
9223
10298
  content: z.ZodString;
9224
10299
  }, "strict", z.ZodTypeAny, {
@@ -9227,12 +10302,6 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9227
10302
  }, {
9228
10303
  path: string;
9229
10304
  content: string;
9230
- }>, {
9231
- path: string;
9232
- content: string;
9233
- }, {
9234
- path: string;
9235
- content: string;
9236
10305
  }>, "many">, {
9237
10306
  path: string;
9238
10307
  content: string;
@@ -9280,6 +10349,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9280
10349
  name: string;
9281
10350
  model: string;
9282
10351
  credential?: string | undefined;
10352
+ modelDeploymentName?: string | undefined;
9283
10353
  instructions: string;
9284
10354
  personalisation?: {
9285
10355
  icon: string;
@@ -9402,19 +10472,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9402
10472
  settings?: {
9403
10473
  accessMode: "private" | "public";
9404
10474
  allowedUsers: string[];
10475
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9405
10476
  } | undefined;
9406
10477
  } | {
9407
10478
  type: "slack";
9408
10479
  credentialId: string;
9409
10480
  settings?: {
9410
10481
  messagingExperience: "agent" | "assistant";
10482
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9411
10483
  } | undefined;
9412
10484
  } | {
9413
10485
  type: "linear";
9414
10486
  credentialId: string;
10487
+ settings?: {
10488
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10489
+ } | undefined;
9415
10490
  } | {
9416
10491
  type: "discord";
9417
10492
  credentialId: string;
10493
+ settings?: {
10494
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10495
+ } | undefined;
9418
10496
  })[] | undefined;
9419
10497
  mcpServers?: {
9420
10498
  name: string;
@@ -9522,6 +10600,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9522
10600
  name: string;
9523
10601
  model: string;
9524
10602
  credential?: string | undefined;
10603
+ modelDeploymentName?: string | undefined;
9525
10604
  instructions: string;
9526
10605
  personalisation?: {
9527
10606
  icon: string;
@@ -9644,19 +10723,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9644
10723
  settings?: {
9645
10724
  accessMode: "private" | "public";
9646
10725
  allowedUsers?: string[] | undefined;
10726
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9647
10727
  } | undefined;
9648
10728
  } | {
9649
10729
  type: "slack";
9650
10730
  credentialId: string;
9651
10731
  settings?: {
9652
10732
  messagingExperience: "agent" | "assistant";
10733
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9653
10734
  } | undefined;
9654
10735
  } | {
9655
10736
  type: "linear";
9656
10737
  credentialId: string;
10738
+ settings?: {
10739
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10740
+ } | undefined;
9657
10741
  } | {
9658
10742
  type: "discord";
9659
10743
  credentialId: string;
10744
+ settings?: {
10745
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10746
+ } | undefined;
9660
10747
  })[] | undefined;
9661
10748
  mcpServers?: {
9662
10749
  name: string;
@@ -9764,6 +10851,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9764
10851
  name: string;
9765
10852
  model: string;
9766
10853
  credential?: string | undefined;
10854
+ modelDeploymentName?: string | undefined;
9767
10855
  instructions: string;
9768
10856
  personalisation?: {
9769
10857
  icon: string;
@@ -9886,19 +10974,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
9886
10974
  settings?: {
9887
10975
  accessMode: "private" | "public";
9888
10976
  allowedUsers: string[];
10977
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9889
10978
  } | undefined;
9890
10979
  } | {
9891
10980
  type: "slack";
9892
10981
  credentialId: string;
9893
10982
  settings?: {
9894
10983
  messagingExperience: "agent" | "assistant";
10984
+ sessionIdleTimeoutMinutes?: number | null | undefined;
9895
10985
  } | undefined;
9896
10986
  } | {
9897
10987
  type: "linear";
9898
10988
  credentialId: string;
10989
+ settings?: {
10990
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10991
+ } | undefined;
9899
10992
  } | {
9900
10993
  type: "discord";
9901
10994
  credentialId: string;
10995
+ settings?: {
10996
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10997
+ } | undefined;
9902
10998
  })[] | undefined;
9903
10999
  mcpServers?: {
9904
11000
  name: string;
@@ -10006,6 +11102,7 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10006
11102
  name: string;
10007
11103
  model: string;
10008
11104
  credential?: string | undefined;
11105
+ modelDeploymentName?: string | undefined;
10009
11106
  instructions: string;
10010
11107
  personalisation?: {
10011
11108
  icon: string;
@@ -10128,19 +11225,27 @@ export declare const instanceAiEvalSeedAgentSchema: z.ZodEffects<z.ZodObject<{
10128
11225
  settings?: {
10129
11226
  accessMode: "private" | "public";
10130
11227
  allowedUsers?: string[] | undefined;
11228
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10131
11229
  } | undefined;
10132
11230
  } | {
10133
11231
  type: "slack";
10134
11232
  credentialId: string;
10135
11233
  settings?: {
10136
11234
  messagingExperience: "agent" | "assistant";
11235
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10137
11236
  } | undefined;
10138
11237
  } | {
10139
11238
  type: "linear";
10140
11239
  credentialId: string;
11240
+ settings?: {
11241
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11242
+ } | undefined;
10141
11243
  } | {
10142
11244
  type: "discord";
10143
11245
  credentialId: string;
11246
+ settings?: {
11247
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11248
+ } | undefined;
10144
11249
  })[] | undefined;
10145
11250
  mcpServers?: {
10146
11251
  name: string;
@@ -10268,6 +11373,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
10268
11373
  name: string;
10269
11374
  model: string;
10270
11375
  credential?: string | undefined;
11376
+ modelDeploymentName?: string | undefined;
10271
11377
  instructions: string;
10272
11378
  personalisation?: {
10273
11379
  icon: string;
@@ -10390,19 +11496,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
10390
11496
  settings?: {
10391
11497
  accessMode: "private" | "public";
10392
11498
  allowedUsers: string[];
11499
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10393
11500
  } | undefined;
10394
11501
  } | {
10395
11502
  type: "slack";
10396
11503
  credentialId: string;
10397
11504
  settings?: {
10398
11505
  messagingExperience: "agent" | "assistant";
11506
+ sessionIdleTimeoutMinutes?: number | null | undefined;
10399
11507
  } | undefined;
10400
11508
  } | {
10401
11509
  type: "linear";
10402
11510
  credentialId: string;
11511
+ settings?: {
11512
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11513
+ } | undefined;
10403
11514
  } | {
10404
11515
  type: "discord";
10405
11516
  credentialId: string;
11517
+ settings?: {
11518
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11519
+ } | undefined;
10406
11520
  })[] | undefined;
10407
11521
  mcpServers?: {
10408
11522
  name: string;
@@ -10562,6 +11676,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
10562
11676
  name: z.ZodString;
10563
11677
  model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
10564
11678
  credential: z.ZodOptional<z.ZodString>;
11679
+ modelDeploymentName: z.ZodOptional<z.ZodString>;
10565
11680
  instructions: z.ZodString;
10566
11681
  personalisation: z.ZodOptional<z.ZodObject<{
10567
11682
  icon: z.ZodString;
@@ -11175,18 +12290,23 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11175
12290
  settings: z.ZodOptional<z.ZodEffects<z.ZodObject<{
11176
12291
  accessMode: z.ZodEnum<["private", "public"]>;
11177
12292
  allowedUsers: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
12293
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11178
12294
  }, "strict", z.ZodTypeAny, {
11179
12295
  accessMode: "private" | "public";
11180
12296
  allowedUsers: string[];
12297
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11181
12298
  }, {
11182
12299
  accessMode: "private" | "public";
11183
12300
  allowedUsers?: string[] | undefined;
12301
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11184
12302
  }>, {
11185
12303
  accessMode: "private" | "public";
11186
12304
  allowedUsers: string[];
12305
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11187
12306
  }, {
11188
12307
  accessMode: "private" | "public";
11189
12308
  allowedUsers?: string[] | undefined;
12309
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11190
12310
  }>>;
11191
12311
  }, "strip", z.ZodTypeAny, {
11192
12312
  type: "telegram";
@@ -11194,6 +12314,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11194
12314
  settings?: {
11195
12315
  accessMode: "private" | "public";
11196
12316
  allowedUsers: string[];
12317
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11197
12318
  } | undefined;
11198
12319
  }, {
11199
12320
  type: "telegram";
@@ -11201,6 +12322,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11201
12322
  settings?: {
11202
12323
  accessMode: "private" | "public";
11203
12324
  allowedUsers?: string[] | undefined;
12325
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11204
12326
  } | undefined;
11205
12327
  }>, z.ZodObject<{
11206
12328
  type: z.ZodLiteral<"slack">;
@@ -11208,41 +12330,74 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11208
12330
  } & {
11209
12331
  settings: z.ZodOptional<z.ZodObject<{
11210
12332
  messagingExperience: z.ZodEnum<["assistant", "agent"]>;
12333
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11211
12334
  }, "strict", z.ZodTypeAny, {
11212
12335
  messagingExperience: "agent" | "assistant";
12336
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11213
12337
  }, {
11214
12338
  messagingExperience: "agent" | "assistant";
12339
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11215
12340
  }>>;
11216
12341
  }, "strip", z.ZodTypeAny, {
11217
12342
  type: "slack";
11218
12343
  credentialId: string;
11219
12344
  settings?: {
11220
12345
  messagingExperience: "agent" | "assistant";
12346
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11221
12347
  } | undefined;
11222
12348
  }, {
11223
12349
  type: "slack";
11224
12350
  credentialId: string;
11225
12351
  settings?: {
11226
12352
  messagingExperience: "agent" | "assistant";
12353
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11227
12354
  } | undefined;
11228
12355
  }>, z.ZodObject<{
11229
12356
  type: z.ZodLiteral<"linear">;
11230
12357
  credentialId: z.ZodString;
12358
+ } & {
12359
+ settings: z.ZodOptional<z.ZodObject<{
12360
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12361
+ }, "strict", z.ZodTypeAny, {
12362
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12363
+ }, {
12364
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12365
+ }>>;
11231
12366
  }, "strip", z.ZodTypeAny, {
11232
12367
  type: "linear";
11233
12368
  credentialId: string;
12369
+ settings?: {
12370
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12371
+ } | undefined;
11234
12372
  }, {
11235
12373
  type: "linear";
11236
12374
  credentialId: string;
12375
+ settings?: {
12376
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12377
+ } | undefined;
11237
12378
  }>, z.ZodObject<{
11238
12379
  type: z.ZodLiteral<"discord">;
11239
12380
  credentialId: z.ZodString;
12381
+ } & {
12382
+ settings: z.ZodOptional<z.ZodObject<{
12383
+ sessionIdleTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12384
+ }, "strict", z.ZodTypeAny, {
12385
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12386
+ }, {
12387
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12388
+ }>>;
11240
12389
  }, "strip", z.ZodTypeAny, {
11241
12390
  type: "discord";
11242
12391
  credentialId: string;
12392
+ settings?: {
12393
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12394
+ } | undefined;
11243
12395
  }, {
11244
12396
  type: "discord";
11245
12397
  credentialId: string;
12398
+ settings?: {
12399
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12400
+ } | undefined;
11246
12401
  }>]>, "many">>;
11247
12402
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
11248
12403
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -11698,6 +12853,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11698
12853
  name: string;
11699
12854
  model: string;
11700
12855
  credential?: string | undefined;
12856
+ modelDeploymentName?: string | undefined;
11701
12857
  instructions: string;
11702
12858
  personalisation?: {
11703
12859
  icon: string;
@@ -11820,19 +12976,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11820
12976
  settings?: {
11821
12977
  accessMode: "private" | "public";
11822
12978
  allowedUsers: string[];
12979
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11823
12980
  } | undefined;
11824
12981
  } | {
11825
12982
  type: "slack";
11826
12983
  credentialId: string;
11827
12984
  settings?: {
11828
12985
  messagingExperience: "agent" | "assistant";
12986
+ sessionIdleTimeoutMinutes?: number | null | undefined;
11829
12987
  } | undefined;
11830
12988
  } | {
11831
12989
  type: "linear";
11832
12990
  credentialId: string;
12991
+ settings?: {
12992
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12993
+ } | undefined;
11833
12994
  } | {
11834
12995
  type: "discord";
11835
12996
  credentialId: string;
12997
+ settings?: {
12998
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12999
+ } | undefined;
11836
13000
  })[] | undefined;
11837
13001
  mcpServers?: {
11838
13002
  name: string;
@@ -11922,6 +13086,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
11922
13086
  name: string;
11923
13087
  model: string;
11924
13088
  credential?: string | undefined;
13089
+ modelDeploymentName?: string | undefined;
11925
13090
  instructions: string;
11926
13091
  personalisation?: {
11927
13092
  icon: string;
@@ -12044,19 +13209,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12044
13209
  settings?: {
12045
13210
  accessMode: "private" | "public";
12046
13211
  allowedUsers?: string[] | undefined;
13212
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12047
13213
  } | undefined;
12048
13214
  } | {
12049
13215
  type: "slack";
12050
13216
  credentialId: string;
12051
13217
  settings?: {
12052
13218
  messagingExperience: "agent" | "assistant";
13219
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12053
13220
  } | undefined;
12054
13221
  } | {
12055
13222
  type: "linear";
12056
13223
  credentialId: string;
13224
+ settings?: {
13225
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13226
+ } | undefined;
12057
13227
  } | {
12058
13228
  type: "discord";
12059
13229
  credentialId: string;
13230
+ settings?: {
13231
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13232
+ } | undefined;
12060
13233
  })[] | undefined;
12061
13234
  mcpServers?: {
12062
13235
  name: string;
@@ -12146,6 +13319,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12146
13319
  name: string;
12147
13320
  model: string;
12148
13321
  credential?: string | undefined;
13322
+ modelDeploymentName?: string | undefined;
12149
13323
  instructions: string;
12150
13324
  personalisation?: {
12151
13325
  icon: string;
@@ -12268,19 +13442,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12268
13442
  settings?: {
12269
13443
  accessMode: "private" | "public";
12270
13444
  allowedUsers: string[];
13445
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12271
13446
  } | undefined;
12272
13447
  } | {
12273
13448
  type: "slack";
12274
13449
  credentialId: string;
12275
13450
  settings?: {
12276
13451
  messagingExperience: "agent" | "assistant";
13452
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12277
13453
  } | undefined;
12278
13454
  } | {
12279
13455
  type: "linear";
12280
13456
  credentialId: string;
13457
+ settings?: {
13458
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13459
+ } | undefined;
12281
13460
  } | {
12282
13461
  type: "discord";
12283
13462
  credentialId: string;
13463
+ settings?: {
13464
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13465
+ } | undefined;
12284
13466
  })[] | undefined;
12285
13467
  mcpServers?: {
12286
13468
  name: string;
@@ -12370,6 +13552,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12370
13552
  name: string;
12371
13553
  model: string;
12372
13554
  credential?: string | undefined;
13555
+ modelDeploymentName?: string | undefined;
12373
13556
  instructions: string;
12374
13557
  personalisation?: {
12375
13558
  icon: string;
@@ -12492,19 +13675,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12492
13675
  settings?: {
12493
13676
  accessMode: "private" | "public";
12494
13677
  allowedUsers?: string[] | undefined;
13678
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12495
13679
  } | undefined;
12496
13680
  } | {
12497
13681
  type: "slack";
12498
13682
  credentialId: string;
12499
13683
  settings?: {
12500
13684
  messagingExperience: "agent" | "assistant";
13685
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12501
13686
  } | undefined;
12502
13687
  } | {
12503
13688
  type: "linear";
12504
13689
  credentialId: string;
13690
+ settings?: {
13691
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13692
+ } | undefined;
12505
13693
  } | {
12506
13694
  type: "discord";
12507
13695
  credentialId: string;
13696
+ settings?: {
13697
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13698
+ } | undefined;
12508
13699
  })[] | undefined;
12509
13700
  mcpServers?: {
12510
13701
  name: string;
@@ -12594,9 +13785,9 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12594
13785
  skills: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
12595
13786
  name: z.ZodString;
12596
13787
  description: z.ZodString;
12597
- instructions: z.ZodEffects<z.ZodString, string, string>;
13788
+ instructions: z.ZodString;
12598
13789
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12599
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
13790
+ references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
12600
13791
  path: z.ZodEffects<z.ZodString, string, string>;
12601
13792
  content: z.ZodString;
12602
13793
  }, "strict", z.ZodTypeAny, {
@@ -12605,12 +13796,6 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12605
13796
  }, {
12606
13797
  path: string;
12607
13798
  content: string;
12608
- }>, {
12609
- path: string;
12610
- content: string;
12611
- }, {
12612
- path: string;
12613
- content: string;
12614
13799
  }>, "many">, {
12615
13800
  path: string;
12616
13801
  content: string;
@@ -12658,6 +13843,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12658
13843
  name: string;
12659
13844
  model: string;
12660
13845
  credential?: string | undefined;
13846
+ modelDeploymentName?: string | undefined;
12661
13847
  instructions: string;
12662
13848
  personalisation?: {
12663
13849
  icon: string;
@@ -12780,19 +13966,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12780
13966
  settings?: {
12781
13967
  accessMode: "private" | "public";
12782
13968
  allowedUsers: string[];
13969
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12783
13970
  } | undefined;
12784
13971
  } | {
12785
13972
  type: "slack";
12786
13973
  credentialId: string;
12787
13974
  settings?: {
12788
13975
  messagingExperience: "agent" | "assistant";
13976
+ sessionIdleTimeoutMinutes?: number | null | undefined;
12789
13977
  } | undefined;
12790
13978
  } | {
12791
13979
  type: "linear";
12792
13980
  credentialId: string;
13981
+ settings?: {
13982
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13983
+ } | undefined;
12793
13984
  } | {
12794
13985
  type: "discord";
12795
13986
  credentialId: string;
13987
+ settings?: {
13988
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13989
+ } | undefined;
12796
13990
  })[] | undefined;
12797
13991
  mcpServers?: {
12798
13992
  name: string;
@@ -12900,6 +14094,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
12900
14094
  name: string;
12901
14095
  model: string;
12902
14096
  credential?: string | undefined;
14097
+ modelDeploymentName?: string | undefined;
12903
14098
  instructions: string;
12904
14099
  personalisation?: {
12905
14100
  icon: string;
@@ -13022,19 +14217,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13022
14217
  settings?: {
13023
14218
  accessMode: "private" | "public";
13024
14219
  allowedUsers?: string[] | undefined;
14220
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13025
14221
  } | undefined;
13026
14222
  } | {
13027
14223
  type: "slack";
13028
14224
  credentialId: string;
13029
14225
  settings?: {
13030
14226
  messagingExperience: "agent" | "assistant";
14227
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13031
14228
  } | undefined;
13032
14229
  } | {
13033
14230
  type: "linear";
13034
14231
  credentialId: string;
14232
+ settings?: {
14233
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14234
+ } | undefined;
13035
14235
  } | {
13036
14236
  type: "discord";
13037
14237
  credentialId: string;
14238
+ settings?: {
14239
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14240
+ } | undefined;
13038
14241
  })[] | undefined;
13039
14242
  mcpServers?: {
13040
14243
  name: string;
@@ -13142,6 +14345,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13142
14345
  name: string;
13143
14346
  model: string;
13144
14347
  credential?: string | undefined;
14348
+ modelDeploymentName?: string | undefined;
13145
14349
  instructions: string;
13146
14350
  personalisation?: {
13147
14351
  icon: string;
@@ -13264,19 +14468,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13264
14468
  settings?: {
13265
14469
  accessMode: "private" | "public";
13266
14470
  allowedUsers: string[];
14471
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13267
14472
  } | undefined;
13268
14473
  } | {
13269
14474
  type: "slack";
13270
14475
  credentialId: string;
13271
14476
  settings?: {
13272
14477
  messagingExperience: "agent" | "assistant";
14478
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13273
14479
  } | undefined;
13274
14480
  } | {
13275
14481
  type: "linear";
13276
14482
  credentialId: string;
14483
+ settings?: {
14484
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14485
+ } | undefined;
13277
14486
  } | {
13278
14487
  type: "discord";
13279
14488
  credentialId: string;
14489
+ settings?: {
14490
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14491
+ } | undefined;
13280
14492
  })[] | undefined;
13281
14493
  mcpServers?: {
13282
14494
  name: string;
@@ -13384,6 +14596,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13384
14596
  name: string;
13385
14597
  model: string;
13386
14598
  credential?: string | undefined;
14599
+ modelDeploymentName?: string | undefined;
13387
14600
  instructions: string;
13388
14601
  personalisation?: {
13389
14602
  icon: string;
@@ -13506,19 +14719,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13506
14719
  settings?: {
13507
14720
  accessMode: "private" | "public";
13508
14721
  allowedUsers?: string[] | undefined;
14722
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13509
14723
  } | undefined;
13510
14724
  } | {
13511
14725
  type: "slack";
13512
14726
  credentialId: string;
13513
14727
  settings?: {
13514
14728
  messagingExperience: "agent" | "assistant";
14729
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13515
14730
  } | undefined;
13516
14731
  } | {
13517
14732
  type: "linear";
13518
14733
  credentialId: string;
14734
+ settings?: {
14735
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14736
+ } | undefined;
13519
14737
  } | {
13520
14738
  type: "discord";
13521
14739
  credentialId: string;
14740
+ settings?: {
14741
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14742
+ } | undefined;
13522
14743
  })[] | undefined;
13523
14744
  mcpServers?: {
13524
14745
  name: string;
@@ -13626,6 +14847,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13626
14847
  name: string;
13627
14848
  model: string;
13628
14849
  credential?: string | undefined;
14850
+ modelDeploymentName?: string | undefined;
13629
14851
  instructions: string;
13630
14852
  personalisation?: {
13631
14853
  icon: string;
@@ -13748,19 +14970,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13748
14970
  settings?: {
13749
14971
  accessMode: "private" | "public";
13750
14972
  allowedUsers: string[];
14973
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13751
14974
  } | undefined;
13752
14975
  } | {
13753
14976
  type: "slack";
13754
14977
  credentialId: string;
13755
14978
  settings?: {
13756
14979
  messagingExperience: "agent" | "assistant";
14980
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13757
14981
  } | undefined;
13758
14982
  } | {
13759
14983
  type: "linear";
13760
14984
  credentialId: string;
14985
+ settings?: {
14986
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14987
+ } | undefined;
13761
14988
  } | {
13762
14989
  type: "discord";
13763
14990
  credentialId: string;
14991
+ settings?: {
14992
+ sessionIdleTimeoutMinutes?: number | null | undefined;
14993
+ } | undefined;
13764
14994
  })[] | undefined;
13765
14995
  mcpServers?: {
13766
14996
  name: string;
@@ -13868,6 +15098,7 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13868
15098
  name: string;
13869
15099
  model: string;
13870
15100
  credential?: string | undefined;
15101
+ modelDeploymentName?: string | undefined;
13871
15102
  instructions: string;
13872
15103
  personalisation?: {
13873
15104
  icon: string;
@@ -13990,19 +15221,27 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
13990
15221
  settings?: {
13991
15222
  accessMode: "private" | "public";
13992
15223
  allowedUsers?: string[] | undefined;
15224
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13993
15225
  } | undefined;
13994
15226
  } | {
13995
15227
  type: "slack";
13996
15228
  credentialId: string;
13997
15229
  settings?: {
13998
15230
  messagingExperience: "agent" | "assistant";
15231
+ sessionIdleTimeoutMinutes?: number | null | undefined;
13999
15232
  } | undefined;
14000
15233
  } | {
14001
15234
  type: "linear";
14002
15235
  credentialId: string;
15236
+ settings?: {
15237
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15238
+ } | undefined;
14003
15239
  } | {
14004
15240
  type: "discord";
14005
15241
  credentialId: string;
15242
+ settings?: {
15243
+ sessionIdleTimeoutMinutes?: number | null | undefined;
15244
+ } | undefined;
14006
15245
  })[] | undefined;
14007
15246
  mcpServers?: {
14008
15247
  name: string;