@vapi-ai/web 2.3.8 → 2.3.9
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/api.ts +10641 -1229
- package/dist/api.d.ts +10025 -1097
- package/dist/api.js +190 -59
- package/dist/vapi.d.ts +1 -0
- package/package.json +1 -1
- package/vapi.ts +1 -0
package/dist/api.js
CHANGED
|
@@ -305,12 +305,12 @@ class Api extends HttpClient {
|
|
|
305
305
|
* No description
|
|
306
306
|
*
|
|
307
307
|
* @tags Calls
|
|
308
|
-
* @name
|
|
308
|
+
* @name CallControllerCallsExport
|
|
309
309
|
* @summary Export Calls to CSV
|
|
310
310
|
* @request GET:/v2/call/export
|
|
311
311
|
* @secure
|
|
312
312
|
*/
|
|
313
|
-
|
|
313
|
+
callControllerCallsExport: (query, params = {}) => this.request({
|
|
314
314
|
path: `/v2/call/export`,
|
|
315
315
|
method: "GET",
|
|
316
316
|
query: query,
|
|
@@ -545,23 +545,6 @@ class Api extends HttpClient {
|
|
|
545
545
|
format: "json",
|
|
546
546
|
...params,
|
|
547
547
|
}),
|
|
548
|
-
/**
|
|
549
|
-
* No description
|
|
550
|
-
*
|
|
551
|
-
* @tags Campaigns
|
|
552
|
-
* @name CampaignControllerFindAllPaginated
|
|
553
|
-
* @summary List Campaigns with pagination
|
|
554
|
-
* @request GET:/campaign/paginated
|
|
555
|
-
* @secure
|
|
556
|
-
*/
|
|
557
|
-
campaignControllerFindAllPaginated: (query, params = {}) => this.request({
|
|
558
|
-
path: `/campaign/paginated`,
|
|
559
|
-
method: "GET",
|
|
560
|
-
query: query,
|
|
561
|
-
secure: true,
|
|
562
|
-
format: "json",
|
|
563
|
-
...params,
|
|
564
|
-
}),
|
|
565
548
|
/**
|
|
566
549
|
* No description
|
|
567
550
|
*
|
|
@@ -700,26 +683,6 @@ class Api extends HttpClient {
|
|
|
700
683
|
...params,
|
|
701
684
|
}),
|
|
702
685
|
};
|
|
703
|
-
support = {
|
|
704
|
-
/**
|
|
705
|
-
* No description
|
|
706
|
-
*
|
|
707
|
-
* @tags Support
|
|
708
|
-
* @name SupportControllerCreateTicket
|
|
709
|
-
* @summary Create Support Ticket
|
|
710
|
-
* @request POST:/support/ticket
|
|
711
|
-
* @secure
|
|
712
|
-
*/
|
|
713
|
-
supportControllerCreateTicket: (data, params = {}) => this.request({
|
|
714
|
-
path: `/support/ticket`,
|
|
715
|
-
method: "POST",
|
|
716
|
-
body: data,
|
|
717
|
-
secure: true,
|
|
718
|
-
type: ContentType.Json,
|
|
719
|
-
format: "json",
|
|
720
|
-
...params,
|
|
721
|
-
}),
|
|
722
|
-
};
|
|
723
686
|
assistant = {
|
|
724
687
|
/**
|
|
725
688
|
* No description
|
|
@@ -1331,24 +1294,6 @@ class Api extends HttpClient {
|
|
|
1331
1294
|
format: "json",
|
|
1332
1295
|
...params,
|
|
1333
1296
|
}),
|
|
1334
|
-
/**
|
|
1335
|
-
* No description
|
|
1336
|
-
*
|
|
1337
|
-
* @tags Workflow
|
|
1338
|
-
* @name WorkflowControllerGenerateFromTranscripts
|
|
1339
|
-
* @summary Generate Workflow JSON from Transcript Files
|
|
1340
|
-
* @request POST:/workflow/generate
|
|
1341
|
-
* @secure
|
|
1342
|
-
*/
|
|
1343
|
-
workflowControllerGenerateFromTranscripts: (data, params = {}) => this.request({
|
|
1344
|
-
path: `/workflow/generate`,
|
|
1345
|
-
method: "POST",
|
|
1346
|
-
body: data,
|
|
1347
|
-
secure: true,
|
|
1348
|
-
type: ContentType.Json,
|
|
1349
|
-
format: "json",
|
|
1350
|
-
...params,
|
|
1351
|
-
}),
|
|
1352
1297
|
};
|
|
1353
1298
|
squad = {
|
|
1354
1299
|
/**
|
|
@@ -1786,6 +1731,94 @@ class Api extends HttpClient {
|
|
|
1786
1731
|
...params,
|
|
1787
1732
|
}),
|
|
1788
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
|
+
};
|
|
1789
1822
|
org = {
|
|
1790
1823
|
/**
|
|
1791
1824
|
* No description
|
|
@@ -1821,6 +1854,23 @@ class Api extends HttpClient {
|
|
|
1821
1854
|
format: "json",
|
|
1822
1855
|
...params,
|
|
1823
1856
|
}),
|
|
1857
|
+
/**
|
|
1858
|
+
* No description
|
|
1859
|
+
*
|
|
1860
|
+
* @tags Orgs
|
|
1861
|
+
* @name OrgControllerFeatureFlagEnabled
|
|
1862
|
+
* @summary Check if Feature Flag is enabled
|
|
1863
|
+
* @request GET:/org/feature-flag
|
|
1864
|
+
* @secure
|
|
1865
|
+
*/
|
|
1866
|
+
orgControllerFeatureFlagEnabled: (query, params = {}) => this.request({
|
|
1867
|
+
path: `/org/feature-flag`,
|
|
1868
|
+
method: "GET",
|
|
1869
|
+
query: query,
|
|
1870
|
+
secure: true,
|
|
1871
|
+
format: "json",
|
|
1872
|
+
...params,
|
|
1873
|
+
}),
|
|
1824
1874
|
/**
|
|
1825
1875
|
* No description
|
|
1826
1876
|
*
|
|
@@ -2177,12 +2227,12 @@ class Api extends HttpClient {
|
|
|
2177
2227
|
* No description
|
|
2178
2228
|
*
|
|
2179
2229
|
* @tags Credentials
|
|
2180
|
-
* @name
|
|
2230
|
+
* @name CredentialControllerTriggerCredentialAction
|
|
2181
2231
|
* @summary Trigger a credential action
|
|
2182
2232
|
* @request POST:/credential/trigger
|
|
2183
2233
|
* @secure
|
|
2184
2234
|
*/
|
|
2185
|
-
|
|
2235
|
+
credentialControllerTriggerCredentialAction: (data, params = {}) => this.request({
|
|
2186
2236
|
path: `/credential/trigger`,
|
|
2187
2237
|
method: "POST",
|
|
2188
2238
|
body: data,
|
|
@@ -2381,6 +2431,87 @@ class Api extends HttpClient {
|
|
|
2381
2431
|
}),
|
|
2382
2432
|
};
|
|
2383
2433
|
provider = {
|
|
2434
|
+
/**
|
|
2435
|
+
* No description
|
|
2436
|
+
*
|
|
2437
|
+
* @tags Provider Resources
|
|
2438
|
+
* @name ProviderResourceControllerCreateProviderResource
|
|
2439
|
+
* @summary Create Provider Resource
|
|
2440
|
+
* @request POST:/provider/{provider}/{resourceName}
|
|
2441
|
+
* @secure
|
|
2442
|
+
*/
|
|
2443
|
+
providerResourceControllerCreateProviderResource: (provider, resourceName, params = {}) => this.request({
|
|
2444
|
+
path: `/provider/${provider}/${resourceName}`,
|
|
2445
|
+
method: "POST",
|
|
2446
|
+
secure: true,
|
|
2447
|
+
format: "json",
|
|
2448
|
+
...params,
|
|
2449
|
+
}),
|
|
2450
|
+
/**
|
|
2451
|
+
* No description
|
|
2452
|
+
*
|
|
2453
|
+
* @tags Provider Resources
|
|
2454
|
+
* @name ProviderResourceControllerGetProviderResourcesPaginated
|
|
2455
|
+
* @summary List Provider Resources
|
|
2456
|
+
* @request GET:/provider/{provider}/{resourceName}
|
|
2457
|
+
* @secure
|
|
2458
|
+
*/
|
|
2459
|
+
providerResourceControllerGetProviderResourcesPaginated: (provider, resourceName, query, params = {}) => this.request({
|
|
2460
|
+
path: `/provider/${provider}/${resourceName}`,
|
|
2461
|
+
method: "GET",
|
|
2462
|
+
query: query,
|
|
2463
|
+
secure: true,
|
|
2464
|
+
format: "json",
|
|
2465
|
+
...params,
|
|
2466
|
+
}),
|
|
2467
|
+
/**
|
|
2468
|
+
* No description
|
|
2469
|
+
*
|
|
2470
|
+
* @tags Provider Resources
|
|
2471
|
+
* @name ProviderResourceControllerGetProviderResource
|
|
2472
|
+
* @summary Get Provider Resource
|
|
2473
|
+
* @request GET:/provider/{provider}/{resourceName}/{id}
|
|
2474
|
+
* @secure
|
|
2475
|
+
*/
|
|
2476
|
+
providerResourceControllerGetProviderResource: (provider, resourceName, id, params = {}) => this.request({
|
|
2477
|
+
path: `/provider/${provider}/${resourceName}/${id}`,
|
|
2478
|
+
method: "GET",
|
|
2479
|
+
secure: true,
|
|
2480
|
+
format: "json",
|
|
2481
|
+
...params,
|
|
2482
|
+
}),
|
|
2483
|
+
/**
|
|
2484
|
+
* No description
|
|
2485
|
+
*
|
|
2486
|
+
* @tags Provider Resources
|
|
2487
|
+
* @name ProviderResourceControllerDeleteProviderResource
|
|
2488
|
+
* @summary Delete Provider Resource
|
|
2489
|
+
* @request DELETE:/provider/{provider}/{resourceName}/{id}
|
|
2490
|
+
* @secure
|
|
2491
|
+
*/
|
|
2492
|
+
providerResourceControllerDeleteProviderResource: (provider, resourceName, id, params = {}) => this.request({
|
|
2493
|
+
path: `/provider/${provider}/${resourceName}/${id}`,
|
|
2494
|
+
method: "DELETE",
|
|
2495
|
+
secure: true,
|
|
2496
|
+
format: "json",
|
|
2497
|
+
...params,
|
|
2498
|
+
}),
|
|
2499
|
+
/**
|
|
2500
|
+
* No description
|
|
2501
|
+
*
|
|
2502
|
+
* @tags Provider Resources
|
|
2503
|
+
* @name ProviderResourceControllerUpdateProviderResource
|
|
2504
|
+
* @summary Update Provider Resource
|
|
2505
|
+
* @request PATCH:/provider/{provider}/{resourceName}/{id}
|
|
2506
|
+
* @secure
|
|
2507
|
+
*/
|
|
2508
|
+
providerResourceControllerUpdateProviderResource: (provider, resourceName, id, params = {}) => this.request({
|
|
2509
|
+
path: `/provider/${provider}/${resourceName}/${id}`,
|
|
2510
|
+
method: "PATCH",
|
|
2511
|
+
secure: true,
|
|
2512
|
+
format: "json",
|
|
2513
|
+
...params,
|
|
2514
|
+
}),
|
|
2384
2515
|
/**
|
|
2385
2516
|
* No description
|
|
2386
2517
|
*
|
package/dist/vapi.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Call, CreateSquadDTO, CreateAssistantDTO, AssistantOverrides, CreateWor
|
|
|
5
5
|
export interface AddMessageMessage {
|
|
6
6
|
type: 'add-message';
|
|
7
7
|
message: ChatCompletionMessageParam;
|
|
8
|
+
triggerResponseEnabled?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface ControlMessages {
|
|
10
11
|
type: 'control';
|
package/package.json
CHANGED