@openserv-labs/sdk 1.7.0 → 1.8.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.
package/dist/types.d.ts CHANGED
@@ -7,8 +7,253 @@ export type CapabilityFuncParams<Schema extends z.ZodTypeAny> = {
7
7
  export declare const agentKind: z.ZodEnum<["external", "eliza", "openserv"]>;
8
8
  export declare const taskStatusSchema: z.ZodEnum<["to-do", "in-progress", "human-assistance-required", "error", "done", "cancelled"]>;
9
9
  export type TaskStatus = z.infer<typeof taskStatusSchema>;
10
+ export declare const chatMessageArtifacts: z.ZodArray<z.ZodIntersection<z.ZodObject<{
11
+ id: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ }, {
15
+ id: string;
16
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
+ type: z.ZodLiteral<"json">;
18
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "json";
21
+ data: Record<string, unknown>;
22
+ }, {
23
+ type: "json";
24
+ data: Record<string, unknown>;
25
+ }>, z.ZodObject<{
26
+ type: z.ZodLiteral<"artifact-card">;
27
+ data: z.ZodUnknown;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: "artifact-card";
30
+ data?: unknown;
31
+ }, {
32
+ type: "artifact-card";
33
+ data?: unknown;
34
+ }>, z.ZodObject<{
35
+ type: z.ZodLiteral<"artifact-card-response">;
36
+ artifactId: z.ZodString;
37
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: "artifact-card-response";
40
+ artifactId: string;
41
+ data?: unknown;
42
+ }, {
43
+ type: "artifact-card-response";
44
+ artifactId: string;
45
+ data?: unknown;
46
+ }>]>>, "many">;
47
+ export declare const chatMessageParts: z.ZodObject<{
48
+ artifacts: z.ZodArray<z.ZodIntersection<z.ZodObject<{
49
+ id: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ }, {
53
+ id: string;
54
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
55
+ type: z.ZodLiteral<"json">;
56
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: "json";
59
+ data: Record<string, unknown>;
60
+ }, {
61
+ type: "json";
62
+ data: Record<string, unknown>;
63
+ }>, z.ZodObject<{
64
+ type: z.ZodLiteral<"artifact-card">;
65
+ data: z.ZodUnknown;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "artifact-card";
68
+ data?: unknown;
69
+ }, {
70
+ type: "artifact-card";
71
+ data?: unknown;
72
+ }>, z.ZodObject<{
73
+ type: z.ZodLiteral<"artifact-card-response">;
74
+ artifactId: z.ZodString;
75
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "artifact-card-response";
78
+ artifactId: string;
79
+ data?: unknown;
80
+ }, {
81
+ type: "artifact-card-response";
82
+ artifactId: string;
83
+ data?: unknown;
84
+ }>]>>, "many">;
85
+ }, "strip", z.ZodTypeAny, {
86
+ artifacts: ({
87
+ id: string;
88
+ } & ({
89
+ type: "json";
90
+ data: Record<string, unknown>;
91
+ } | {
92
+ type: "artifact-card";
93
+ data?: unknown;
94
+ } | {
95
+ type: "artifact-card-response";
96
+ artifactId: string;
97
+ data?: unknown;
98
+ }))[];
99
+ }, {
100
+ artifacts: ({
101
+ id: string;
102
+ } & ({
103
+ type: "json";
104
+ data: Record<string, unknown>;
105
+ } | {
106
+ type: "artifact-card";
107
+ data?: unknown;
108
+ } | {
109
+ type: "artifact-card-response";
110
+ artifactId: string;
111
+ data?: unknown;
112
+ }))[];
113
+ }>;
10
114
  export declare const doTaskActionSchema: z.ZodObject<{
11
115
  type: z.ZodLiteral<"do-task">;
116
+ workspaceUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ taskUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ explicitInput: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
119
+ triggerEvents: z.ZodArray<z.ZodObject<{
120
+ name: z.ZodString;
121
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
124
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ payload: z.ZodArray<z.ZodObject<{
126
+ event: z.ZodUnknown;
127
+ summary: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ summary: string;
130
+ event?: unknown;
131
+ }, {
132
+ summary: string;
133
+ event?: unknown;
134
+ }>, "many">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ name: string;
137
+ integrationType: "custom" | "nango" | "internal";
138
+ payload: {
139
+ summary: string;
140
+ event?: unknown;
141
+ }[];
142
+ description?: string | null | undefined;
143
+ integrationName?: string | null | undefined;
144
+ trigger_name?: string | null | undefined;
145
+ }, {
146
+ name: string;
147
+ integrationType: "custom" | "nango" | "internal";
148
+ payload: {
149
+ summary: string;
150
+ event?: unknown;
151
+ }[];
152
+ description?: string | null | undefined;
153
+ integrationName?: string | null | undefined;
154
+ trigger_name?: string | null | undefined;
155
+ }>, "many">;
156
+ sessionHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ tasks: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodNumber;
159
+ description: z.ZodString;
160
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ expectedOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ description: string;
166
+ id: number;
167
+ body?: string | null | undefined;
168
+ expectedOutput?: string | null | undefined;
169
+ input?: string | null | undefined;
170
+ output?: string | null | undefined;
171
+ }, {
172
+ description: string;
173
+ id: number;
174
+ body?: string | null | undefined;
175
+ expectedOutput?: string | null | undefined;
176
+ input?: string | null | undefined;
177
+ output?: string | null | undefined;
178
+ }>, "many">;
179
+ triggerEvents: z.ZodArray<z.ZodObject<{
180
+ name: z.ZodString;
181
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
184
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ payload: z.ZodArray<z.ZodObject<{
186
+ event: z.ZodUnknown;
187
+ summary: z.ZodString;
188
+ }, "strip", z.ZodTypeAny, {
189
+ summary: string;
190
+ event?: unknown;
191
+ }, {
192
+ summary: string;
193
+ event?: unknown;
194
+ }>, "many">;
195
+ }, "strip", z.ZodTypeAny, {
196
+ name: string;
197
+ integrationType: "custom" | "nango" | "internal";
198
+ payload: {
199
+ summary: string;
200
+ event?: unknown;
201
+ }[];
202
+ description?: string | null | undefined;
203
+ integrationName?: string | null | undefined;
204
+ trigger_name?: string | null | undefined;
205
+ }, {
206
+ name: string;
207
+ integrationType: "custom" | "nango" | "internal";
208
+ payload: {
209
+ summary: string;
210
+ event?: unknown;
211
+ }[];
212
+ description?: string | null | undefined;
213
+ integrationName?: string | null | undefined;
214
+ trigger_name?: string | null | undefined;
215
+ }>, "many">;
216
+ }, "strip", z.ZodTypeAny, {
217
+ triggerEvents: {
218
+ name: string;
219
+ integrationType: "custom" | "nango" | "internal";
220
+ payload: {
221
+ summary: string;
222
+ event?: unknown;
223
+ }[];
224
+ description?: string | null | undefined;
225
+ integrationName?: string | null | undefined;
226
+ trigger_name?: string | null | undefined;
227
+ }[];
228
+ tasks: {
229
+ description: string;
230
+ id: number;
231
+ body?: string | null | undefined;
232
+ expectedOutput?: string | null | undefined;
233
+ input?: string | null | undefined;
234
+ output?: string | null | undefined;
235
+ }[];
236
+ }, {
237
+ triggerEvents: {
238
+ name: string;
239
+ integrationType: "custom" | "nango" | "internal";
240
+ payload: {
241
+ summary: string;
242
+ event?: unknown;
243
+ }[];
244
+ description?: string | null | undefined;
245
+ integrationName?: string | null | undefined;
246
+ trigger_name?: string | null | undefined;
247
+ }[];
248
+ tasks: {
249
+ description: string;
250
+ id: number;
251
+ body?: string | null | undefined;
252
+ expectedOutput?: string | null | undefined;
253
+ input?: string | null | undefined;
254
+ output?: string | null | undefined;
255
+ }[];
256
+ }>, "many">>;
12
257
  me: z.ZodIntersection<z.ZodObject<{
13
258
  id: z.ZodNumber;
14
259
  name: z.ZodString;
@@ -38,7 +283,7 @@ export declare const doTaskActionSchema: z.ZodObject<{
38
283
  systemPrompt: string;
39
284
  }>]>>;
