@getsupervisor/agents-studio-sdk 1.22.1 → 1.23.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/index.d.cts CHANGED
@@ -1,249 +1,712 @@
1
+ type WithRequired<T, K extends keyof T> = T & {
2
+ [P in K]-?: T[P];
3
+ };
4
+ type Without<T, U> = {
5
+ [P in Exclude<keyof T, keyof U>]?: never;
6
+ };
7
+ type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
8
+ type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
1
9
  type components = {
2
10
  schemas: {
3
- AgentDetail: external['components/schemas.yaml']['AgentDetail'];
4
- PaginationMeta: external['components/schemas.yaml']['PaginationMeta'];
5
- QueryFilters: external['components/schemas.yaml']['QueryFilters'];
6
- QueryOrGroups: external['components/schemas.yaml']['QueryOrGroups'];
7
- AgentSummary: external['components/schemas.yaml']['AgentSummary'];
8
- AgentListResponse: external['components/schemas.yaml']['AgentListResponse'];
9
- CreateAgentRequest: external['components/schemas.yaml']['CreateAgentRequest'];
10
- AgentTagRequest: external['components/schemas.yaml']['AgentTagRequest'];
11
- AgentTagsResponse: external['components/schemas.yaml']['AgentTagsResponse'];
12
- UpdateAgentRequest: external['components/schemas.yaml']['UpdateAgentRequest'];
13
- Instruction: external['components/schemas.yaml']['Instruction'];
14
- InstructionListResponse: external['components/schemas.yaml']['InstructionListResponse'];
15
- CreateInstructionRequest: external['components/schemas.yaml']['CreateInstructionRequest'];
16
- InstructionCreatedResponse: external['components/schemas.yaml']['InstructionCreatedResponse'];
17
- UpdateInstructionRequest: external['components/schemas.yaml']['UpdateInstructionRequest'];
18
- VoiceSummary: external['components/schemas.yaml']['VoiceSummary'];
19
- VoiceListResponse: external['components/schemas.yaml']['VoiceListResponse'];
20
- AgentScheduleSlot: external['components/schemas.yaml']['AgentScheduleSlot'];
21
- AgentScheduleRule: external['components/schemas.yaml']['AgentScheduleRule'];
22
- AgentSchedule: external['components/schemas.yaml']['AgentSchedule'];
23
- UpdateAgentScheduleRequest: external['components/schemas.yaml']['UpdateAgentScheduleRequest'];
24
- AgentScheduleException: external['components/schemas.yaml']['AgentScheduleException'];
25
- AgentScheduleExceptionListResponse: external['components/schemas.yaml']['AgentScheduleExceptionListResponse'];
26
- CreateAgentScheduleExceptionRequest: external['components/schemas.yaml']['CreateAgentScheduleExceptionRequest'];
27
- UpdateAgentScheduleExceptionRequest: external['components/schemas.yaml']['UpdateAgentScheduleExceptionRequest'];
28
- AgentVersionSummary: external['components/schemas.yaml']['AgentVersionSummary'];
29
- AgentVersionDetail: external['components/schemas.yaml']['AgentVersionDetail'];
30
- AgentVersionListResponse: external['components/schemas.yaml']['AgentVersionListResponse'];
31
- CreateAgentVersionRequest: external['components/schemas.yaml']['CreateAgentVersionRequest'];
32
- PublishAgentVersionRequest: external['components/schemas.yaml']['PublishAgentVersionRequest'];
33
- UpdateAgentVersionNotesRequest: external['components/schemas.yaml']['UpdateAgentVersionNotesRequest'];
34
- AgentBlueprint: external['components/schemas.yaml']['AgentBlueprint'];
35
- AgentBlueprintListItem: external['components/schemas.yaml']['AgentBlueprintListItem'];
36
- AgentBlueprintListResponse: external['components/schemas.yaml']['AgentBlueprintListResponse'];
37
- CreateAgentBlueprintRequest: external['components/schemas.yaml']['CreateAgentBlueprintRequest'];
38
- UpdateAgentBlueprintRequest: external['components/schemas.yaml']['UpdateAgentBlueprintRequest'];
39
- ConnectPhoneRequest: external['components/schemas.yaml']['ConnectPhoneRequest'];
40
- PhoneAssignmentResponse: external['components/schemas.yaml']['PhoneAssignmentResponse'];
41
- WorkspacePhone: external['components/schemas.yaml']['WorkspacePhone'];
42
- WorkspacePhonesResponse: external['components/schemas.yaml']['WorkspacePhonesResponse'];
43
- ToolSummary: external['components/schemas.yaml']['ToolSummary'];
44
- ToolListResponse: external['components/schemas.yaml']['ToolListResponse'];
45
- ToolResourceSummary: external['components/schemas.yaml']['ToolResourceSummary'];
46
- ToolResourceListResponse: external['components/schemas.yaml']['ToolResourceListResponse'];
47
- ToolResourceUploadRequest: external['components/schemas.yaml']['ToolResourceUploadRequest'];
48
- ToolResourceUploadResponse: external['components/schemas.yaml']['ToolResourceUploadResponse'];
49
- ToolResourceReloadResponse: external['components/schemas.yaml']['ToolResourceReloadResponse'];
50
- ToolConnectionRequest: external['components/schemas.yaml']['ToolConnectionRequest'];
51
- ToolConnectionResponse: external['components/schemas.yaml']['ToolConnectionResponse'];
52
- ToolConnectionAuth: external['components/schemas.yaml']['ToolConnectionAuth'];
53
- ExecuteToolRequest: external['components/schemas.yaml']['ExecuteToolRequest'];
54
- ExecuteToolResponse: external['components/schemas.yaml']['ExecuteToolResponse'];
55
- CatalogItemLinks: external['components/schemas.yaml']['CatalogItemLinks'];
56
- CatalogItemSummary: external['components/schemas.yaml']['CatalogItemSummary'];
57
- CatalogItemDetail: external['components/schemas.yaml']['CatalogItemDetail'];
58
- CatalogItemListResponse: external['components/schemas.yaml']['CatalogItemListResponse'];
59
- CatalogItemCreateRequest: external['components/schemas.yaml']['CatalogItemCreateRequest'];
60
- WorkspaceEnableRequest: external['components/schemas.yaml']['WorkspaceEnableRequest'];
61
- WorkspaceEnableResponse: external['components/schemas.yaml']['WorkspaceEnableResponse'];
62
- ErrorResponse: external['components/schemas.yaml']['ErrorResponse'];
63
- WebhookSummary: external['components/schemas.yaml']['WebhookSummary'];
64
- WebhookDetail: external['components/schemas.yaml']['WebhookDetail'];
65
- WebhookListResponse: external['components/schemas.yaml']['WebhookListResponse'];
66
- CreateWebhookRequest: external['components/schemas.yaml']['CreateWebhookRequest'];
67
- UpdateWebhookRequest: external['components/schemas.yaml']['UpdateWebhookRequest'];
68
- EventSubscriptionSummary: external['components/schemas.yaml']['EventSubscriptionSummary'];
69
- EventSubscriptionDetail: external['components/schemas.yaml']['EventSubscriptionDetail'];
70
- EventSubscriptionListResponse: external['components/schemas.yaml']['EventSubscriptionListResponse'];
71
- CreateEventSubscriptionRequest: external['components/schemas.yaml']['CreateEventSubscriptionRequest'];
72
- UpdateEventSubscriptionRequest: external['components/schemas.yaml']['UpdateEventSubscriptionRequest'];
11
+ AgentDetail: {
12
+ agentId: string;
13
+ name: string;
14
+ agentType: 'chat' | 'voice';
15
+ workspaceId: string;
16
+ versionId?: string;
17
+ status: 'inactive' | 'training' | 'active' | 'archived';
18
+ description?: string | null;
19
+ toneId?: string | null;
20
+ messageStyleId?: string | null;
21
+ ownerUserId?: string | null;
22
+ knowledgeBaseIds?: string[];
23
+ tags?: string[];
24
+ tools?: {
25
+ identifier: string;
26
+ displayName: string;
27
+ enabled: boolean;
28
+ }[];
29
+ voiceConfig?: {
30
+ voiceId?: string;
31
+ webhookUrl?: string;
32
+ llmId?: string | null;
33
+ } | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ metadata?: {
37
+ [key: string]: unknown;
38
+ };
39
+ };
40
+ PaginationMeta: {
41
+ total: number;
42
+ page: number;
43
+ limit: number;
44
+ hasNext: boolean;
45
+ hasPrevious: boolean;
46
+ };
47
+ QueryFilters: string;
48
+ QueryOrGroups: string;
49
+ AgentSummary: {
50
+ agentId: string;
51
+ name: string;
52
+ agentType: 'chat' | 'voice';
53
+ status: 'inactive' | 'training' | 'active' | 'archived';
54
+ workspaceId: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ };
58
+ AgentListResponse: {
59
+ data: components['schemas']['AgentSummary'][];
60
+ meta: components['schemas']['PaginationMeta'];
61
+ };
62
+ CreateAgentRequest: {
63
+ name: string;
64
+ description?: string | null;
65
+ agentType: 'chat' | 'voice';
66
+ status?: 'inactive' | 'training' | 'active';
67
+ avatarUrl?: string | null;
68
+ debounceDelayMs?: number | null;
69
+ metadata?: {
70
+ [key: string]: unknown;
71
+ };
72
+ };
73
+ AgentTagRequest: {
74
+ tagId: string;
75
+ };
76
+ AgentTagsResponse: {
77
+ agentId: string;
78
+ tags: string[];
79
+ };
80
+ UpdateAgentRequest: {
81
+ name?: string;
82
+ status?: 'inactive' | 'training' | 'active' | 'archived';
83
+ description?: string | null;
84
+ toneId?: string | null;
85
+ messageStyleId?: string | null;
86
+ tags?: string[];
87
+ debounceDelayMs?: number | null;
88
+ ownerUserId?: string | null;
89
+ metadata?: {
90
+ [key: string]: unknown;
91
+ };
92
+ };
93
+ Instruction: {
94
+ id: string;
95
+ versionId: string;
96
+ order: number;
97
+ content: string;
98
+ createdAt?: string;
99
+ updatedAt?: string;
100
+ };
101
+ InstructionListResponse: {
102
+ data: components['schemas']['Instruction'][];
103
+ meta?: components['schemas']['PaginationMeta'];
104
+ };
105
+ CreateInstructionRequest: {
106
+ order: number;
107
+ content: string;
108
+ };
109
+ InstructionCreatedResponse: {
110
+ id: string;
111
+ versionId: string;
112
+ order: number;
113
+ createdAt: string;
114
+ };
115
+ UpdateInstructionRequest: {
116
+ order?: number;
117
+ content?: string;
118
+ };
119
+ VoiceSummary: {
120
+ id: string;
121
+ providerVoiceId?: string;
122
+ name: string;
123
+ gender?: 'female' | 'male' | 'neutral';
124
+ locale: string;
125
+ tags?: string[];
126
+ previewUrl?: string;
127
+ provider: string;
128
+ };
129
+ VoiceListResponse: {
130
+ data: components['schemas']['VoiceSummary'][];
131
+ meta: components['schemas']['PaginationMeta'];
132
+ };
133
+ AgentScheduleSlot: {
134
+ startTime: string;
135
+ endTime: string;
136
+ };
137
+ AgentScheduleRule: {
138
+ dayOfWeek: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
139
+ isEnabled: boolean;
140
+ slot?: components['schemas']['AgentScheduleSlot'] | null;
141
+ };
142
+ AgentSchedule: {
143
+ agentId: string;
144
+ isEnabled: boolean;
145
+ timezone: string;
146
+ outOfHoursBehavior: 'offline' | 'limited-service' | 'auto-message';
147
+ outOfHoursMessage?: string | null;
148
+ rules: components['schemas']['AgentScheduleRule'][];
149
+ metadata?: {
150
+ [key: string]: unknown;
151
+ };
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ };
155
+ UpdateAgentScheduleRequest: {
156
+ isEnabled: boolean;
157
+ timezone: string;
158
+ outOfHoursBehavior: 'offline' | 'limited-service' | 'auto-message';
159
+ outOfHoursMessage?: string | null;
160
+ rules: components['schemas']['AgentScheduleRule'][];
161
+ metadata?: {
162
+ [key: string]: unknown;
163
+ };
164
+ };
165
+ AgentScheduleException: {
166
+ id: string;
167
+ agentId: string;
168
+ exceptionDate: string;
169
+ isClosed: boolean;
170
+ startTime?: string | null;
171
+ endTime?: string | null;
172
+ reason?: string | null;
173
+ createdAt: string;
174
+ };
175
+ AgentScheduleExceptionListResponse: {
176
+ data: components['schemas']['AgentScheduleException'][];
177
+ meta: components['schemas']['PaginationMeta'];
178
+ };
179
+ CreateAgentScheduleExceptionRequest: {
180
+ exceptionDate: string;
181
+ isClosed: boolean;
182
+ startTime?: string | null;
183
+ endTime?: string | null;
184
+ reason?: string | null;
185
+ };
186
+ UpdateAgentScheduleExceptionRequest: {
187
+ exceptionDate?: string;
188
+ isClosed?: boolean;
189
+ startTime?: string | null;
190
+ endTime?: string | null;
191
+ reason?: string | null;
192
+ };
193
+ AgentVersionSummary: {
194
+ id: string;
195
+ agentId: string;
196
+ status: 'draft' | 'active' | 'archived';
197
+ versionNumber: number;
198
+ notes?: string | null;
199
+ createdAt: string;
200
+ updatedAt: string;
201
+ publishedAt?: string | null;
202
+ };
203
+ AgentVersionDetail: components['schemas']['AgentVersionSummary'] & {
204
+ versionHash: string;
205
+ createdBy: string;
206
+ };
207
+ AgentVersionListResponse: {
208
+ data: components['schemas']['AgentVersionSummary'][];
209
+ meta: components['schemas']['PaginationMeta'];
210
+ };
211
+ CreateAgentVersionRequest: {
212
+ notes?: string;
213
+ };
214
+ PublishAgentVersionRequest: {
215
+ publishedAt?: string;
216
+ notes?: string;
217
+ };
218
+ UpdateAgentVersionNotesRequest: {
219
+ notes?: string;
220
+ };
221
+ AgentBlueprint: {
222
+ id: string;
223
+ agentId: string;
224
+ versionId: string;
225
+ versionStatus: 'draft' | 'active' | 'archived';
226
+ languageId: string;
227
+ personalityName: string;
228
+ personalityRole: string;
229
+ targetAudience: string;
230
+ mainGoal: string;
231
+ personalityInitialGreeting: string;
232
+ personalityMessageStyleId: string;
233
+ personalityToneStyleId: string;
234
+ requiredData?: {
235
+ [key: string]: unknown;
236
+ }[];
237
+ criticalRules?: string[];
238
+ topicsAllowed?: string[];
239
+ topicsForbidden?: string[];
240
+ createdAt: string;
241
+ updatedAt: string;
242
+ };
243
+ AgentBlueprintListItem: {
244
+ versionId: string;
245
+ status: 'draft' | 'active' | 'archived';
246
+ createdAt: string;
247
+ updatedAt: string;
248
+ blueprint: components['schemas']['AgentBlueprint'];
249
+ };
250
+ AgentBlueprintListResponse: {
251
+ data: components['schemas']['AgentBlueprintListItem'][];
252
+ };
253
+ CreateAgentBlueprintRequest: {
254
+ languageId: string;
255
+ personalityName: string;
256
+ personalityRole: string;
257
+ targetAudience: string;
258
+ mainGoal: string;
259
+ personalityInitialGreeting: string;
260
+ personalityMessageStyleId: string;
261
+ personalityToneStyleId: string;
262
+ requiredData?: {
263
+ [key: string]: unknown;
264
+ }[];
265
+ criticalRules?: string[];
266
+ topicsAllowed?: string[];
267
+ topicsForbidden?: string[];
268
+ };
269
+ UpdateAgentBlueprintRequest: {
270
+ languageId?: string;
271
+ personalityName?: string;
272
+ personalityRole?: string;
273
+ targetAudience?: string;
274
+ mainGoal?: string;
275
+ personalityInitialGreeting?: string;
276
+ personalityMessageStyleId?: string;
277
+ personalityToneStyleId?: string;
278
+ requiredData?: {
279
+ [key: string]: unknown;
280
+ }[];
281
+ criticalRules?: string[];
282
+ topicsAllowed?: string[];
283
+ topicsForbidden?: string[];
284
+ };
285
+ BlueprintStage: {
286
+ id: string;
287
+ agentId: string;
288
+ blueprintId: string;
289
+ name: string;
290
+ title?: string | null;
291
+ prompt: string;
292
+ order: number;
293
+ triggers: components['schemas']['BlueprintStageTrigger'][];
294
+ metadata?: {
295
+ [key: string]: unknown;
296
+ } | null;
297
+ createdAt: string;
298
+ updatedAt: string;
299
+ };
300
+ BlueprintStageListResponse: {
301
+ data: components['schemas']['BlueprintStage'][];
302
+ meta: components['schemas']['PaginationMeta'];
303
+ };
304
+ CreateBlueprintStageRequest: {
305
+ name: string;
306
+ title?: string | null;
307
+ prompt: string;
308
+ order?: number | null;
309
+ triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
310
+ metadata?: {
311
+ [key: string]: unknown;
312
+ } | null;
313
+ };
314
+ UpdateBlueprintStageRequest: {
315
+ name?: string;
316
+ title?: string | null;
317
+ prompt?: string;
318
+ order?: number | null;
319
+ metadata?: {
320
+ [key: string]: unknown;
321
+ } | null;
322
+ };
323
+ BlueprintStageReorderRequest: {
324
+ stageIds: string[];
325
+ startingStageName?: string | null;
326
+ };
327
+ BlueprintStageTrigger: {
328
+ id: string;
329
+ stageId: string;
330
+ blueprintId: string;
331
+ condition: components['schemas']['BlueprintStageTriggerCondition'];
332
+ nextStageName: string;
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ };
336
+ BlueprintStageTriggerListResponse: {
337
+ data: components['schemas']['BlueprintStageTrigger'][];
338
+ meta: components['schemas']['PaginationMeta'];
339
+ };
340
+ CreateBlueprintStageTriggerRequest: components['schemas']['BlueprintStageTriggerInput'];
341
+ UpdateBlueprintStageTriggerRequest: {
342
+ condition?: components['schemas']['BlueprintStageTriggerCondition'];
343
+ nextStageName?: string | null;
344
+ };
345
+ BlueprintGraphDraft: {
346
+ startingStage: string;
347
+ stages: components['schemas']['BlueprintStageDraft'][];
348
+ };
349
+ BlueprintStageDraft: {
350
+ name: string;
351
+ title?: string | null;
352
+ prompt: string;
353
+ order?: number | null;
354
+ triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
355
+ metadata?: {
356
+ [key: string]: unknown;
357
+ } | null;
358
+ };
359
+ ConnectPhoneRequest: {
360
+ agent_id: string;
361
+ phone_id: string;
362
+ test_phones?: string[];
363
+ allow_all?: boolean;
364
+ };
365
+ PhoneAssignmentResponse: {
366
+ agent_id: string;
367
+ phone_id: string;
368
+ allow_all: boolean;
369
+ test_phones?: string[];
370
+ channel?: string | null;
371
+ assigned_at?: string | null;
372
+ };
373
+ WorkspacePhone: {
374
+ id: string;
375
+ external_id: string;
376
+ channel?: 'voice';
377
+ supports_outbound?: boolean | null;
378
+ assigned_to?: string | null;
379
+ last_used_at?: string | null;
380
+ requires_qr_reauth?: boolean | null;
381
+ };
382
+ WorkspacePhonesResponse: {
383
+ data: components['schemas']['WorkspacePhone'][];
384
+ };
385
+ ToolSummary: {
386
+ id: string;
387
+ name: string;
388
+ identifier: string;
389
+ description?: string | null;
390
+ enabled: boolean;
391
+ category?: string | null;
392
+ auth: 'none' | 'oauth2' | 'api_key' | 'custom';
393
+ requiresUserAuth: boolean;
394
+ configSchema?: components['schemas']['ToolConfigSchema'] | null;
395
+ };
396
+ ToolListResponse: {
397
+ data: components['schemas']['ToolSummary'][];
398
+ meta: components['schemas']['PaginationMeta'];
399
+ };
400
+ ToolResourceSummary: {
401
+ id: string;
402
+ toolId: string;
403
+ type: 'document' | 'media' | 'file';
404
+ title?: string;
405
+ status: 'pending' | 'processing' | 'ready' | 'failed';
406
+ sizeBytes?: number | null;
407
+ createdAt: string;
408
+ updatedAt?: string | null;
409
+ metadata?: {
410
+ [key: string]: unknown;
411
+ };
412
+ };
413
+ ToolResourceListResponse: {
414
+ data: components['schemas']['ToolResourceSummary'][];
415
+ meta: components['schemas']['PaginationMeta'];
416
+ };
417
+ ToolResourceUploadRequest: {
418
+ file: string;
419
+ type?: 'document' | 'media' | 'file';
420
+ title?: string;
421
+ metadata?: {
422
+ [key: string]: unknown;
423
+ };
424
+ };
425
+ ToolResourceUploadResponse: {
426
+ resourceId: string;
427
+ status: 'queued' | 'processing' | 'completed' | 'failed';
428
+ message?: string;
429
+ toolId?: string;
430
+ };
431
+ ToolResourceReloadResponse: {
432
+ resourceId: string;
433
+ status: 'queued' | 'processing' | 'completed' | 'failed';
434
+ toolId?: string;
435
+ message?: string;
436
+ };
437
+ ToolConnectionRequest: {
438
+ workspaceId: string;
439
+ agentId: string;
440
+ metadata?: {
441
+ [key: string]: unknown;
442
+ };
443
+ auth?: components['schemas']['ToolConnectionAuth'];
444
+ };
445
+ ToolConnectionResponse: {
446
+ status: 'connected' | 'pending' | 'error';
447
+ toolAgentConnectionId?: string | null;
448
+ toolId: string;
449
+ workspaceId: string;
450
+ agentId: string;
451
+ providerRef?: string | null;
452
+ authorizationUrl?: string | null;
453
+ message?: string | null;
454
+ metadata?: {
455
+ [key: string]: unknown;
456
+ };
457
+ };
458
+ ToolConnectionAuth: {
459
+ type: 'none' | 'oauth2' | 'api_key';
460
+ data?: {
461
+ [key: string]: unknown;
462
+ };
463
+ };
464
+ ExecuteToolRequest: {
465
+ workspaceId: string;
466
+ agentId: string;
467
+ action: string;
468
+ args?: {
469
+ [key: string]: unknown;
470
+ };
471
+ };
472
+ ExecuteToolResponse: {
473
+ status: 'ok' | 'queued' | 'error';
474
+ result?: {
475
+ [key: string]: unknown;
476
+ };
477
+ metadata?: {
478
+ [key: string]: unknown;
479
+ };
480
+ toolId: string;
481
+ toolAgentConnectionId?: string | null;
482
+ providerRef?: string | null;
483
+ message?: string | null;
484
+ };
485
+ CatalogItemLinks: {
486
+ self: string;
487
+ catalog: string;
488
+ };
489
+ CatalogItemSummary: WithRequired<{
490
+ id: string;
491
+ type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
492
+ systemIdentifier: string;
493
+ scope: 'global' | 'workspace';
494
+ workspaceId?: string | null;
495
+ name: string;
496
+ description: string;
497
+ isActive: boolean;
498
+ metadata: Record<string, never>;
499
+ createdAt: string;
500
+ updatedAt: string;
501
+ links: components['schemas']['CatalogItemLinks'];
502
+ }, 'id' | 'type' | 'systemIdentifier' | 'scope' | 'name' | 'description' | 'isActive' | 'metadata' | 'createdAt' | 'updatedAt' | 'links'>;
503
+ CatalogItemDetail: components['schemas']['CatalogItemSummary'];
504
+ CatalogItemListResponse: {
505
+ data: components['schemas']['CatalogItemSummary'][];
506
+ meta: components['schemas']['PaginationMeta'];
507
+ };
508
+ CatalogItemCreateRequest: WithRequired<{
509
+ type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
510
+ scope: 'global' | 'workspace';
511
+ workspaceId?: string;
512
+ name: string;
513
+ description: string;
514
+ systemIdentifier?: string;
515
+ metadata: Record<string, never>;
516
+ isActive?: boolean;
517
+ }, 'type' | 'scope' | 'name' | 'description' | 'metadata'>;
518
+ WorkspaceEnableRequest: {
519
+ apiKey: string;
520
+ metadata?: {
521
+ [key: string]: unknown;
522
+ };
523
+ };
524
+ WorkspaceEnableResponse: {
525
+ status: 'enabled';
526
+ provider: string;
527
+ workspaceId: string;
528
+ };
529
+ ErrorResponse: {
530
+ code: string;
531
+ message: string;
532
+ details?: {
533
+ [key: string]: unknown;
534
+ };
535
+ };
536
+ WebhookSummary: {
537
+ id: string;
538
+ url: string;
539
+ agentId?: string | null;
540
+ description?: string | null;
541
+ isActive: boolean;
542
+ secretPreview?: string | null;
543
+ createdAt: string;
544
+ updatedAt: string;
545
+ lastDeliveryAt?: string | null;
546
+ };
547
+ WebhookDetail: components['schemas']['WebhookSummary'] & {
548
+ headers?: {
549
+ [key: string]: string;
550
+ };
551
+ successCount?: number;
552
+ failureCount?: number;
553
+ };
554
+ WebhookListResponse: {
555
+ data: components['schemas']['WebhookSummary'][];
556
+ meta: components['schemas']['PaginationMeta'];
557
+ };
558
+ CreateWebhookRequest: {
559
+ url: string;
560
+ agentId?: string | null;
561
+ description?: string | null;
562
+ isActive?: boolean;
563
+ headers?: {
564
+ [key: string]: string;
565
+ };
566
+ secret?: string;
567
+ };
568
+ UpdateWebhookRequest: {
569
+ url?: string;
570
+ agentId?: string | null;
571
+ description?: string | null;
572
+ isActive?: boolean;
573
+ headers?: {
574
+ [key: string]: string;
575
+ };
576
+ };
577
+ EventSubscriptionSummary: {
578
+ id: string;
579
+ webhookId: string;
580
+ eventKey: string;
581
+ isActive: boolean;
582
+ createdAt: string;
583
+ updatedAt: string;
584
+ };
585
+ EventSubscriptionDetail: components['schemas']['EventSubscriptionSummary'] & Record<string, never>;
586
+ EventSubscriptionListResponse: {
587
+ data: components['schemas']['EventSubscriptionDetail'][];
588
+ meta: components['schemas']['PaginationMeta'];
589
+ };
590
+ CreateEventSubscriptionRequest: {
591
+ eventKey: string;
592
+ isActive?: boolean;
593
+ };
594
+ UpdateEventSubscriptionRequest: {
595
+ isActive?: boolean;
596
+ };
597
+ BlueprintStageTriggerCondition: {
598
+ type: 'intent' | 'rule' | 'expression';
599
+ value: string;
600
+ metadata?: {
601
+ [key: string]: unknown;
602
+ } | null;
603
+ };
604
+ BlueprintStageTriggerInput: {
605
+ condition: components['schemas']['BlueprintStageTriggerCondition'];
606
+ nextStageName: string;
607
+ };
608
+ ApiKeySummary: {
609
+ id: string;
610
+ name: string;
611
+ description?: string | null;
612
+ scopes: string[];
613
+ environment: 'production' | 'sandbox' | 'staging' | 'development';
614
+ keyPreview: string;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ lastUsedAt?: string | null;
618
+ revokedAt?: string | null;
619
+ };
620
+ CreateApiKeyRequest: {
621
+ name: string;
622
+ description?: string | null;
623
+ environment?: 'production' | 'sandbox' | 'staging' | 'development';
624
+ scopes?: string[];
625
+ };
626
+ CreateApiKeyResponse: components['schemas']['ApiKeySummary'] & {
627
+ key: string;
628
+ };
629
+ ToolConfigSchemaActionPrompts: {
630
+ assistant?: string;
631
+ user?: string;
632
+ validationFailure?: string;
633
+ };
634
+ ToolConfigSchemaAction: {
635
+ summary?: string;
636
+ description?: string;
637
+ notes?: string[];
638
+ prompts?: components['schemas']['ToolConfigSchemaActionPrompts'];
639
+ schema: OneOf<[
640
+ {
641
+ [key: string]: unknown;
642
+ },
643
+ boolean
644
+ ]>;
645
+ };
646
+ ToolConfigSchema: {
647
+ schemaVersion: 'json-schema/2020-12';
648
+ actions: {
649
+ [key: string]: components['schemas']['ToolConfigSchemaAction'];
650
+ };
651
+ };
652
+ CatalogItemLanguageMetadata: {
653
+ code: string;
654
+ locale?: string | null;
655
+ };
656
+ CatalogItemMessageStyleMetadata: {
657
+ register?: string | null;
658
+ sample?: string | null;
659
+ [key: string]: unknown;
660
+ };
661
+ CatalogItemToneStyleMetadata: {
662
+ mood?: string | null;
663
+ intensity?: string | null;
664
+ [key: string]: unknown;
665
+ };
666
+ CatalogItemTagMetadata: {
667
+ color?: string | null;
668
+ };
669
+ CatalogItemVoiceMetadata: {
670
+ language: string;
671
+ gender: 'female' | 'male' | 'neutral';
672
+ tone: string;
673
+ provider?: string | null;
674
+ previewUrl?: string | null;
675
+ };
73
676
  };
74
677
  responses: never;
75
678
  parameters: {
76
- XWorkspaceId: external['components/parameters.yaml']['XWorkspaceId'];
77
- AgentId: external['components/parameters.yaml']['AgentId'];
78
- PhoneId: external['components/parameters.yaml']['PhoneId'];
79
- InstructionId: external['components/parameters.yaml']['InstructionId'];
80
- ExceptionId: external['components/parameters.yaml']['ExceptionId'];
81
- VersionId: external['components/parameters.yaml']['VersionId'];
82
- TagId: external['components/parameters.yaml']['TagId'];
83
- WorkspaceId: external['components/parameters.yaml']['WorkspaceId'];
84
- ToolId: external['components/parameters.yaml']['ToolId'];
85
- ResourceId: external['components/parameters.yaml']['ResourceId'];
86
- CatalogItemId: external['components/parameters.yaml']['CatalogItemId'];
87
- PageParam: external['components/parameters.yaml']['PageParam'];
88
- LimitParam: external['components/parameters.yaml']['LimitParam'];
89
- Page: external['components/parameters.yaml']['Page'];
90
- Limit: external['components/parameters.yaml']['Limit'];
91
- SortParam: external['components/parameters.yaml']['SortParam'];
92
- FieldsParam: external['components/parameters.yaml']['FieldsParam'];
93
- IncludeParam: external['components/parameters.yaml']['IncludeParam'];
94
- SearchParam: external['components/parameters.yaml']['SearchParam'];
95
- FilterParam: external['components/parameters.yaml']['FilterParam'];
96
- OrParam: external['components/parameters.yaml']['OrParam'];
97
- WebhookId: external['components/parameters.yaml']['WebhookId'];
98
- SubscriptionId: external['components/parameters.yaml']['SubscriptionId'];
679
+ XWorkspaceId: string;
680
+ AgentId: string;
681
+ PhoneId: string;
682
+ InstructionId: string;
683
+ ExceptionId: string;
684
+ VersionId: string;
685
+ TagId: string;
686
+ StageId: string;
687
+ TriggerId: string;
688
+ WorkspaceId: string;
689
+ ToolId: string;
690
+ ResourceId: string;
691
+ CatalogItemId: string;
692
+ PageParam?: number;
693
+ LimitParam?: number;
694
+ Page?: number;
695
+ Limit?: number;
696
+ SortParam?: string;
697
+ FieldsParam?: string;
698
+ IncludeParam?: string;
699
+ SearchParam?: string;
700
+ FilterParam?: components['schemas']['QueryFilters'];
701
+ WebhookId: string;
702
+ SubscriptionId: string;
703
+ ApiKeyId: string;
704
+ IdempotencyKey: string;
99
705
  };
100
706
  requestBodies: never;
101
707
  headers: never;
102
708
  pathItems: never;
103
709
  };
