@vapi-ai/web 2.3.9 → 2.3.10

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/api.js CHANGED
@@ -72,15 +72,20 @@ class HttpClient {
72
72
  [ContentType.Text]: (input) => input !== null && typeof input !== "string"
73
73
  ? JSON.stringify(input)
74
74
  : input,
75
- [ContentType.FormData]: (input) => Object.keys(input || {}).reduce((formData, key) => {
76
- const property = input[key];
77
- formData.append(key, property instanceof Blob
78
- ? property
79
- : typeof property === "object" && property !== null
80
- ? JSON.stringify(property)
81
- : `${property}`);
82
- return formData;
83
- }, new FormData()),
75
+ [ContentType.FormData]: (input) => {
76
+ if (input instanceof FormData) {
77
+ return input;
78
+ }
79
+ return Object.keys(input || {}).reduce((formData, key) => {
80
+ const property = input[key];
81
+ formData.append(key, property instanceof Blob
82
+ ? property
83
+ : typeof property === "object" && property !== null
84
+ ? JSON.stringify(property)
85
+ : `${property}`);
86
+ return formData;
87
+ }, new FormData());
88
+ },
84
89
  [ContentType.UrlEncoded]: (input) => this.toQueryString(input),
85
90
  };
86
91
  mergeRequestParams(params1, params2) {
@@ -138,7 +143,7 @@ class HttpClient {
138
143
  ? null
139
144
  : payloadFormatter(body),
140
145
  }).then(async (response) => {
141
- const r = response.clone();
146
+ const r = response;
142
147
  r.data = null;
143
148
  r.error = null;
144
149
  const data = !responseFormat
@@ -176,18 +181,18 @@ exports.HttpClient = HttpClient;
176
181
  * Voice AI for developers.
177
182
  */
178
183
  class Api extends HttpClient {
179
- call = {
184
+ assistant = {
180
185
  /**
181
186
  * No description
182
187
  *
183
- * @tags Calls
184
- * @name CallControllerCreate
185
- * @summary Create Call
186
- * @request POST:/call
188
+ * @tags Assistants
189
+ * @name AssistantControllerCreate
190
+ * @summary Create Assistant
191
+ * @request POST:/assistant
187
192
  * @secure
188
193
  */
189
- callControllerCreate: (data, params = {}) => this.request({
190
- path: `/call`,
194
+ assistantControllerCreate: (data, params = {}) => this.request({
195
+ path: `/assistant`,
191
196
  method: "POST",
192
197
  body: data,
193
198
  secure: true,
@@ -198,14 +203,14 @@ class Api extends HttpClient {
198
203
  /**
199
204
  * No description
200
205
  *
201
- * @tags Calls
202
- * @name CallControllerFindAll
203
- * @summary List Calls
204
- * @request GET:/call
206
+ * @tags Assistants
207
+ * @name AssistantControllerFindAll
208
+ * @summary List Assistants
209
+ * @request GET:/assistant
205
210
  * @secure
206
211
  */
207
- callControllerFindAll: (query, params = {}) => this.request({
208
- path: `/call`,
212
+ assistantControllerFindAll: (query, params = {}) => this.request({
213
+ path: `/assistant`,
209
214
  method: "GET",
210
215
  query: query,
211
216
  secure: true,
@@ -215,14 +220,14 @@ class Api extends HttpClient {
215
220
  /**
216
221
  * No description
217
222
  *
218
- * @tags Calls
219
- * @name CallControllerFindOne
220
- * @summary Get Call
221
- * @request GET:/call/{id}
223
+ * @tags Assistants
224
+ * @name AssistantControllerFindOne
225
+ * @summary Get Assistant
226
+ * @request GET:/assistant/{id}
222
227
  * @secure
223
228
  */
224
- callControllerFindOne: (id, params = {}) => this.request({
225
- path: `/call/${id}`,
229
+ assistantControllerFindOne: (id, params = {}) => this.request({
230
+ path: `/assistant/${id}`,
226
231
  method: "GET",
227
232
  secure: true,
228
233
  format: "json",
@@ -231,14 +236,14 @@ class Api extends HttpClient {
231
236
  /**
232
237
  * No description
233
238
  *
234
- * @tags Calls
235
- * @name CallControllerUpdate
236
- * @summary Update Call
237
- * @request PATCH:/call/{id}
239
+ * @tags Assistants
240
+ * @name AssistantControllerUpdate
241
+ * @summary Update Assistant
242
+ * @request PATCH:/assistant/{id}
238
243
  * @secure
239
244
  */
240
- callControllerUpdate: (id, data, params = {}) => this.request({
241
- path: `/call/${id}`,
245
+ assistantControllerUpdate: (id, data, params = {}) => this.request({
246
+ path: `/assistant/${id}`,
242
247
  method: "PATCH",
243
248
  body: data,
244
249
  secure: true,
@@ -249,58 +254,73 @@ class Api extends HttpClient {
249
254
  /**
250
255
  * No description
251
256
  *
252
- * @tags Calls
253
- * @name CallControllerDeleteCallData
254
- * @summary Delete Call Data
255
- * @request DELETE:/call/{id}
257
+ * @tags Assistants
258
+ * @name AssistantControllerReplace
259
+ * @summary Replace Assistant
260
+ * @request PUT:/assistant/{id}
256
261
  * @secure
257
262
  */
258
- callControllerDeleteCallData: (id, params = {}) => this.request({
259
- path: `/call/${id}`,
260
- method: "DELETE",
263
+ assistantControllerReplace: (id, data, params = {}) => this.request({
264
+ path: `/assistant/${id}`,
265
+ method: "PUT",
266
+ body: data,
261
267
  secure: true,
268
+ type: ContentType.Json,
262
269
  format: "json",
263
270
  ...params,
264
271
  }),
265
272
  /**
266
273
  * No description
267
274
  *
268
- * @tags Calls
269
- * @name CallControllerCreatePhoneCall
270
- * @summary Create Phone Call
271
- * @request POST:/call/phone
272
- * @deprecated
275
+ * @tags Assistants
276
+ * @name AssistantControllerRemove
277
+ * @summary Delete Assistant
278
+ * @request DELETE:/assistant/{id}
273
279
  * @secure
274
280
  */
275
- callControllerCreatePhoneCall: (data, params = {}) => this.request({
276
- path: `/call/phone`,
277
- method: "POST",
278
- body: data,
281
+ assistantControllerRemove: (id, params = {}) => this.request({
282
+ path: `/assistant/${id}`,
283
+ method: "DELETE",
279
284
  secure: true,
280
- type: ContentType.Json,
281
285
  format: "json",
282
286
  ...params,
283
287
  }),
284
288
  /**
285
289
  * No description
286
290
  *
287
- * @tags Calls
288
- * @name CallControllerCreateWebCall
289
- * @summary Create Web Call
290
- * @request POST:/call/web
291
+ * @tags Assistants
292
+ * @name AssistantControllerFindVersions
293
+ * @summary List Assistant Versions
294
+ * @request GET:/assistant/{id}/version
291
295
  * @secure
292
296
  */
293
- callControllerCreateWebCall: (data, params = {}) => this.request({
294
- path: `/call/web`,
295
- method: "POST",
296
- body: data,
297
+ assistantControllerFindVersions: (id, query, params = {}) => this.request({
298
+ path: `/assistant/${id}/version`,
299
+ method: "GET",
300
+ query: query,
297
301
  secure: true,
298
- type: ContentType.Json,
299
302
  format: "json",
300
303
  ...params,
301
304
  }),
302
305
  };
303
306
  v2 = {
307
+ /**
308
+ * No description
309
+ *
310
+ * @tags Assistants
311
+ * @name AssistantControllerFindAllPaginated
312
+ * @summary List Assistants with pagination
313
+ * @request GET:/v2/assistant
314
+ * @secure
315
+ */
316
+ assistantControllerFindAllPaginated: (query, params = {}) => this.request({
317
+ path: `/v2/assistant`,
318
+ method: "GET",
319
+ query: query,
320
+ secure: true,
321
+ format: "json",
322
+ ...params,
323
+ }),
304
324
  /**
305
325
  * No description
306
326
  *
@@ -338,15 +358,292 @@ class Api extends HttpClient {
338
358
  * No description
339
359
  *
340
360
  * @tags Calls
341
- * @name CallControllerFindAllMetadataPaginated
342
- * @summary List Call Metadata
343
- * @request GET:/v2/call/metadata
361
+ * @name CallControllerFindAllMetadataPaginated
362
+ * @summary List Call Metadata
363
+ * @request GET:/v2/call/metadata
364
+ * @secure
365
+ */
366
+ callControllerFindAllMetadataPaginated: (query, params = {}) => this.request({
367
+ path: `/v2/call/metadata`,
368
+ method: "GET",
369
+ query: query,
370
+ secure: true,
371
+ format: "json",
372
+ ...params,
373
+ }),
374
+ /**
375
+ * No description
376
+ *
377
+ * @tags Phone Numbers
378
+ * @name PhoneNumberControllerFindAllPaginated
379
+ * @summary List Phone Numbers
380
+ * @request GET:/v2/phone-number
381
+ * @secure
382
+ */
383
+ phoneNumberControllerFindAllPaginated: (query, params = {}) => this.request({
384
+ path: `/v2/phone-number`,
385
+ method: "GET",
386
+ query: query,
387
+ secure: true,
388
+ format: "json",
389
+ ...params,
390
+ }),
391
+ };
392
+ squad = {
393
+ /**
394
+ * No description
395
+ *
396
+ * @tags Squads
397
+ * @name SquadControllerCreate
398
+ * @summary Create Squad
399
+ * @request POST:/squad
400
+ * @secure
401
+ */
402
+ squadControllerCreate: (data, params = {}) => this.request({
403
+ path: `/squad`,
404
+ method: "POST",
405
+ body: data,
406
+ secure: true,
407
+ type: ContentType.Json,
408
+ format: "json",
409
+ ...params,
410
+ }),
411
+ /**
412
+ * No description
413
+ *
414
+ * @tags Squads
415
+ * @name SquadControllerFindAll
416
+ * @summary List Squads
417
+ * @request GET:/squad
418
+ * @secure
419
+ */
420
+ squadControllerFindAll: (query, params = {}) => this.request({
421
+ path: `/squad`,
422
+ method: "GET",
423
+ query: query,
424
+ secure: true,
425
+ format: "json",
426
+ ...params,
427
+ }),
428
+ /**
429
+ * No description
430
+ *
431
+ * @tags Squads
432
+ * @name SquadControllerFindOne
433
+ * @summary Get Squad
434
+ * @request GET:/squad/{id}
435
+ * @secure
436
+ */
437
+ squadControllerFindOne: (id, params = {}) => this.request({
438
+ path: `/squad/${id}`,
439
+ method: "GET",
440
+ secure: true,
441
+ format: "json",
442
+ ...params,
443
+ }),
444
+ /**
445
+ * No description
446
+ *
447
+ * @tags Squads
448
+ * @name SquadControllerUpdate
449
+ * @summary Update Squad
450
+ * @request PATCH:/squad/{id}
451
+ * @secure
452
+ */
453
+ squadControllerUpdate: (id, data, params = {}) => this.request({
454
+ path: `/squad/${id}`,
455
+ method: "PATCH",
456
+ body: data,
457
+ secure: true,
458
+ type: ContentType.Json,
459
+ format: "json",
460
+ ...params,
461
+ }),
462
+ /**
463
+ * No description
464
+ *
465
+ * @tags Squads
466
+ * @name SquadControllerRemove
467
+ * @summary Delete Squad
468
+ * @request DELETE:/squad/{id}
469
+ * @secure
470
+ */
471
+ squadControllerRemove: (id, params = {}) => this.request({
472
+ path: `/squad/${id}`,
473
+ method: "DELETE",
474
+ secure: true,
475
+ format: "json",
476
+ ...params,
477
+ }),
478
+ };
479
+ workflow = {
480
+ /**
481
+ * No description
482
+ *
483
+ * @tags Workflow
484
+ * @name WorkflowControllerFindAll
485
+ * @summary Get Workflows
486
+ * @request GET:/workflow
487
+ * @secure
488
+ */
489
+ workflowControllerFindAll: (params = {}) => this.request({
490
+ path: `/workflow`,
491
+ method: "GET",
492
+ secure: true,
493
+ format: "json",
494
+ ...params,
495
+ }),
496
+ /**
497
+ * No description
498
+ *
499
+ * @tags Workflow
500
+ * @name WorkflowControllerCreate
501
+ * @summary Create Workflow
502
+ * @request POST:/workflow
503
+ * @secure
504
+ */
505
+ workflowControllerCreate: (data, params = {}) => this.request({
506
+ path: `/workflow`,
507
+ method: "POST",
508
+ body: data,
509
+ secure: true,
510
+ type: ContentType.Json,
511
+ format: "json",
512
+ ...params,
513
+ }),
514
+ /**
515
+ * No description
516
+ *
517
+ * @tags Workflow
518
+ * @name WorkflowControllerFindOne
519
+ * @summary Get Workflow
520
+ * @request GET:/workflow/{id}
521
+ * @secure
522
+ */
523
+ workflowControllerFindOne: (id, params = {}) => this.request({
524
+ path: `/workflow/${id}`,
525
+ method: "GET",
526
+ secure: true,
527
+ format: "json",
528
+ ...params,
529
+ }),
530
+ /**
531
+ * No description
532
+ *
533
+ * @tags Workflow
534
+ * @name WorkflowControllerDelete
535
+ * @summary Delete Workflow
536
+ * @request DELETE:/workflow/{id}
537
+ * @secure
538
+ */
539
+ workflowControllerDelete: (id, params = {}) => this.request({
540
+ path: `/workflow/${id}`,
541
+ method: "DELETE",
542
+ secure: true,
543
+ format: "json",
544
+ ...params,
545
+ }),
546
+ /**
547
+ * No description
548
+ *
549
+ * @tags Workflow
550
+ * @name WorkflowControllerUpdate
551
+ * @summary Update Workflow
552
+ * @request PATCH:/workflow/{id}
553
+ * @secure
554
+ */
555
+ workflowControllerUpdate: (id, data, params = {}) => this.request({
556
+ path: `/workflow/${id}`,
557
+ method: "PATCH",
558
+ body: data,
559
+ secure: true,
560
+ type: ContentType.Json,
561
+ format: "json",
562
+ ...params,
563
+ }),
564
+ };
565
+ call = {
566
+ /**
567
+ * No description
568
+ *
569
+ * @tags Calls
570
+ * @name CallControllerCreate
571
+ * @summary Create Call
572
+ * @request POST:/call
573
+ * @secure
574
+ */
575
+ callControllerCreate: (data, params = {}) => this.request({
576
+ path: `/call`,
577
+ method: "POST",
578
+ body: data,
579
+ secure: true,
580
+ type: ContentType.Json,
581
+ format: "json",
582
+ ...params,
583
+ }),
584
+ /**
585
+ * No description
586
+ *
587
+ * @tags Calls
588
+ * @name CallControllerFindAll
589
+ * @summary List Calls
590
+ * @request GET:/call
591
+ * @secure
592
+ */
593
+ callControllerFindAll: (query, params = {}) => this.request({
594
+ path: `/call`,
595
+ method: "GET",
596
+ query: query,
597
+ secure: true,
598
+ format: "json",
599
+ ...params,
600
+ }),
601
+ /**
602
+ * No description
603
+ *
604
+ * @tags Calls
605
+ * @name CallControllerFindOne
606
+ * @summary Get Call
607
+ * @request GET:/call/{id}
608
+ * @secure
609
+ */
610
+ callControllerFindOne: (id, params = {}) => this.request({
611
+ path: `/call/${id}`,
612
+ method: "GET",
613
+ secure: true,
614
+ format: "json",
615
+ ...params,
616
+ }),
617
+ /**
618
+ * No description
619
+ *
620
+ * @tags Calls
621
+ * @name CallControllerUpdate
622
+ * @summary Update Call
623
+ * @request PATCH:/call/{id}
624
+ * @secure
625
+ */
626
+ callControllerUpdate: (id, data, params = {}) => this.request({
627
+ path: `/call/${id}`,
628
+ method: "PATCH",
629
+ body: data,
630
+ secure: true,
631
+ type: ContentType.Json,
632
+ format: "json",
633
+ ...params,
634
+ }),
635
+ /**
636
+ * No description
637
+ *
638
+ * @tags Calls
639
+ * @name CallControllerDeleteCallData
640
+ * @summary Delete Call Data
641
+ * @request DELETE:/call/{id}
344
642
  * @secure
345
643
  */
346
- callControllerFindAllMetadataPaginated: (query, params = {}) => this.request({
347
- path: `/v2/call/metadata`,
348
- method: "GET",
349
- query: query,
644
+ callControllerDeleteCallData: (id, params = {}) => this.request({
645
+ path: `/call/${id}`,
646
+ method: "DELETE",
350
647
  secure: true,
351
648
  format: "json",
352
649
  ...params,
@@ -354,34 +651,37 @@ class Api extends HttpClient {
354
651
  /**
355
652
  * No description
356
653
  *
357
- * @tags Assistants
358
- * @name AssistantControllerFindAllPaginated
359
- * @summary List Assistants with pagination
360
- * @request GET:/v2/assistant
654
+ * @tags Calls
655
+ * @name CallControllerCreatePhoneCall
656
+ * @summary Create Phone Call
657
+ * @request POST:/call/phone
658
+ * @deprecated
361
659
  * @secure
362
660
  */
363
- assistantControllerFindAllPaginated: (query, params = {}) => this.request({
364
- path: `/v2/assistant`,
365
- method: "GET",
366
- query: query,
661
+ callControllerCreatePhoneCall: (data, params = {}) => this.request({
662
+ path: `/call/phone`,
663
+ method: "POST",
664
+ body: data,
367
665
  secure: true,
666
+ type: ContentType.Json,
368
667
  format: "json",
369
668
  ...params,
370
669
  }),
371
670
  /**
372
671
  * No description
373
672
  *
374
- * @tags Phone Numbers
375
- * @name PhoneNumberControllerFindAllPaginated
376
- * @summary List Phone Numbers
377
- * @request GET:/v2/phone-number
673
+ * @tags Calls
674
+ * @name CallControllerCreateWebCall
675
+ * @summary Create Web Call
676
+ * @request POST:/call/web
378
677
  * @secure
379
678
  */
380
- phoneNumberControllerFindAllPaginated: (query, params = {}) => this.request({
381
- path: `/v2/phone-number`,
382
- method: "GET",
383
- query: query,
679
+ callControllerCreateWebCall: (data, params = {}) => this.request({
680
+ path: `/call/web`,
681
+ method: "POST",
682
+ body: data,
384
683
  secure: true,
684
+ type: ContentType.Json,
385
685
  format: "json",
386
686
  ...params,
387
687
  }),
@@ -683,128 +983,6 @@ class Api extends HttpClient {
683
983
  ...params,
684
984
  }),
685
985
  };
686
- assistant = {
687
- /**
688
- * No description
689
- *
690
- * @tags Assistants
691
- * @name AssistantControllerCreate
692
- * @summary Create Assistant
693
- * @request POST:/assistant
694
- * @secure
695
- */
696
- assistantControllerCreate: (data, params = {}) => this.request({
697
- path: `/assistant`,
698
- method: "POST",
699
- body: data,
700
- secure: true,
701
- type: ContentType.Json,
702
- format: "json",
703
- ...params,
704
- }),
705
- /**
706
- * No description
707
- *
708
- * @tags Assistants
709
- * @name AssistantControllerFindAll
710
- * @summary List Assistants
711
- * @request GET:/assistant
712
- * @secure
713
- */
714
- assistantControllerFindAll: (query, params = {}) => this.request({
715
- path: `/assistant`,
716
- method: "GET",
717
- query: query,
718
- secure: true,
719
- format: "json",
720
- ...params,
721
- }),
722
- /**
723
- * No description
724
- *
725
- * @tags Assistants
726
- * @name AssistantControllerFindOne
727
- * @summary Get Assistant
728
- * @request GET:/assistant/{id}
729
- * @secure
730
- */
731
- assistantControllerFindOne: (id, params = {}) => this.request({
732
- path: `/assistant/${id}`,
733
- method: "GET",
734
- secure: true,
735
- format: "json",
736
- ...params,
737
- }),
738
- /**
739
- * No description
740
- *
741
- * @tags Assistants
742
- * @name AssistantControllerUpdate
743
- * @summary Update Assistant
744
- * @request PATCH:/assistant/{id}
745
- * @secure
746
- */
747
- assistantControllerUpdate: (id, data, params = {}) => this.request({
748
- path: `/assistant/${id}`,
749
- method: "PATCH",
750
- body: data,
751
- secure: true,
752
- type: ContentType.Json,
753
- format: "json",
754
- ...params,
755
- }),
756
- /**
757
- * No description
758
- *
759
- * @tags Assistants
760
- * @name AssistantControllerReplace
761
- * @summary Replace Assistant
762
- * @request PUT:/assistant/{id}
763
- * @secure
764
- */
765
- assistantControllerReplace: (id, data, params = {}) => this.request({
766
- path: `/assistant/${id}`,
767
- method: "PUT",
768
- body: data,
769
- secure: true,
770
- type: ContentType.Json,
771
- format: "json",
772
- ...params,
773
- }),
774
- /**
775
- * No description
776
- *
777
- * @tags Assistants
778
- * @name AssistantControllerRemove
779
- * @summary Delete Assistant
780
- * @request DELETE:/assistant/{id}
781
- * @secure
782
- */
783
- assistantControllerRemove: (id, params = {}) => this.request({
784
- path: `/assistant/${id}`,
785
- method: "DELETE",
786
- secure: true,
787
- format: "json",
788
- ...params,
789
- }),
790
- /**
791
- * No description
792
- *
793
- * @tags Assistants
794
- * @name AssistantControllerFindVersions
795
- * @summary List Assistant Versions
796
- * @request GET:/assistant/{id}/version
797
- * @secure
798
- */
799
- assistantControllerFindVersions: (id, query, params = {}) => this.request({
800
- path: `/assistant/${id}/version`,
801
- method: "GET",
802
- query: query,
803
- secure: true,
804
- format: "json",
805
- ...params,
806
- }),
807
- };
808
986
  phoneNumber = {
809
987
  /**
810
988
  * @description Use POST /phone-number instead.
@@ -1198,150 +1376,64 @@ class Api extends HttpClient {
1198
1376
  * @tags Knowledge Base
1199
1377
  * @name KnowledgeBaseControllerRemove
1200
1378
  * @summary Delete Knowledge Base
1201
- * @request DELETE:/knowledge-base/{id}
1202
- * @secure
1203
- */
1204
- knowledgeBaseControllerRemove: (id, params = {}) => this.request({
1205
- path: `/knowledge-base/${id}`,
1206
- method: "DELETE",
1207
- secure: true,
1208
- format: "json",
1209
- ...params,
1210
- }),
1211
- };
1212
- workflow = {
1213
- /**
1214
- * No description
1215
- *
1216
- * @tags Workflow
1217
- * @name WorkflowControllerFindAll
1218
- * @summary Get Workflows
1219
- * @request GET:/workflow
1220
- * @secure
1221
- */
1222
- workflowControllerFindAll: (params = {}) => this.request({
1223
- path: `/workflow`,
1224
- method: "GET",
1225
- secure: true,
1226
- format: "json",
1227
- ...params,
1228
- }),
1229
- /**
1230
- * No description
1231
- *
1232
- * @tags Workflow
1233
- * @name WorkflowControllerCreate
1234
- * @summary Create Workflow
1235
- * @request POST:/workflow
1236
- * @secure
1237
- */
1238
- workflowControllerCreate: (data, params = {}) => this.request({
1239
- path: `/workflow`,
1240
- method: "POST",
1241
- body: data,
1242
- secure: true,
1243
- type: ContentType.Json,
1244
- format: "json",
1245
- ...params,
1246
- }),
1247
- /**
1248
- * No description
1249
- *
1250
- * @tags Workflow
1251
- * @name WorkflowControllerFindOne
1252
- * @summary Get Workflow
1253
- * @request GET:/workflow/{id}
1254
- * @secure
1255
- */
1256
- workflowControllerFindOne: (id, params = {}) => this.request({
1257
- path: `/workflow/${id}`,
1258
- method: "GET",
1259
- secure: true,
1260
- format: "json",
1261
- ...params,
1262
- }),
1263
- /**
1264
- * No description
1265
- *
1266
- * @tags Workflow
1267
- * @name WorkflowControllerDelete
1268
- * @summary Delete Workflow
1269
- * @request DELETE:/workflow/{id}
1270
- * @secure
1271
- */
1272
- workflowControllerDelete: (id, params = {}) => this.request({
1273
- path: `/workflow/${id}`,
1274
- method: "DELETE",
1275
- secure: true,
1276
- format: "json",
1277
- ...params,
1278
- }),
1279
- /**
1280
- * No description
1281
- *
1282
- * @tags Workflow
1283
- * @name WorkflowControllerUpdate
1284
- * @summary Update Workflow
1285
- * @request PATCH:/workflow/{id}
1379
+ * @request DELETE:/knowledge-base/{id}
1286
1380
  * @secure
1287
1381
  */
1288
- workflowControllerUpdate: (id, data, params = {}) => this.request({
1289
- path: `/workflow/${id}`,
1290
- method: "PATCH",
1291
- body: data,
1382
+ knowledgeBaseControllerRemove: (id, params = {}) => this.request({
1383
+ path: `/knowledge-base/${id}`,
1384
+ method: "DELETE",
1292
1385
  secure: true,
1293
- type: ContentType.Json,
1294
1386
  format: "json",
1295
1387
  ...params,
1296
1388
  }),
1297
1389
  };
1298
- squad = {
1390
+ structuredOutput = {
1299
1391
  /**
1300
1392
  * No description
1301
1393
  *
1302
- * @tags Squads
1303
- * @name SquadControllerCreate
1304
- * @summary Create Squad
1305
- * @request POST:/squad
1394
+ * @tags Structured Outputs
1395
+ * @name StructuredOutputControllerFindAll
1396
+ * @summary List Structured Outputs
1397
+ * @request GET:/structured-output
1306
1398
  * @secure
1307
1399
  */
1308
- squadControllerCreate: (data, params = {}) => this.request({
1309
- path: `/squad`,
1310
- method: "POST",
1311
- body: data,
1400
+ structuredOutputControllerFindAll: (query, params = {}) => this.request({
1401
+ path: `/structured-output`,
1402
+ method: "GET",
1403
+ query: query,
1312
1404
  secure: true,
1313
- type: ContentType.Json,
1314
1405
  format: "json",
1315
1406
  ...params,
1316
1407
  }),
1317
1408
  /**
1318
1409
  * No description
1319
1410
  *
1320
- * @tags Squads
1321
- * @name SquadControllerFindAll
1322
- * @summary List Squads
1323
- * @request GET:/squad
1411
+ * @tags Structured Outputs
1412
+ * @name StructuredOutputControllerCreate
1413
+ * @summary Create Structured Output
1414
+ * @request POST:/structured-output
1324
1415
  * @secure
1325
1416
  */
1326
- squadControllerFindAll: (query, params = {}) => this.request({
1327
- path: `/squad`,
1328
- method: "GET",
1329
- query: query,
1417
+ structuredOutputControllerCreate: (data, params = {}) => this.request({
1418
+ path: `/structured-output`,
1419
+ method: "POST",
1420
+ body: data,
1330
1421
  secure: true,
1422
+ type: ContentType.Json,
1331
1423
  format: "json",
1332
1424
  ...params,
1333
1425
  }),
1334
1426
  /**
1335
1427
  * No description
1336
1428
  *
1337
- * @tags Squads
1338
- * @name SquadControllerFindOne
1339
- * @summary Get Squad
1340
- * @request GET:/squad/{id}
1429
+ * @tags Structured Outputs
1430
+ * @name StructuredOutputControllerFindOne
1431
+ * @summary Get Structured Output
1432
+ * @request GET:/structured-output/{id}
1341
1433
  * @secure
1342
1434
  */
1343
- squadControllerFindOne: (id, params = {}) => this.request({
1344
- path: `/squad/${id}`,
1435
+ structuredOutputControllerFindOne: (id, params = {}) => this.request({
1436
+ path: `/structured-output/${id}`,
1345
1437
  method: "GET",
1346
1438
  secure: true,
1347
1439
  format: "json",
@@ -1350,15 +1442,16 @@ class Api extends HttpClient {
1350
1442
  /**
1351
1443
  * No description
1352
1444
  *
1353
- * @tags Squads
1354
- * @name SquadControllerUpdate
1355
- * @summary Update Squad
1356
- * @request PATCH:/squad/{id}
1445
+ * @tags Structured Outputs
1446
+ * @name StructuredOutputControllerUpdate
1447
+ * @summary Update Structured Output
1448
+ * @request PATCH:/structured-output/{id}
1357
1449
  * @secure
1358
1450
  */
1359
- squadControllerUpdate: (id, data, params = {}) => this.request({
1360
- path: `/squad/${id}`,
1451
+ structuredOutputControllerUpdate: (id, query, data, params = {}) => this.request({
1452
+ path: `/structured-output/${id}`,
1361
1453
  method: "PATCH",
1454
+ query: query,
1362
1455
  body: data,
1363
1456
  secure: true,
1364
1457
  type: ContentType.Json,
@@ -1368,14 +1461,14 @@ class Api extends HttpClient {
1368
1461
  /**
1369
1462
  * No description
1370
1463
  *
1371
- * @tags Squads
1372
- * @name SquadControllerRemove
1373
- * @summary Delete Squad
1374
- * @request DELETE:/squad/{id}
1464
+ * @tags Structured Outputs
1465
+ * @name StructuredOutputControllerRemove
1466
+ * @summary Delete Structured Output
1467
+ * @request DELETE:/structured-output/{id}
1375
1468
  * @secure
1376
1469
  */
1377
- squadControllerRemove: (id, params = {}) => this.request({
1378
- path: `/squad/${id}`,
1470
+ structuredOutputControllerRemove: (id, params = {}) => this.request({
1471
+ path: `/structured-output/${id}`,
1379
1472
  method: "DELETE",
1380
1473
  secure: true,
1381
1474
  format: "json",
@@ -1639,186 +1732,6 @@ class Api extends HttpClient {
1639
1732
  ...params,
1640
1733
  }),
1641
1734
  };
1642
- analytics = {
1643
- /**
1644
- * No description
1645
- *
1646
- * @tags Analytics
1647
- * @name AnalyticsControllerQuery
1648
- * @summary Create Analytics Queries
1649
- * @request POST:/analytics
1650
- * @secure
1651
- */
1652
- analyticsControllerQuery: (data, params = {}) => this.request({
1653
- path: `/analytics`,
1654
- method: "POST",
1655
- body: data,
1656
- secure: true,
1657
- type: ContentType.Json,
1658
- format: "json",
1659
- ...params,
1660
- }),
1661
- };
1662
- log = {
1663
- /**
1664
- * No description
1665
- *
1666
- * @tags Logs
1667
- * @name LoggingControllerCallLogsQuery
1668
- * @summary Get Call Logs
1669
- * @request GET:/log
1670
- * @secure
1671
- */
1672
- loggingControllerCallLogsQuery: (query, params = {}) => this.request({
1673
- path: `/log`,
1674
- method: "GET",
1675
- query: query,
1676
- secure: true,
1677
- format: "json",
1678
- ...params,
1679
- }),
1680
- /**
1681
- * No description
1682
- *
1683
- * @tags Logs
1684
- * @name LoggingControllerCallLogsDeleteQuery
1685
- * @summary Delete Call Logs
1686
- * @request DELETE:/log
1687
- * @secure
1688
- */
1689
- loggingControllerCallLogsDeleteQuery: (query, params = {}) => this.request({
1690
- path: `/log`,
1691
- method: "DELETE",
1692
- query: query,
1693
- secure: true,
1694
- ...params,
1695
- }),
1696
- };
1697
- logs = {
1698
- /**
1699
- * No description
1700
- *
1701
- * @tags Logs
1702
- * @name LoggingControllerLogsQuery
1703
- * @summary Get Logs
1704
- * @request GET:/logs
1705
- * @deprecated
1706
- * @secure
1707
- */
1708
- loggingControllerLogsQuery: (query, params = {}) => this.request({
1709
- path: `/logs`,
1710
- method: "GET",
1711
- query: query,
1712
- secure: true,
1713
- format: "json",
1714
- ...params,
1715
- }),
1716
- /**
1717
- * No description
1718
- *
1719
- * @tags Logs
1720
- * @name LoggingControllerLogsDeleteQuery
1721
- * @summary Delete Logs
1722
- * @request DELETE:/logs
1723
- * @deprecated
1724
- * @secure
1725
- */
1726
- loggingControllerLogsDeleteQuery: (query, params = {}) => this.request({
1727
- path: `/logs`,
1728
- method: "DELETE",
1729
- query: query,
1730
- secure: true,
1731
- ...params,
1732
- }),
1733
- };
1734
- structuredOutput = {
1735
- /**
1736
- * No description
1737
- *
1738
- * @tags Structured Outputs
1739
- * @name StructuredOutputControllerFindAll
1740
- * @summary List Structured Outputs
1741
- * @request GET:/structured-output
1742
- * @secure
1743
- */
1744
- structuredOutputControllerFindAll: (query, params = {}) => this.request({
1745
- path: `/structured-output`,
1746
- method: "GET",
1747
- query: query,
1748
- secure: true,
1749
- format: "json",
1750
- ...params,
1751
- }),
1752
- /**
1753
- * No description
1754
- *
1755
- * @tags Structured Outputs
1756
- * @name StructuredOutputControllerCreate
1757
- * @summary Create Structured Output
1758
- * @request POST:/structured-output
1759
- * @secure
1760
- */
1761
- structuredOutputControllerCreate: (data, params = {}) => this.request({
1762
- path: `/structured-output`,
1763
- method: "POST",
1764
- body: data,
1765
- secure: true,
1766
- type: ContentType.Json,
1767
- format: "json",
1768
- ...params,
1769
- }),
1770
- /**
1771
- * No description
1772
- *
1773
- * @tags Structured Outputs
1774
- * @name StructuredOutputControllerFindOne
1775
- * @summary Get Structured Output
1776
- * @request GET:/structured-output/{id}
1777
- * @secure
1778
- */
1779
- structuredOutputControllerFindOne: (id, params = {}) => this.request({
1780
- path: `/structured-output/${id}`,
1781
- method: "GET",
1782
- secure: true,
1783
- format: "json",
1784
- ...params,
1785
- }),
1786
- /**
1787
- * No description
1788
- *
1789
- * @tags Structured Outputs
1790
- * @name StructuredOutputControllerUpdate
1791
- * @summary Update Structured Output
1792
- * @request PATCH:/structured-output/{id}
1793
- * @secure
1794
- */
1795
- structuredOutputControllerUpdate: (id, query, data, params = {}) => this.request({
1796
- path: `/structured-output/${id}`,
1797
- method: "PATCH",
1798
- query: query,
1799
- body: data,
1800
- secure: true,
1801
- type: ContentType.Json,
1802
- format: "json",
1803
- ...params,
1804
- }),
1805
- /**
1806
- * No description
1807
- *
1808
- * @tags Structured Outputs
1809
- * @name StructuredOutputControllerRemove
1810
- * @summary Delete Structured Output
1811
- * @request DELETE:/structured-output/{id}
1812
- * @secure
1813
- */
1814
- structuredOutputControllerRemove: (id, params = {}) => this.request({
1815
- path: `/structured-output/${id}`,
1816
- method: "DELETE",
1817
- secure: true,
1818
- format: "json",
1819
- ...params,
1820
- }),
1821
- };
1822
1735
  org = {
1823
1736
  /**
1824
1737
  * No description
@@ -2650,5 +2563,25 @@ class Api extends HttpClient {
2650
2563
  ...params,
2651
2564
  }),
2652
2565
  };
2566
+ analytics = {
2567
+ /**
2568
+ * No description
2569
+ *
2570
+ * @tags Analytics
2571
+ * @name AnalyticsControllerQuery
2572
+ * @summary Create Analytics Queries
2573
+ * @request POST:/analytics
2574
+ * @secure
2575
+ */
2576
+ analyticsControllerQuery: (data, params = {}) => this.request({
2577
+ path: `/analytics`,
2578
+ method: "POST",
2579
+ body: data,
2580
+ secure: true,
2581
+ type: ContentType.Json,
2582
+ format: "json",
2583
+ ...params,
2584
+ }),
2585
+ };
2653
2586
  }
2654
2587
  exports.Api = Api;