40
285
  task: z.ZodObject<{
41
- id: z.ZodNumber;
286
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
42
287
  description: z.ZodString;
43
288
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
289
  expectedOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -238,7 +483,7 @@ export declare const doTaskActionSchema: z.ZodObject<{
238
483
  }>>, "many">;
239
484
  }, "strip", z.ZodTypeAny, {
240
485
  description: string;
241
- id: number;
486
+ id: string | number;
242
487
  dependencies: {
243
488
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
244
489
  description: string;
@@ -290,7 +535,7 @@ export declare const doTaskActionSchema: z.ZodObject<{
290
535
  input?: string | null | undefined;
291
536
  }, {
292
537
  description: string;
293
- id: number;
538
+ id: string | number;
294
539
  dependencies: {
295
540
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
296
541
  description: string;
@@ -341,86 +586,227 @@ export declare const doTaskActionSchema: z.ZodObject<{
341
586
  expectedOutput?: string | null | undefined;
342
587
  input?: string | null | undefined;
343
588
  }>;
589
+ triggerEvent: z.ZodOptional<z.ZodObject<{
590
+ name: z.ZodString;
591
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
594
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ payload: z.ZodArray<z.ZodObject<{
596
+ event: z.ZodUnknown;
597
+ summary: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ summary: string;
600
+ event?: unknown;
601
+ }, {
602
+ summary: string;
603
+ event?: unknown;
604
+ }>, "many">;
605
+ }, "strip", z.ZodTypeAny, {
606
+ name: string;
607
+ integrationType: "custom" | "nango" | "internal";
608
+ payload: {
609
+ summary: string;
610
+ event?: unknown;
611
+ }[];
612
+ description?: string | null | undefined;
613
+ integrationName?: string | null | undefined;
614
+ trigger_name?: string | null | undefined;
615
+ }, {
616
+ name: string;
617
+ integrationType: "custom" | "nango" | "internal";
618
+ payload: {
619
+ summary: string;
620
+ event?: unknown;
621
+ }[];
622
+ description?: string | null | undefined;
623
+ integrationName?: string | null | undefined;
624
+ trigger_name?: string | null | undefined;
625
+ }>>;
344
626
  workspace: z.ZodObject<{
345
- id: z.ZodNumber;
627
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
346
628
  goal: z.ZodString;
347
629
  bucket_folder: z.ZodString;
630
+ latest_workspace_execution_status: z.ZodOptional<z.ZodEnum<["error", "active", "deleted", "idle", "running", "paused", "completed", "timed-out"]>>;
348
631
  agents: z.ZodArray<z.ZodObject<{
349
632
  id: z.ZodNumber;
350
633
  name: z.ZodString;
351
634
  capabilities_description: z.ZodString;
635
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
636
+ id: z.ZodString;
637
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
638
+ identifier: z.ZodString;
639
+ name: z.ZodString;
640
+ description: z.ZodString;
641
+ scopes: z.ZodArray<z.ZodString, "many">;
642
+ connectionName: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ name: string;
645
+ type: "custom" | "nango" | "internal";
646
+ description: string;
647
+ id: string;
648
+ identifier: string;
649
+ scopes: string[];
650
+ connectionName: string;
651
+ }, {
652
+ name: string;
653
+ type: "custom" | "nango" | "internal";
654
+ description: string;
655
+ id: string;
656
+ identifier: string;
657
+ scopes: string[];
658
+ connectionName: string;
659
+ }>, "many">>;
352
660
  }, "strip", z.ZodTypeAny, {
353
661
  name: string;
354
662
  id: number;
355
663
  capabilities_description: string;
664
+ integrations?: {
665
+ name: string;
666
+ type: "custom" | "nango" | "internal";
667
+ description: string;
668
+ id: string;
669
+ identifier: string;
670
+ scopes: string[];
671
+ connectionName: string;
672
+ }[] | undefined;
356
673
  }, {
357
674
  name: string;
358
675
  id: number;
359
676
  capabilities_description: string;
677
+ integrations?: {
678
+ name: string;
679
+ type: "custom" | "nango" | "internal";
680
+ description: string;
681
+ id: string;
682
+ identifier: string;
683
+ scopes: string[];
684
+ connectionName: string;
685
+ }[] | undefined;
360
686
  }>, "many">;
361
687
  }, "strip", z.ZodTypeAny, {
362
- id: number;
688
+ id: string | number;
363
689
  goal: string;
364
690
  bucket_folder: string;
365
691
  agents: {
366
692
  name: string;
367
693
  id: number;
368
694
  capabilities_description: string;
695
+ integrations?: {
696
+ name: string;
697
+ type: "custom" | "nango" | "internal";
698
+ description: string;
699
+ id: string;
700
+ identifier: string;
701
+ scopes: string[];
702
+ connectionName: string;
703
+ }[] | undefined;
369
704
  }[];
705
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
370
706
  }, {
371
- id: number;
707
+ id: string | number;
372
708
  goal: string;
373
709
  bucket_folder: string;
374
710
  agents: {
375
711
  name: string;
376
712
  id: number;
377
713
  capabilities_description: string;
714
+ integrations?: {
715
+ name: string;
716
+ type: "custom" | "nango" | "internal";
717
+ description: string;
718
+ id: string;
719
+ identifier: string;
720
+ scopes: string[];
721
+ connectionName: string;
722
+ }[] | undefined;
378
723
  }[];
724
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
379
725
  }>;
380
726
  workspaceExecutionId: z.ZodOptional<z.ZodNumber>;
381
727
  integrations: z.ZodArray<z.ZodObject<{
382
- id: z.ZodNumber;
383
- connection_id: z.ZodString;
384
- provider_config_key: z.ZodString;
385
- provider: z.ZodString;
386
- created: z.ZodString;
387
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
388
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
389
- openAPI: z.ZodObject<{
390
- title: z.ZodString;
391
- description: z.ZodString;
728
+ id: z.ZodString;
729
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
730
+ identifier: z.ZodString;
731
+ name: z.ZodString;
732
+ description: z.ZodString;
733
+ scopes: z.ZodArray<z.ZodString, "many">;
734
+ connectionName: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ name: string;
737
+ type: "custom" | "nango" | "internal";
738
+ description: string;
739
+ id: string;
740
+ identifier: string;
741
+ scopes: string[];
742
+ connectionName: string;
743
+ }, {
744
+ name: string;
745
+ type: "custom" | "nango" | "internal";
746
+ description: string;
747
+ id: string;
748
+ identifier: string;
749
+ scopes: string[];
750
+ connectionName: string;
751
+ }>, "many">;
752
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
753
+ id: z.ZodString;
754
+ name: z.ZodString;
755
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ url: z.ZodString;
757
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
758
+ transport: z.ZodEnum<["http", "sse"]>;
759
+ tools: z.ZodArray<z.ZodObject<{
760
+ name: z.ZodString;
761
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
+ inputSchema: z.ZodAny;
392
763
  }, "strip", z.ZodTypeAny, {
393
- description: string;
394
- title: string;
764
+ name: string;
765
+ description?: string | null | undefined;
766
+ inputSchema?: any;
395
767
  }, {
396
- description: string;
397
- title: string;
398
- }>;
768
+ name: string;
769
+ description?: string | null | undefined;
770
+ inputSchema?: any;
771
+ }>, "many">;
772
+ }, "strip", z.ZodTypeAny, {
773
+ name: string;
774
+ transport: "http" | "sse";
775
+ id: string;
776
+ url: string;
777
+ tools: {
778
+ name: string;
779
+ description?: string | null | undefined;
780
+ inputSchema?: any;
781
+ }[];
782
+ description?: string | null | undefined;
783
+ headers?: Record<string, string> | null | undefined;
784
+ }, {
785
+ name: string;
786
+ transport: "http" | "sse";
787
+ id: string;
788
+ url: string;
789
+ tools: {
790
+ name: string;
791
+ description?: string | null | undefined;
792
+ inputSchema?: any;
793
+ }[];
794
+ description?: string | null | undefined;
795
+ headers?: Record<string, string> | null | undefined;
796
+ }>, "many">>;
797
+ agentKnowledgeFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
798
+ id: z.ZodNumber;
799
+ path: z.ZodString;
800
+ state: z.ZodEnum<["pending", "processing", "processed", "error", "skipped"]>;
399
801
  }, "strip", z.ZodTypeAny, {
802
+ path: string;
400
803
  id: number;
401
- connection_id: string;
402
- provider_config_key: string;
403
- provider: string;
404
- created: string;
405
- openAPI: {
406
- description: string;
407
- title: string;
408
- };
409
- metadata?: Record<string, unknown> | null | undefined;
410
- scopes?: string[] | undefined;
804
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
411
805
  }, {
806
+ path: string;
412
807
  id: number;
413
- connection_id: string;
414
- provider_config_key: string;
415
- provider: string;
416
- created: string;
417
- openAPI: {
418
- description: string;
419
- title: string;
420
- };
421
- metadata?: Record<string, unknown> | null | undefined;
422
- scopes?: string[] | undefined;
423
- }>, "many">;
808
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
809
+ }>, "many">>;
424
810
  memories: z.ZodArray<z.ZodObject<{
425
811
  id: z.ZodNumber;
426
812
  memory: z.ZodString;
@@ -436,6 +822,17 @@ export declare const doTaskActionSchema: z.ZodObject<{
436
822
  }>, "many">;
437
823
  }, "strip", z.ZodTypeAny, {
438
824
  type: "do-task";
825
+ triggerEvents: {
826
+ name: string;
827
+ integrationType: "custom" | "nango" | "internal";
828
+ payload: {
829
+ summary: string;
830
+ event?: unknown;
831
+ }[];
832
+ description?: string | null | undefined;
833
+ integrationName?: string | null | undefined;
834
+ trigger_name?: string | null | undefined;
835
+ }[];
439
836
  me: {
440
837
  name: string;
441
838
  id: number;
@@ -448,7 +845,7 @@ export declare const doTaskActionSchema: z.ZodObject<{
448
845
  });
449
846
  task: {
450
847
  description: string;
451
- id: number;
848
+ id: string | number;
452
849
  dependencies: {
453
850
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
454
851
  description: string;
@@ -500,36 +897,106 @@ export declare const doTaskActionSchema: z.ZodObject<{
500
897
  input?: string | null | undefined;
501
898
  };
502
899
  workspace: {
503
- id: number;
900
+ id: string | number;
504
901
  goal: string;
505
902
  bucket_folder: string;
506
903
  agents: {
507
904
  name: string;
508
905
  id: number;
509
906
  capabilities_description: string;
907
+ integrations?: {
908
+ name: string;
909
+ type: "custom" | "nango" | "internal";
910
+ description: string;
911
+ id: string;
912
+ identifier: string;
913
+ scopes: string[];
914
+ connectionName: string;
915
+ }[] | undefined;
510
916
  }[];
917
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
511
918
  };
512
919
  integrations: {
513
- id: number;
514
- connection_id: string;
515
- provider_config_key: string;
516
- provider: string;
517
- created: string;
518
- openAPI: {
519
- description: string;
520
- title: string;
521
- };
522
- metadata?: Record<string, unknown> | null | undefined;
523
- scopes?: string[] | undefined;
920
+ name: string;
921
+ type: "custom" | "nango" | "internal";
922
+ description: string;
923
+ id: string;
924
+ identifier: string;
925
+ scopes: string[];
926
+ connectionName: string;
524
927
  }[];
525
928
  memories: {
526
929
  id: number;
527
930
  memory: string;
528
931
  createdAt: Date;
529
932
  }[];
933
+ workspaceUpdateToken?: string | null | undefined;
934
+ taskUpdateToken?: string | null | undefined;
935
+ explicitInput?: unknown;
936
+ sessionHistory?: {
937
+ triggerEvents: {
938
+ name: string;
939
+ integrationType: "custom" | "nango" | "internal";
940
+ payload: {
941
+ summary: string;
942
+ event?: unknown;
943
+ }[];
944
+ description?: string | null | undefined;
945
+ integrationName?: string | null | undefined;
946
+ trigger_name?: string | null | undefined;
947
+ }[];
948
+ tasks: {
949
+ description: string;
950
+ id: number;
951
+ body?: string | null | undefined;
952
+ expectedOutput?: string | null | undefined;
953
+ input?: string | null | undefined;
954
+ output?: string | null | undefined;
955
+ }[];
956
+ }[] | undefined;
957
+ triggerEvent?: {
958
+ name: string;
959
+ integrationType: "custom" | "nango" | "internal";
960
+ payload: {
961
+ summary: string;
962
+ event?: unknown;
963
+ }[];
964
+ description?: string | null | undefined;
965
+ integrationName?: string | null | undefined;
966
+ trigger_name?: string | null | undefined;
967
+ } | undefined;
530
968
  workspaceExecutionId?: number | undefined;
969
+ mcpServers?: {
970
+ name: string;
971
+ transport: "http" | "sse";
972
+ id: string;
973
+ url: string;
974
+ tools: {
975
+ name: string;
976
+ description?: string | null | undefined;
977
+ inputSchema?: any;
978
+ }[];
979
+ description?: string | null | undefined;
980
+ headers?: Record<string, string> | null | undefined;
981
+ }[] | undefined;
982
+ agentKnowledgeFiles?: {
983
+ path: string;
984
+ id: number;
985
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
986
+ }[] | undefined;
531
987
  }, {
532
988
  type: "do-task";
989
+ triggerEvents: {
990
+ name: string;
991
+ integrationType: "custom" | "nango" | "internal";
992
+ payload: {
993
+ summary: string;
994
+ event?: unknown;
995
+ }[];
996
+ description?: string | null | undefined;
997
+ integrationName?: string | null | undefined;
998
+ trigger_name?: string | null | undefined;
999
+ }[];
533
1000
  me: {
534
1001
  name: string;
535
1002
  id: number;
@@ -542,7 +1009,7 @@ export declare const doTaskActionSchema: z.ZodObject<{
542
1009
  });
543
1010
  task: {
544
1011
  description: string;
545
- id: number;
1012
+ id: string | number;
546
1013
  dependencies: {
547
1014
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
548
1015
  description: string;
@@ -594,38 +1061,97 @@ export declare const doTaskActionSchema: z.ZodObject<{
594
1061
  input?: string | null | undefined;
595
1062
  };
596
1063
  workspace: {
597
- id: number;
1064
+ id: string | number;
598
1065
  goal: string;
599
1066
  bucket_folder: string;
600
1067
  agents: {
601
1068
  name: string;
602
1069
  id: number;
603
1070
  capabilities_description: string;
1071
+ integrations?: {
1072
+ name: string;
1073
+ type: "custom" | "nango" | "internal";
1074
+ description: string;
1075
+ id: string;
1076
+ identifier: string;
1077
+ scopes: string[];
1078
+ connectionName: string;
1079
+ }[] | undefined;
604
1080
  }[];
1081
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
605
1082
  };
606
1083
  integrations: {
607
- id: number;
608
- connection_id: string;
609
- provider_config_key: string;
610
- provider: string;
611
- created: string;
612
- openAPI: {
613
- description: string;
614
- title: string;
615
- };
616
- metadata?: Record<string, unknown> | null | undefined;
617
- scopes?: string[] | undefined;
1084
+ name: string;
1085
+ type: "custom" | "nango" | "internal";
1086
+ description: string;
1087
+ id: string;
1088
+ identifier: string;
1089
+ scopes: string[];
1090
+ connectionName: string;
618
1091
  }[];
619
1092
  memories: {
620
1093
  id: number;
621
1094
  memory: string;
622
1095
  createdAt: Date;
623
1096
  }[];
1097
+ workspaceUpdateToken?: string | null | undefined;
1098
+ taskUpdateToken?: string | null | undefined;
1099
+ explicitInput?: unknown;
1100
+ sessionHistory?: {
1101
+ triggerEvents: {
1102
+ name: string;
1103
+ integrationType: "custom" | "nango" | "internal";
1104
+ payload: {
1105
+ summary: string;
1106
+ event?: unknown;
1107
+ }[];
1108
+ description?: string | null | undefined;
1109
+ integrationName?: string | null | undefined;
1110
+ trigger_name?: string | null | undefined;
1111
+ }[];
1112
+ tasks: {
1113
+ description: string;
1114
+ id: number;
1115
+ body?: string | null | undefined;
1116
+ expectedOutput?: string | null | undefined;
1117
+ input?: string | null | undefined;
1118
+ output?: string | null | undefined;
1119
+ }[];
1120
+ }[] | undefined;
1121
+ triggerEvent?: {
1122
+ name: string;
1123
+ integrationType: "custom" | "nango" | "internal";
1124
+ payload: {
1125
+ summary: string;
1126
+ event?: unknown;
1127
+ }[];
1128
+ description?: string | null | undefined;
1129
+ integrationName?: string | null | undefined;
1130
+ trigger_name?: string | null | undefined;
1131
+ } | undefined;
624
1132
  workspaceExecutionId?: number | undefined;
1133
+ mcpServers?: {
1134
+ name: string;
1135
+ transport: "http" | "sse";
1136
+ id: string;
1137
+ url: string;
1138
+ tools: {
1139
+ name: string;
1140
+ description?: string | null | undefined;
1141
+ inputSchema?: any;
1142
+ }[];
1143
+ description?: string | null | undefined;
1144
+ headers?: Record<string, string> | null | undefined;
1145
+ }[] | undefined;
1146
+ agentKnowledgeFiles?: {
1147
+ path: string;
1148
+ id: number;
1149
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
1150
+ }[] | undefined;
625
1151
  }>;
626
1152
  export declare const respondChatMessageActionSchema: z.ZodObject<{
627
1153
  type: z.ZodLiteral<"respond-chat-message">;
628
- workspaceExecutionId: z.ZodOptional<z.ZodNumber>;
1154
+ workspaceUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
1155
  me: z.ZodIntersection<z.ZodObject<{
630
1156
  id: z.ZodNumber;
631
1157
  name: z.ZodString;
@@ -659,21 +1185,119 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
659
1185
  createdAt: z.ZodDate;
660
1186
  id: z.ZodNumber;
661
1187
  message: z.ZodString;
1188
+ parts: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1189
+ artifacts: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1190
+ id: z.ZodString;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ id: string;
1193
+ }, {
1194
+ id: string;
1195
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1196
+ type: z.ZodLiteral<"json">;
1197
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ type: "json";
1200
+ data: Record<string, unknown>;
1201
+ }, {
1202
+ type: "json";
1203
+ data: Record<string, unknown>;
1204
+ }>, z.ZodObject<{
1205
+ type: z.ZodLiteral<"artifact-card">;
1206
+ data: z.ZodUnknown;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ type: "artifact-card";
1209
+ data?: unknown;
1210
+ }, {
1211
+ type: "artifact-card";
1212
+ data?: unknown;
1213
+ }>, z.ZodObject<{
1214
+ type: z.ZodLiteral<"artifact-card-response">;
1215
+ artifactId: z.ZodString;
1216
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ type: "artifact-card-response";
1219
+ artifactId: string;
1220
+ data?: unknown;
1221
+ }, {
1222
+ type: "artifact-card-response";
1223
+ artifactId: string;
1224
+ data?: unknown;
1225
+ }>]>>, "many">;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ artifacts: ({
1228
+ id: string;
1229
+ } & ({
1230
+ type: "json";
1231
+ data: Record<string, unknown>;
1232
+ } | {
1233
+ type: "artifact-card";
1234
+ data?: unknown;
1235
+ } | {
1236
+ type: "artifact-card-response";
1237
+ artifactId: string;
1238
+ data?: unknown;
1239
+ }))[];
1240
+ }, {
1241
+ artifacts: ({
1242
+ id: string;
1243
+ } & ({
1244
+ type: "json";
1245
+ data: Record<string, unknown>;
1246
+ } | {
1247
+ type: "artifact-card";
1248
+ data?: unknown;
1249
+ } | {
1250
+ type: "artifact-card-response";
1251
+ artifactId: string;
1252
+ data?: unknown;
1253
+ }))[];
1254
+ }>>>;
662
1255
  }, "strip", z.ZodTypeAny, {
663
1256
  message: string;
664
1257
  id: number;
665
1258
  createdAt: Date;
666
1259
  author: "agent" | "user";
1260
+ parts: {
1261
+ artifacts: ({
1262
+ id: string;
1263
+ } & ({
1264
+ type: "json";
1265
+ data: Record<string, unknown>;
1266
+ } | {
1267
+ type: "artifact-card";
1268
+ data?: unknown;
1269
+ } | {
1270
+ type: "artifact-card-response";
1271
+ artifactId: string;
1272
+ data?: unknown;
1273
+ }))[];
1274
+ };
667
1275
  }, {
668
1276
  message: string;
669
1277
  id: number;
670
1278
  createdAt: Date;
671
1279
  author: "agent" | "user";
1280
+ parts?: {
1281
+ artifacts: ({
1282
+ id: string;
1283
+ } & ({
1284
+ type: "json";
1285
+ data: Record<string, unknown>;
1286
+ } | {
1287
+ type: "artifact-card";
1288
+ data?: unknown;
1289
+ } | {
1290
+ type: "artifact-card-response";
1291
+ artifactId: string;
1292
+ data?: unknown;
1293
+ }))[];
1294
+ } | undefined;
672
1295
  }>, "many">;
673
1296
  workspace: z.ZodObject<{
674
- id: z.ZodNumber;
1297
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
675
1298
  goal: z.ZodString;
676
1299
  bucket_folder: z.ZodString;
1300
+ latest_workspace_execution_status: z.ZodOptional<z.ZodEnum<["error", "active", "deleted", "idle", "running", "paused", "completed", "timed-out"]>>;
677
1301
  agents: z.ZodArray<z.ZodObject<{
678
1302
  id: z.ZodNumber;
679
1303
  name: z.ZodString;
@@ -688,7 +1312,7 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
688
1312
  capabilities_description: string;
689
1313
  }>, "many">;
690
1314
  }, "strip", z.ZodTypeAny, {
691
- id: number;
1315
+ id: string | number;
692
1316
  goal: string;
693
1317
  bucket_folder: string;
694
1318
  agents: {
@@ -696,8 +1320,9 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
696
1320
  id: number;
697
1321
  capabilities_description: string;
698
1322
  }[];
1323
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
699
1324
  }, {
700
- id: number;
1325
+ id: string | number;
701
1326
  goal: string;
702
1327
  bucket_folder: string;
703
1328
  agents: {
@@ -705,49 +1330,32 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
705
1330
  id: number;
706
1331
  capabilities_description: string;
707
1332
  }[];
1333
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
708
1334
  }>;
709
1335
  integrations: z.ZodArray<z.ZodObject<{
710
- id: z.ZodNumber;
711
- connection_id: z.ZodString;
712
- provider_config_key: z.ZodString;
713
- provider: z.ZodString;
714
- created: z.ZodOptional<z.ZodString>;
715
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
716
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
717
- openAPI: z.ZodObject<{
718
- title: z.ZodString;
719
- description: z.ZodString;
720
- }, "strip", z.ZodTypeAny, {
721
- description: string;
722
- title: string;
723
- }, {
724
- description: string;
725
- title: string;
726
- }>;
1336
+ id: z.ZodString;
1337
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
1338
+ identifier: z.ZodString;
1339
+ name: z.ZodString;
1340
+ description: z.ZodString;
1341
+ scopes: z.ZodArray<z.ZodString, "many">;
1342
+ connectionName: z.ZodString;
727
1343
  }, "strip", z.ZodTypeAny, {
728
- id: number;
729
- connection_id: string;
730
- provider_config_key: string;
731
- provider: string;
732
- openAPI: {
733
- description: string;
734
- title: string;
735
- };
736
- created?: string | undefined;
737
- metadata?: Record<string, unknown> | null | undefined;
738
- scopes?: string[] | undefined;
1344
+ name: string;
1345
+ type: "custom" | "nango" | "internal";
1346
+ description: string;
1347
+ id: string;
1348
+ identifier: string;
1349
+ scopes: string[];
1350
+ connectionName: string;
739
1351
  }, {
740
- id: number;
741
- connection_id: string;
742
- provider_config_key: string;
743
- provider: string;
744
- openAPI: {
745
- description: string;
746
- title: string;
747
- };
748
- created?: string | undefined;
749
- metadata?: Record<string, unknown> | null | undefined;
750
- scopes?: string[] | undefined;
1352
+ name: string;
1353
+ type: "custom" | "nango" | "internal";
1354
+ description: string;
1355
+ id: string;
1356
+ identifier: string;
1357
+ scopes: string[];
1358
+ connectionName: string;
751
1359
  }>, "many">;
752
1360
  memories: z.ZodArray<z.ZodObject<{
753
1361
  id: z.ZodNumber;
@@ -775,7 +1383,7 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
775
1383
  systemPrompt: string;
776
1384
  });
777
1385
  workspace: {
778
- id: number;
1386
+ id: string | number;
779
1387
  goal: string;
780
1388
  bucket_folder: string;
781
1389
  agents: {
@@ -783,19 +1391,16 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
783
1391
  id: number;
784
1392
  capabilities_description: string;
785
1393
  }[];
1394
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
786
1395
  };
787
1396
  integrations: {
788
- id: number;
789
- connection_id: string;
790
- provider_config_key: string;
791
- provider: string;
792
- openAPI: {
793
- description: string;
794
- title: string;
795
- };
796
- created?: string | undefined;
797
- metadata?: Record<string, unknown> | null | undefined;
798
- scopes?: string[] | undefined;
1397
+ name: string;
1398
+ type: "custom" | "nango" | "internal";
1399
+ description: string;
1400
+ id: string;
1401
+ identifier: string;
1402
+ scopes: string[];
1403
+ connectionName: string;
799
1404
  }[];
800
1405
  memories: {
801
1406
  id: number;
@@ -807,8 +1412,23 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
807
1412
  id: number;
808
1413
  createdAt: Date;
809
1414
  author: "agent" | "user";
1415
+ parts: {
1416
+ artifacts: ({
1417
+ id: string;
1418
+ } & ({
1419
+ type: "json";
1420
+ data: Record<string, unknown>;
1421
+ } | {
1422
+ type: "artifact-card";
1423
+ data?: unknown;
1424
+ } | {
1425
+ type: "artifact-card-response";
1426
+ artifactId: string;
1427
+ data?: unknown;
1428
+ }))[];
1429
+ };
810
1430
  }[];
811
- workspaceExecutionId?: number | undefined;
1431
+ workspaceUpdateToken?: string | null | undefined;
812
1432
  }, {
813
1433
  type: "respond-chat-message";
814
1434
  me: {
@@ -822,7 +1442,7 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
822
1442
  systemPrompt: string;
823
1443
  });