104
- type external = {
105
- 'components/parameters.yaml': any;
106
- 'components/schemas.yaml': any;
107
- 'components/securitySchemes.yaml': any;
108
- 'paths/agents/agent-blueprints.yaml': {
109
- get: unknown;
110
- };
111
- 'paths/agents/agent-by-id.yaml': {
112
- get: unknown;
113
- patch: unknown;
114
- delete: unknown;
115
- };
116
- 'paths/agents/agent-instruction-by-id.yaml': {
117
- patch: unknown;
118
- };
119
- 'paths/agents/agent-instructions.yaml': {
120
- get: unknown;
121
- post: unknown;
122
- };
123
- 'paths/agents/agent-phone-by-id.yaml': {
124
- delete: unknown;
125
- };
126
- 'paths/agents/agent-phones.yaml': {
127
- post: unknown;
128
- };
129
- 'paths/agents/agent-schedule-exception-by-id.yaml': {
130
- get: unknown;
131
- patch: unknown;
132
- delete: unknown;
133
- };
134
- 'paths/agents/agent-schedule-exceptions.yaml': {
135
- get: unknown;
136
- post: unknown;
137
- };
138
- 'paths/agents/agent-schedule.yaml': {
139
- get: unknown;
140
- put: unknown;
141
- post: unknown;
142
- };
143
- 'paths/agents/agent-tag-by-id.yaml': {
144
- delete: unknown;
145
- };
146
- 'paths/agents/agent-tags.yaml': {
147
- post: unknown;
148
- };
149
- 'paths/agents/agent-version-blueprint.yaml': {
150
- get: unknown;
151
- post: unknown;
152
- patch: unknown;
153
- };
154
- 'paths/agents/agent-version-by-id.yaml': {
155
- get: unknown;
156
- };
157
- 'paths/agents/agent-version-clone.yaml': {
158
- post: unknown;
159
- };
160
- 'paths/agents/agent-version-instruction-by-id.yaml': {
161
- patch: unknown;
162
- delete: unknown;
163
- };
164
- 'paths/agents/agent-version-instructions.yaml': {
165
- get: unknown;
166
- post: unknown;
167
- };
168
- 'paths/agents/agent-version-notes.yaml': {
169
- patch: unknown;
170
- };
171
- 'paths/agents/agent-version-publish.yaml': {
172
- post: unknown;
173
- };
174
- 'paths/agents/agent-versions.yaml': {
175
- get: unknown;
176
- post: unknown;
177
- };
178
- 'paths/agents/agents.yaml': {
179
- get: unknown;
180
- post: unknown;
181
- };
182
- 'paths/api-keys/api-key-by-id.yaml': {
183
- delete: unknown;
184
- };
185
- 'paths/api-keys/api-key-show.yaml': {
186
- get: unknown;
187
- };
188
- 'paths/api-keys/api-keys.yaml': {
189
- get: unknown;
190
- post: unknown;
191
- };
192
- 'paths/catalogs/catalog-item-by-id.yaml': {
193
- get: unknown;
194
- delete: unknown;
195
- };
196
- 'paths/catalogs/catalog-items.yaml': {
197
- get: unknown;
198
- post: unknown;
199
- };
200
- 'paths/tools/tool-connect.yaml': {
201
- post: unknown;
202
- };
203
- 'paths/tools/tool-execute.yaml': {
204
- post: unknown;
205
- };
206
- 'paths/tools/tool-resource-by-id.yaml': {
207
- delete: unknown;
208
- };
209
- 'paths/tools/tool-resource-reload.yaml': {
210
- post: unknown;
211
- };
212
- 'paths/tools/tool-resources.yaml': {
213
- get: unknown;
214
- post: unknown;
215
- };
216
- 'paths/tools/tools.yaml': {
217
- get: unknown;
218
- };
219
- 'paths/voices/voices.yaml': {
220
- get: unknown;
221
- };
222
- 'paths/webhooks/webhook-by-id.yaml': {
223
- get: unknown;
224
- patch: unknown;
225
- delete: unknown;
226
- };
227
- 'paths/webhooks/webhook-subscription-by-id.yaml': {
228
- get: unknown;
229
- patch: unknown;
230
- delete: unknown;
231
- };
232
- 'paths/webhooks/webhook-subscriptions.yaml': {
233
- get: unknown;
234
- post: unknown;
235
- };
236
- 'paths/webhooks/webhooks.yaml': {
237
- get: unknown;
238
- post: unknown;
239
- };
240
- 'paths/workspaces/workspace-enable.yaml': {
241
- post: unknown;
242
- };
243
- 'paths/workspaces/workspace-phones.yaml': {
244
- get: unknown;
245
- };
246
- };
247
710
 
