@vapi-ai/web 2.5.0 → 2.5.2
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 +5291 -2120
- package/dist/api.d.ts +5111 -2591
- package/dist/api.js +231 -51
- package/dist/vapi.d.ts +21 -0
- package/dist/vapi.js +221 -24
- package/package.json +2 -2
- package/vapi.ts +242 -24
package/dist/api.js
CHANGED
|
@@ -642,10 +642,12 @@ class Api extends HttpClient {
|
|
|
642
642
|
* @request DELETE:/call/{id}
|
|
643
643
|
* @secure
|
|
644
644
|
*/
|
|
645
|
-
callControllerDeleteCallData: (id, params = {}) => this.request({
|
|
645
|
+
callControllerDeleteCallData: (id, data, params = {}) => this.request({
|
|
646
646
|
path: `/call/${id}`,
|
|
647
647
|
method: "DELETE",
|
|
648
|
+
body: data,
|
|
648
649
|
secure: true,
|
|
650
|
+
type: ContentType.Json,
|
|
649
651
|
format: "json",
|
|
650
652
|
...params,
|
|
651
653
|
}),
|
|
@@ -1475,6 +1477,24 @@ class Api extends HttpClient {
|
|
|
1475
1477
|
format: "json",
|
|
1476
1478
|
...params,
|
|
1477
1479
|
}),
|
|
1480
|
+
/**
|
|
1481
|
+
* No description
|
|
1482
|
+
*
|
|
1483
|
+
* @tags Structured Outputs
|
|
1484
|
+
* @name StructuredOutputControllerRun
|
|
1485
|
+
* @summary Run Structured Output
|
|
1486
|
+
* @request POST:/structured-output/run
|
|
1487
|
+
* @secure
|
|
1488
|
+
*/
|
|
1489
|
+
structuredOutputControllerRun: (data, params = {}) => this.request({
|
|
1490
|
+
path: `/structured-output/run`,
|
|
1491
|
+
method: "POST",
|
|
1492
|
+
body: data,
|
|
1493
|
+
secure: true,
|
|
1494
|
+
type: ContentType.Json,
|
|
1495
|
+
format: "json",
|
|
1496
|
+
...params,
|
|
1497
|
+
}),
|
|
1478
1498
|
};
|
|
1479
1499
|
testSuite = {
|
|
1480
1500
|
/**
|
|
@@ -1733,6 +1753,129 @@ class Api extends HttpClient {
|
|
|
1733
1753
|
...params,
|
|
1734
1754
|
}),
|
|
1735
1755
|
};
|
|
1756
|
+
reporting = {
|
|
1757
|
+
/**
|
|
1758
|
+
* No description
|
|
1759
|
+
*
|
|
1760
|
+
* @tags Insight
|
|
1761
|
+
* @name InsightControllerCreate
|
|
1762
|
+
* @summary Create Insight
|
|
1763
|
+
* @request POST:/reporting/insight
|
|
1764
|
+
* @secure
|
|
1765
|
+
*/
|
|
1766
|
+
insightControllerCreate: (data, params = {}) => this.request({
|
|
1767
|
+
path: `/reporting/insight`,
|
|
1768
|
+
method: "POST",
|
|
1769
|
+
body: data,
|
|
1770
|
+
secure: true,
|
|
1771
|
+
type: ContentType.Json,
|
|
1772
|
+
format: "json",
|
|
1773
|
+
...params,
|
|
1774
|
+
}),
|
|
1775
|
+
/**
|
|
1776
|
+
* No description
|
|
1777
|
+
*
|
|
1778
|
+
* @tags Insight
|
|
1779
|
+
* @name InsightControllerFindAll
|
|
1780
|
+
* @summary Get Insights
|
|
1781
|
+
* @request GET:/reporting/insight
|
|
1782
|
+
* @secure
|
|
1783
|
+
*/
|
|
1784
|
+
insightControllerFindAll: (query, params = {}) => this.request({
|
|
1785
|
+
path: `/reporting/insight`,
|
|
1786
|
+
method: "GET",
|
|
1787
|
+
query: query,
|
|
1788
|
+
secure: true,
|
|
1789
|
+
format: "json",
|
|
1790
|
+
...params,
|
|
1791
|
+
}),
|
|
1792
|
+
/**
|
|
1793
|
+
* No description
|
|
1794
|
+
*
|
|
1795
|
+
* @tags Insight
|
|
1796
|
+
* @name InsightControllerUpdate
|
|
1797
|
+
* @summary Update Insight
|
|
1798
|
+
* @request PATCH:/reporting/insight/{id}
|
|
1799
|
+
* @secure
|
|
1800
|
+
*/
|
|
1801
|
+
insightControllerUpdate: (id, data, params = {}) => this.request({
|
|
1802
|
+
path: `/reporting/insight/${id}`,
|
|
1803
|
+
method: "PATCH",
|
|
1804
|
+
body: data,
|
|
1805
|
+
secure: true,
|
|
1806
|
+
type: ContentType.Json,
|
|
1807
|
+
format: "json",
|
|
1808
|
+
...params,
|
|
1809
|
+
}),
|
|
1810
|
+
/**
|
|
1811
|
+
* No description
|
|
1812
|
+
*
|
|
1813
|
+
* @tags Insight
|
|
1814
|
+
* @name InsightControllerFindOne
|
|
1815
|
+
* @summary Get Insight
|
|
1816
|
+
* @request GET:/reporting/insight/{id}
|
|
1817
|
+
* @secure
|
|
1818
|
+
*/
|
|
1819
|
+
insightControllerFindOne: (id, params = {}) => this.request({
|
|
1820
|
+
path: `/reporting/insight/${id}`,
|
|
1821
|
+
method: "GET",
|
|
1822
|
+
secure: true,
|
|
1823
|
+
format: "json",
|
|
1824
|
+
...params,
|
|
1825
|
+
}),
|
|
1826
|
+
/**
|
|
1827
|
+
* No description
|
|
1828
|
+
*
|
|
1829
|
+
* @tags Insight
|
|
1830
|
+
* @name InsightControllerRemove
|
|
1831
|
+
* @summary Delete Insight
|
|
1832
|
+
* @request DELETE:/reporting/insight/{id}
|
|
1833
|
+
* @secure
|
|
1834
|
+
*/
|
|
1835
|
+
insightControllerRemove: (id, params = {}) => this.request({
|
|
1836
|
+
path: `/reporting/insight/${id}`,
|
|
1837
|
+
method: "DELETE",
|
|
1838
|
+
secure: true,
|
|
1839
|
+
format: "json",
|
|
1840
|
+
...params,
|
|
1841
|
+
}),
|
|
1842
|
+
/**
|
|
1843
|
+
* No description
|
|
1844
|
+
*
|
|
1845
|
+
* @tags Insight
|
|
1846
|
+
* @name InsightControllerRun
|
|
1847
|
+
* @summary Run Insight
|
|
1848
|
+
* @request POST:/reporting/insight/{id}/run
|
|
1849
|
+
* @secure
|
|
1850
|
+
*/
|
|
1851
|
+
insightControllerRun: (id, data, params = {}) => this.request({
|
|
1852
|
+
path: `/reporting/insight/${id}/run`,
|
|
1853
|
+
method: "POST",
|
|
1854
|
+
body: data,
|
|
1855
|
+
secure: true,
|
|
1856
|
+
type: ContentType.Json,
|
|
1857
|
+
format: "json",
|
|
1858
|
+
...params,
|
|
1859
|
+
}),
|
|
1860
|
+
/**
|
|
1861
|
+
* No description
|
|
1862
|
+
*
|
|
1863
|
+
* @tags Insight
|
|
1864
|
+
* @name InsightControllerPreview
|
|
1865
|
+
* @summary Preview Insight
|
|
1866
|
+
* @request POST:/reporting/insight/preview
|
|
1867
|
+
* @secure
|
|
1868
|
+
*/
|
|
1869
|
+
insightControllerPreview: (data, params = {}) => this.request({
|
|
1870
|
+
path: `/reporting/insight/preview`,
|
|
1871
|
+
method: "POST",
|
|
1872
|
+
body: data,
|
|
1873
|
+
secure: true,
|
|
1874
|
+
type: ContentType.Json,
|
|
1875
|
+
format: "json",
|
|
1876
|
+
...params,
|
|
1877
|
+
}),
|
|
1878
|
+
};
|
|
1736
1879
|
eval = {
|
|
1737
1880
|
/**
|
|
1738
1881
|
* No description
|
|
@@ -1886,6 +2029,93 @@ class Api extends HttpClient {
|
|
|
1886
2029
|
...params,
|
|
1887
2030
|
}),
|
|
1888
2031
|
};
|
|
2032
|
+
observability = {
|
|
2033
|
+
/**
|
|
2034
|
+
* No description
|
|
2035
|
+
*
|
|
2036
|
+
* @tags Observability/Scorecard
|
|
2037
|
+
* @name ScorecardControllerGet
|
|
2038
|
+
* @summary Get Scorecard
|
|
2039
|
+
* @request GET:/observability/scorecard/{id}
|
|
2040
|
+
* @secure
|
|
2041
|
+
*/
|
|
2042
|
+
scorecardControllerGet: (id, params = {}) => this.request({
|
|
2043
|
+
path: `/observability/scorecard/${id}`,
|
|
2044
|
+
method: "GET",
|
|
2045
|
+
secure: true,
|
|
2046
|
+
format: "json",
|
|
2047
|
+
...params,
|
|
2048
|
+
}),
|
|
2049
|
+
/**
|
|
2050
|
+
* No description
|
|
2051
|
+
*
|
|
2052
|
+
* @tags Observability/Scorecard
|
|
2053
|
+
* @name ScorecardControllerUpdate
|
|
2054
|
+
* @summary Update Scorecard
|
|
2055
|
+
* @request PATCH:/observability/scorecard/{id}
|
|
2056
|
+
* @secure
|
|
2057
|
+
*/
|
|
2058
|
+
scorecardControllerUpdate: (id, data, params = {}) => this.request({
|
|
2059
|
+
path: `/observability/scorecard/${id}`,
|
|
2060
|
+
method: "PATCH",
|
|
2061
|
+
body: data,
|
|
2062
|
+
secure: true,
|
|
2063
|
+
type: ContentType.Json,
|
|
2064
|
+
format: "json",
|
|
2065
|
+
...params,
|
|
2066
|
+
}),
|
|
2067
|
+
/**
|
|
2068
|
+
* No description
|
|
2069
|
+
*
|
|
2070
|
+
* @tags Observability/Scorecard
|
|
2071
|
+
* @name ScorecardControllerRemove
|
|
2072
|
+
* @summary Delete Scorecard
|
|
2073
|
+
* @request DELETE:/observability/scorecard/{id}
|
|
2074
|
+
* @secure
|
|
2075
|
+
*/
|
|
2076
|
+
scorecardControllerRemove: (id, params = {}) => this.request({
|
|
2077
|
+
path: `/observability/scorecard/${id}`,
|
|
2078
|
+
method: "DELETE",
|
|
2079
|
+
secure: true,
|
|
2080
|
+
format: "json",
|
|
2081
|
+
...params,
|
|
2082
|
+
}),
|
|
2083
|
+
/**
|
|
2084
|
+
* No description
|
|
2085
|
+
*
|
|
2086
|
+
* @tags Observability/Scorecard
|
|
2087
|
+
* @name ScorecardControllerGetPaginated
|
|
2088
|
+
* @summary List Scorecards
|
|
2089
|
+
* @request GET:/observability/scorecard
|
|
2090
|
+
* @secure
|
|
2091
|
+
*/
|
|
2092
|
+
scorecardControllerGetPaginated: (query, params = {}) => this.request({
|
|
2093
|
+
path: `/observability/scorecard`,
|
|
2094
|
+
method: "GET",
|
|
2095
|
+
query: query,
|
|
2096
|
+
secure: true,
|
|
2097
|
+
format: "json",
|
|
2098
|
+
...params,
|
|
2099
|
+
}),
|
|
2100
|
+
/**
|
|
2101
|
+
* No description
|
|
2102
|
+
*
|
|
2103
|
+
* @tags Observability/Scorecard
|
|
2104
|
+
* @name ScorecardControllerCreate
|
|
2105
|
+
* @summary Create Scorecard
|
|
2106
|
+
* @request POST:/observability/scorecard
|
|
2107
|
+
* @secure
|
|
2108
|
+
*/
|
|
2109
|
+
scorecardControllerCreate: (data, params = {}) => this.request({
|
|
2110
|
+
path: `/observability/scorecard`,
|
|
2111
|
+
method: "POST",
|
|
2112
|
+
body: data,
|
|
2113
|
+
secure: true,
|
|
2114
|
+
type: ContentType.Json,
|
|
2115
|
+
format: "json",
|
|
2116
|
+
...params,
|
|
2117
|
+
}),
|
|
2118
|
+
};
|
|
1889
2119
|
org = {
|
|
1890
2120
|
/**
|
|
1891
2121
|
* No description
|
|
@@ -2257,56 +2487,6 @@ class Api extends HttpClient {
|
|
|
2257
2487
|
format: "json",
|
|
2258
2488
|
...params,
|
|
2259
2489
|
}),
|
|
2260
|
-
/**
|
|
2261
|
-
* No description
|
|
2262
|
-
*
|
|
2263
|
-
* @tags Credentials
|
|
2264
|
-
* @name CredentialControllerGenerateSession
|
|
2265
|
-
* @summary Generate a credential session
|
|
2266
|
-
* @request POST:/credential/session
|
|
2267
|
-
* @secure
|
|
2268
|
-
*/
|
|
2269
|
-
credentialControllerGenerateSession: (data, params = {}) => this.request({
|
|
2270
|
-
path: `/credential/session`,
|
|
2271
|
-
method: "POST",
|
|
2272
|
-
body: data,
|
|
2273
|
-
secure: true,
|
|
2274
|
-
type: ContentType.Json,
|
|
2275
|
-
format: "json",
|
|
2276
|
-
...params,
|
|
2277
|
-
}),
|
|
2278
|
-
/**
|
|
2279
|
-
* No description
|
|
2280
|
-
*
|
|
2281
|
-
* @tags Credentials
|
|
2282
|
-
* @name CredentialControllerHandleWebhook
|
|
2283
|
-
* @summary Handle credential webhook
|
|
2284
|
-
* @request POST:/credential/webhook
|
|
2285
|
-
*/
|
|
2286
|
-
credentialControllerHandleWebhook: (data, params = {}) => this.request({
|
|
2287
|
-
path: `/credential/webhook`,
|
|
2288
|
-
method: "POST",
|
|
2289
|
-
body: data,
|
|
2290
|
-
type: ContentType.Json,
|
|
2291
|
-
...params,
|
|
2292
|
-
}),
|
|
2293
|
-
/**
|
|
2294
|
-
* No description
|
|
2295
|
-
*
|
|
2296
|
-
* @tags Credentials
|
|
2297
|
-
* @name CredentialControllerTriggerCredentialAction
|
|
2298
|
-
* @summary Trigger a credential action
|
|
2299
|
-
* @request POST:/credential/trigger
|
|
2300
|
-
* @secure
|
|
2301
|
-
*/
|
|
2302
|
-
credentialControllerTriggerCredentialAction: (data, params = {}) => this.request({
|
|
2303
|
-
path: `/credential/trigger`,
|
|
2304
|
-
method: "POST",
|
|
2305
|
-
body: data,
|
|
2306
|
-
secure: true,
|
|
2307
|
-
type: ContentType.Json,
|
|
2308
|
-
...params,
|
|
2309
|
-
}),
|
|
2310
2490
|
};
|
|
2311
2491
|
template = {
|
|
2312
2492
|
/**
|
package/dist/vapi.d.ts
CHANGED
|
@@ -158,5 +158,26 @@ export default class Vapi extends VapiEventEmitter {
|
|
|
158
158
|
* @param webCall
|
|
159
159
|
*/
|
|
160
160
|
reconnect(webCall: WebCall): Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* Runs all network connectivity tests for pre-call diagnostics.
|
|
163
|
+
* Creates a temporary Daily call object for testing purposes.
|
|
164
|
+
*
|
|
165
|
+
* Tests performed:
|
|
166
|
+
* 1. Network connectivity (TURN server) - Tests if traffic can be relayed through TURN servers
|
|
167
|
+
* 2. Websocket connectivity - Tests if websocket connections can be established
|
|
168
|
+
* 3. Call quality - Tests overall call quality metrics (if available in SDK version)
|
|
169
|
+
*
|
|
170
|
+
* @returns {Promise<Record<string, any>>} Test results object with status for each test
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* // Run pre-call network diagnostics
|
|
174
|
+
* const results = await Vapi.runNetworkTestsStandalone();
|
|
175
|
+
* if (results.networkConnectivity?.result === 'failed') {
|
|
176
|
+
* console.warn('Network issues detected - calls may not work properly');
|
|
177
|
+
* }
|
|
178
|
+
*
|
|
179
|
+
* @static
|
|
180
|
+
*/
|
|
181
|
+
static runNetworkTestsStandalone(): Promise<Record<string, any>>;
|
|
161
182
|
}
|
|
162
183
|
export {};
|