824
1444
  workspace: {
825
- id: number;
1445
+ id: string | number;
826
1446
  goal: string;
827
1447
  bucket_folder: string;
828
1448
  agents: {
@@ -830,19 +1450,16 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
830
1450
  id: number;
831
1451
  capabilities_description: string;
832
1452
  }[];
1453
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
833
1454
  };
834
1455
  integrations: {
835
- id: number;
836
- connection_id: string;
837
- provider_config_key: string;
838
- provider: string;
839
- openAPI: {
840
- description: string;
841
- title: string;
842
- };
843
- created?: string | undefined;
844
- metadata?: Record<string, unknown> | null | undefined;
845
- scopes?: string[] | undefined;
1456
+ name: string;
1457
+ type: "custom" | "nango" | "internal";
1458
+ description: string;
1459
+ id: string;
1460
+ identifier: string;
1461
+ scopes: string[];
1462
+ connectionName: string;
846
1463
  }[];
847
1464
  memories: {
848
1465
  id: number;
@@ -854,11 +1471,167 @@ export declare const respondChatMessageActionSchema: z.ZodObject<{
854
1471
  id: number;
855
1472
  createdAt: Date;
856
1473
  author: "agent" | "user";
1474
+ parts?: {
1475
+ artifacts: ({
1476
+ id: string;
1477
+ } & ({
1478
+ type: "json";
1479
+ data: Record<string, unknown>;
1480
+ } | {
1481
+ type: "artifact-card";
1482
+ data?: unknown;
1483
+ } | {
1484
+ type: "artifact-card-response";
1485
+ artifactId: string;
1486
+ data?: unknown;
1487
+ }))[];
1488
+ } | undefined;
857
1489
  }[];
858
- workspaceExecutionId?: number | undefined;
1490
+ workspaceUpdateToken?: string | null | undefined;
859
1491
  }>;