248
711
  type QueryValue = string | number | boolean | string[];
249
712
  type QueryFilterOperators = Record<string, QueryValue>;
@@ -405,6 +868,15 @@ type UpdateAgentBlueprintRequest = {
405
868
  topicsAllowed?: string[];
406
869
  topicsForbidden?: string[];
407
870
  };
871
+ type BlueprintStage = components['schemas']['BlueprintStage'];
872
+ type BlueprintStageListResponse = components['schemas']['BlueprintStageListResponse'];
873
+ type CreateBlueprintStageRequest = components['schemas']['CreateBlueprintStageRequest'];
874
+ type UpdateBlueprintStageRequest = components['schemas']['UpdateBlueprintStageRequest'];
875
+ type BlueprintStageReorderRequest = components['schemas']['BlueprintStageReorderRequest'];
876
+ type BlueprintStageTrigger = components['schemas']['BlueprintStageTrigger'];
877
+ type BlueprintStageTriggerListResponse = components['schemas']['BlueprintStageTriggerListResponse'];
878
+ type CreateBlueprintStageTriggerRequest = components['schemas']['CreateBlueprintStageTriggerRequest'];
879
+ type UpdateBlueprintStageTriggerRequest = components['schemas']['UpdateBlueprintStageTriggerRequest'];
408
880
  type ExecuteToolRequest = components['schemas']['ExecuteToolRequest'];
