@gtmi/ramp-site-client 0.0.1 → 0.0.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/dist/es/index.d.mts +2745 -344
- package/dist/es/index.mjs +606 -77
- package/package.json +1 -1
- package/src/generated/index.ts +197 -4
- package/src/generated/sdk.gen.ts +232 -82
- package/src/generated/types.gen.ts +1770 -308
- package/src/generated/zod.gen.ts +567 -11
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -66,9 +66,6 @@ import type {
|
|
|
66
66
|
GetApiIntelligenceConfigurationData,
|
|
67
67
|
GetApiIntelligenceConfigurationErrors,
|
|
68
68
|
GetApiIntelligenceConfigurationResponses,
|
|
69
|
-
GetApiInternalNavData,
|
|
70
|
-
GetApiInternalNavErrors,
|
|
71
|
-
GetApiInternalNavResponses,
|
|
72
69
|
GetApiIsvLogoData,
|
|
73
70
|
GetApiIsvLogoErrors,
|
|
74
71
|
GetApiIsvLogoResponses,
|
|
@@ -93,6 +90,12 @@ import type {
|
|
|
93
90
|
GetApiSupportedRegionsData,
|
|
94
91
|
GetApiSupportedRegionsErrors,
|
|
95
92
|
GetApiSupportedRegionsResponses,
|
|
93
|
+
GetApiWebchatConversationsTokenData,
|
|
94
|
+
GetApiWebchatConversationsTokenErrors,
|
|
95
|
+
GetApiWebchatConversationsTokenResponses,
|
|
96
|
+
GetApiWebchatVoiceTokenData,
|
|
97
|
+
GetApiWebchatVoiceTokenErrors,
|
|
98
|
+
GetApiWebchatVoiceTokenResponses,
|
|
96
99
|
PatchApiConversationMemoryConversationSummariesData,
|
|
97
100
|
PatchApiConversationMemoryConversationSummariesErrors,
|
|
98
101
|
PatchApiConversationMemoryConversationSummariesResponses,
|
|
@@ -195,6 +198,30 @@ import type {
|
|
|
195
198
|
PostApiVerifySendData,
|
|
196
199
|
PostApiVerifySendErrors,
|
|
197
200
|
PostApiVerifySendResponses,
|
|
201
|
+
PostApiWebchatChatData,
|
|
202
|
+
PostApiWebchatChatErrors,
|
|
203
|
+
PostApiWebchatChatResponses,
|
|
204
|
+
PostApiWebchatConversationData,
|
|
205
|
+
PostApiWebchatConversationErrors,
|
|
206
|
+
PostApiWebchatConversationResponses,
|
|
207
|
+
PostApiWebchatConversationsTokenData,
|
|
208
|
+
PostApiWebchatConversationsTokenErrors,
|
|
209
|
+
PostApiWebchatConversationsTokenResponses,
|
|
210
|
+
PostApiWebchatEndChatData,
|
|
211
|
+
PostApiWebchatEndChatErrors,
|
|
212
|
+
PostApiWebchatEndChatResponses,
|
|
213
|
+
PostApiWebchatLiveAgentWebchatConnectData,
|
|
214
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
215
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
216
|
+
PostApiWebchatLiveAgentWebchatEndData,
|
|
217
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
218
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
219
|
+
PostApiWebchatUiConfigData,
|
|
220
|
+
PostApiWebchatUiConfigErrors,
|
|
221
|
+
PostApiWebchatUiConfigResponses,
|
|
222
|
+
PostApiWebchatWebchatSendData,
|
|
223
|
+
PostApiWebchatWebchatSendErrors,
|
|
224
|
+
PostApiWebchatWebchatSendResponses,
|
|
198
225
|
PutApiConversationalIntelligenceOperatorData,
|
|
199
226
|
PutApiConversationalIntelligenceOperatorErrors,
|
|
200
227
|
PutApiConversationalIntelligenceOperatorResponses,
|
|
@@ -1327,28 +1354,6 @@ export const putApiIntelligenceConfiguration = <ThrowOnError extends boolean = f
|
|
|
1327
1354
|
},
|
|
1328
1355
|
});
|
|
1329
1356
|
|
|
1330
|
-
/**
|
|
1331
|
-
* GET internal-nav
|
|
1332
|
-
*/
|
|
1333
|
-
export const getApiInternalNav = <ThrowOnError extends boolean = false>(
|
|
1334
|
-
options?: Options<GetApiInternalNavData, ThrowOnError>,
|
|
1335
|
-
): RequestResult<GetApiInternalNavResponses, GetApiInternalNavErrors, ThrowOnError> =>
|
|
1336
|
-
(options?.client ?? client).get<
|
|
1337
|
-
GetApiInternalNavResponses,
|
|
1338
|
-
GetApiInternalNavErrors,
|
|
1339
|
-
ThrowOnError
|
|
1340
|
-
>({
|
|
1341
|
-
security: [
|
|
1342
|
-
{
|
|
1343
|
-
in: 'cookie',
|
|
1344
|
-
name: 'next-auth.session-token',
|
|
1345
|
-
type: 'apiKey',
|
|
1346
|
-
},
|
|
1347
|
-
],
|
|
1348
|
-
url: '/api/internal-nav',
|
|
1349
|
-
...options,
|
|
1350
|
-
});
|
|
1351
|
-
|
|
1352
1357
|
/**
|
|
1353
1358
|
* GET isv / logo
|
|
1354
1359
|
*/
|
|
@@ -1356,13 +1361,6 @@ export const getApiIsvLogo = <ThrowOnError extends boolean = false>(
|
|
|
1356
1361
|
options: Options<GetApiIsvLogoData, ThrowOnError>,
|
|
1357
1362
|
): RequestResult<GetApiIsvLogoResponses, GetApiIsvLogoErrors, ThrowOnError> =>
|
|
1358
1363
|
(options.client ?? client).get<GetApiIsvLogoResponses, GetApiIsvLogoErrors, ThrowOnError>({
|
|
1359
|
-
security: [
|
|
1360
|
-
{
|
|
1361
|
-
in: 'cookie',
|
|
1362
|
-
name: 'next-auth.session-token',
|
|
1363
|
-
type: 'apiKey',
|
|
1364
|
-
},
|
|
1365
|
-
],
|
|
1366
1364
|
url: '/api/isv/logo',
|
|
1367
1365
|
...options,
|
|
1368
1366
|
});
|
|
@@ -1661,17 +1659,7 @@ export const getApiPhoneLogsByPhoneNumber = <ThrowOnError extends boolean = fals
|
|
|
1661
1659
|
GetApiPhoneLogsByPhoneNumberResponses,
|
|
1662
1660
|
GetApiPhoneLogsByPhoneNumberErrors,
|
|
1663
1661
|
ThrowOnError
|
|
1664
|
-
>({
|
|
1665
|
-
security: [
|
|
1666
|
-
{
|
|
1667
|
-
in: 'cookie',
|
|
1668
|
-
name: 'next-auth.session-token',
|
|
1669
|
-
type: 'apiKey',
|
|
1670
|
-
},
|
|
1671
|
-
],
|
|
1672
|
-
url: '/api/phone-logs/{phoneNumber}',
|
|
1673
|
-
...options,
|
|
1674
|
-
});
|
|
1662
|
+
>({ url: '/api/phone-logs/{phoneNumber}', ...options });
|
|
1675
1663
|
|
|
1676
1664
|
/**
|
|
1677
1665
|
* GET recently-active-numbers
|
|
@@ -1758,13 +1746,6 @@ export const getApiSession = <ThrowOnError extends boolean = false>(
|
|
|
1758
1746
|
options?: Options<GetApiSessionData, ThrowOnError>,
|
|
1759
1747
|
): RequestResult<GetApiSessionResponses, GetApiSessionErrors, ThrowOnError> =>
|
|
1760
1748
|
(options?.client ?? client).get<GetApiSessionResponses, GetApiSessionErrors, ThrowOnError>({
|
|
1761
|
-
security: [
|
|
1762
|
-
{
|
|
1763
|
-
in: 'cookie',
|
|
1764
|
-
name: 'next-auth.session-token',
|
|
1765
|
-
type: 'apiKey',
|
|
1766
|
-
},
|
|
1767
|
-
],
|
|
1768
1749
|
url: '/api/session',
|
|
1769
1750
|
...options,
|
|
1770
1751
|
});
|
|
@@ -1798,13 +1779,6 @@ export const postApiTags = <ThrowOnError extends boolean = false>(
|
|
|
1798
1779
|
options: Options<PostApiTagsData, ThrowOnError>,
|
|
1799
1780
|
): RequestResult<PostApiTagsResponses, PostApiTagsErrors, ThrowOnError> =>
|
|
1800
1781
|
(options.client ?? client).post<PostApiTagsResponses, PostApiTagsErrors, ThrowOnError>({
|
|
1801
|
-
security: [
|
|
1802
|
-
{
|
|
1803
|
-
in: 'cookie',
|
|
1804
|
-
name: 'next-auth.session-token',
|
|
1805
|
-
type: 'apiKey',
|
|
1806
|
-
},
|
|
1807
|
-
],
|
|
1808
1782
|
url: '/api/tags',
|
|
1809
1783
|
...options,
|
|
1810
1784
|
headers: {
|
|
@@ -1820,17 +1794,7 @@ export const postApiTelemetry = <ThrowOnError extends boolean = false>(
|
|
|
1820
1794
|
options?: Options<PostApiTelemetryData, ThrowOnError>,
|
|
1821
1795
|
): RequestResult<PostApiTelemetryResponses, PostApiTelemetryErrors, ThrowOnError> =>
|
|
1822
1796
|
(options?.client ?? client).post<PostApiTelemetryResponses, PostApiTelemetryErrors, ThrowOnError>(
|
|
1823
|
-
{
|
|
1824
|
-
security: [
|
|
1825
|
-
{
|
|
1826
|
-
in: 'cookie',
|
|
1827
|
-
name: 'next-auth.session-token',
|
|
1828
|
-
type: 'apiKey',
|
|
1829
|
-
},
|
|
1830
|
-
],
|
|
1831
|
-
url: '/api/telemetry',
|
|
1832
|
-
...options,
|
|
1833
|
-
},
|
|
1797
|
+
{ url: '/api/telemetry', ...options },
|
|
1834
1798
|
);
|
|
1835
1799
|
|
|
1836
1800
|
/**
|
|
@@ -1892,13 +1856,6 @@ export const postApiVerifyCheck = <ThrowOnError extends boolean = false>(
|
|
|
1892
1856
|
PostApiVerifyCheckErrors,
|
|
1893
1857
|
ThrowOnError
|
|
1894
1858
|
>({
|
|
1895
|
-
security: [
|
|
1896
|
-
{
|
|
1897
|
-
in: 'cookie',
|
|
1898
|
-
name: 'next-auth.session-token',
|
|
1899
|
-
type: 'apiKey',
|
|
1900
|
-
},
|
|
1901
|
-
],
|
|
1902
1859
|
url: '/api/verify/check',
|
|
1903
1860
|
...options,
|
|
1904
1861
|
headers: {
|
|
@@ -1918,13 +1875,6 @@ export const postApiVerifySend = <ThrowOnError extends boolean = false>(
|
|
|
1918
1875
|
PostApiVerifySendErrors,
|
|
1919
1876
|
ThrowOnError
|
|
1920
1877
|
>({
|
|
1921
|
-
security: [
|
|
1922
|
-
{
|
|
1923
|
-
in: 'cookie',
|
|
1924
|
-
name: 'next-auth.session-token',
|
|
1925
|
-
type: 'apiKey',
|
|
1926
|
-
},
|
|
1927
|
-
],
|
|
1928
1878
|
url: '/api/verify/send',
|
|
1929
1879
|
...options,
|
|
1930
1880
|
headers: {
|
|
@@ -1932,3 +1882,203 @@ export const postApiVerifySend = <ThrowOnError extends boolean = false>(
|
|
|
1932
1882
|
...options.headers,
|
|
1933
1883
|
},
|
|
1934
1884
|
});
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* POST webchat / chat
|
|
1888
|
+
*/
|
|
1889
|
+
export const postApiWebchatChat = <ThrowOnError extends boolean = false>(
|
|
1890
|
+
options: Options<PostApiWebchatChatData, ThrowOnError>,
|
|
1891
|
+
): RequestResult<PostApiWebchatChatResponses, PostApiWebchatChatErrors, ThrowOnError> =>
|
|
1892
|
+
(options.client ?? client).post<
|
|
1893
|
+
PostApiWebchatChatResponses,
|
|
1894
|
+
PostApiWebchatChatErrors,
|
|
1895
|
+
ThrowOnError
|
|
1896
|
+
>({
|
|
1897
|
+
url: '/api/webchat/chat',
|
|
1898
|
+
...options,
|
|
1899
|
+
headers: {
|
|
1900
|
+
'Content-Type': 'application/json',
|
|
1901
|
+
...options.headers,
|
|
1902
|
+
},
|
|
1903
|
+
});
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* POST webchat / conversation
|
|
1907
|
+
*/
|
|
1908
|
+
export const postApiWebchatConversation = <ThrowOnError extends boolean = false>(
|
|
1909
|
+
options: Options<PostApiWebchatConversationData, ThrowOnError>,
|
|
1910
|
+
): RequestResult<
|
|
1911
|
+
PostApiWebchatConversationResponses,
|
|
1912
|
+
PostApiWebchatConversationErrors,
|
|
1913
|
+
ThrowOnError
|
|
1914
|
+
> =>
|
|
1915
|
+
(options.client ?? client).post<
|
|
1916
|
+
PostApiWebchatConversationResponses,
|
|
1917
|
+
PostApiWebchatConversationErrors,
|
|
1918
|
+
ThrowOnError
|
|
1919
|
+
>({
|
|
1920
|
+
url: '/api/webchat/conversation',
|
|
1921
|
+
...options,
|
|
1922
|
+
headers: {
|
|
1923
|
+
'Content-Type': 'application/json',
|
|
1924
|
+
...options.headers,
|
|
1925
|
+
},
|
|
1926
|
+
});
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
* GET webchat / conversations / token
|
|
1930
|
+
*/
|
|
1931
|
+
export const getApiWebchatConversationsToken = <ThrowOnError extends boolean = false>(
|
|
1932
|
+
options?: Options<GetApiWebchatConversationsTokenData, ThrowOnError>,
|
|
1933
|
+
): RequestResult<
|
|
1934
|
+
GetApiWebchatConversationsTokenResponses,
|
|
1935
|
+
GetApiWebchatConversationsTokenErrors,
|
|
1936
|
+
ThrowOnError
|
|
1937
|
+
> =>
|
|
1938
|
+
(options?.client ?? client).get<
|
|
1939
|
+
GetApiWebchatConversationsTokenResponses,
|
|
1940
|
+
GetApiWebchatConversationsTokenErrors,
|
|
1941
|
+
ThrowOnError
|
|
1942
|
+
>({ url: '/api/webchat/conversations/token', ...options });
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* POST webchat / conversations / token
|
|
1946
|
+
*/
|
|
1947
|
+
export const postApiWebchatConversationsToken = <ThrowOnError extends boolean = false>(
|
|
1948
|
+
options: Options<PostApiWebchatConversationsTokenData, ThrowOnError>,
|
|
1949
|
+
): RequestResult<
|
|
1950
|
+
PostApiWebchatConversationsTokenResponses,
|
|
1951
|
+
PostApiWebchatConversationsTokenErrors,
|
|
1952
|
+
ThrowOnError
|
|
1953
|
+
> =>
|
|
1954
|
+
(options.client ?? client).post<
|
|
1955
|
+
PostApiWebchatConversationsTokenResponses,
|
|
1956
|
+
PostApiWebchatConversationsTokenErrors,
|
|
1957
|
+
ThrowOnError
|
|
1958
|
+
>({
|
|
1959
|
+
url: '/api/webchat/conversations/token',
|
|
1960
|
+
...options,
|
|
1961
|
+
headers: {
|
|
1962
|
+
'Content-Type': 'application/json',
|
|
1963
|
+
...options.headers,
|
|
1964
|
+
},
|
|
1965
|
+
});
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* POST webchat / end-chat
|
|
1969
|
+
*/
|
|
1970
|
+
export const postApiWebchatEndChat = <ThrowOnError extends boolean = false>(
|
|
1971
|
+
options: Options<PostApiWebchatEndChatData, ThrowOnError>,
|
|
1972
|
+
): RequestResult<PostApiWebchatEndChatResponses, PostApiWebchatEndChatErrors, ThrowOnError> =>
|
|
1973
|
+
(options.client ?? client).post<
|
|
1974
|
+
PostApiWebchatEndChatResponses,
|
|
1975
|
+
PostApiWebchatEndChatErrors,
|
|
1976
|
+
ThrowOnError
|
|
1977
|
+
>({
|
|
1978
|
+
url: '/api/webchat/end-chat',
|
|
1979
|
+
...options,
|
|
1980
|
+
headers: {
|
|
1981
|
+
'Content-Type': 'application/json',
|
|
1982
|
+
...options.headers,
|
|
1983
|
+
},
|
|
1984
|
+
});
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* POST webchat / live-agent-webchat-connect
|
|
1988
|
+
*/
|
|
1989
|
+
export const postApiWebchatLiveAgentWebchatConnect = <ThrowOnError extends boolean = false>(
|
|
1990
|
+
options: Options<PostApiWebchatLiveAgentWebchatConnectData, ThrowOnError>,
|
|
1991
|
+
): RequestResult<
|
|
1992
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
1993
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
1994
|
+
ThrowOnError
|
|
1995
|
+
> =>
|
|
1996
|
+
(options.client ?? client).post<
|
|
1997
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
1998
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
1999
|
+
ThrowOnError
|
|
2000
|
+
>({
|
|
2001
|
+
url: '/api/webchat/live-agent-webchat-connect',
|
|
2002
|
+
...options,
|
|
2003
|
+
headers: {
|
|
2004
|
+
'Content-Type': 'application/json',
|
|
2005
|
+
...options.headers,
|
|
2006
|
+
},
|
|
2007
|
+
});
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* POST webchat / live-agent-webchat-end
|
|
2011
|
+
*/
|
|
2012
|
+
export const postApiWebchatLiveAgentWebchatEnd = <ThrowOnError extends boolean = false>(
|
|
2013
|
+
options: Options<PostApiWebchatLiveAgentWebchatEndData, ThrowOnError>,
|
|
2014
|
+
): RequestResult<
|
|
2015
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
2016
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
2017
|
+
ThrowOnError
|
|
2018
|
+
> =>
|
|
2019
|
+
(options.client ?? client).post<
|
|
2020
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
2021
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
2022
|
+
ThrowOnError
|
|
2023
|
+
>({
|
|
2024
|
+
url: '/api/webchat/live-agent-webchat-end',
|
|
2025
|
+
...options,
|
|
2026
|
+
headers: {
|
|
2027
|
+
'Content-Type': 'application/json',
|
|
2028
|
+
...options.headers,
|
|
2029
|
+
},
|
|
2030
|
+
});
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* POST webchat / ui-config
|
|
2034
|
+
*/
|
|
2035
|
+
export const postApiWebchatUiConfig = <ThrowOnError extends boolean = false>(
|
|
2036
|
+
options: Options<PostApiWebchatUiConfigData, ThrowOnError>,
|
|
2037
|
+
): RequestResult<PostApiWebchatUiConfigResponses, PostApiWebchatUiConfigErrors, ThrowOnError> =>
|
|
2038
|
+
(options.client ?? client).post<
|
|
2039
|
+
PostApiWebchatUiConfigResponses,
|
|
2040
|
+
PostApiWebchatUiConfigErrors,
|
|
2041
|
+
ThrowOnError
|
|
2042
|
+
>({
|
|
2043
|
+
url: '/api/webchat/ui-config',
|
|
2044
|
+
...options,
|
|
2045
|
+
headers: {
|
|
2046
|
+
'Content-Type': 'application/json',
|
|
2047
|
+
...options.headers,
|
|
2048
|
+
},
|
|
2049
|
+
});
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* GET webchat / voice-token
|
|
2053
|
+
*/
|
|
2054
|
+
export const getApiWebchatVoiceToken = <ThrowOnError extends boolean = false>(
|
|
2055
|
+
options?: Options<GetApiWebchatVoiceTokenData, ThrowOnError>,
|
|
2056
|
+
): RequestResult<GetApiWebchatVoiceTokenResponses, GetApiWebchatVoiceTokenErrors, ThrowOnError> =>
|
|
2057
|
+
(options?.client ?? client).get<
|
|
2058
|
+
GetApiWebchatVoiceTokenResponses,
|
|
2059
|
+
GetApiWebchatVoiceTokenErrors,
|
|
2060
|
+
ThrowOnError
|
|
2061
|
+
>({ url: '/api/webchat/voice-token', ...options });
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* POST webchat / webchat-send
|
|
2065
|
+
*/
|
|
2066
|
+
export const postApiWebchatWebchatSend = <ThrowOnError extends boolean = false>(
|
|
2067
|
+
options: Options<PostApiWebchatWebchatSendData, ThrowOnError>,
|
|
2068
|
+
): RequestResult<
|
|
2069
|
+
PostApiWebchatWebchatSendResponses,
|
|
2070
|
+
PostApiWebchatWebchatSendErrors,
|
|
2071
|
+
ThrowOnError
|
|
2072
|
+
> =>
|
|
2073
|
+
(options.client ?? client).post<
|
|
2074
|
+
PostApiWebchatWebchatSendResponses,
|
|
2075
|
+
PostApiWebchatWebchatSendErrors,
|
|
2076
|
+
ThrowOnError
|
|
2077
|
+
>({
|
|
2078
|
+
url: '/api/webchat/webchat-send',
|
|
2079
|
+
...options,
|
|
2080
|
+
headers: {
|
|
2081
|
+
'Content-Type': 'application/json',
|
|
2082
|
+
...options.headers,
|
|
2083
|
+
},
|
|
2084
|
+
});
|