860
1492
  export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
861
1493
  type: z.ZodLiteral<"do-task">;
1494
+ workspaceUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
+ taskUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1496
+ explicitInput: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1497
+ triggerEvents: z.ZodArray<z.ZodObject<{
1498
+ name: z.ZodString;
1499
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
1502
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1503
+ payload: z.ZodArray<z.ZodObject<{
1504
+ event: z.ZodUnknown;
1505
+ summary: z.ZodString;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ summary: string;
1508
+ event?: unknown;
1509
+ }, {
1510
+ summary: string;
1511
+ event?: unknown;
1512
+ }>, "many">;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ name: string;
1515
+ integrationType: "custom" | "nango" | "internal";
1516
+ payload: {
1517
+ summary: string;
1518
+ event?: unknown;
1519
+ }[];
1520
+ description?: string | null | undefined;
1521
+ integrationName?: string | null | undefined;
1522
+ trigger_name?: string | null | undefined;
1523
+ }, {
1524
+ name: string;
1525
+ integrationType: "custom" | "nango" | "internal";
1526
+ payload: {
1527
+ summary: string;
1528
+ event?: unknown;
1529
+ }[];
1530
+ description?: string | null | undefined;
1531
+ integrationName?: string | null | undefined;
1532
+ trigger_name?: string | null | undefined;
1533
+ }>, "many">;
1534
+ sessionHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
1535
+ tasks: z.ZodArray<z.ZodObject<{
1536
+ id: z.ZodNumber;
1537
+ description: z.ZodString;
1538
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1539
+ expectedOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1540
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ description: string;
1544
+ id: number;
1545
+ body?: string | null | undefined;
1546
+ expectedOutput?: string | null | undefined;
1547
+ input?: string | null | undefined;
1548
+ output?: string | null | undefined;
1549
+ }, {
1550
+ description: string;
1551
+ id: number;
1552
+ body?: string | null | undefined;
1553
+ expectedOutput?: string | null | undefined;
1554
+ input?: string | null | undefined;
1555
+ output?: string | null | undefined;
1556
+ }>, "many">;
1557
+ triggerEvents: z.ZodArray<z.ZodObject<{
1558
+ name: z.ZodString;
1559
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1561
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
1562
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
+ payload: z.ZodArray<z.ZodObject<{
1564
+ event: z.ZodUnknown;
1565
+ summary: z.ZodString;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ summary: string;
1568
+ event?: unknown;
1569
+ }, {
1570
+ summary: string;
1571
+ event?: unknown;
1572
+ }>, "many">;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ name: string;
1575
+ integrationType: "custom" | "nango" | "internal";
1576
+ payload: {
1577
+ summary: string;
1578
+ event?: unknown;
1579
+ }[];
1580
+ description?: string | null | undefined;
1581
+ integrationName?: string | null | undefined;
1582
+ trigger_name?: string | null | undefined;
1583
+ }, {
1584
+ name: string;
1585
+ integrationType: "custom" | "nango" | "internal";
1586
+ payload: {
1587
+ summary: string;
1588
+ event?: unknown;
1589
+ }[];
1590
+ description?: string | null | undefined;
1591
+ integrationName?: string | null | undefined;
1592
+ trigger_name?: string | null | undefined;
1593
+ }>, "many">;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ triggerEvents: {
1596
+ name: string;
1597
+ integrationType: "custom" | "nango" | "internal";
1598
+ payload: {
1599
+ summary: string;
1600
+ event?: unknown;
1601
+ }[];
1602
+ description?: string | null | undefined;
1603
+ integrationName?: string | null | undefined;
1604
+ trigger_name?: string | null | undefined;
1605
+ }[];
1606
+ tasks: {
1607
+ description: string;
1608
+ id: number;
1609
+ body?: string | null | undefined;
1610
+ expectedOutput?: string | null | undefined;
1611
+ input?: string | null | undefined;
1612
+ output?: string | null | undefined;
1613
+ }[];
1614
+ }, {
1615
+ triggerEvents: {
1616
+ name: string;
1617
+ integrationType: "custom" | "nango" | "internal";
1618
+ payload: {
1619
+ summary: string;
1620
+ event?: unknown;
1621
+ }[];
1622
+ description?: string | null | undefined;
1623
+ integrationName?: string | null | undefined;
1624
+ trigger_name?: string | null | undefined;
1625
+ }[];
1626
+ tasks: {
1627
+ description: string;
1628
+ id: number;
1629
+ body?: string | null | undefined;
1630
+ expectedOutput?: string | null | undefined;
1631
+ input?: string | null | undefined;
1632
+ output?: string | null | undefined;
1633
+ }[];
1634
+ }>, "many">>;
862
1635
  me: z.ZodIntersection<z.ZodObject<{
863
1636
  id: z.ZodNumber;
864
1637
  name: z.ZodString;
@@ -888,7 +1661,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
888
1661
  systemPrompt: string;
889
1662
  }>]>>;