409
881
  type ExecuteToolResponse = components['schemas']['ExecuteToolResponse'];
410
882
  type ToolSummary = components['schemas']['ToolSummary'];
@@ -483,14 +955,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
483
955
  disconnect(agentId: string, phoneId: string): Promise<void>;
484
956
  };
485
957
 
486
- declare function createAgentScheduleApi(cfg: ClientConfig & {
487
- retry?: RetryPolicy;
488
- }): {
489
- get(agentId: string): Promise<AgentSchedule>;
490
- create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
491
- update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
492
- };
493
-
494
958
  type ListAgentScheduleExceptionsOptions = ListQueryOptions;
495
959
  declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
496
960
  retry?: RetryPolicy;
@@ -502,6 +966,39 @@ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
502
966
  delete(agentId: string, exceptionId: string): Promise<void>;
503
967
  };
504
968
 
969
+ declare function createAgentScheduleApi(cfg: ClientConfig & {
970
+ retry?: RetryPolicy;
971
+ }): {
972
+ get(agentId: string): Promise<AgentSchedule>;
973
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
974
+ update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
975
+ };
976
+
977
+ type ListAgentStageTriggersOptions = ListQueryOptions;
978
+ type AgentStageTriggersApi$1 = {
979
+ list(agentId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
980
+ get(agentId: string, stageId: string, triggerId: string): Promise<BlueprintStageTrigger>;
981
+ create(agentId: string, stageId: string, payload: CreateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
982
+ update(agentId: string, stageId: string, triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
983
+ delete(agentId: string, stageId: string, triggerId: string): Promise<void>;
984
+ };
985
+ declare function createAgentStageTriggersApi(cfg: ClientConfig & {
986
+ retry?: RetryPolicy;
987
+ }): AgentStageTriggersApi$1;
988
+
989
+ type ListAgentStagesOptions = ListQueryOptions;
990
+ type AgentStagesApi$1 = {
991
+ list(agentId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
992
+ get(agentId: string, stageId: string): Promise<BlueprintStage>;
993
+ create(agentId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
994
+ update(agentId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
995
+ delete(agentId: string, stageId: string): Promise<void>;
996
+ reorder(agentId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
997
+ };
998
+ declare function createAgentStagesApi(cfg: ClientConfig & {
999
+ retry?: RetryPolicy;
1000
+ }): AgentStagesApi$1;
1001
+
505
1002
  declare function createAgentTagsApi(cfg: ClientConfig & {
506
1003
  retry?: RetryPolicy;
507
1004
  }): {
@@ -533,20 +1030,26 @@ type AgentScheduleApi = ReturnType<typeof createAgentScheduleApi>;
533
1030
  type AgentScheduleExceptionsApi = ReturnType<typeof createAgentScheduleExceptionsApi>;
534
1031
  type AgentVersionsApi = ReturnType<typeof createAgentVersionsApi>;
535
1032
  type AgentBlueprintsApi = ReturnType<typeof createAgentBlueprintsApi>;
1033
+ type AgentStagesApi = ReturnType<typeof createAgentStagesApi>;
1034
+ type AgentStageTriggersApi = ReturnType<typeof createAgentStageTriggersApi>;
536
1035
  type AgentInstructionsHelper = ReturnType<typeof bindAgentInstructions>;
537
1036
  type AgentTagsHelper = ReturnType<typeof bindAgentTags>;
538
1037
  type AgentPhonesHelper = ReturnType<typeof bindAgentPhones>;
539
1038
  type AgentScheduleHelper = ReturnType<typeof bindAgentSchedule>;
540
1039
  type AgentVersionsHelper = ReturnType<typeof bindAgentVersions>;
541
1040
  type AgentBlueprintsHelper = ReturnType<typeof bindAgentBlueprints>;
1041
+ type AgentStageTriggersHelper = ReturnType<typeof bindAgentStageTriggers>;
1042
+ type AgentStagesHelper = ReturnType<typeof bindAgentStages>;
542
1043
  type AgentBase = AgentSummary & Partial<Omit<AgentDetail, keyof AgentSummary>>;
543
1044
  interface AgentEntity extends AgentBase {
1045
+ agentId: string;
544
1046
  instructions: AgentInstructionsHelper;
545
1047
  tagAssignments: AgentTagsHelper;
546
1048
  phones: AgentPhonesHelper;
547
1049
  schedule: AgentScheduleHelper;
548
1050
  versions: AgentVersionsHelper;
549
1051
  blueprints: AgentBlueprintsHelper;
1052
+ stages: AgentStagesHelper;
550
1053
  save(patch: UpdateAgentRequest): Promise<AgentEntity>;
551
1054
  delete(): Promise<void>;
552
1055
  refresh(): Promise<AgentEntity>;
@@ -559,54 +1062,357 @@ type AgentEntityFactoryOptions = {
559
1062
  scheduleExceptionsApi: AgentScheduleExceptionsApi;
560
1063
  versionsApi: AgentVersionsApi;
561
1064
  blueprintsApi: AgentBlueprintsApi;
1065
+ stagesApi: AgentStagesApi;
1066
+ stageTriggersApi: AgentStageTriggersApi;
562
1067
  reload(agentId: string): Promise<AgentEntity>;
563
1068
  updateAgent(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
564
1069
  deleteAgent(agentId: string): Promise<void>;
565
1070
  };
566
1071
  declare const bindAgentInstructions: (api: AgentInstructionsApi, agentId: string) => {
567
- list(opts?: ListAgentInstructionsOptions): Promise<any>;
568
- create(payload: CreateInstructionRequest): Promise<any>;
569
- update(instructionId: string, payload: UpdateInstructionRequest): Promise<any>;
1072
+ list(opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<{
1073
+ data: components["schemas"]["Instruction"][];
1074
+ meta?: components["schemas"]["PaginationMeta"];
1075
+ }, ListAgentInstructionsOptions>>;
1076
+ create(payload: CreateInstructionRequest): Promise<{
1077
+ id: string;
1078
+ versionId: string;
1079
+ order: number;
1080
+ createdAt: string;
1081
+ }>;
1082
+ update(instructionId: string, payload: UpdateInstructionRequest): Promise<{
1083
+ id: string;
1084
+ versionId: string;
1085
+ order: number;
1086
+ content: string;
1087
+ createdAt?: string;
1088
+ updatedAt?: string;
1089
+ }>;
570
1090
  delete(instructionId: string): Promise<void>;
571
1091
  };
1092
+ declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, stageId: string) => {
1093
+ list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
1094
+ data: components["schemas"]["BlueprintStageTrigger"][];
1095
+ meta: components["schemas"]["PaginationMeta"];
1096
+ }, Partial<{
1097
+ page: number;
1098
+ limit: number;
1099
+ sort: string | string[];
1100
+ fields: string | string[];
1101
+ include: string | string[];
1102
+ search: string;
1103
+ filter: QueryFilters | QueryBuilderInput;
1104
+ or: QueryOrGroups | QueryBuilderInput;
1105
+ }>>>;
1106
+ get(triggerId: string): Promise<BlueprintStageTrigger>;
1107
+ create(payload: CreateBlueprintStageTriggerRequest): Promise<{
1108
+ id: string;
1109
+ stageId: string;
1110
+ blueprintId: string;
1111
+ condition: components["schemas"]["BlueprintStageTriggerCondition"];
1112
+ nextStageName: string;
1113
+ createdAt: string;
1114
+ updatedAt: string;
1115
+ }>;
1116
+ update(triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<{
1117
+ id: string;
1118
+ stageId: string;
1119
+ blueprintId: string;
1120
+ condition: components["schemas"]["BlueprintStageTriggerCondition"];
1121
+ nextStageName: string;
1122
+ createdAt: string;
1123
+ updatedAt: string;
1124
+ }>;
1125
+ delete(triggerId: string): Promise<void>;
1126
+ };
1127
+ declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentStageTriggersApi, agentId: string) => {
1128
+ list(opts?: ListAgentStagesOptions): Promise<PaginatedResult<{
1129
+ data: components["schemas"]["BlueprintStage"][];
1130
+ meta: components["schemas"]["PaginationMeta"];
1131
+ }, Partial<{
1132
+ page: number;
1133
+ limit: number;
1134
+ sort: string | string[];
1135
+ fields: string | string[];
1136
+ include: string | string[];
1137
+ search: string;
1138
+ filter: QueryFilters | QueryBuilderInput;
1139
+ or: QueryOrGroups | QueryBuilderInput;
1140
+ }>>>;
1141
+ get(stageId: string): Promise<BlueprintStage>;
1142
+ create(payload: CreateBlueprintStageRequest): Promise<{
1143
+ id: string;
1144
+ agentId: string;
1145
+ blueprintId: string;
1146
+ name: string;
1147
+ title?: string | null;
1148
+ prompt: string;
1149
+ order: number;
1150
+ triggers: components["schemas"]["BlueprintStageTrigger"][];
1151
+ metadata?: {
1152
+ [key: string]: unknown;
1153
+ } | null;
1154
+ createdAt: string;
1155
+ updatedAt: string;
1156
+ }>;
1157
+ update(stageId: string, payload: UpdateBlueprintStageRequest): Promise<{
1158
+ id: string;
1159
+ agentId: string;
1160
+ blueprintId: string;
1161
+ name: string;
1162
+ title?: string | null;
1163
+ prompt: string;
1164
+ order: number;
1165
+ triggers: components["schemas"]["BlueprintStageTrigger"][];
1166
+ metadata?: {
1167
+ [key: string]: unknown;
1168
+ } | null;
1169
+ createdAt: string;
1170
+ updatedAt: string;
1171
+ }>;
1172
+ delete(stageId: string): Promise<void>;
1173
+ reorder(payload: BlueprintStageReorderRequest): Promise<{
1174
+ data: components["schemas"]["BlueprintStage"][];
1175
+ meta: components["schemas"]["PaginationMeta"];
1176
+ }>;
1177
+ triggers(stageId: string): AgentStageTriggersHelper;
1178
+ };
572
1179
  declare const bindAgentTags: (api: AgentTagsApi, agentId: string) => {
573
1180
  add(tagId: string): Promise<AgentTagsResponse>;
574
1181
  remove(tagId: string): Promise<void>;
575
1182
  };
576
1183
  declare const bindAgentPhones: (api: AgentPhonesApi, agentId: string) => {
577
- connect(payload: ConnectPhoneRequest): Promise<any>;
1184
+ connect(payload: ConnectPhoneRequest): Promise<{
1185
+ agent_id: string;
1186
+ phone_id: string;
1187
+ allow_all: boolean;
1188
+ test_phones?: string[];
1189
+ channel?: string | null;
1190
+ assigned_at?: string | null;
1191
+ }>;
578
1192
  disconnect(phoneId: string): Promise<void>;
579
1193
  };
580
1194
  declare const bindAgentScheduleExceptions: (api: AgentScheduleExceptionsApi, agentId: string) => {
581
- list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
582
- get(exceptionId: string): Promise<any>;
583
- create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
584
- update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
1195
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<{
1196
+ data: components["schemas"]["AgentScheduleException"][];
1197
+ meta: components["schemas"]["PaginationMeta"];
1198
+ }, Partial<{
1199
+ page: number;
1200
+ limit: number;
1201
+ sort: string | string[];
1202
+ fields: string | string[];
1203
+ include: string | string[];
1204
+ search: string;
1205
+ filter: QueryFilters | QueryBuilderInput;
1206
+ or: QueryOrGroups | QueryBuilderInput;
1207
+ }>>>;
1208
+ get(exceptionId: string): Promise<{
1209
+ id: string;
1210
+ agentId: string;
1211
+ exceptionDate: string;
1212
+ isClosed: boolean;
1213
+ startTime?: string | null;
1214
+ endTime?: string | null;
1215
+ reason?: string | null;
1216
+ createdAt: string;
1217
+ }>;
1218
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<{
1219
+ id: string;
1220
+ agentId: string;
1221
+ exceptionDate: string;
1222
+ isClosed: boolean;
1223
+ startTime?: string | null;
1224
+ endTime?: string | null;
1225
+ reason?: string | null;
1226
+ createdAt: string;
1227
+ }>;
1228
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<{
1229
+ id: string;
1230
+ agentId: string;
1231
+ exceptionDate: string;
1232
+ isClosed: boolean;
1233
+ startTime?: string | null;
1234
+ endTime?: string | null;
1235
+ reason?: string | null;
1236
+ createdAt: string;
1237
+ }>;
585
1238
  delete(exceptionId: string): Promise<void>;
586
1239
  };
587
1240
  declare const bindAgentSchedule: (scheduleApi: AgentScheduleApi, exceptionsApi: AgentScheduleExceptionsApi, agentId: string) => {
588
- get(): Promise<any>;
589
- create(payload: UpdateAgentScheduleRequest): Promise<any>;
590
- update(payload: UpdateAgentScheduleRequest): Promise<any>;
1241
+ get(): Promise<{
1242
+ agentId: string;
1243
+ isEnabled: boolean;
1244
+ timezone: string;
1245
+ outOfHoursBehavior: "offline" | "limited-service" | "auto-message";
1246
+ outOfHoursMessage?: string | null;
1247
+ rules: components["schemas"]["AgentScheduleRule"][];
1248
+ metadata?: {
1249
+ [key: string]: unknown;
1250
+ };
1251
+ createdAt: string;
1252
+ updatedAt: string;
1253
+ }>;
1254
+ create(payload: UpdateAgentScheduleRequest): Promise<{
1255
+ agentId: string;
1256
+ isEnabled: boolean;
1257
+ timezone: string;
1258
+ outOfHoursBehavior: "offline" | "limited-service" | "auto-message";
1259
+ outOfHoursMessage?: string | null;
1260
+ rules: components["schemas"]["AgentScheduleRule"][];
1261
+ metadata?: {
1262
+ [key: string]: unknown;
1263
+ };
1264
+ createdAt: string;
1265
+ updatedAt: string;
1266
+ }>;
1267
+ update(payload: UpdateAgentScheduleRequest): Promise<{
1268
+ agentId: string;
1269
+ isEnabled: boolean;
1270
+ timezone: string;
1271
+ outOfHoursBehavior: "offline" | "limited-service" | "auto-message";
1272
+ outOfHoursMessage?: string | null;
1273
+ rules: components["schemas"]["AgentScheduleRule"][];
1274
+ metadata?: {
1275
+ [key: string]: unknown;
1276
+ };
1277
+ createdAt: string;
1278
+ updatedAt: string;
1279
+ }>;
591
1280
  exceptions: {
592
- list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
593
- get(exceptionId: string): Promise<any>;
594
- create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
595
- update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
1281
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<{
1282
+ data: components["schemas"]["AgentScheduleException"][];
1283
+ meta: components["schemas"]["PaginationMeta"];
1284
+ }, Partial<{
1285
+ page: number;
1286
+ limit: number;
1287
+ sort: string | string[];
1288
+ fields: string | string[];
1289
+ include: string | string[];
1290
+ search: string;
1291
+ filter: QueryFilters | QueryBuilderInput;
1292
+ or: QueryOrGroups | QueryBuilderInput;
1293
+ }>>>;
1294
+ get(exceptionId: string): Promise<{
1295
+ id: string;
1296
+ agentId: string;
1297
+ exceptionDate: string;
1298
+ isClosed: boolean;
1299
+ startTime?: string | null;
1300
+ endTime?: string | null;
1301
+ reason?: string | null;
1302
+ createdAt: string;
1303
+ }>;
1304
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<{
1305
+ id: string;
1306
+ agentId: string;
1307
+ exceptionDate: string;
1308
+ isClosed: boolean;
1309
+ startTime?: string | null;
1310
+ endTime?: string | null;
1311
+ reason?: string | null;
1312
+ createdAt: string;
1313
+ }>;
1314
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<{
1315
+ id: string;
1316
+ agentId: string;
1317
+ exceptionDate: string;
1318
+ isClosed: boolean;
1319
+ startTime?: string | null;
1320
+ endTime?: string | null;
1321
+ reason?: string | null;
1322
+ createdAt: string;
1323
+ }>;
596
1324
  delete(exceptionId: string): Promise<void>;
597
1325
  };
598
1326
  };
599
1327
  declare const bindAgentVersions: (api: AgentVersionsApi, agentId: string) => {
600
- list(opts?: ListAgentVersionsOptions): Promise<any>;
601
- get(versionId: string): Promise<any>;
602
- create(payload?: CreateAgentVersionRequest): Promise<any>;
603
- clone(versionId: string): Promise<any>;
604
- publish(versionId: string, payload?: PublishAgentVersionRequest): Promise<any>;
605
- updateNotes(versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<any>;
1328
+ list(opts?: ListAgentVersionsOptions): Promise<PaginatedResult<{
1329
+ data: components["schemas"]["AgentVersionSummary"][];
1330
+ meta: components["schemas"]["PaginationMeta"];
1331
+ }, ListAgentVersionsOptions>>;
1332
+ get(versionId: string): Promise<{
1333
+ id: string;
1334
+ agentId: string;
1335
+ status: "draft" | "active" | "archived";
1336
+ versionNumber: number;
1337
+ notes?: string | null;
1338
+ createdAt: string;
1339
+ updatedAt: string;
1340
+ publishedAt?: string | null;
1341
+ } & {
1342
+ versionHash: string;
1343
+ createdBy: string;
1344
+ }>;
1345
+ create(payload?: CreateAgentVersionRequest): Promise<{
1346
+ id: string;
1347
+ agentId: string;
1348
+ status: "draft" | "active" | "archived";
1349
+ versionNumber: number;
1350
+ notes?: string | null;
1351
+ createdAt: string;
1352
+ updatedAt: string;
1353
+ publishedAt?: string | null;
1354
+ } & {
1355
+ versionHash: string;
1356
+ createdBy: string;
1357
+ }>;
1358
+ clone(versionId: string): Promise<{
1359
+ id: string;
1360
+ agentId: string;
1361
+ status: "draft" | "active" | "archived";
1362
+ versionNumber: number;
1363
+ notes?: string | null;
1364
+ createdAt: string;
1365
+ updatedAt: string;
1366
+ publishedAt?: string | null;
1367
+ } & {
1368
+ versionHash: string;
1369
+ createdBy: string;
1370
+ }>;
1371
+ publish(versionId: string, payload?: PublishAgentVersionRequest): Promise<{
1372
+ id: string;
1373
+ agentId: string;
1374
+ status: "draft" | "active" | "archived";
1375
+ versionNumber: number;
1376
+ notes?: string | null;
1377
+ createdAt: string;
1378
+ updatedAt: string;
1379
+ publishedAt?: string | null;
1380
+ } & {
1381
+ versionHash: string;
1382
+ createdBy: string;
1383
+ }>;
1384
+ updateNotes(versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<{
1385
+ id: string;
1386
+ agentId: string;
1387
+ status: "draft" | "active" | "archived";
1388
+ versionNumber: number;
1389
+ notes?: string | null;
1390
+ createdAt: string;
1391
+ updatedAt: string;
1392
+ publishedAt?: string | null;
1393
+ } & {
1394
+ versionHash: string;
1395
+ createdBy: string;
1396
+ }>;
606
1397
  instructions(versionId: string): {
607
- readonly list: (opts?: ListAgentVersionInstructionsOptions) => Promise<any>;
608
- readonly create: (payload: CreateInstructionRequest) => Promise<any>;
609
- readonly update: (instructionId: string, payload: UpdateInstructionRequest) => Promise<any>;
1398
+ readonly list: (opts?: ListAgentVersionInstructionsOptions) => Promise<{
1399
+ data: components["schemas"]["Instruction"][];
1400
+ meta?: components["schemas"]["PaginationMeta"];
1401
+ }>;
1402
+ readonly create: (payload: CreateInstructionRequest) => Promise<{
1403
+ id: string;
1404
+ versionId: string;
1405
+ order: number;
1406
+ createdAt: string;
1407
+ }>;
1408
+ readonly update: (instructionId: string, payload: UpdateInstructionRequest) => Promise<{
1409
+ id: string;
1410
+ versionId: string;
1411
+ order: number;
1412
+ content: string;
1413
+ createdAt?: string;
1414
+ updatedAt?: string;
1415
+ }>;
610
1416
  readonly delete: (instructionId: string) => Promise<void>;
611
1417
  };
612
1418
  };
@@ -629,6 +1435,8 @@ type AgentEntityDependencies = {
629
1435
  scheduleExceptionsApi: ReturnType<typeof createAgentScheduleExceptionsApi>;
630
1436
  versionsApi: ReturnType<typeof createAgentVersionsApi>;
631
1437
  blueprintsApi: ReturnType<typeof createAgentBlueprintsApi>;
1438
+ stagesApi: ReturnType<typeof createAgentStagesApi>;
1439
+ stageTriggersApi: ReturnType<typeof createAgentStageTriggersApi>;
632
1440
  };
633
1441
  type ListAgentsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
634
1442
  type AgentsApi = {
@@ -813,6 +1621,9 @@ declare function createClient(initialCfg: ClientConfig & {
813
1621
  deleteInstruction(agentId: string, versionId: string, instructionId: string): Promise<void>;
814
1622
  } & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
815
1623
  blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
1624
+ stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
1625
+ triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
1626
+ };
816
1627
  delete: (agent: string | AgentEntity) => Promise<void>;
817
1628
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
818
1629
  data: AgentEntity[];
@@ -829,7 +1640,14 @@ declare function createClient(initialCfg: ClientConfig & {
829
1640
  tools: {
830
1641
  list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
831
1642
  listResources(toolId: string, options?: ListToolResourcesOptions): Promise<PaginatedResult<ToolResourceListResponse, ListToolResourcesOptions>>;
832
- uploadResource(toolId: string, payload: FormData | (Omit<any, "file"> & {
1643
+ uploadResource(toolId: string, payload: FormData | (Omit<{
1644
+ file: string;
1645
+ type?: "document" | "media" | "file";
1646
+ title?: string;
1647
+ metadata?: {
1648
+ [key: string]: unknown;
1649
+ };
1650
+ }, "file"> & {
833
1651
  file: unknown;
834
1652
  })): Promise<ToolResourceUploadResponse>;
835
1653
  deleteResource(toolId: string, resourceId: string): Promise<void>;
@@ -906,6 +1724,9 @@ declare function createClient(initialCfg: ClientConfig & {
906
1724
  deleteInstruction(agentId: string, versionId: string, instructionId: string): Promise<void>;
907
1725
  } & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
908
1726
  blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
1727
+ stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
1728
+ triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
1729
+ };
909
1730
  delete: (agent: string | AgentEntity) => Promise<void>;
910
1731
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
911
1732
  data: AgentEntity[];
@@ -922,7 +1743,14 @@ declare function createClient(initialCfg: ClientConfig & {
922
1743
  tools: {
923
1744
  list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
924
1745
  listResources(toolId: string, options?: ListToolResourcesOptions): Promise<PaginatedResult<ToolResourceListResponse, ListToolResourcesOptions>>;
925
- uploadResource(toolId: string, payload: FormData | (Omit<any, "file"> & {
1746
+ uploadResource(toolId: string, payload: FormData | (Omit<{
1747
+ file: string;
1748
+ type?: "document" | "media" | "file";
1749
+ title?: string;
1750
+ metadata?: {
1751
+ [key: string]: unknown;
1752
+ };
1753
+ }, "file"> & {
926
1754
  file: unknown;
927
1755
  })): Promise<ToolResourceUploadResponse>;
928
1756
  deleteResource(toolId: string, resourceId: string): Promise<void>;
@@ -981,4 +1809,4 @@ declare function createHttp(cfg: ClientConfig & {
981
1809
  resolveAccessToken: () => string;
982
1810
  };
983
1811
 
984
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
1812
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };