@upon-ai/sdk 0.0.0-stage → 0.1.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.
@@ -0,0 +1,1936 @@
1
+ export declare const metadata: {
2
+ readonly listLlms: {
3
+ readonly path: "/api/v1/llms";
4
+ readonly method: "get";
5
+ readonly summary: "List LLMs";
6
+ readonly parameters: readonly [{
7
+ readonly name: "workspaceId";
8
+ readonly in: "query";
9
+ readonly required: true;
10
+ readonly schema: {
11
+ readonly type: "integer";
12
+ };
13
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
14
+ }, {
15
+ readonly name: "limit";
16
+ readonly in: "query";
17
+ readonly required: false;
18
+ readonly schema: {
19
+ readonly type: "integer";
20
+ readonly minimum: 1;
21
+ readonly maximum: 1000;
22
+ readonly default: 1000;
23
+ };
24
+ readonly description: "Maximum number of records to return.";
25
+ }, {
26
+ readonly name: "paginationKey";
27
+ readonly in: "query";
28
+ readonly required: false;
29
+ readonly schema: {
30
+ readonly type: "string";
31
+ };
32
+ readonly description: "Identifier to continue pagination.";
33
+ }, {
34
+ readonly name: "paginationKeyVersion";
35
+ readonly in: "query";
36
+ readonly required: false;
37
+ readonly schema: {
38
+ readonly type: "integer";
39
+ };
40
+ readonly description: "Version paired with the pagination key.";
41
+ }];
42
+ readonly bodyRequired: false;
43
+ readonly bodyType: null;
44
+ readonly bodySchema: null;
45
+ };
46
+ readonly createLlm: {
47
+ readonly path: "/api/v1/llms";
48
+ readonly method: "post";
49
+ readonly summary: "Create LLM";
50
+ readonly parameters: readonly [];
51
+ readonly bodyRequired: true;
52
+ readonly bodyType: "application/json";
53
+ readonly bodySchema: {
54
+ readonly $ref: "#/components/schemas/CreateLlmRequest";
55
+ };
56
+ };
57
+ readonly getLlm: {
58
+ readonly path: "/api/v1/llms/{llmId}";
59
+ readonly method: "get";
60
+ readonly summary: "Get LLM";
61
+ readonly parameters: readonly [{
62
+ readonly name: "llmId";
63
+ readonly in: "path";
64
+ readonly required: true;
65
+ readonly schema: {
66
+ readonly type: "string";
67
+ };
68
+ readonly description: "LLM identifier.";
69
+ }, {
70
+ readonly name: "workspaceId";
71
+ readonly in: "query";
72
+ readonly required: true;
73
+ readonly schema: {
74
+ readonly type: "integer";
75
+ };
76
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
77
+ }, {
78
+ readonly name: "version";
79
+ readonly in: "query";
80
+ readonly required: false;
81
+ readonly schema: {
82
+ readonly type: "integer";
83
+ readonly minimum: 0;
84
+ };
85
+ readonly description: "Specific version to retrieve or update.";
86
+ }];
87
+ readonly bodyRequired: false;
88
+ readonly bodyType: null;
89
+ readonly bodySchema: null;
90
+ };
91
+ readonly updateLlm: {
92
+ readonly path: "/api/v1/llms/{llmId}";
93
+ readonly method: "patch";
94
+ readonly summary: "Update LLM";
95
+ readonly parameters: readonly [{
96
+ readonly name: "llmId";
97
+ readonly in: "path";
98
+ readonly required: true;
99
+ readonly schema: {
100
+ readonly type: "string";
101
+ };
102
+ readonly description: "LLM identifier.";
103
+ }, {
104
+ readonly name: "version";
105
+ readonly in: "query";
106
+ readonly required: false;
107
+ readonly schema: {
108
+ readonly type: "integer";
109
+ readonly minimum: 0;
110
+ };
111
+ readonly description: "Specific version to retrieve or update.";
112
+ }];
113
+ readonly bodyRequired: true;
114
+ readonly bodyType: "application/json";
115
+ readonly bodySchema: {
116
+ readonly $ref: "#/components/schemas/UpdateLlmRequest";
117
+ };
118
+ };
119
+ readonly deleteLlm: {
120
+ readonly path: "/api/v1/llms/{llmId}";
121
+ readonly method: "delete";
122
+ readonly summary: "Delete LLM";
123
+ readonly parameters: readonly [{
124
+ readonly name: "llmId";
125
+ readonly in: "path";
126
+ readonly required: true;
127
+ readonly schema: {
128
+ readonly type: "string";
129
+ };
130
+ readonly description: "LLM identifier.";
131
+ }, {
132
+ readonly name: "workspaceId";
133
+ readonly in: "query";
134
+ readonly required: true;
135
+ readonly schema: {
136
+ readonly type: "integer";
137
+ };
138
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
139
+ }];
140
+ readonly bodyRequired: false;
141
+ readonly bodyType: null;
142
+ readonly bodySchema: null;
143
+ };
144
+ readonly listAgents: {
145
+ readonly path: "/api/v1/agents";
146
+ readonly method: "get";
147
+ readonly summary: "List agents";
148
+ readonly parameters: readonly [{
149
+ readonly name: "workspaceId";
150
+ readonly in: "query";
151
+ readonly required: true;
152
+ readonly schema: {
153
+ readonly type: "integer";
154
+ };
155
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
156
+ }, {
157
+ readonly name: "limit";
158
+ readonly in: "query";
159
+ readonly required: false;
160
+ readonly schema: {
161
+ readonly type: "integer";
162
+ readonly minimum: 1;
163
+ readonly maximum: 1000;
164
+ readonly default: 1000;
165
+ };
166
+ readonly description: "Maximum number of records to return.";
167
+ }, {
168
+ readonly name: "paginationKey";
169
+ readonly in: "query";
170
+ readonly required: false;
171
+ readonly schema: {
172
+ readonly type: "string";
173
+ };
174
+ readonly description: "Identifier to continue pagination.";
175
+ }, {
176
+ readonly name: "paginationKeyVersion";
177
+ readonly in: "query";
178
+ readonly required: false;
179
+ readonly schema: {
180
+ readonly type: "integer";
181
+ };
182
+ readonly description: "Version paired with the pagination key.";
183
+ }];
184
+ readonly bodyRequired: false;
185
+ readonly bodyType: null;
186
+ readonly bodySchema: null;
187
+ };
188
+ readonly createAgent: {
189
+ readonly path: "/api/v1/agents";
190
+ readonly method: "post";
191
+ readonly summary: "Create agent";
192
+ readonly parameters: readonly [];
193
+ readonly bodyRequired: true;
194
+ readonly bodyType: "application/json";
195
+ readonly bodySchema: {
196
+ readonly $ref: "#/components/schemas/CreateAgentRequest";
197
+ };
198
+ };
199
+ readonly getAgent: {
200
+ readonly path: "/api/v1/agents/{agentId}";
201
+ readonly method: "get";
202
+ readonly summary: "Get agent";
203
+ readonly parameters: readonly [{
204
+ readonly name: "agentId";
205
+ readonly in: "path";
206
+ readonly required: true;
207
+ readonly schema: {
208
+ readonly type: "string";
209
+ };
210
+ readonly description: "Agent identifier.";
211
+ }, {
212
+ readonly name: "workspaceId";
213
+ readonly in: "query";
214
+ readonly required: true;
215
+ readonly schema: {
216
+ readonly type: "integer";
217
+ };
218
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
219
+ }, {
220
+ readonly name: "version";
221
+ readonly in: "query";
222
+ readonly required: false;
223
+ readonly schema: {
224
+ readonly type: "integer";
225
+ readonly minimum: 0;
226
+ };
227
+ readonly description: "Specific version to retrieve or update.";
228
+ }];
229
+ readonly bodyRequired: false;
230
+ readonly bodyType: null;
231
+ readonly bodySchema: null;
232
+ };
233
+ readonly updateAgent: {
234
+ readonly path: "/api/v1/agents/{agentId}";
235
+ readonly method: "patch";
236
+ readonly summary: "Update agent";
237
+ readonly parameters: readonly [{
238
+ readonly name: "agentId";
239
+ readonly in: "path";
240
+ readonly required: true;
241
+ readonly schema: {
242
+ readonly type: "string";
243
+ };
244
+ readonly description: "Agent identifier.";
245
+ }, {
246
+ readonly name: "version";
247
+ readonly in: "query";
248
+ readonly required: false;
249
+ readonly schema: {
250
+ readonly type: "integer";
251
+ readonly minimum: 0;
252
+ };
253
+ readonly description: "Specific version to retrieve or update.";
254
+ }];
255
+ readonly bodyRequired: true;
256
+ readonly bodyType: "application/json";
257
+ readonly bodySchema: {
258
+ readonly $ref: "#/components/schemas/UpdateAgentRequest";
259
+ };
260
+ };
261
+ readonly deleteAgent: {
262
+ readonly path: "/api/v1/agents/{agentId}";
263
+ readonly method: "delete";
264
+ readonly summary: "Delete agent";
265
+ readonly parameters: readonly [{
266
+ readonly name: "agentId";
267
+ readonly in: "path";
268
+ readonly required: true;
269
+ readonly schema: {
270
+ readonly type: "string";
271
+ };
272
+ readonly description: "Agent identifier.";
273
+ }, {
274
+ readonly name: "workspaceId";
275
+ readonly in: "query";
276
+ readonly required: true;
277
+ readonly schema: {
278
+ readonly type: "integer";
279
+ };
280
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
281
+ }];
282
+ readonly bodyRequired: false;
283
+ readonly bodyType: null;
284
+ readonly bodySchema: null;
285
+ };
286
+ readonly listAgentVersions: {
287
+ readonly path: "/api/v1/agents/{agentId}/versions";
288
+ readonly method: "get";
289
+ readonly summary: "List agent versions";
290
+ readonly parameters: readonly [{
291
+ readonly name: "agentId";
292
+ readonly in: "path";
293
+ readonly required: true;
294
+ readonly schema: {
295
+ readonly type: "string";
296
+ };
297
+ readonly description: "Agent identifier.";
298
+ }, {
299
+ readonly name: "workspaceId";
300
+ readonly in: "query";
301
+ readonly required: true;
302
+ readonly schema: {
303
+ readonly type: "integer";
304
+ };
305
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
306
+ }];
307
+ readonly bodyRequired: false;
308
+ readonly bodyType: null;
309
+ readonly bodySchema: null;
310
+ };
311
+ readonly createAgentDraftVersion: {
312
+ readonly path: "/api/v1/agents/{agentId}/versions";
313
+ readonly method: "post";
314
+ readonly summary: "Create agent draft version";
315
+ readonly parameters: readonly [{
316
+ readonly name: "agentId";
317
+ readonly in: "path";
318
+ readonly required: true;
319
+ readonly schema: {
320
+ readonly type: "string";
321
+ };
322
+ readonly description: "Agent identifier.";
323
+ }];
324
+ readonly bodyRequired: true;
325
+ readonly bodyType: "application/json";
326
+ readonly bodySchema: {
327
+ readonly $ref: "#/components/schemas/CreateAgentVersionRequest";
328
+ };
329
+ };
330
+ readonly publishAgentVersion: {
331
+ readonly path: "/api/v1/agents/{agentId}/versions/{version}/publish";
332
+ readonly method: "post";
333
+ readonly summary: "Publish agent version";
334
+ readonly parameters: readonly [{
335
+ readonly name: "agentId";
336
+ readonly in: "path";
337
+ readonly required: true;
338
+ readonly schema: {
339
+ readonly type: "string";
340
+ };
341
+ readonly description: "Agent identifier.";
342
+ }, {
343
+ readonly name: "version";
344
+ readonly in: "path";
345
+ readonly required: true;
346
+ readonly schema: {
347
+ readonly type: "integer";
348
+ readonly minimum: 0;
349
+ };
350
+ readonly description: "Specific agent version.";
351
+ }];
352
+ readonly bodyRequired: true;
353
+ readonly bodyType: "application/json";
354
+ readonly bodySchema: {
355
+ readonly $ref: "#/components/schemas/PublishAgentVersionRequest";
356
+ };
357
+ };
358
+ readonly deleteAgentVersion: {
359
+ readonly path: "/api/v1/agents/{agentId}/versions/{version}";
360
+ readonly method: "delete";
361
+ readonly summary: "Delete agent version";
362
+ readonly parameters: readonly [{
363
+ readonly name: "agentId";
364
+ readonly in: "path";
365
+ readonly required: true;
366
+ readonly schema: {
367
+ readonly type: "string";
368
+ };
369
+ readonly description: "Agent identifier.";
370
+ }, {
371
+ readonly name: "version";
372
+ readonly in: "path";
373
+ readonly required: true;
374
+ readonly schema: {
375
+ readonly type: "integer";
376
+ readonly minimum: 0;
377
+ };
378
+ readonly description: "Specific agent version.";
379
+ }, {
380
+ readonly name: "workspaceId";
381
+ readonly in: "query";
382
+ readonly required: true;
383
+ readonly schema: {
384
+ readonly type: "integer";
385
+ };
386
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
387
+ }];
388
+ readonly bodyRequired: false;
389
+ readonly bodyType: null;
390
+ readonly bodySchema: null;
391
+ };
392
+ readonly listChatAgents: {
393
+ readonly path: "/api/v1/chat-agents";
394
+ readonly method: "get";
395
+ readonly summary: "List chat agents";
396
+ readonly parameters: readonly [{
397
+ readonly name: "workspaceId";
398
+ readonly in: "query";
399
+ readonly required: true;
400
+ readonly schema: {
401
+ readonly type: "integer";
402
+ };
403
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
404
+ }, {
405
+ readonly name: "limit";
406
+ readonly in: "query";
407
+ readonly required: false;
408
+ readonly schema: {
409
+ readonly type: "integer";
410
+ readonly minimum: 1;
411
+ readonly maximum: 1000;
412
+ readonly default: 1000;
413
+ };
414
+ readonly description: "Maximum number of records to return.";
415
+ }, {
416
+ readonly name: "paginationKey";
417
+ readonly in: "query";
418
+ readonly required: false;
419
+ readonly schema: {
420
+ readonly type: "string";
421
+ };
422
+ readonly description: "Identifier to continue pagination.";
423
+ }, {
424
+ readonly name: "paginationKeyVersion";
425
+ readonly in: "query";
426
+ readonly required: false;
427
+ readonly schema: {
428
+ readonly type: "integer";
429
+ };
430
+ readonly description: "Version paired with the pagination key.";
431
+ }];
432
+ readonly bodyRequired: false;
433
+ readonly bodyType: null;
434
+ readonly bodySchema: null;
435
+ };
436
+ readonly createChatAgent: {
437
+ readonly path: "/api/v1/chat-agents";
438
+ readonly method: "post";
439
+ readonly summary: "Create chat agent";
440
+ readonly parameters: readonly [];
441
+ readonly bodyRequired: true;
442
+ readonly bodyType: "application/json";
443
+ readonly bodySchema: {
444
+ readonly $ref: "#/components/schemas/CreateChatAgentRequest";
445
+ };
446
+ };
447
+ readonly getChatAgent: {
448
+ readonly path: "/api/v1/chat-agents/{agentId}";
449
+ readonly method: "get";
450
+ readonly summary: "Get chat agent";
451
+ readonly parameters: readonly [{
452
+ readonly name: "agentId";
453
+ readonly in: "path";
454
+ readonly required: true;
455
+ readonly schema: {
456
+ readonly type: "string";
457
+ };
458
+ readonly description: "Agent identifier.";
459
+ }, {
460
+ readonly name: "workspaceId";
461
+ readonly in: "query";
462
+ readonly required: true;
463
+ readonly schema: {
464
+ readonly type: "integer";
465
+ };
466
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
467
+ }, {
468
+ readonly name: "version";
469
+ readonly in: "query";
470
+ readonly required: false;
471
+ readonly schema: {
472
+ readonly type: "integer";
473
+ readonly minimum: 0;
474
+ };
475
+ readonly description: "Specific version to retrieve or update.";
476
+ }];
477
+ readonly bodyRequired: false;
478
+ readonly bodyType: null;
479
+ readonly bodySchema: null;
480
+ };
481
+ readonly updateChatAgent: {
482
+ readonly path: "/api/v1/chat-agents/{agentId}";
483
+ readonly method: "patch";
484
+ readonly summary: "Update chat agent";
485
+ readonly parameters: readonly [{
486
+ readonly name: "agentId";
487
+ readonly in: "path";
488
+ readonly required: true;
489
+ readonly schema: {
490
+ readonly type: "string";
491
+ };
492
+ readonly description: "Agent identifier.";
493
+ }, {
494
+ readonly name: "version";
495
+ readonly in: "query";
496
+ readonly required: false;
497
+ readonly schema: {
498
+ readonly type: "integer";
499
+ readonly minimum: 0;
500
+ };
501
+ readonly description: "Specific version to retrieve or update.";
502
+ }];
503
+ readonly bodyRequired: true;
504
+ readonly bodyType: "application/json";
505
+ readonly bodySchema: {
506
+ readonly $ref: "#/components/schemas/UpdateChatAgentRequest";
507
+ };
508
+ };
509
+ readonly deleteChatAgent: {
510
+ readonly path: "/api/v1/chat-agents/{agentId}";
511
+ readonly method: "delete";
512
+ readonly summary: "Delete chat agent";
513
+ readonly parameters: readonly [{
514
+ readonly name: "agentId";
515
+ readonly in: "path";
516
+ readonly required: true;
517
+ readonly schema: {
518
+ readonly type: "string";
519
+ };
520
+ readonly description: "Agent identifier.";
521
+ }, {
522
+ readonly name: "workspaceId";
523
+ readonly in: "query";
524
+ readonly required: true;
525
+ readonly schema: {
526
+ readonly type: "integer";
527
+ };
528
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
529
+ }];
530
+ readonly bodyRequired: false;
531
+ readonly bodyType: null;
532
+ readonly bodySchema: null;
533
+ };
534
+ readonly listChatAgentVersions: {
535
+ readonly path: "/api/v1/chat-agents/{agentId}/versions";
536
+ readonly method: "get";
537
+ readonly summary: "List chat agent versions";
538
+ readonly parameters: readonly [{
539
+ readonly name: "agentId";
540
+ readonly in: "path";
541
+ readonly required: true;
542
+ readonly schema: {
543
+ readonly type: "string";
544
+ };
545
+ readonly description: "Agent identifier.";
546
+ }, {
547
+ readonly name: "workspaceId";
548
+ readonly in: "query";
549
+ readonly required: true;
550
+ readonly schema: {
551
+ readonly type: "integer";
552
+ };
553
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
554
+ }];
555
+ readonly bodyRequired: false;
556
+ readonly bodyType: null;
557
+ readonly bodySchema: null;
558
+ };
559
+ readonly createChatAgentDraftVersion: {
560
+ readonly path: "/api/v1/chat-agents/{agentId}/versions";
561
+ readonly method: "post";
562
+ readonly summary: "Create chat agent draft version";
563
+ readonly parameters: readonly [{
564
+ readonly name: "agentId";
565
+ readonly in: "path";
566
+ readonly required: true;
567
+ readonly schema: {
568
+ readonly type: "string";
569
+ };
570
+ readonly description: "Agent identifier.";
571
+ }];
572
+ readonly bodyRequired: true;
573
+ readonly bodyType: "application/json";
574
+ readonly bodySchema: {
575
+ readonly $ref: "#/components/schemas/CreateAgentVersionRequest";
576
+ };
577
+ };
578
+ readonly publishChatAgentVersion: {
579
+ readonly path: "/api/v1/chat-agents/{agentId}/versions/{version}/publish";
580
+ readonly method: "post";
581
+ readonly summary: "Publish chat agent version";
582
+ readonly parameters: readonly [{
583
+ readonly name: "agentId";
584
+ readonly in: "path";
585
+ readonly required: true;
586
+ readonly schema: {
587
+ readonly type: "string";
588
+ };
589
+ readonly description: "Agent identifier.";
590
+ }, {
591
+ readonly name: "version";
592
+ readonly in: "path";
593
+ readonly required: true;
594
+ readonly schema: {
595
+ readonly type: "integer";
596
+ readonly minimum: 0;
597
+ };
598
+ readonly description: "Specific agent version.";
599
+ }];
600
+ readonly bodyRequired: true;
601
+ readonly bodyType: "application/json";
602
+ readonly bodySchema: {
603
+ readonly $ref: "#/components/schemas/PublishAgentVersionRequest";
604
+ };
605
+ };
606
+ readonly deleteChatAgentVersion: {
607
+ readonly path: "/api/v1/chat-agents/{agentId}/versions/{version}";
608
+ readonly method: "delete";
609
+ readonly summary: "Delete chat agent version";
610
+ readonly parameters: readonly [{
611
+ readonly name: "agentId";
612
+ readonly in: "path";
613
+ readonly required: true;
614
+ readonly schema: {
615
+ readonly type: "string";
616
+ };
617
+ readonly description: "Agent identifier.";
618
+ }, {
619
+ readonly name: "version";
620
+ readonly in: "path";
621
+ readonly required: true;
622
+ readonly schema: {
623
+ readonly type: "integer";
624
+ readonly minimum: 0;
625
+ };
626
+ readonly description: "Specific agent version.";
627
+ }, {
628
+ readonly name: "workspaceId";
629
+ readonly in: "query";
630
+ readonly required: true;
631
+ readonly schema: {
632
+ readonly type: "integer";
633
+ };
634
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
635
+ }];
636
+ readonly bodyRequired: false;
637
+ readonly bodyType: null;
638
+ readonly bodySchema: null;
639
+ };
640
+ readonly publishChatAgentVersionFiltered: {
641
+ readonly path: "/api/v1/chat-agents/{agentId}/publish";
642
+ readonly method: "post";
643
+ readonly summary: "Publish chat agent version (legacy path)";
644
+ readonly parameters: readonly [{
645
+ readonly name: "agentId";
646
+ readonly in: "path";
647
+ readonly required: true;
648
+ readonly schema: {
649
+ readonly type: "string";
650
+ };
651
+ readonly description: "Agent identifier.";
652
+ }];
653
+ readonly bodyRequired: true;
654
+ readonly bodyType: "application/json";
655
+ readonly bodySchema: {
656
+ readonly type: "object";
657
+ readonly required: readonly ["workspaceId", "version"];
658
+ readonly properties: {
659
+ readonly workspaceId: {
660
+ readonly type: "integer";
661
+ };
662
+ readonly version: {
663
+ readonly type: "integer";
664
+ readonly minimum: 0;
665
+ };
666
+ readonly versionTitle: {
667
+ readonly type: "string";
668
+ };
669
+ readonly versionDescription: {
670
+ readonly type: "string";
671
+ };
672
+ };
673
+ };
674
+ };
675
+ readonly listChats: {
676
+ readonly path: "/api/v1/chats";
677
+ readonly method: "get";
678
+ readonly summary: "List chats";
679
+ readonly parameters: readonly [{
680
+ readonly name: "workspaceId";
681
+ readonly in: "query";
682
+ readonly required: true;
683
+ readonly schema: {
684
+ readonly type: "integer";
685
+ };
686
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
687
+ }, {
688
+ readonly name: "sortOrder";
689
+ readonly in: "query";
690
+ readonly required: false;
691
+ readonly schema: {
692
+ readonly type: "string";
693
+ readonly enum: readonly ["ascending", "descending"];
694
+ readonly default: "descending";
695
+ };
696
+ readonly description: "Sort direction for chat listings.";
697
+ }, {
698
+ readonly name: "limit";
699
+ readonly in: "query";
700
+ readonly required: false;
701
+ readonly schema: {
702
+ readonly type: "integer";
703
+ readonly minimum: 1;
704
+ readonly maximum: 1000;
705
+ readonly default: 1000;
706
+ };
707
+ readonly description: "Maximum number of records to return.";
708
+ }, {
709
+ readonly name: "paginationKey";
710
+ readonly in: "query";
711
+ readonly required: false;
712
+ readonly schema: {
713
+ readonly type: "string";
714
+ };
715
+ readonly description: "Identifier to continue pagination.";
716
+ }];
717
+ readonly bodyRequired: false;
718
+ readonly bodyType: null;
719
+ readonly bodySchema: null;
720
+ };
721
+ readonly createChat: {
722
+ readonly path: "/api/v1/chats";
723
+ readonly method: "post";
724
+ readonly summary: "Create chat";
725
+ readonly parameters: readonly [];
726
+ readonly bodyRequired: true;
727
+ readonly bodyType: "application/json";
728
+ readonly bodySchema: {
729
+ readonly $ref: "#/components/schemas/CreateChatRequest";
730
+ };
731
+ };
732
+ readonly createOutboundSmsChat: {
733
+ readonly path: "/api/v1/chats/outbound-sms";
734
+ readonly method: "post";
735
+ readonly summary: "Create outbound SMS chat";
736
+ readonly parameters: readonly [];
737
+ readonly bodyRequired: true;
738
+ readonly bodyType: "application/json";
739
+ readonly bodySchema: {
740
+ readonly $ref: "#/components/schemas/CreateOutboundSmsChatRequest";
741
+ };
742
+ };
743
+ readonly getChat: {
744
+ readonly path: "/api/v1/chats/{chatId}";
745
+ readonly method: "get";
746
+ readonly summary: "Get chat";
747
+ readonly parameters: readonly [{
748
+ readonly name: "chatId";
749
+ readonly in: "path";
750
+ readonly required: true;
751
+ readonly schema: {
752
+ readonly type: "string";
753
+ };
754
+ readonly description: "Chat identifier.";
755
+ }, {
756
+ readonly name: "workspaceId";
757
+ readonly in: "query";
758
+ readonly required: true;
759
+ readonly schema: {
760
+ readonly type: "integer";
761
+ };
762
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
763
+ }];
764
+ readonly bodyRequired: false;
765
+ readonly bodyType: null;
766
+ readonly bodySchema: null;
767
+ };
768
+ readonly updateChat: {
769
+ readonly path: "/api/v1/chats/{chatId}";
770
+ readonly method: "patch";
771
+ readonly summary: "Update chat";
772
+ readonly parameters: readonly [{
773
+ readonly name: "chatId";
774
+ readonly in: "path";
775
+ readonly required: true;
776
+ readonly schema: {
777
+ readonly type: "string";
778
+ };
779
+ readonly description: "Chat identifier.";
780
+ }];
781
+ readonly bodyRequired: true;
782
+ readonly bodyType: "application/json";
783
+ readonly bodySchema: {
784
+ readonly $ref: "#/components/schemas/UpdateChatRequest";
785
+ };
786
+ };
787
+ readonly createChatCompletion: {
788
+ readonly path: "/api/v1/chats/{chatId}/completions";
789
+ readonly method: "post";
790
+ readonly summary: "Create chat completion";
791
+ readonly parameters: readonly [{
792
+ readonly name: "chatId";
793
+ readonly in: "path";
794
+ readonly required: true;
795
+ readonly schema: {
796
+ readonly type: "string";
797
+ };
798
+ readonly description: "Chat identifier.";
799
+ }];
800
+ readonly bodyRequired: true;
801
+ readonly bodyType: "application/json";
802
+ readonly bodySchema: {
803
+ readonly $ref: "#/components/schemas/CreateChatCompletionRequest";
804
+ };
805
+ };
806
+ readonly endChat: {
807
+ readonly path: "/api/v1/chats/{chatId}/end";
808
+ readonly method: "post";
809
+ readonly summary: "End chat";
810
+ readonly parameters: readonly [{
811
+ readonly name: "chatId";
812
+ readonly in: "path";
813
+ readonly required: true;
814
+ readonly schema: {
815
+ readonly type: "string";
816
+ };
817
+ readonly description: "Chat identifier.";
818
+ }];
819
+ readonly bodyRequired: true;
820
+ readonly bodyType: "application/json";
821
+ readonly bodySchema: {
822
+ readonly type: "object";
823
+ readonly required: readonly ["workspaceId"];
824
+ readonly properties: {
825
+ readonly workspaceId: {
826
+ readonly type: "integer";
827
+ };
828
+ };
829
+ };
830
+ };
831
+ readonly listChatWidgets: {
832
+ readonly path: "/api/v1/chat-widgets";
833
+ readonly method: "get";
834
+ readonly summary: "List chat widgets";
835
+ readonly parameters: readonly [{
836
+ readonly name: "workspaceId";
837
+ readonly in: "query";
838
+ readonly required: true;
839
+ readonly schema: {
840
+ readonly type: "integer";
841
+ };
842
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
843
+ }];
844
+ readonly bodyRequired: false;
845
+ readonly bodyType: null;
846
+ readonly bodySchema: null;
847
+ };
848
+ readonly createChatWidget: {
849
+ readonly path: "/api/v1/chat-widgets";
850
+ readonly method: "post";
851
+ readonly summary: "Create chat widget";
852
+ readonly parameters: readonly [];
853
+ readonly bodyRequired: true;
854
+ readonly bodyType: "application/json";
855
+ readonly bodySchema: {
856
+ readonly $ref: "#/components/schemas/CreateChatWidgetRequest";
857
+ };
858
+ };
859
+ readonly getChatWidget: {
860
+ readonly path: "/api/v1/chat-widgets/{widgetId}";
861
+ readonly method: "get";
862
+ readonly summary: "Get chat widget";
863
+ readonly parameters: readonly [{
864
+ readonly name: "widgetId";
865
+ readonly in: "path";
866
+ readonly required: true;
867
+ readonly schema: {
868
+ readonly type: "integer";
869
+ };
870
+ readonly description: "Chat widget configuration identifier.";
871
+ }];
872
+ readonly bodyRequired: false;
873
+ readonly bodyType: null;
874
+ readonly bodySchema: null;
875
+ };
876
+ readonly updateChatWidget: {
877
+ readonly path: "/api/v1/chat-widgets/{widgetId}";
878
+ readonly method: "patch";
879
+ readonly summary: "Update chat widget";
880
+ readonly parameters: readonly [{
881
+ readonly name: "widgetId";
882
+ readonly in: "path";
883
+ readonly required: true;
884
+ readonly schema: {
885
+ readonly type: "integer";
886
+ };
887
+ readonly description: "Chat widget configuration identifier.";
888
+ }];
889
+ readonly bodyRequired: true;
890
+ readonly bodyType: "application/json";
891
+ readonly bodySchema: {
892
+ readonly $ref: "#/components/schemas/UpdateChatWidgetRequest";
893
+ };
894
+ };
895
+ readonly regenerateWidgetKey: {
896
+ readonly path: "/api/v1/chat-widgets/{widgetId}/regenerate-key";
897
+ readonly method: "post";
898
+ readonly summary: "Regenerate widget key";
899
+ readonly parameters: readonly [{
900
+ readonly name: "widgetId";
901
+ readonly in: "path";
902
+ readonly required: true;
903
+ readonly schema: {
904
+ readonly type: "integer";
905
+ };
906
+ readonly description: "Chat widget configuration identifier.";
907
+ }];
908
+ readonly bodyRequired: false;
909
+ readonly bodyType: null;
910
+ readonly bodySchema: null;
911
+ };
912
+ readonly listConversationFlows: {
913
+ readonly path: "/api/v1/conversation-flows";
914
+ readonly method: "get";
915
+ readonly summary: "List conversation flows";
916
+ readonly parameters: readonly [{
917
+ readonly name: "workspaceId";
918
+ readonly in: "query";
919
+ readonly required: true;
920
+ readonly schema: {
921
+ readonly type: "integer";
922
+ };
923
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
924
+ }, {
925
+ readonly name: "limit";
926
+ readonly in: "query";
927
+ readonly required: false;
928
+ readonly schema: {
929
+ readonly type: "integer";
930
+ readonly minimum: 1;
931
+ readonly maximum: 1000;
932
+ readonly default: 1000;
933
+ };
934
+ readonly description: "Maximum number of records to return.";
935
+ }, {
936
+ readonly name: "paginationKey";
937
+ readonly in: "query";
938
+ readonly required: false;
939
+ readonly schema: {
940
+ readonly type: "string";
941
+ };
942
+ readonly description: "Identifier to continue pagination.";
943
+ }, {
944
+ readonly name: "paginationKeyVersion";
945
+ readonly in: "query";
946
+ readonly required: false;
947
+ readonly schema: {
948
+ readonly type: "integer";
949
+ };
950
+ readonly description: "Version paired with the pagination key.";
951
+ }];
952
+ readonly bodyRequired: false;
953
+ readonly bodyType: null;
954
+ readonly bodySchema: null;
955
+ };
956
+ readonly createConversationFlow: {
957
+ readonly path: "/api/v1/conversation-flows";
958
+ readonly method: "post";
959
+ readonly summary: "Create conversation flow";
960
+ readonly parameters: readonly [];
961
+ readonly bodyRequired: true;
962
+ readonly bodyType: "application/json";
963
+ readonly bodySchema: {
964
+ readonly $ref: "#/components/schemas/CreateConversationFlowRequest";
965
+ };
966
+ };
967
+ readonly getConversationFlow: {
968
+ readonly path: "/api/v1/conversation-flows/{conversationFlowId}";
969
+ readonly method: "get";
970
+ readonly summary: "Get conversation flow";
971
+ readonly parameters: readonly [{
972
+ readonly name: "conversationFlowId";
973
+ readonly in: "path";
974
+ readonly required: true;
975
+ readonly schema: {
976
+ readonly type: "string";
977
+ };
978
+ readonly description: "Conversation flow identifier.";
979
+ }, {
980
+ readonly name: "workspaceId";
981
+ readonly in: "query";
982
+ readonly required: true;
983
+ readonly schema: {
984
+ readonly type: "integer";
985
+ };
986
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
987
+ }, {
988
+ readonly name: "version";
989
+ readonly in: "query";
990
+ readonly required: false;
991
+ readonly schema: {
992
+ readonly type: "integer";
993
+ readonly minimum: 0;
994
+ };
995
+ readonly description: "Specific version to retrieve or update.";
996
+ }];
997
+ readonly bodyRequired: false;
998
+ readonly bodyType: null;
999
+ readonly bodySchema: null;
1000
+ };
1001
+ readonly updateConversationFlow: {
1002
+ readonly path: "/api/v1/conversation-flows/{conversationFlowId}";
1003
+ readonly method: "patch";
1004
+ readonly summary: "Update conversation flow";
1005
+ readonly parameters: readonly [{
1006
+ readonly name: "conversationFlowId";
1007
+ readonly in: "path";
1008
+ readonly required: true;
1009
+ readonly schema: {
1010
+ readonly type: "string";
1011
+ };
1012
+ readonly description: "Conversation flow identifier.";
1013
+ }, {
1014
+ readonly name: "version";
1015
+ readonly in: "query";
1016
+ readonly required: false;
1017
+ readonly schema: {
1018
+ readonly type: "integer";
1019
+ readonly minimum: 0;
1020
+ };
1021
+ readonly description: "Specific version to retrieve or update.";
1022
+ }];
1023
+ readonly bodyRequired: true;
1024
+ readonly bodyType: "application/json";
1025
+ readonly bodySchema: {
1026
+ readonly $ref: "#/components/schemas/UpdateConversationFlowRequest";
1027
+ };
1028
+ };
1029
+ readonly deleteConversationFlow: {
1030
+ readonly path: "/api/v1/conversation-flows/{conversationFlowId}";
1031
+ readonly method: "delete";
1032
+ readonly summary: "Delete conversation flow";
1033
+ readonly parameters: readonly [{
1034
+ readonly name: "conversationFlowId";
1035
+ readonly in: "path";
1036
+ readonly required: true;
1037
+ readonly schema: {
1038
+ readonly type: "string";
1039
+ };
1040
+ readonly description: "Conversation flow identifier.";
1041
+ }, {
1042
+ readonly name: "workspaceId";
1043
+ readonly in: "query";
1044
+ readonly required: true;
1045
+ readonly schema: {
1046
+ readonly type: "integer";
1047
+ };
1048
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1049
+ }];
1050
+ readonly bodyRequired: false;
1051
+ readonly bodyType: null;
1052
+ readonly bodySchema: null;
1053
+ };
1054
+ readonly listKnowledgeBases: {
1055
+ readonly path: "/api/v1/knowledge-bases";
1056
+ readonly method: "get";
1057
+ readonly summary: "List knowledge bases";
1058
+ readonly parameters: readonly [{
1059
+ readonly name: "workspaceId";
1060
+ readonly in: "query";
1061
+ readonly required: true;
1062
+ readonly schema: {
1063
+ readonly type: "integer";
1064
+ };
1065
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1066
+ }];
1067
+ readonly bodyRequired: false;
1068
+ readonly bodyType: null;
1069
+ readonly bodySchema: null;
1070
+ };
1071
+ readonly createKnowledgeBase: {
1072
+ readonly path: "/api/v1/knowledge-bases";
1073
+ readonly method: "post";
1074
+ readonly summary: "Create knowledge base";
1075
+ readonly parameters: readonly [];
1076
+ readonly bodyRequired: true;
1077
+ readonly bodyType: "application/json";
1078
+ readonly bodySchema: {
1079
+ readonly $ref: "#/components/schemas/CreateKnowledgeBaseRequest";
1080
+ };
1081
+ };
1082
+ readonly getKnowledgeBase: {
1083
+ readonly path: "/api/v1/knowledge-bases/{knowledgeBaseId}";
1084
+ readonly method: "get";
1085
+ readonly summary: "Get knowledge base";
1086
+ readonly parameters: readonly [{
1087
+ readonly name: "knowledgeBaseId";
1088
+ readonly in: "path";
1089
+ readonly required: true;
1090
+ readonly schema: {
1091
+ readonly type: "string";
1092
+ };
1093
+ readonly description: "Knowledge base identifier.";
1094
+ }, {
1095
+ readonly name: "workspaceId";
1096
+ readonly in: "query";
1097
+ readonly required: true;
1098
+ readonly schema: {
1099
+ readonly type: "integer";
1100
+ };
1101
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1102
+ }];
1103
+ readonly bodyRequired: false;
1104
+ readonly bodyType: null;
1105
+ readonly bodySchema: null;
1106
+ };
1107
+ readonly deleteKnowledgeBase: {
1108
+ readonly path: "/api/v1/knowledge-bases/{knowledgeBaseId}";
1109
+ readonly method: "delete";
1110
+ readonly summary: "Delete knowledge base";
1111
+ readonly parameters: readonly [{
1112
+ readonly name: "knowledgeBaseId";
1113
+ readonly in: "path";
1114
+ readonly required: true;
1115
+ readonly schema: {
1116
+ readonly type: "string";
1117
+ };
1118
+ readonly description: "Knowledge base identifier.";
1119
+ }, {
1120
+ readonly name: "workspaceId";
1121
+ readonly in: "query";
1122
+ readonly required: true;
1123
+ readonly schema: {
1124
+ readonly type: "integer";
1125
+ };
1126
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1127
+ }];
1128
+ readonly bodyRequired: false;
1129
+ readonly bodyType: null;
1130
+ readonly bodySchema: null;
1131
+ };
1132
+ readonly addKnowledgeBaseSources: {
1133
+ readonly path: "/api/v1/knowledge-bases/{knowledgeBaseId}/sources";
1134
+ readonly method: "post";
1135
+ readonly summary: "Add knowledge base sources";
1136
+ readonly parameters: readonly [{
1137
+ readonly name: "knowledgeBaseId";
1138
+ readonly in: "path";
1139
+ readonly required: true;
1140
+ readonly schema: {
1141
+ readonly type: "string";
1142
+ };
1143
+ readonly description: "Knowledge base identifier.";
1144
+ }];
1145
+ readonly bodyRequired: true;
1146
+ readonly bodyType: "application/json";
1147
+ readonly bodySchema: {
1148
+ readonly $ref: "#/components/schemas/AddKnowledgeBaseSourcesRequest";
1149
+ };
1150
+ };
1151
+ readonly deleteKnowledgeBaseSource: {
1152
+ readonly path: "/api/v1/knowledge-bases/{knowledgeBaseId}/sources/{sourceId}";
1153
+ readonly method: "delete";
1154
+ readonly summary: "Delete knowledge base source";
1155
+ readonly parameters: readonly [{
1156
+ readonly name: "knowledgeBaseId";
1157
+ readonly in: "path";
1158
+ readonly required: true;
1159
+ readonly schema: {
1160
+ readonly type: "string";
1161
+ };
1162
+ readonly description: "Knowledge base identifier.";
1163
+ }, {
1164
+ readonly name: "sourceId";
1165
+ readonly in: "path";
1166
+ readonly required: true;
1167
+ readonly schema: {
1168
+ readonly type: "string";
1169
+ };
1170
+ readonly description: "Knowledge base source identifier.";
1171
+ }, {
1172
+ readonly name: "workspaceId";
1173
+ readonly in: "query";
1174
+ readonly required: true;
1175
+ readonly schema: {
1176
+ readonly type: "integer";
1177
+ };
1178
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1179
+ }];
1180
+ readonly bodyRequired: false;
1181
+ readonly bodyType: null;
1182
+ readonly bodySchema: null;
1183
+ };
1184
+ readonly listVoices: {
1185
+ readonly path: "/api/v1/voices";
1186
+ readonly method: "get";
1187
+ readonly summary: "List voices";
1188
+ readonly parameters: readonly [{
1189
+ readonly name: "workspaceId";
1190
+ readonly in: "query";
1191
+ readonly required: true;
1192
+ readonly schema: {
1193
+ readonly type: "integer";
1194
+ };
1195
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1196
+ }];
1197
+ readonly bodyRequired: false;
1198
+ readonly bodyType: null;
1199
+ readonly bodySchema: null;
1200
+ };
1201
+ readonly searchCommunityVoices: {
1202
+ readonly path: "/api/v1/voices/search";
1203
+ readonly method: "post";
1204
+ readonly summary: "Search community voices";
1205
+ readonly parameters: readonly [];
1206
+ readonly bodyRequired: true;
1207
+ readonly bodyType: "application/json";
1208
+ readonly bodySchema: {
1209
+ readonly $ref: "#/components/schemas/SearchCommunityVoiceRequest";
1210
+ };
1211
+ };
1212
+ readonly addCommunityVoice: {
1213
+ readonly path: "/api/v1/voices/community";
1214
+ readonly method: "post";
1215
+ readonly summary: "Add community voice";
1216
+ readonly parameters: readonly [];
1217
+ readonly bodyRequired: true;
1218
+ readonly bodyType: "application/json";
1219
+ readonly bodySchema: {
1220
+ readonly $ref: "#/components/schemas/AddCommunityVoiceRequest";
1221
+ };
1222
+ };
1223
+ readonly cloneVoice: {
1224
+ readonly path: "/api/v1/voices/clone";
1225
+ readonly method: "post";
1226
+ readonly summary: "Clone voice";
1227
+ readonly parameters: readonly [];
1228
+ readonly bodyRequired: true;
1229
+ readonly bodyType: "multipart/form-data";
1230
+ readonly bodySchema: {
1231
+ readonly $ref: "#/components/schemas/CloneVoiceRequest";
1232
+ };
1233
+ };
1234
+ readonly getVoice: {
1235
+ readonly path: "/api/v1/voices/{voiceId}";
1236
+ readonly method: "get";
1237
+ readonly summary: "Get voice";
1238
+ readonly parameters: readonly [{
1239
+ readonly name: "voiceId";
1240
+ readonly in: "path";
1241
+ readonly required: true;
1242
+ readonly schema: {
1243
+ readonly type: "string";
1244
+ };
1245
+ readonly description: "Voice identifier.";
1246
+ }, {
1247
+ readonly name: "workspaceId";
1248
+ readonly in: "query";
1249
+ readonly required: true;
1250
+ readonly schema: {
1251
+ readonly type: "integer";
1252
+ };
1253
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1254
+ }];
1255
+ readonly bodyRequired: false;
1256
+ readonly bodyType: null;
1257
+ readonly bodySchema: null;
1258
+ };
1259
+ readonly streamVoiceSample: {
1260
+ readonly path: "/api/v1/voices/{voiceId}/sample";
1261
+ readonly method: "get";
1262
+ readonly summary: "Stream voice sample";
1263
+ readonly parameters: readonly [{
1264
+ readonly name: "voiceId";
1265
+ readonly in: "path";
1266
+ readonly required: true;
1267
+ readonly schema: {
1268
+ readonly type: "string";
1269
+ };
1270
+ readonly description: "Voice identifier.";
1271
+ }, {
1272
+ readonly name: "workspaceId";
1273
+ readonly in: "query";
1274
+ readonly required: true;
1275
+ readonly schema: {
1276
+ readonly type: "integer";
1277
+ };
1278
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1279
+ }];
1280
+ readonly bodyRequired: false;
1281
+ readonly bodyType: null;
1282
+ readonly bodySchema: null;
1283
+ };
1284
+ readonly listTestCaseDefinitions: {
1285
+ readonly path: "/api/v1/test-case-definitions";
1286
+ readonly method: "get";
1287
+ readonly summary: "List test case definitions";
1288
+ readonly parameters: readonly [{
1289
+ readonly name: "workspaceId";
1290
+ readonly in: "query";
1291
+ readonly required: true;
1292
+ readonly schema: {
1293
+ readonly type: "integer";
1294
+ };
1295
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1296
+ }, {
1297
+ readonly name: "type";
1298
+ readonly in: "query";
1299
+ readonly required: true;
1300
+ readonly schema: {
1301
+ readonly type: "string";
1302
+ };
1303
+ readonly description: "Response engine type used by an existing test case definition.";
1304
+ }, {
1305
+ readonly name: "llmId";
1306
+ readonly in: "query";
1307
+ readonly required: false;
1308
+ readonly schema: {
1309
+ readonly type: "string";
1310
+ };
1311
+ readonly description: "LLM identifier filter.";
1312
+ }, {
1313
+ readonly name: "conversationFlowId";
1314
+ readonly in: "query";
1315
+ readonly required: false;
1316
+ readonly schema: {
1317
+ readonly type: "string";
1318
+ };
1319
+ readonly description: "Conversation flow identifier filter.";
1320
+ }, {
1321
+ readonly name: "version";
1322
+ readonly in: "query";
1323
+ readonly required: false;
1324
+ readonly schema: {
1325
+ readonly type: "integer";
1326
+ readonly minimum: 0;
1327
+ };
1328
+ readonly description: "Specific version to retrieve or update.";
1329
+ }, {
1330
+ readonly name: "limit";
1331
+ readonly in: "query";
1332
+ readonly required: false;
1333
+ readonly schema: {
1334
+ readonly type: "integer";
1335
+ readonly minimum: 1;
1336
+ readonly maximum: 1000;
1337
+ readonly default: 1000;
1338
+ };
1339
+ readonly description: "Maximum number of records to return.";
1340
+ }, {
1341
+ readonly name: "paginationKey";
1342
+ readonly in: "query";
1343
+ readonly required: false;
1344
+ readonly schema: {
1345
+ readonly type: "string";
1346
+ };
1347
+ readonly description: "Identifier to continue pagination.";
1348
+ }];
1349
+ readonly bodyRequired: false;
1350
+ readonly bodyType: null;
1351
+ readonly bodySchema: null;
1352
+ };
1353
+ readonly createTestCaseDefinition: {
1354
+ readonly path: "/api/v1/test-case-definitions";
1355
+ readonly method: "post";
1356
+ readonly summary: "Create test case definition";
1357
+ readonly parameters: readonly [];
1358
+ readonly bodyRequired: true;
1359
+ readonly bodyType: "application/json";
1360
+ readonly bodySchema: {
1361
+ readonly $ref: "#/components/schemas/CreateTestCaseDefinitionRequest";
1362
+ };
1363
+ };
1364
+ readonly listBatchTests: {
1365
+ readonly path: "/api/v1/batch-tests";
1366
+ readonly method: "get";
1367
+ readonly summary: "List batch tests";
1368
+ readonly parameters: readonly [{
1369
+ readonly name: "workspaceId";
1370
+ readonly in: "query";
1371
+ readonly required: true;
1372
+ readonly schema: {
1373
+ readonly type: "integer";
1374
+ };
1375
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1376
+ }, {
1377
+ readonly name: "type";
1378
+ readonly in: "query";
1379
+ readonly required: true;
1380
+ readonly schema: {
1381
+ readonly type: "string";
1382
+ };
1383
+ readonly description: "Response engine type used by an existing test case definition.";
1384
+ }, {
1385
+ readonly name: "llmId";
1386
+ readonly in: "query";
1387
+ readonly required: false;
1388
+ readonly schema: {
1389
+ readonly type: "string";
1390
+ };
1391
+ readonly description: "LLM identifier filter.";
1392
+ }, {
1393
+ readonly name: "conversationFlowId";
1394
+ readonly in: "query";
1395
+ readonly required: false;
1396
+ readonly schema: {
1397
+ readonly type: "string";
1398
+ };
1399
+ readonly description: "Conversation flow identifier filter.";
1400
+ }, {
1401
+ readonly name: "version";
1402
+ readonly in: "query";
1403
+ readonly required: false;
1404
+ readonly schema: {
1405
+ readonly type: "integer";
1406
+ readonly minimum: 0;
1407
+ };
1408
+ readonly description: "Specific version to retrieve or update.";
1409
+ }, {
1410
+ readonly name: "limit";
1411
+ readonly in: "query";
1412
+ readonly required: false;
1413
+ readonly schema: {
1414
+ readonly type: "integer";
1415
+ readonly minimum: 1;
1416
+ readonly maximum: 1000;
1417
+ readonly default: 1000;
1418
+ };
1419
+ readonly description: "Maximum number of records to return.";
1420
+ }, {
1421
+ readonly name: "paginationKey";
1422
+ readonly in: "query";
1423
+ readonly required: false;
1424
+ readonly schema: {
1425
+ readonly type: "string";
1426
+ };
1427
+ readonly description: "Identifier to continue pagination.";
1428
+ }];
1429
+ readonly bodyRequired: false;
1430
+ readonly bodyType: null;
1431
+ readonly bodySchema: null;
1432
+ };
1433
+ readonly createBatchTest: {
1434
+ readonly path: "/api/v1/batch-tests";
1435
+ readonly method: "post";
1436
+ readonly summary: "Create batch test";
1437
+ readonly parameters: readonly [];
1438
+ readonly bodyRequired: true;
1439
+ readonly bodyType: "application/json";
1440
+ readonly bodySchema: {
1441
+ readonly $ref: "#/components/schemas/CreateBatchTestRequest";
1442
+ };
1443
+ };
1444
+ readonly getBatchTest: {
1445
+ readonly path: "/api/v1/batch-tests/{testCaseBatchJobId}";
1446
+ readonly method: "get";
1447
+ readonly summary: "Get batch test";
1448
+ readonly parameters: readonly [{
1449
+ readonly name: "testCaseBatchJobId";
1450
+ readonly in: "path";
1451
+ readonly required: true;
1452
+ readonly schema: {
1453
+ readonly type: "string";
1454
+ };
1455
+ readonly description: "Test run batch identifier.";
1456
+ }, {
1457
+ readonly name: "workspaceId";
1458
+ readonly in: "query";
1459
+ readonly required: true;
1460
+ readonly schema: {
1461
+ readonly type: "integer";
1462
+ };
1463
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1464
+ }];
1465
+ readonly bodyRequired: false;
1466
+ readonly bodyType: null;
1467
+ readonly bodySchema: null;
1468
+ };
1469
+ readonly getTestCaseDefinition: {
1470
+ readonly path: "/api/v1/test-case-definitions/{testCaseDefinitionId}";
1471
+ readonly method: "get";
1472
+ readonly summary: "Get test case definition";
1473
+ readonly parameters: readonly [{
1474
+ readonly name: "testCaseDefinitionId";
1475
+ readonly in: "path";
1476
+ readonly required: true;
1477
+ readonly schema: {
1478
+ readonly type: "string";
1479
+ };
1480
+ readonly description: "Test case definition identifier.";
1481
+ }, {
1482
+ readonly name: "workspaceId";
1483
+ readonly in: "query";
1484
+ readonly required: true;
1485
+ readonly schema: {
1486
+ readonly type: "integer";
1487
+ };
1488
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1489
+ }];
1490
+ readonly bodyRequired: false;
1491
+ readonly bodyType: null;
1492
+ readonly bodySchema: null;
1493
+ };
1494
+ readonly updateTestCaseDefinition: {
1495
+ readonly path: "/api/v1/test-case-definitions/{testCaseDefinitionId}";
1496
+ readonly method: "put";
1497
+ readonly summary: "Update test case definition";
1498
+ readonly parameters: readonly [{
1499
+ readonly name: "testCaseDefinitionId";
1500
+ readonly in: "path";
1501
+ readonly required: true;
1502
+ readonly schema: {
1503
+ readonly type: "string";
1504
+ };
1505
+ readonly description: "Test case definition identifier.";
1506
+ }];
1507
+ readonly bodyRequired: true;
1508
+ readonly bodyType: "application/json";
1509
+ readonly bodySchema: {
1510
+ readonly $ref: "#/components/schemas/UpdateTestCaseDefinitionRequest";
1511
+ };
1512
+ };
1513
+ readonly deleteTestCaseDefinition: {
1514
+ readonly path: "/api/v1/test-case-definitions/{testCaseDefinitionId}";
1515
+ readonly method: "delete";
1516
+ readonly summary: "Delete test case definition";
1517
+ readonly parameters: readonly [{
1518
+ readonly name: "testCaseDefinitionId";
1519
+ readonly in: "path";
1520
+ readonly required: true;
1521
+ readonly schema: {
1522
+ readonly type: "string";
1523
+ };
1524
+ readonly description: "Test case definition identifier.";
1525
+ }, {
1526
+ readonly name: "workspaceId";
1527
+ readonly in: "query";
1528
+ readonly required: true;
1529
+ readonly schema: {
1530
+ readonly type: "integer";
1531
+ };
1532
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1533
+ }];
1534
+ readonly bodyRequired: false;
1535
+ readonly bodyType: null;
1536
+ readonly bodySchema: null;
1537
+ };
1538
+ readonly getTestRun: {
1539
+ readonly path: "/api/v1/test-runs/{testCaseJobId}";
1540
+ readonly method: "get";
1541
+ readonly summary: "Get test run";
1542
+ readonly parameters: readonly [{
1543
+ readonly name: "testCaseJobId";
1544
+ readonly in: "path";
1545
+ readonly required: true;
1546
+ readonly schema: {
1547
+ readonly type: "string";
1548
+ };
1549
+ readonly description: "Test run job identifier.";
1550
+ }, {
1551
+ readonly name: "workspaceId";
1552
+ readonly in: "query";
1553
+ readonly required: true;
1554
+ readonly schema: {
1555
+ readonly type: "integer";
1556
+ };
1557
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1558
+ }];
1559
+ readonly bodyRequired: false;
1560
+ readonly bodyType: null;
1561
+ readonly bodySchema: null;
1562
+ };
1563
+ readonly listTestRunsByBatch: {
1564
+ readonly path: "/api/v1/test-runs/batches/{testCaseBatchJobId}";
1565
+ readonly method: "get";
1566
+ readonly summary: "List test runs by batch";
1567
+ readonly parameters: readonly [{
1568
+ readonly name: "testCaseBatchJobId";
1569
+ readonly in: "path";
1570
+ readonly required: true;
1571
+ readonly schema: {
1572
+ readonly type: "string";
1573
+ };
1574
+ readonly description: "Test run batch identifier.";
1575
+ }, {
1576
+ readonly name: "workspaceId";
1577
+ readonly in: "query";
1578
+ readonly required: true;
1579
+ readonly schema: {
1580
+ readonly type: "integer";
1581
+ };
1582
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1583
+ }, {
1584
+ readonly name: "limit";
1585
+ readonly in: "query";
1586
+ readonly required: false;
1587
+ readonly schema: {
1588
+ readonly type: "integer";
1589
+ readonly minimum: 1;
1590
+ readonly maximum: 1000;
1591
+ readonly default: 1000;
1592
+ };
1593
+ readonly description: "Maximum number of records to return.";
1594
+ }, {
1595
+ readonly name: "paginationKey";
1596
+ readonly in: "query";
1597
+ readonly required: false;
1598
+ readonly schema: {
1599
+ readonly type: "string";
1600
+ };
1601
+ readonly description: "Identifier to continue pagination.";
1602
+ }];
1603
+ readonly bodyRequired: false;
1604
+ readonly bodyType: null;
1605
+ readonly bodySchema: null;
1606
+ };
1607
+ readonly getConcurrency: {
1608
+ readonly path: "/api/v1/concurrency";
1609
+ readonly method: "get";
1610
+ readonly summary: "Get concurrency";
1611
+ readonly parameters: readonly [{
1612
+ readonly name: "workspaceId";
1613
+ readonly in: "query";
1614
+ readonly required: true;
1615
+ readonly schema: {
1616
+ readonly type: "integer";
1617
+ };
1618
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1619
+ }];
1620
+ readonly bodyRequired: false;
1621
+ readonly bodyType: null;
1622
+ readonly bodySchema: null;
1623
+ };
1624
+ readonly listWorkspaces: {
1625
+ readonly path: "/api/v1/workspaces";
1626
+ readonly method: "get";
1627
+ readonly summary: "List workspaces";
1628
+ readonly parameters: readonly [];
1629
+ readonly bodyRequired: false;
1630
+ readonly bodyType: null;
1631
+ readonly bodySchema: null;
1632
+ };
1633
+ readonly createPhoneCall: {
1634
+ readonly path: "/api/v1/calls/initiate";
1635
+ readonly method: "post";
1636
+ readonly summary: "Create phone call";
1637
+ readonly parameters: readonly [];
1638
+ readonly bodyRequired: true;
1639
+ readonly bodyType: "application/json";
1640
+ readonly bodySchema: {
1641
+ readonly $ref: "#/components/schemas/CreatePhoneCallRequest";
1642
+ };
1643
+ };
1644
+ readonly createWebCall: {
1645
+ readonly path: "/api/v1/calls/web";
1646
+ readonly method: "post";
1647
+ readonly summary: "Create web call";
1648
+ readonly parameters: readonly [];
1649
+ readonly bodyRequired: true;
1650
+ readonly bodyType: "application/json";
1651
+ readonly bodySchema: {
1652
+ readonly $ref: "#/components/schemas/CreateWebCallRequest";
1653
+ };
1654
+ };
1655
+ readonly listCalls: {
1656
+ readonly path: "/api/v1/calls";
1657
+ readonly method: "get";
1658
+ readonly summary: "List calls";
1659
+ readonly parameters: readonly [{
1660
+ readonly name: "workspaceId";
1661
+ readonly in: "query";
1662
+ readonly required: false;
1663
+ readonly schema: {
1664
+ readonly type: "integer";
1665
+ };
1666
+ readonly description: "Optional workspace identifier filter. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1667
+ }, {
1668
+ readonly name: "agentId";
1669
+ readonly in: "query";
1670
+ readonly required: false;
1671
+ readonly schema: {
1672
+ readonly type: "string";
1673
+ };
1674
+ readonly description: "Filter call listings to a specific agent.";
1675
+ }, {
1676
+ readonly name: "status";
1677
+ readonly in: "query";
1678
+ readonly required: false;
1679
+ readonly schema: {
1680
+ readonly type: "string";
1681
+ };
1682
+ readonly description: "Filter calls by status.";
1683
+ }, {
1684
+ readonly name: "fromDate";
1685
+ readonly in: "query";
1686
+ readonly required: false;
1687
+ readonly schema: {
1688
+ readonly type: "string";
1689
+ readonly format: "date-time";
1690
+ };
1691
+ readonly description: "Inclusive start date for call listing filter.";
1692
+ }, {
1693
+ readonly name: "toDate";
1694
+ readonly in: "query";
1695
+ readonly required: false;
1696
+ readonly schema: {
1697
+ readonly type: "string";
1698
+ readonly format: "date-time";
1699
+ };
1700
+ readonly description: "Inclusive end date for call listing filter.";
1701
+ }, {
1702
+ readonly name: "page";
1703
+ readonly in: "query";
1704
+ readonly required: false;
1705
+ readonly schema: {
1706
+ readonly type: "integer";
1707
+ readonly minimum: 1;
1708
+ readonly default: 1;
1709
+ };
1710
+ }, {
1711
+ readonly name: "limit";
1712
+ readonly in: "query";
1713
+ readonly required: false;
1714
+ readonly schema: {
1715
+ readonly type: "integer";
1716
+ readonly minimum: 1;
1717
+ readonly maximum: 100;
1718
+ readonly default: 20;
1719
+ };
1720
+ readonly description: "Page size for list endpoints.";
1721
+ }];
1722
+ readonly bodyRequired: false;
1723
+ readonly bodyType: null;
1724
+ readonly bodySchema: null;
1725
+ };
1726
+ readonly listCallsFiltered: {
1727
+ readonly path: "/api/v1/calls/list";
1728
+ readonly method: "post";
1729
+ readonly summary: "List calls";
1730
+ readonly parameters: readonly [];
1731
+ readonly bodyRequired: false;
1732
+ readonly bodyType: "application/json";
1733
+ readonly bodySchema: {
1734
+ readonly $ref: "#/components/schemas/V3ListCallsRequest";
1735
+ };
1736
+ };
1737
+ readonly fetchCallHistory: {
1738
+ readonly path: "/api/v1/calls/history";
1739
+ readonly method: "get";
1740
+ readonly summary: "Fetch call history";
1741
+ readonly parameters: readonly [{
1742
+ readonly name: "workspaceId";
1743
+ readonly in: "query";
1744
+ readonly required: true;
1745
+ readonly schema: {
1746
+ readonly type: "integer";
1747
+ };
1748
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1749
+ }, {
1750
+ readonly name: "agentId";
1751
+ readonly in: "query";
1752
+ readonly required: false;
1753
+ readonly schema: {
1754
+ readonly type: "string";
1755
+ };
1756
+ readonly description: "Filter call listings to a specific agent.";
1757
+ }, {
1758
+ readonly name: "agentVersion";
1759
+ readonly in: "query";
1760
+ readonly required: false;
1761
+ readonly schema: {
1762
+ readonly type: "integer";
1763
+ readonly minimum: 0;
1764
+ };
1765
+ readonly description: "Filter call history to a specific persisted agent version captured at call time.";
1766
+ }, {
1767
+ readonly name: "status";
1768
+ readonly in: "query";
1769
+ readonly required: false;
1770
+ readonly schema: {
1771
+ readonly type: "string";
1772
+ };
1773
+ readonly description: "Filter calls by status.";
1774
+ }, {
1775
+ readonly name: "search";
1776
+ readonly in: "query";
1777
+ readonly required: false;
1778
+ readonly schema: {
1779
+ readonly type: "string";
1780
+ };
1781
+ readonly description: "Search by call SID, phone number, platform call ID, customer name, or agent name.";
1782
+ }, {
1783
+ readonly name: "fromDate";
1784
+ readonly in: "query";
1785
+ readonly required: false;
1786
+ readonly schema: {
1787
+ readonly type: "string";
1788
+ readonly format: "date-time";
1789
+ };
1790
+ readonly description: "Inclusive start date for call listing filter.";
1791
+ }, {
1792
+ readonly name: "toDate";
1793
+ readonly in: "query";
1794
+ readonly required: false;
1795
+ readonly schema: {
1796
+ readonly type: "string";
1797
+ readonly format: "date-time";
1798
+ };
1799
+ readonly description: "Inclusive end date for call listing filter.";
1800
+ }, {
1801
+ readonly name: "page";
1802
+ readonly in: "query";
1803
+ readonly required: false;
1804
+ readonly schema: {
1805
+ readonly type: "integer";
1806
+ readonly minimum: 1;
1807
+ readonly default: 1;
1808
+ };
1809
+ }, {
1810
+ readonly name: "limit";
1811
+ readonly in: "query";
1812
+ readonly required: false;
1813
+ readonly schema: {
1814
+ readonly type: "integer";
1815
+ readonly minimum: 1;
1816
+ readonly maximum: 100;
1817
+ readonly default: 20;
1818
+ };
1819
+ readonly description: "Page size for list endpoints.";
1820
+ }, {
1821
+ readonly name: "includeArchived";
1822
+ readonly in: "query";
1823
+ readonly required: false;
1824
+ readonly schema: {
1825
+ readonly type: "boolean";
1826
+ readonly default: false;
1827
+ };
1828
+ readonly description: "When true, include archived calls in the response.";
1829
+ }, {
1830
+ readonly name: "includeChildCalls";
1831
+ readonly in: "query";
1832
+ readonly required: false;
1833
+ readonly schema: {
1834
+ readonly type: "boolean";
1835
+ readonly default: false;
1836
+ };
1837
+ readonly description: "When true, include child calls linked to transfer or split-call workflows.";
1838
+ }];
1839
+ readonly bodyRequired: false;
1840
+ readonly bodyType: null;
1841
+ readonly bodySchema: null;
1842
+ };
1843
+ readonly getCall: {
1844
+ readonly path: "/api/v1/calls/{callId}";
1845
+ readonly method: "get";
1846
+ readonly summary: "Get call";
1847
+ readonly parameters: readonly [{
1848
+ readonly name: "callId";
1849
+ readonly in: "path";
1850
+ readonly required: true;
1851
+ readonly schema: {
1852
+ readonly type: "string";
1853
+ };
1854
+ readonly description: "Call identifier or SID.";
1855
+ }];
1856
+ readonly bodyRequired: false;
1857
+ readonly bodyType: null;
1858
+ readonly bodySchema: null;
1859
+ };
1860
+ readonly updateCall: {
1861
+ readonly path: "/api/v1/calls/{callId}";
1862
+ readonly method: "patch";
1863
+ readonly summary: "Update call";
1864
+ readonly parameters: readonly [{
1865
+ readonly name: "callId";
1866
+ readonly in: "path";
1867
+ readonly required: true;
1868
+ readonly schema: {
1869
+ readonly type: "string";
1870
+ };
1871
+ readonly description: "Call identifier or SID.";
1872
+ }];
1873
+ readonly bodyRequired: true;
1874
+ readonly bodyType: "application/json";
1875
+ readonly bodySchema: {
1876
+ readonly $ref: "#/components/schemas/UpdateCallRequest";
1877
+ };
1878
+ };
1879
+ readonly endLiveCall: {
1880
+ readonly path: "/api/v1/calls/{callId}/end";
1881
+ readonly method: "post";
1882
+ readonly summary: "End live call";
1883
+ readonly parameters: readonly [{
1884
+ readonly name: "callId";
1885
+ readonly in: "path";
1886
+ readonly required: true;
1887
+ readonly schema: {
1888
+ readonly type: "string";
1889
+ };
1890
+ readonly description: "Call identifier or SID.";
1891
+ }];
1892
+ readonly bodyRequired: false;
1893
+ readonly bodyType: "application/json";
1894
+ readonly bodySchema: {
1895
+ readonly $ref: "#/components/schemas/CallActionWorkspaceRequest";
1896
+ };
1897
+ };
1898
+ readonly updateLiveCall: {
1899
+ readonly path: "/api/v1/calls/{callId}/live";
1900
+ readonly method: "patch";
1901
+ readonly summary: "Update live call";
1902
+ readonly parameters: readonly [{
1903
+ readonly name: "callId";
1904
+ readonly in: "path";
1905
+ readonly required: true;
1906
+ readonly schema: {
1907
+ readonly type: "string";
1908
+ };
1909
+ readonly description: "Call identifier or SID.";
1910
+ }];
1911
+ readonly bodyRequired: true;
1912
+ readonly bodyType: "application/json";
1913
+ readonly bodySchema: {
1914
+ readonly $ref: "#/components/schemas/UpdateLiveCallRequest";
1915
+ };
1916
+ };
1917
+ readonly rerunCallAnalysis: {
1918
+ readonly path: "/api/v1/calls/{callId}/analysis/rerun";
1919
+ readonly method: "put";
1920
+ readonly summary: "Rerun call analysis";
1921
+ readonly parameters: readonly [{
1922
+ readonly name: "callId";
1923
+ readonly in: "path";
1924
+ readonly required: true;
1925
+ readonly schema: {
1926
+ readonly type: "string";
1927
+ };
1928
+ readonly description: "Call identifier or SID.";
1929
+ }];
1930
+ readonly bodyRequired: false;
1931
+ readonly bodyType: "application/json";
1932
+ readonly bodySchema: {
1933
+ readonly $ref: "#/components/schemas/CallActionWorkspaceRequest";
1934
+ };
1935
+ };
1936
+ };