890
1663
  task: z.ZodObject<{
891
- id: z.ZodNumber;
1664
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
892
1665
  description: z.ZodString;
893
1666
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
1667
  expectedOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1088,7 +1861,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1088
1861
  }>>, "many">;
1089
1862
  }, "strip", z.ZodTypeAny, {
1090
1863
  description: string;
1091
- id: number;
1864
+ id: string | number;
1092
1865
  dependencies: {
1093
1866
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
1094
1867
  description: string;
@@ -1140,7 +1913,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1140
1913
  input?: string | null | undefined;
1141
1914
  }, {
1142
1915
  description: string;
1143
- id: number;
1916
+ id: string | number;
1144
1917
  dependencies: {
1145
1918
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
1146
1919
  description: string;
@@ -1191,86 +1964,227 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1191
1964
  expectedOutput?: string | null | undefined;
1192
1965
  input?: string | null | undefined;
1193
1966
  }>;
1967
+ triggerEvent: z.ZodOptional<z.ZodObject<{
1968
+ name: z.ZodString;
1969
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ integrationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1971
+ integrationType: z.ZodEnum<["nango", "custom", "internal"]>;
1972
+ trigger_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1973
+ payload: z.ZodArray<z.ZodObject<{
1974
+ event: z.ZodUnknown;
1975
+ summary: z.ZodString;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ summary: string;
1978
+ event?: unknown;
1979
+ }, {
1980
+ summary: string;
1981
+ event?: unknown;
1982
+ }>, "many">;
1983
+ }, "strip", z.ZodTypeAny, {
1984
+ name: string;
1985
+ integrationType: "custom" | "nango" | "internal";
1986
+ payload: {
1987
+ summary: string;
1988
+ event?: unknown;
1989
+ }[];
1990
+ description?: string | null | undefined;
1991
+ integrationName?: string | null | undefined;
1992
+ trigger_name?: string | null | undefined;
1993
+ }, {
1994
+ name: string;
1995
+ integrationType: "custom" | "nango" | "internal";
1996
+ payload: {
1997
+ summary: string;
1998
+ event?: unknown;
1999
+ }[];
2000
+ description?: string | null | undefined;
2001
+ integrationName?: string | null | undefined;
2002
+ trigger_name?: string | null | undefined;
2003
+ }>>;
1194
2004
  workspace: z.ZodObject<{
1195
- id: z.ZodNumber;
2005
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1196
2006
  goal: z.ZodString;
1197
2007
  bucket_folder: z.ZodString;
2008
+ latest_workspace_execution_status: z.ZodOptional<z.ZodEnum<["error", "active", "deleted", "idle", "running", "paused", "completed", "timed-out"]>>;
1198
2009
  agents: z.ZodArray<z.ZodObject<{
1199
2010
  id: z.ZodNumber;
1200
2011
  name: z.ZodString;
1201
2012
  capabilities_description: z.ZodString;
2013
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2014
+ id: z.ZodString;
2015
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
2016
+ identifier: z.ZodString;
2017
+ name: z.ZodString;
2018
+ description: z.ZodString;
2019
+ scopes: z.ZodArray<z.ZodString, "many">;
2020
+ connectionName: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ name: string;
2023
+ type: "custom" | "nango" | "internal";
2024
+ description: string;
2025
+ id: string;
2026
+ identifier: string;
2027
+ scopes: string[];
2028
+ connectionName: string;
2029
+ }, {
2030
+ name: string;
2031
+ type: "custom" | "nango" | "internal";
2032
+ description: string;
2033
+ id: string;
2034
+ identifier: string;
2035
+ scopes: string[];
2036
+ connectionName: string;
2037
+ }>, "many">>;
1202
2038
  }, "strip", z.ZodTypeAny, {
1203
2039
  name: string;
1204
2040
  id: number;
1205
2041
  capabilities_description: string;
2042
+ integrations?: {
2043
+ name: string;
2044
+ type: "custom" | "nango" | "internal";
2045
+ description: string;
2046
+ id: string;
2047
+ identifier: string;
2048
+ scopes: string[];
2049
+ connectionName: string;
2050
+ }[] | undefined;
1206
2051
  }, {
1207
2052
  name: string;
1208
2053
  id: number;
1209
2054
  capabilities_description: string;
2055
+ integrations?: {
2056
+ name: string;
2057
+ type: "custom" | "nango" | "internal";
2058
+ description: string;
2059
+ id: string;
2060
+ identifier: string;
2061
+ scopes: string[];
2062
+ connectionName: string;
2063
+ }[] | undefined;
1210
2064
  }>, "many">;
1211
2065
  }, "strip", z.ZodTypeAny, {
1212
- id: number;
2066
+ id: string | number;
1213
2067
  goal: string;
1214
2068
  bucket_folder: string;
1215
2069
  agents: {
1216
2070
  name: string;
1217
2071
  id: number;
1218
2072
  capabilities_description: string;
2073
+ integrations?: {
2074
+ name: string;
2075
+ type: "custom" | "nango" | "internal";
2076
+ description: string;
2077
+ id: string;
2078
+ identifier: string;
2079
+ scopes: string[];
2080
+ connectionName: string;
2081
+ }[] | undefined;
1219
2082
  }[];
2083
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1220
2084
  }, {
1221
- id: number;
2085
+ id: string | number;
1222
2086
  goal: string;
1223
2087
  bucket_folder: string;
1224
2088
  agents: {
1225
2089
  name: string;
1226
2090
  id: number;
1227
2091
  capabilities_description: string;
2092
+ integrations?: {
2093
+ name: string;
2094
+ type: "custom" | "nango" | "internal";
2095
+ description: string;
2096
+ id: string;
2097
+ identifier: string;
2098
+ scopes: string[];
2099
+ connectionName: string;
2100
+ }[] | undefined;
1228
2101
  }[];
2102
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1229
2103
  }>;
1230
2104
  workspaceExecutionId: z.ZodOptional<z.ZodNumber>;
1231
2105
  integrations: z.ZodArray<z.ZodObject<{
1232
- id: z.ZodNumber;
1233
- connection_id: z.ZodString;
1234
- provider_config_key: z.ZodString;
1235
- provider: z.ZodString;
1236
- created: z.ZodString;
1237
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1238
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1239
- openAPI: z.ZodObject<{
1240
- title: z.ZodString;
1241
- description: z.ZodString;
2106
+ id: z.ZodString;
2107
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
2108
+ identifier: z.ZodString;
2109
+ name: z.ZodString;
2110
+ description: z.ZodString;
2111
+ scopes: z.ZodArray<z.ZodString, "many">;
2112
+ connectionName: z.ZodString;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ name: string;
2115
+ type: "custom" | "nango" | "internal";
2116
+ description: string;
2117
+ id: string;
2118
+ identifier: string;
2119
+ scopes: string[];
2120
+ connectionName: string;
2121
+ }, {
2122
+ name: string;
2123
+ type: "custom" | "nango" | "internal";
2124
+ description: string;
2125
+ id: string;
2126
+ identifier: string;
2127
+ scopes: string[];
2128
+ connectionName: string;
2129
+ }>, "many">;
2130
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2131
+ id: z.ZodString;
2132
+ name: z.ZodString;
2133
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2134
+ url: z.ZodString;
2135
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2136
+ transport: z.ZodEnum<["http", "sse"]>;
2137
+ tools: z.ZodArray<z.ZodObject<{
2138
+ name: z.ZodString;
2139
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2140
+ inputSchema: z.ZodAny;
1242
2141
  }, "strip", z.ZodTypeAny, {
1243
- description: string;
1244
- title: string;
2142
+ name: string;
2143
+ description?: string | null | undefined;
2144
+ inputSchema?: any;
1245
2145
  }, {
1246
- description: string;
1247
- title: string;
1248
- }>;
2146
+ name: string;
2147
+ description?: string | null | undefined;
2148
+ inputSchema?: any;
2149
+ }>, "many">;
1249
2150
  }, "strip", z.ZodTypeAny, {
2151
+ name: string;
2152
+ transport: "http" | "sse";
2153
+ id: string;
2154
+ url: string;
2155
+ tools: {
2156
+ name: string;
2157
+ description?: string | null | undefined;
2158
+ inputSchema?: any;
2159
+ }[];
2160
+ description?: string | null | undefined;
2161
+ headers?: Record<string, string> | null | undefined;
2162
+ }, {
2163
+ name: string;
2164
+ transport: "http" | "sse";
2165
+ id: string;
2166
+ url: string;
2167
+ tools: {
2168
+ name: string;
2169
+ description?: string | null | undefined;
2170
+ inputSchema?: any;
2171
+ }[];
2172
+ description?: string | null | undefined;
2173
+ headers?: Record<string, string> | null | undefined;
2174
+ }>, "many">>;
2175
+ agentKnowledgeFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
2176
+ id: z.ZodNumber;
2177
+ path: z.ZodString;
2178
+ state: z.ZodEnum<["pending", "processing", "processed", "error", "skipped"]>;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ path: string;
1250
2181
  id: number;
1251
- connection_id: string;
1252
- provider_config_key: string;
1253
- provider: string;
1254
- created: string;
1255
- openAPI: {
1256
- description: string;
1257
- title: string;
1258
- };
1259
- metadata?: Record<string, unknown> | null | undefined;
1260
- scopes?: string[] | undefined;
2182
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
1261
2183
  }, {
2184
+ path: string;
1262
2185
  id: number;
1263
- connection_id: string;
1264
- provider_config_key: string;
1265
- provider: string;
1266
- created: string;
1267
- openAPI: {
1268
- description: string;
1269
- title: string;
1270
- };
1271
- metadata?: Record<string, unknown> | null | undefined;
1272
- scopes?: string[] | undefined;
1273
- }>, "many">;
2186
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
2187
+ }>, "many">>;
1274
2188
  memories: z.ZodArray<z.ZodObject<{
1275
2189
  id: z.ZodNumber;
1276
2190
  memory: z.ZodString;
@@ -1286,6 +2200,17 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1286
2200
  }>, "many">;
1287
2201
  }, "strip", z.ZodTypeAny, {
1288
2202
  type: "do-task";
2203
+ triggerEvents: {
2204
+ name: string;
2205
+ integrationType: "custom" | "nango" | "internal";
2206
+ payload: {
2207
+ summary: string;
2208
+ event?: unknown;
2209
+ }[];
2210
+ description?: string | null | undefined;
2211
+ integrationName?: string | null | undefined;
2212
+ trigger_name?: string | null | undefined;
2213
+ }[];
1289
2214
  me: {
1290
2215
  name: string;
1291
2216
  id: number;
@@ -1298,7 +2223,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1298
2223
  });
1299
2224
  task: {
1300
2225
  description: string;
1301
- id: number;
2226
+ id: string | number;
1302
2227
  dependencies: {
1303
2228
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
1304
2229
  description: string;
@@ -1350,36 +2275,106 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1350
2275
  input?: string | null | undefined;
1351
2276
  };
1352
2277
  workspace: {
1353
- id: number;
2278
+ id: string | number;
1354
2279
  goal: string;
1355
2280
  bucket_folder: string;
1356
2281
  agents: {
1357
2282
  name: string;
1358
2283
  id: number;
1359
2284
  capabilities_description: string;
2285
+ integrations?: {
2286
+ name: string;
2287
+ type: "custom" | "nango" | "internal";
2288
+ description: string;
2289
+ id: string;
2290
+ identifier: string;
2291
+ scopes: string[];
2292
+ connectionName: string;
2293
+ }[] | undefined;
1360
2294
  }[];
2295
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1361
2296
  };
1362
2297
  integrations: {
1363
- id: number;
1364
- connection_id: string;
1365
- provider_config_key: string;
1366
- provider: string;
1367
- created: string;
1368
- openAPI: {
1369
- description: string;
1370
- title: string;
1371
- };
1372
- metadata?: Record<string, unknown> | null | undefined;
1373
- scopes?: string[] | undefined;
2298
+ name: string;
2299
+ type: "custom" | "nango" | "internal";
2300
+ description: string;
2301
+ id: string;
2302
+ identifier: string;
2303
+ scopes: string[];
2304
+ connectionName: string;
1374
2305
  }[];
1375
2306
  memories: {
1376
2307
  id: number;
1377
2308
  memory: string;
1378
2309
  createdAt: Date;
1379
2310
  }[];
2311
+ workspaceUpdateToken?: string | null | undefined;
2312
+ taskUpdateToken?: string | null | undefined;
2313
+ explicitInput?: unknown;
2314
+ sessionHistory?: {
2315
+ triggerEvents: {
2316
+ name: string;
2317
+ integrationType: "custom" | "nango" | "internal";
2318
+ payload: {
2319
+ summary: string;
2320
+ event?: unknown;
2321
+ }[];
2322
+ description?: string | null | undefined;
2323
+ integrationName?: string | null | undefined;
2324
+ trigger_name?: string | null | undefined;
2325
+ }[];
2326
+ tasks: {
2327
+ description: string;
2328
+ id: number;
2329
+ body?: string | null | undefined;
2330
+ expectedOutput?: string | null | undefined;
2331
+ input?: string | null | undefined;
2332
+ output?: string | null | undefined;
2333
+ }[];
2334
+ }[] | undefined;
2335
+ triggerEvent?: {
2336
+ name: string;
2337
+ integrationType: "custom" | "nango" | "internal";
2338
+ payload: {
2339
+ summary: string;
2340
+ event?: unknown;
2341
+ }[];
2342
+ description?: string | null | undefined;
2343
+ integrationName?: string | null | undefined;
2344
+ trigger_name?: string | null | undefined;
2345
+ } | undefined;
1380
2346
  workspaceExecutionId?: number | undefined;
2347
+ mcpServers?: {
2348
+ name: string;
2349
+ transport: "http" | "sse";
2350
+ id: string;
2351
+ url: string;
2352
+ tools: {
2353
+ name: string;
2354
+ description?: string | null | undefined;
2355
+ inputSchema?: any;
2356
+ }[];
2357
+ description?: string | null | undefined;
2358
+ headers?: Record<string, string> | null | undefined;
2359
+ }[] | undefined;
2360
+ agentKnowledgeFiles?: {
2361
+ path: string;
2362
+ id: number;
2363
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
2364
+ }[] | undefined;
1381
2365
  }, {
1382
2366
  type: "do-task";
2367
+ triggerEvents: {
2368
+ name: string;
2369
+ integrationType: "custom" | "nango" | "internal";
2370
+ payload: {
2371
+ summary: string;
2372
+ event?: unknown;
2373
+ }[];
2374
+ description?: string | null | undefined;
2375
+ integrationName?: string | null | undefined;
2376
+ trigger_name?: string | null | undefined;
2377
+ }[];
1383
2378
  me: {
1384
2379
  name: string;
1385
2380
  id: number;
@@ -1392,7 +2387,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1392
2387
  });
1393
2388
  task: {
1394
2389
  description: string;
1395
- id: number;
2390
+ id: string | number;
1396
2391
  dependencies: {
1397
2392
  status: "error" | "to-do" | "in-progress" | "human-assistance-required" | "done" | "cancelled";
1398
2393
  description: string;
@@ -1444,37 +2439,96 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1444
2439
  input?: string | null | undefined;
1445
2440
  };
1446
2441
  workspace: {
1447
- id: number;
2442
+ id: string | number;
1448
2443
  goal: string;
1449
2444
  bucket_folder: string;
1450
2445
  agents: {
1451
2446
  name: string;
1452
2447
  id: number;
1453
2448
  capabilities_description: string;
2449
+ integrations?: {
2450
+ name: string;
2451
+ type: "custom" | "nango" | "internal";
2452
+ description: string;
2453
+ id: string;
2454
+ identifier: string;
2455
+ scopes: string[];
2456
+ connectionName: string;
2457
+ }[] | undefined;
1454
2458
  }[];
2459
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1455
2460
  };
1456
2461
  integrations: {
1457
- id: number;
1458
- connection_id: string;
1459
- provider_config_key: string;
1460
- provider: string;
1461
- created: string;
1462
- openAPI: {
1463
- description: string;
1464
- title: string;
1465
- };
1466
- metadata?: Record<string, unknown> | null | undefined;
1467
- scopes?: string[] | undefined;
2462
+ name: string;
2463
+ type: "custom" | "nango" | "internal";
2464
+ description: string;
2465
+ id: string;
2466
+ identifier: string;
2467
+ scopes: string[];
2468
+ connectionName: string;
1468
2469
  }[];
1469
2470
  memories: {
1470
2471
  id: number;
1471
2472
  memory: string;
1472
2473
  createdAt: Date;
1473
2474
  }[];
2475
+ workspaceUpdateToken?: string | null | undefined;
2476
+ taskUpdateToken?: string | null | undefined;
2477
+ explicitInput?: unknown;
2478
+ sessionHistory?: {
2479
+ triggerEvents: {
2480
+ name: string;
2481
+ integrationType: "custom" | "nango" | "internal";
2482
+ payload: {
2483
+ summary: string;
2484
+ event?: unknown;
2485
+ }[];
2486
+ description?: string | null | undefined;
2487
+ integrationName?: string | null | undefined;
2488
+ trigger_name?: string | null | undefined;
2489
+ }[];
2490
+ tasks: {
2491
+ description: string;
2492
+ id: number;
2493
+ body?: string | null | undefined;
2494
+ expectedOutput?: string | null | undefined;
2495
+ input?: string | null | undefined;
2496
+ output?: string | null | undefined;
2497
+ }[];
2498
+ }[] | undefined;
2499
+ triggerEvent?: {
2500
+ name: string;
2501
+ integrationType: "custom" | "nango" | "internal";
2502
+ payload: {
2503
+ summary: string;
2504
+ event?: unknown;
2505
+ }[];
2506
+ description?: string | null | undefined;
2507
+ integrationName?: string | null | undefined;
2508
+ trigger_name?: string | null | undefined;
2509
+ } | undefined;
1474
2510
  workspaceExecutionId?: number | undefined;
2511
+ mcpServers?: {
2512
+ name: string;
2513
+ transport: "http" | "sse";
2514
+ id: string;
2515
+ url: string;
2516
+ tools: {
2517
+ name: string;
2518
+ description?: string | null | undefined;
2519
+ inputSchema?: any;
2520
+ }[];
2521
+ description?: string | null | undefined;
2522
+ headers?: Record<string, string> | null | undefined;
2523
+ }[] | undefined;
2524
+ agentKnowledgeFiles?: {
2525
+ path: string;
2526
+ id: number;
2527
+ state: "error" | "pending" | "processing" | "processed" | "skipped";
2528
+ }[] | undefined;
1475
2529
  }>, z.ZodObject<{
1476
2530
  type: z.ZodLiteral<"respond-chat-message">;
1477
- workspaceExecutionId: z.ZodOptional<z.ZodNumber>;
2531
+ workspaceUpdateToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
2532
  me: z.ZodIntersection<z.ZodObject<{
1479
2533
  id: z.ZodNumber;
1480
2534
  name: z.ZodString;
@@ -1508,21 +2562,119 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1508
2562
  createdAt: z.ZodDate;
1509
2563
  id: z.ZodNumber;
1510
2564
  message: z.ZodString;
2565
+ parts: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2566
+ artifacts: z.ZodArray<z.ZodIntersection<z.ZodObject<{
2567
+ id: z.ZodString;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ id: string;
2570
+ }, {
2571
+ id: string;
2572
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2573
+ type: z.ZodLiteral<"json">;
2574
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2575
+ }, "strip", z.ZodTypeAny, {
2576
+ type: "json";
2577
+ data: Record<string, unknown>;
2578
+ }, {
2579
+ type: "json";
2580
+ data: Record<string, unknown>;
2581
+ }>, z.ZodObject<{
2582
+ type: z.ZodLiteral<"artifact-card">;
2583
+ data: z.ZodUnknown;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ type: "artifact-card";
2586
+ data?: unknown;
2587
+ }, {
2588
+ type: "artifact-card";
2589
+ data?: unknown;
2590
+ }>, z.ZodObject<{
2591
+ type: z.ZodLiteral<"artifact-card-response">;
2592
+ artifactId: z.ZodString;
2593
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ type: "artifact-card-response";
2596
+ artifactId: string;
2597
+ data?: unknown;
2598
+ }, {
2599
+ type: "artifact-card-response";
2600
+ artifactId: string;
2601
+ data?: unknown;
2602
+ }>]>>, "many">;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ artifacts: ({
2605
+ id: string;
2606
+ } & ({
2607
+ type: "json";
2608
+ data: Record<string, unknown>;
2609
+ } | {
2610
+ type: "artifact-card";
2611
+ data?: unknown;
2612
+ } | {
2613
+ type: "artifact-card-response";
2614
+ artifactId: string;
2615
+ data?: unknown;
2616
+ }))[];
2617
+ }, {
2618
+ artifacts: ({
2619
+ id: string;
2620
+ } & ({
2621
+ type: "json";
2622
+ data: Record<string, unknown>;
2623
+ } | {
2624
+ type: "artifact-card";
2625
+ data?: unknown;
2626
+ } | {
2627
+ type: "artifact-card-response";
2628
+ artifactId: string;
2629
+ data?: unknown;
2630
+ }))[];
2631
+ }>>>;
1511
2632
  }, "strip", z.ZodTypeAny, {
1512
2633
  message: string;
1513
2634
  id: number;
1514
2635
  createdAt: Date;
1515
2636
  author: "agent" | "user";
2637
+ parts: {
2638
+ artifacts: ({
2639
+ id: string;
2640
+ } & ({
2641
+ type: "json";
2642
+ data: Record<string, unknown>;
2643
+ } | {
2644
+ type: "artifact-card";
2645
+ data?: unknown;
2646
+ } | {
2647
+ type: "artifact-card-response";
2648
+ artifactId: string;
2649
+ data?: unknown;
2650
+ }))[];
2651
+ };
1516
2652
  }, {
1517
2653
  message: string;
1518
2654
  id: number;
1519
2655
  createdAt: Date;
1520
2656
  author: "agent" | "user";
2657
+ parts?: {
2658
+ artifacts: ({
2659
+ id: string;
2660
+ } & ({
2661
+ type: "json";
2662
+ data: Record<string, unknown>;
2663
+ } | {
2664
+ type: "artifact-card";
2665
+ data?: unknown;
2666
+ } | {
2667
+ type: "artifact-card-response";
2668
+ artifactId: string;
2669
+ data?: unknown;
2670
+ }))[];
2671
+ } | undefined;
1521
2672
  }>, "many">;
1522
2673
  workspace: z.ZodObject<{
1523
- id: z.ZodNumber;
2674
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1524
2675
  goal: z.ZodString;
1525
2676
  bucket_folder: z.ZodString;
2677
+ latest_workspace_execution_status: z.ZodOptional<z.ZodEnum<["error", "active", "deleted", "idle", "running", "paused", "completed", "timed-out"]>>;
1526
2678
  agents: z.ZodArray<z.ZodObject<{
1527
2679
  id: z.ZodNumber;
1528
2680
  name: z.ZodString;
@@ -1537,7 +2689,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1537
2689
  capabilities_description: string;
1538
2690
  }>, "many">;
1539
2691
  }, "strip", z.ZodTypeAny, {
1540
- id: number;
2692
+ id: string | number;
1541
2693
  goal: string;
1542
2694
  bucket_folder: string;
1543
2695
  agents: {
@@ -1545,8 +2697,9 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1545
2697
  id: number;
1546
2698
  capabilities_description: string;
1547
2699
  }[];
2700
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1548
2701
  }, {
1549
- id: number;
2702
+ id: string | number;
1550
2703
  goal: string;
1551
2704
  bucket_folder: string;
1552
2705
  agents: {
@@ -1554,49 +2707,32 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1554
2707
  id: number;
1555
2708
  capabilities_description: string;
1556
2709
  }[];
2710
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1557
2711
  }>;
1558
2712
  integrations: z.ZodArray<z.ZodObject<{
1559
- id: z.ZodNumber;
1560
- connection_id: z.ZodString;
1561
- provider_config_key: z.ZodString;
1562
- provider: z.ZodString;
1563
- created: z.ZodOptional<z.ZodString>;
1564
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1565
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1566
- openAPI: z.ZodObject<{
1567
- title: z.ZodString;
1568
- description: z.ZodString;
1569
- }, "strip", z.ZodTypeAny, {
1570
- description: string;
1571
- title: string;
1572
- }, {
1573
- description: string;
1574
- title: string;
1575
- }>;
2713
+ id: z.ZodString;
2714
+ type: z.ZodEnum<["nango", "custom", "internal"]>;
2715
+ identifier: z.ZodString;
2716
+ name: z.ZodString;
2717
+ description: z.ZodString;
2718
+ scopes: z.ZodArray<z.ZodString, "many">;
2719
+ connectionName: z.ZodString;
1576
2720
  }, "strip", z.ZodTypeAny, {
1577
- id: number;
1578
- connection_id: string;
1579
- provider_config_key: string;
1580
- provider: string;
1581
- openAPI: {
1582
- description: string;
1583
- title: string;
1584
- };
1585
- created?: string | undefined;
1586
- metadata?: Record<string, unknown> | null | undefined;
1587
- scopes?: string[] | undefined;
2721
+ name: string;
2722
+ type: "custom" | "nango" | "internal";
2723
+ description: string;
2724
+ id: string;
2725
+ identifier: string;
2726
+ scopes: string[];
2727
+ connectionName: string;
1588
2728
  }, {
1589
- id: number;
1590
- connection_id: string;
1591
- provider_config_key: string;
1592
- provider: string;
1593
- openAPI: {
1594
- description: string;
1595
- title: string;
1596
- };
1597
- created?: string | undefined;
1598
- metadata?: Record<string, unknown> | null | undefined;
1599
- scopes?: string[] | undefined;
2729
+ name: string;
2730
+ type: "custom" | "nango" | "internal";
2731
+ description: string;
2732
+ id: string;
2733
+ identifier: string;
2734
+ scopes: string[];
2735
+ connectionName: string;
1600
2736
  }>, "many">;
1601
2737
  memories: z.ZodArray<z.ZodObject<{
1602
2738
  id: z.ZodNumber;
@@ -1624,7 +2760,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1624
2760
  systemPrompt: string;
1625
2761
  });
1626
2762
  workspace: {
1627
- id: number;
2763
+ id: string | number;
1628
2764
  goal: string;
1629
2765
  bucket_folder: string;
1630
2766
  agents: {
@@ -1632,19 +2768,16 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1632
2768
  id: number;
1633
2769
  capabilities_description: string;
1634
2770
  }[];
2771
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1635
2772
  };
1636
2773
  integrations: {
1637
- id: number;
1638
- connection_id: string;
1639
- provider_config_key: string;
1640
- provider: string;
1641
- openAPI: {
1642
- description: string;
1643
- title: string;
1644
- };
1645
- created?: string | undefined;
1646
- metadata?: Record<string, unknown> | null | undefined;
1647
- scopes?: string[] | undefined;
2774
+ name: string;
2775
+ type: "custom" | "nango" | "internal";
2776
+ description: string;
2777
+ id: string;
2778
+ identifier: string;
2779
+ scopes: string[];
2780
+ connectionName: string;
1648
2781
  }[];
1649
2782
  memories: {
1650
2783
  id: number;
@@ -1656,8 +2789,23 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1656
2789
  id: number;
1657
2790
  createdAt: Date;
1658
2791
  author: "agent" | "user";
2792
+ parts: {
2793
+ artifacts: ({
2794
+ id: string;
2795
+ } & ({
2796
+ type: "json";
2797
+ data: Record<string, unknown>;
2798
+ } | {
2799
+ type: "artifact-card";
2800
+ data?: unknown;
2801
+ } | {
2802
+ type: "artifact-card-response";
2803
+ artifactId: string;
2804
+ data?: unknown;
2805
+ }))[];
2806
+ };
1659
2807
  }[];
1660
- workspaceExecutionId?: number | undefined;
2808
+ workspaceUpdateToken?: string | null | undefined;
1661
2809
  }, {
1662
2810
  type: "respond-chat-message";
1663
2811
  me: {
@@ -1671,7 +2819,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1671
2819
  systemPrompt: string;
1672
2820
  });
1673
2821
  workspace: {
1674
- id: number;
2822
+ id: string | number;
1675
2823
  goal: string;
1676
2824
  bucket_folder: string;
1677
2825
  agents: {
@@ -1679,19 +2827,16 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1679
2827
  id: number;
1680
2828
  capabilities_description: string;
1681
2829
  }[];
2830
+ latest_workspace_execution_status?: "error" | "active" | "deleted" | "idle" | "running" | "paused" | "completed" | "timed-out" | undefined;
1682
2831
  };
1683
2832
  integrations: {
1684
- id: number;
1685
- connection_id: string;
1686
- provider_config_key: string;
1687
- provider: string;
1688
- openAPI: {
1689
- description: string;
1690
- title: string;
1691
- };
1692
- created?: string | undefined;
1693
- metadata?: Record<string, unknown> | null | undefined;
1694
- scopes?: string[] | undefined;
2833
+ name: string;
2834
+ type: "custom" | "nango" | "internal";
2835
+ description: string;
2836
+ id: string;
2837
+ identifier: string;
2838
+ scopes: string[];
2839
+ connectionName: string;
1695
2840
  }[];
1696
2841
  memories: {
1697
2842
  id: number;
@@ -1703,8 +2848,23 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1703
2848
  id: number;
1704
2849
  createdAt: Date;
1705
2850
  author: "agent" | "user";
2851
+ parts?: {
2852
+ artifacts: ({
2853
+ id: string;
2854
+ } & ({
2855
+ type: "json";
2856
+ data: Record<string, unknown>;
2857
+ } | {
2858
+ type: "artifact-card";
2859
+ data?: unknown;
2860
+ } | {
2861
+ type: "artifact-card-response";
2862
+ artifactId: string;
2863
+ data?: unknown;
2864
+ }))[];
2865
+ } | undefined;
1706
2866
  }[];
1707
- workspaceExecutionId?: number | undefined;
2867
+ workspaceUpdateToken?: string | null | undefined;
1708
2868
  }>]>;
1709
2869
  declare const agentChatMessagesResponseSchema: z.ZodObject<{
1710
2870
  agent: z.ZodObject<{
@@ -1757,65 +2917,121 @@ declare const agentChatMessagesResponseSchema: z.ZodObject<{
1757
2917
  };
1758
2918
  }>;
1759
2919
  export type AgentChatMessagesResponse = z.infer<typeof agentChatMessagesResponseSchema>;
2920
+ type WorkspaceId = string | number;
2921
+ type TaskId = string | number;
1760
2922
  export interface GetFilesParams {
1761
- workspaceId: number;
2923
+ workspaceId: WorkspaceId | string;
1762
2924
  }
2925
+ export type GetFilesResponse = {
2926
+ id: number;
2927
+ path: string;
2928
+ fullUrl: string;
2929
+ summary: string;
2930
+ size: number;
2931
+ }[];
1763
2932
  export interface GetSecretsParams {
1764
- workspaceId: number;
2933
+ workspaceId: WorkspaceId;
1765
2934
  }
2935
+ export type GetSecretsResponse = {
2936
+ id: number;
2937
+ name: string;
2938
+ }[];
1766
2939
  export interface GetSecretValueParams {
1767
- workspaceId: number;
2940
+ workspaceId: WorkspaceId;
1768
2941
  secretId: number;
1769
2942
  }
1770
- export declare const getFilesParamsSchema: z.ZodObject<{
1771
- workspaceId: z.ZodNumber;
1772
- }, "strip", z.ZodTypeAny, {
1773
- workspaceId: number;
1774
- }, {
1775
- workspaceId: number;
1776
- }>;
2943
+ export type GetSecretValueResponse = string;
1777
2944
  export interface UploadFileParams {
1778
- workspaceId: number;
2945
+ workspaceId: WorkspaceId;
1779
2946
  path: string;
1780
- taskIds?: number[] | number | null;
2947
+ taskIds?: TaskId[] | TaskId | null;
1781
2948
  skipSummarizer?: boolean;
1782
2949
  file: Buffer | string;
1783
2950
  }
2951
+ export type UploadFileResponse = {
2952
+ fileId: number;
2953
+ fullUrl: string;
2954
+ summary?: string;
2955
+ };
1784
2956
  export interface DeleteFileParams {
1785
- workspaceId: number;
2957
+ workspaceId: WorkspaceId;
1786
2958
  fileId: number;
1787
2959
  }
2960
+ export type DeleteFileResponse = {
2961
+ message: string;
2962
+ };
1788
2963
  export interface MarkTaskAsErroredParams {
1789
- workspaceId: number;
1790
- taskId: number;
2964
+ workspaceId: WorkspaceId;
2965
+ taskId: TaskId;
1791
2966
  error: string;
1792
2967
  }
2968
+ export type MarkTaskAsErroredResponse = undefined;
1793
2969
  export interface CompleteTaskParams {
1794
- workspaceId: number;
1795
- taskId: number;
2970
+ workspaceId: WorkspaceId;
2971
+ taskId: TaskId;
1796
2972
  output: string;
1797
2973
  }
2974
+ export type CompleteTaskResponse = undefined;
1798
2975
  export interface SendChatMessageParams {
1799
- workspaceId: number;
2976
+ workspaceId: WorkspaceId;
1800
2977
  agentId: number;
1801
2978
  message: string;
1802
2979
  }
2980
+ export type SendChatMessageResponse = undefined;
1803
2981
  export interface GetTaskDetailParams {
1804
- workspaceId: number;
1805
- taskId: number;
2982
+ workspaceId: WorkspaceId;
2983
+ taskId: TaskId;
1806
2984
  }
2985
+ export type GetTaskDetailResponse = {
2986
+ assigneeAgentId: number;
2987
+ assigneeAgentName: string;
2988
+ id: number;
2989
+ body?: string | null;
2990
+ description: string;
2991
+ input?: string | null;
2992
+ expectedOutput?: string | null;
2993
+ output?: string | null;
2994
+ reporterAgentId: number;
2995
+ reporterAgentName: string;
2996
+ status: TaskStatus;
2997
+ attachments: {
2998
+ id: number;
2999
+ path: string;
3000
+ fullUrl: string;
3001
+ summary?: string | null;
3002
+ }[];
3003
+ };
1807
3004
  export interface GetAgentsParams {
1808
- workspaceId: number;
3005
+ workspaceId: WorkspaceId;
1809
3006
  }
3007
+ export type GetAgentsResponse = {
3008
+ id: number;
3009
+ name: string;
3010
+ capabilitiesDescription: string;
3011
+ }[];
1810
3012
  export interface GetChatMessagesParams {
1811
- workspaceId: number;
3013
+ workspaceId: WorkspaceId;
1812
3014
  agentId: number;
1813
3015
  }
1814
3016
  export interface GetTasksParams {
1815
- workspaceId: number;
3017
+ workspaceId: WorkspaceId;
1816
3018
  }
3019
+ export type GetTasksResponse = {
3020
+ id: number;
3021
+ description: string;
3022
+ status: TaskStatus;
3023
+ output?: string | null;
3024
+ assigneeAgentId: number;
3025
+ assigneeAgentName: string;
3026
+ dependencies: {
3027
+ dependency_task_id: number;
3028
+ }[];
3029
+ triggerDependencies: {
3030
+ dependency_trigger_id: string;
3031
+ }[];
3032
+ }[];
1817
3033
  export interface CreateTaskParams {
1818
- workspaceId: number;
3034
+ workspaceId: WorkspaceId;
1819
3035
  assignee: number;
1820
3036
  description: string;
1821
3037
  body: string;
@@ -1823,25 +3039,31 @@ export interface CreateTaskParams {
1823
3039
  expectedOutput: string;
1824
3040
  dependencies: number[];
1825
3041
  }
3042
+ export type CreateTaskResponse = {
3043
+ id: number;
3044
+ };
1826
3045
  export interface AddLogToTaskParams {
1827
- workspaceId: number;
1828
- taskId: number;
3046
+ workspaceId: WorkspaceId;
3047
+ taskId: TaskId;
1829
3048
  severity: 'info' | 'warning' | 'error';
1830
3049
  type: 'text' | 'openai-message';
1831
3050
  body: string | object;
1832
3051
  }
3052
+ export type AddLogToTaskResponse = undefined;
1833
3053
  export interface RequestHumanAssistanceParams {
1834
- workspaceId: number;
1835
- taskId: number;
3054
+ workspaceId: WorkspaceId;
3055
+ taskId: TaskId;
1836
3056
  type: 'text' | 'project-manager-plan-review';
1837
3057
  question: string | object;
1838
3058
  agentDump?: object;
1839
3059
  }
3060
+ export type RequestHumanAssistanceResponse = undefined;
1840
3061
  export interface UpdateTaskStatusParams {
1841
- workspaceId: number;
1842
- taskId: number;
3062
+ workspaceId: WorkspaceId;
3063
+ taskId: TaskId;
1843
3064
  status: TaskStatus;
1844
3065
  }
3066
+ export type UpdateTaskStatusResponse = undefined;
1845
3067
  export interface ProcessParams {
1846
3068
  messages: ChatCompletionMessageParam[];
1847
3069
  }
@@ -1860,7 +3082,7 @@ export interface ProxyConfiguration {
1860
3082
  retryOn?: number[] | null;
1861
3083
  }
1862
3084
  export interface IntegrationCallRequest {
1863
- workspaceId: number;
3085
+ workspaceId: WorkspaceId;
1864
3086
  integrationId: string;
1865
3087
  details: ProxyConfiguration;
1866
3088
  }