@gtmi/ramp-dialog-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 +851 -50
- package/dist/es/index.mjs +242 -2
- package/package.json +1 -1
- package/src/generated/index.ts +88 -0
- package/src/generated/sdk.gen.ts +230 -0
- package/src/generated/types.gen.ts +668 -48
- package/src/generated/zod.gen.ts +168 -0
package/dist/es/index.mjs
CHANGED
|
@@ -997,46 +997,286 @@ const client = createClient(createConfig());
|
|
|
997
997
|
url: '/api/telemetry',
|
|
998
998
|
...options
|
|
999
999
|
});
|
|
1000
|
+
/**
|
|
1001
|
+
* POST webchat / chat
|
|
1002
|
+
*/ const postApiWebchatChat = (options)=>(options.client ?? client).post({
|
|
1003
|
+
url: '/api/webchat/chat',
|
|
1004
|
+
...options,
|
|
1005
|
+
headers: {
|
|
1006
|
+
'Content-Type': 'application/json',
|
|
1007
|
+
...options.headers
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
/**
|
|
1011
|
+
* GET webchat / conversations / token
|
|
1012
|
+
*/ const getApiWebchatConversationsToken = (options)=>(options?.client ?? client).get({
|
|
1013
|
+
url: '/api/webchat/conversations/token',
|
|
1014
|
+
...options
|
|
1015
|
+
});
|
|
1016
|
+
/**
|
|
1017
|
+
* POST webchat / conversations / token
|
|
1018
|
+
*/ const postApiWebchatConversationsToken = (options)=>(options.client ?? client).post({
|
|
1019
|
+
url: '/api/webchat/conversations/token',
|
|
1020
|
+
...options,
|
|
1021
|
+
headers: {
|
|
1022
|
+
'Content-Type': 'application/json',
|
|
1023
|
+
...options.headers
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
/**
|
|
1027
|
+
* POST webchat / end-chat
|
|
1028
|
+
*/ const postApiWebchatEndChat = (options)=>(options.client ?? client).post({
|
|
1029
|
+
url: '/api/webchat/end-chat',
|
|
1030
|
+
...options,
|
|
1031
|
+
headers: {
|
|
1032
|
+
'Content-Type': 'application/json',
|
|
1033
|
+
...options.headers
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
/**
|
|
1037
|
+
* POST webchat / live-agent-chat
|
|
1038
|
+
*/ const postApiWebchatLiveAgentChat = (options)=>(options.client ?? client).post({
|
|
1039
|
+
url: '/api/webchat/live-agent-chat',
|
|
1040
|
+
...options,
|
|
1041
|
+
headers: {
|
|
1042
|
+
'Content-Type': 'application/json',
|
|
1043
|
+
...options.headers
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
/**
|
|
1047
|
+
* POST webchat / live-agent-webchat-connect
|
|
1048
|
+
*/ const postApiWebchatLiveAgentWebchatConnect = (options)=>(options.client ?? client).post({
|
|
1049
|
+
url: '/api/webchat/live-agent-webchat-connect',
|
|
1050
|
+
...options,
|
|
1051
|
+
headers: {
|
|
1052
|
+
'Content-Type': 'application/json',
|
|
1053
|
+
...options.headers
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
/**
|
|
1057
|
+
* POST webchat / live-agent-webchat-end
|
|
1058
|
+
*/ const postApiWebchatLiveAgentWebchatEnd = (options)=>(options.client ?? client).post({
|
|
1059
|
+
url: '/api/webchat/live-agent-webchat-end',
|
|
1060
|
+
...options,
|
|
1061
|
+
headers: {
|
|
1062
|
+
'Content-Type': 'application/json',
|
|
1063
|
+
...options.headers
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
/**
|
|
1067
|
+
* POST webchat / ui-config
|
|
1068
|
+
*/ const postApiWebchatUiConfig = (options)=>(options.client ?? client).post({
|
|
1069
|
+
url: '/api/webchat/ui-config',
|
|
1070
|
+
...options,
|
|
1071
|
+
headers: {
|
|
1072
|
+
'Content-Type': 'application/json',
|
|
1073
|
+
...options.headers
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
/**
|
|
1077
|
+
* GET webchat / voice-token
|
|
1078
|
+
*/ const getApiWebchatVoiceToken = (options)=>(options?.client ?? client).get({
|
|
1079
|
+
url: '/api/webchat/voice-token',
|
|
1080
|
+
...options
|
|
1081
|
+
});
|
|
1082
|
+
/**
|
|
1083
|
+
* POST webchat / webchat-send
|
|
1084
|
+
*/ const postApiWebchatWebchatSend = (options)=>(options.client ?? client).post({
|
|
1085
|
+
url: '/api/webchat/webchat-send',
|
|
1086
|
+
...options,
|
|
1087
|
+
headers: {
|
|
1088
|
+
'Content-Type': 'application/json',
|
|
1089
|
+
...options.headers
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1000
1092
|
|
|
1001
1093
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
1094
|
+
const zErrorResponse = z.object({
|
|
1095
|
+
error: z.string().optional(),
|
|
1096
|
+
details: z.string().optional()
|
|
1097
|
+
});
|
|
1002
1098
|
const zGetApiActiveConversationsByCustomerNumberPath = z.object({
|
|
1003
1099
|
customerNumber: z.string()
|
|
1004
1100
|
});
|
|
1101
|
+
/**
|
|
1102
|
+
* Proxied active-conversations payload from the agent server
|
|
1103
|
+
*/ const zGetApiActiveConversationsByCustomerNumberResponse = z.record(z.unknown());
|
|
1005
1104
|
const zGetApiActiveConversationsAgentByAgentNumberPath = z.object({
|
|
1006
1105
|
agentNumber: z.string()
|
|
1007
1106
|
});
|
|
1107
|
+
/**
|
|
1108
|
+
* Proxied active-conversations-by-agent payload from the agent server
|
|
1109
|
+
*/ const zGetApiActiveConversationsAgentByAgentNumberResponse = z.record(z.unknown());
|
|
1008
1110
|
const zPostApiActiveConversationsAgentClaimBody = z.record(z.unknown());
|
|
1111
|
+
/**
|
|
1112
|
+
* Success
|
|
1113
|
+
*/ const zPostApiActiveConversationsAgentClaimResponse = z.object({
|
|
1114
|
+
success: z.boolean()
|
|
1115
|
+
});
|
|
1009
1116
|
const zPostApiClearBody = z.record(z.unknown());
|
|
1117
|
+
/**
|
|
1118
|
+
* Proxied JSON body from the dialog backend's /api/clear (status code mirrors the upstream response)
|
|
1119
|
+
*/ const zPostApiClearResponse = z.record(z.unknown());
|
|
1010
1120
|
const zPostApiConversationMemoryProfilesLookupBody = z.record(z.unknown());
|
|
1121
|
+
/**
|
|
1122
|
+
* Proxied profiles-lookup payload from the api server
|
|
1123
|
+
*/ const zPostApiConversationMemoryProfilesLookupResponse = z.record(z.unknown());
|
|
1011
1124
|
const zPostApiConversationMemoryRecallBody = z.record(z.unknown());
|
|
1125
|
+
/**
|
|
1126
|
+
* Proxied conversation-memory recall payload from the api server
|
|
1127
|
+
*/ const zPostApiConversationMemoryRecallResponse = z.record(z.unknown());
|
|
1012
1128
|
const zDeleteApiConversationMemoryResetQuery = z.object({
|
|
1013
1129
|
profileId: z.string()
|
|
1014
1130
|
});
|
|
1131
|
+
/**
|
|
1132
|
+
* Proxied conversation-memory reset payload from the api server
|
|
1133
|
+
*/ const zDeleteApiConversationMemoryResetResponse = z.record(z.unknown());
|
|
1134
|
+
/**
|
|
1135
|
+
* Proxied country-configs payload from the agent server
|
|
1136
|
+
*/ const zGetApiCountryConfigsResponse = z.record(z.unknown());
|
|
1015
1137
|
const zDeleteApiKillConversationByPhonePath = z.object({
|
|
1016
1138
|
phone: z.string()
|
|
1017
1139
|
});
|
|
1140
|
+
/**
|
|
1141
|
+
* Proxied kill-conversation payload from the agent server (status mirrors the upstream response)
|
|
1142
|
+
*/ const zDeleteApiKillConversationByPhoneResponse = z.record(z.unknown());
|
|
1143
|
+
/**
|
|
1144
|
+
* Proxied live-numbers deletion payload from the agent server
|
|
1145
|
+
*/ const zDeleteApiLiveNumbersResponse = z.record(z.unknown());
|
|
1018
1146
|
const zGetApiMessagesQuery = z.object({
|
|
1019
1147
|
lastId: z.string().optional(),
|
|
1020
1148
|
phoneNumber: z.string().optional()
|
|
1021
1149
|
});
|
|
1150
|
+
/**
|
|
1151
|
+
* Success
|
|
1152
|
+
*/ const zGetApiMessagesResponse = z.object({
|
|
1153
|
+
success: z.boolean(),
|
|
1154
|
+
messages: z.array(z.record(z.unknown())),
|
|
1155
|
+
customerProfile: z.record(z.unknown()),
|
|
1156
|
+
realtimeCintel: z.record(z.unknown())
|
|
1157
|
+
});
|
|
1022
1158
|
const zPostApiRealTimeCintelUiBody = z.record(z.unknown());
|
|
1159
|
+
/**
|
|
1160
|
+
* Map of intelligenceOperatorId to the operator's parsed uiType; operators whose fetch failed or had no uiType are silently omitted
|
|
1161
|
+
*/ const zPostApiRealTimeCintelUiResponse = z.record(z.unknown());
|
|
1162
|
+
/**
|
|
1163
|
+
* Proxied sync token payload from the api server
|
|
1164
|
+
*/ const zGetApiSyncTokenResponse = z.record(z.unknown());
|
|
1023
1165
|
const zPostApiTelemetryQuery = z.object({
|
|
1024
1166
|
ddforward: z.string().optional()
|
|
1025
1167
|
});
|
|
1168
|
+
const zPostApiTelemetryResponse = z.union([
|
|
1169
|
+
z.unknown(),
|
|
1170
|
+
z.record(z.unknown())
|
|
1171
|
+
]);
|
|
1172
|
+
const zPostApiWebchatChatBody = z.record(z.unknown());
|
|
1173
|
+
/**
|
|
1174
|
+
* Proxied response from the agent chat service
|
|
1175
|
+
*/ const zPostApiWebchatChatResponse = z.record(z.unknown());
|
|
1176
|
+
const zGetApiWebchatConversationsTokenQuery = z.object({
|
|
1177
|
+
identity: z.string().optional()
|
|
1178
|
+
});
|
|
1179
|
+
/**
|
|
1180
|
+
* Proxied response from the API conversations-token service
|
|
1181
|
+
*/ const zGetApiWebchatConversationsTokenResponse = z.record(z.unknown());
|
|
1182
|
+
const zPostApiWebchatConversationsTokenBody = z.record(z.unknown());
|
|
1183
|
+
const zPostApiWebchatConversationsTokenQuery = z.object({
|
|
1184
|
+
identity: z.string().optional()
|
|
1185
|
+
});
|
|
1186
|
+
/**
|
|
1187
|
+
* Proxied response from the API conversations-token service
|
|
1188
|
+
*/ const zPostApiWebchatConversationsTokenResponse = z.record(z.unknown());
|
|
1189
|
+
const zPostApiWebchatEndChatBody = z.record(z.unknown());
|
|
1190
|
+
/**
|
|
1191
|
+
* Proxied response from the agent live-numbers delete service
|
|
1192
|
+
*/ const zPostApiWebchatEndChatResponse = z.record(z.unknown());
|
|
1193
|
+
const zPostApiWebchatLiveAgentChatBody = z.record(z.unknown());
|
|
1194
|
+
/**
|
|
1195
|
+
* Proxied response from the API live-agent-webchat-connect service
|
|
1196
|
+
*/ const zPostApiWebchatLiveAgentChatResponse = z.record(z.unknown());
|
|
1197
|
+
const zPostApiWebchatLiveAgentWebchatConnectBody = z.record(z.unknown());
|
|
1198
|
+
/**
|
|
1199
|
+
* Proxied response from the API live-agent-webchat-connect service
|
|
1200
|
+
*/ const zPostApiWebchatLiveAgentWebchatConnectResponse = z.record(z.unknown());
|
|
1201
|
+
const zPostApiWebchatLiveAgentWebchatEndBody = z.record(z.unknown());
|
|
1202
|
+
/**
|
|
1203
|
+
* Proxied response from the API live-agent-webchat-end service
|
|
1204
|
+
*/ const zPostApiWebchatLiveAgentWebchatEndResponse = z.record(z.unknown());
|
|
1205
|
+
const zPostApiWebchatUiConfigBody = z.record(z.unknown());
|
|
1206
|
+
/**
|
|
1207
|
+
* Success
|
|
1208
|
+
*/ const zPostApiWebchatUiConfigResponse = z.object({
|
|
1209
|
+
ui: z.record(z.unknown()),
|
|
1210
|
+
linkMap: z.record(z.unknown()),
|
|
1211
|
+
hideChatLink: z.boolean(),
|
|
1212
|
+
templateObjectId: z.string(),
|
|
1213
|
+
templateLanguage: z.string(),
|
|
1214
|
+
resolvedCustomerNumber: z.string(),
|
|
1215
|
+
resolvedAgentNumber: z.string(),
|
|
1216
|
+
templateTitle: z.string(),
|
|
1217
|
+
dialogConfig: z.record(z.unknown()),
|
|
1218
|
+
dialogSettings: z.record(z.unknown())
|
|
1219
|
+
});
|
|
1220
|
+
const zGetApiWebchatVoiceTokenQuery = z.object({
|
|
1221
|
+
identity: z.string().optional()
|
|
1222
|
+
});
|
|
1223
|
+
/**
|
|
1224
|
+
* Proxied response from the API voice-token service
|
|
1225
|
+
*/ const zGetApiWebchatVoiceTokenResponse = z.record(z.unknown());
|
|
1226
|
+
const zPostApiWebchatWebchatSendBody = z.record(z.unknown());
|
|
1227
|
+
/**
|
|
1228
|
+
* Proxied response from the agent chat service
|
|
1229
|
+
*/ const zPostApiWebchatWebchatSendResponse = z.record(z.unknown());
|
|
1026
1230
|
|
|
1027
1231
|
var zod_gen = {
|
|
1028
1232
|
__proto__: null,
|
|
1029
1233
|
zDeleteApiConversationMemoryResetQuery: zDeleteApiConversationMemoryResetQuery,
|
|
1234
|
+
zDeleteApiConversationMemoryResetResponse: zDeleteApiConversationMemoryResetResponse,
|
|
1030
1235
|
zDeleteApiKillConversationByPhonePath: zDeleteApiKillConversationByPhonePath,
|
|
1236
|
+
zDeleteApiKillConversationByPhoneResponse: zDeleteApiKillConversationByPhoneResponse,
|
|
1237
|
+
zDeleteApiLiveNumbersResponse: zDeleteApiLiveNumbersResponse,
|
|
1238
|
+
zErrorResponse: zErrorResponse,
|
|
1031
1239
|
zGetApiActiveConversationsAgentByAgentNumberPath: zGetApiActiveConversationsAgentByAgentNumberPath,
|
|
1240
|
+
zGetApiActiveConversationsAgentByAgentNumberResponse: zGetApiActiveConversationsAgentByAgentNumberResponse,
|
|
1032
1241
|
zGetApiActiveConversationsByCustomerNumberPath: zGetApiActiveConversationsByCustomerNumberPath,
|
|
1242
|
+
zGetApiActiveConversationsByCustomerNumberResponse: zGetApiActiveConversationsByCustomerNumberResponse,
|
|
1243
|
+
zGetApiCountryConfigsResponse: zGetApiCountryConfigsResponse,
|
|
1033
1244
|
zGetApiMessagesQuery: zGetApiMessagesQuery,
|
|
1245
|
+
zGetApiMessagesResponse: zGetApiMessagesResponse,
|
|
1246
|
+
zGetApiSyncTokenResponse: zGetApiSyncTokenResponse,
|
|
1247
|
+
zGetApiWebchatConversationsTokenQuery: zGetApiWebchatConversationsTokenQuery,
|
|
1248
|
+
zGetApiWebchatConversationsTokenResponse: zGetApiWebchatConversationsTokenResponse,
|
|
1249
|
+
zGetApiWebchatVoiceTokenQuery: zGetApiWebchatVoiceTokenQuery,
|
|
1250
|
+
zGetApiWebchatVoiceTokenResponse: zGetApiWebchatVoiceTokenResponse,
|
|
1034
1251
|
zPostApiActiveConversationsAgentClaimBody: zPostApiActiveConversationsAgentClaimBody,
|
|
1252
|
+
zPostApiActiveConversationsAgentClaimResponse: zPostApiActiveConversationsAgentClaimResponse,
|
|
1035
1253
|
zPostApiClearBody: zPostApiClearBody,
|
|
1254
|
+
zPostApiClearResponse: zPostApiClearResponse,
|
|
1036
1255
|
zPostApiConversationMemoryProfilesLookupBody: zPostApiConversationMemoryProfilesLookupBody,
|
|
1256
|
+
zPostApiConversationMemoryProfilesLookupResponse: zPostApiConversationMemoryProfilesLookupResponse,
|
|
1037
1257
|
zPostApiConversationMemoryRecallBody: zPostApiConversationMemoryRecallBody,
|
|
1258
|
+
zPostApiConversationMemoryRecallResponse: zPostApiConversationMemoryRecallResponse,
|
|
1038
1259
|
zPostApiRealTimeCintelUiBody: zPostApiRealTimeCintelUiBody,
|
|
1039
|
-
|
|
1260
|
+
zPostApiRealTimeCintelUiResponse: zPostApiRealTimeCintelUiResponse,
|
|
1261
|
+
zPostApiTelemetryQuery: zPostApiTelemetryQuery,
|
|
1262
|
+
zPostApiTelemetryResponse: zPostApiTelemetryResponse,
|
|
1263
|
+
zPostApiWebchatChatBody: zPostApiWebchatChatBody,
|
|
1264
|
+
zPostApiWebchatChatResponse: zPostApiWebchatChatResponse,
|
|
1265
|
+
zPostApiWebchatConversationsTokenBody: zPostApiWebchatConversationsTokenBody,
|
|
1266
|
+
zPostApiWebchatConversationsTokenQuery: zPostApiWebchatConversationsTokenQuery,
|
|
1267
|
+
zPostApiWebchatConversationsTokenResponse: zPostApiWebchatConversationsTokenResponse,
|
|
1268
|
+
zPostApiWebchatEndChatBody: zPostApiWebchatEndChatBody,
|
|
1269
|
+
zPostApiWebchatEndChatResponse: zPostApiWebchatEndChatResponse,
|
|
1270
|
+
zPostApiWebchatLiveAgentChatBody: zPostApiWebchatLiveAgentChatBody,
|
|
1271
|
+
zPostApiWebchatLiveAgentChatResponse: zPostApiWebchatLiveAgentChatResponse,
|
|
1272
|
+
zPostApiWebchatLiveAgentWebchatConnectBody: zPostApiWebchatLiveAgentWebchatConnectBody,
|
|
1273
|
+
zPostApiWebchatLiveAgentWebchatConnectResponse: zPostApiWebchatLiveAgentWebchatConnectResponse,
|
|
1274
|
+
zPostApiWebchatLiveAgentWebchatEndBody: zPostApiWebchatLiveAgentWebchatEndBody,
|
|
1275
|
+
zPostApiWebchatLiveAgentWebchatEndResponse: zPostApiWebchatLiveAgentWebchatEndResponse,
|
|
1276
|
+
zPostApiWebchatUiConfigBody: zPostApiWebchatUiConfigBody,
|
|
1277
|
+
zPostApiWebchatUiConfigResponse: zPostApiWebchatUiConfigResponse,
|
|
1278
|
+
zPostApiWebchatWebchatSendBody: zPostApiWebchatWebchatSendBody,
|
|
1279
|
+
zPostApiWebchatWebchatSendResponse: zPostApiWebchatWebchatSendResponse
|
|
1040
1280
|
};
|
|
1041
1281
|
|
|
1042
|
-
export { createRampDialogClient, deleteApiConversationMemoryReset, deleteApiKillConversationByPhone, deleteApiLiveNumbers, getApiActiveConversationsAgentByAgentNumber, getApiActiveConversationsByCustomerNumber, getApiCountryConfigs, getApiMessages, getApiSyncToken, postApiActiveConversationsAgentClaim, postApiClear, postApiConversationMemoryProfilesLookup, postApiConversationMemoryRecall, postApiRealTimeCintelUi, postApiTelemetry, zod_gen as schemas };
|
|
1282
|
+
export { createRampDialogClient, deleteApiConversationMemoryReset, deleteApiKillConversationByPhone, deleteApiLiveNumbers, getApiActiveConversationsAgentByAgentNumber, getApiActiveConversationsByCustomerNumber, getApiCountryConfigs, getApiMessages, getApiSyncToken, getApiWebchatConversationsToken, getApiWebchatVoiceToken, postApiActiveConversationsAgentClaim, postApiClear, postApiConversationMemoryProfilesLookup, postApiConversationMemoryRecall, postApiRealTimeCintelUi, postApiTelemetry, postApiWebchatChat, postApiWebchatConversationsToken, postApiWebchatEndChat, postApiWebchatLiveAgentChat, postApiWebchatLiveAgentWebchatConnect, postApiWebchatLiveAgentWebchatEnd, postApiWebchatUiConfig, postApiWebchatWebchatSend, zod_gen as schemas };
|
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -9,56 +9,144 @@ export {
|
|
|
9
9
|
getApiCountryConfigs,
|
|
10
10
|
getApiMessages,
|
|
11
11
|
getApiSyncToken,
|
|
12
|
+
getApiWebchatConversationsToken,
|
|
13
|
+
getApiWebchatVoiceToken,
|
|
12
14
|
postApiActiveConversationsAgentClaim,
|
|
13
15
|
postApiClear,
|
|
14
16
|
postApiConversationMemoryProfilesLookup,
|
|
15
17
|
postApiConversationMemoryRecall,
|
|
16
18
|
postApiRealTimeCintelUi,
|
|
17
19
|
postApiTelemetry,
|
|
20
|
+
postApiWebchatChat,
|
|
21
|
+
postApiWebchatConversationsToken,
|
|
22
|
+
postApiWebchatEndChat,
|
|
23
|
+
postApiWebchatLiveAgentChat,
|
|
24
|
+
postApiWebchatLiveAgentWebchatConnect,
|
|
25
|
+
postApiWebchatLiveAgentWebchatEnd,
|
|
26
|
+
postApiWebchatUiConfig,
|
|
27
|
+
postApiWebchatWebchatSend,
|
|
18
28
|
type Options,
|
|
19
29
|
} from './sdk.gen';
|
|
20
30
|
export type {
|
|
21
31
|
ClientOptions,
|
|
22
32
|
DeleteApiConversationMemoryResetData,
|
|
33
|
+
DeleteApiConversationMemoryResetError,
|
|
23
34
|
DeleteApiConversationMemoryResetErrors,
|
|
35
|
+
DeleteApiConversationMemoryResetResponse,
|
|
24
36
|
DeleteApiConversationMemoryResetResponses,
|
|
25
37
|
DeleteApiKillConversationByPhoneData,
|
|
38
|
+
DeleteApiKillConversationByPhoneError,
|
|
26
39
|
DeleteApiKillConversationByPhoneErrors,
|
|
40
|
+
DeleteApiKillConversationByPhoneResponse,
|
|
27
41
|
DeleteApiKillConversationByPhoneResponses,
|
|
28
42
|
DeleteApiLiveNumbersData,
|
|
43
|
+
DeleteApiLiveNumbersError,
|
|
29
44
|
DeleteApiLiveNumbersErrors,
|
|
45
|
+
DeleteApiLiveNumbersResponse,
|
|
30
46
|
DeleteApiLiveNumbersResponses,
|
|
47
|
+
ErrorResponse,
|
|
31
48
|
GetApiActiveConversationsAgentByAgentNumberData,
|
|
49
|
+
GetApiActiveConversationsAgentByAgentNumberError,
|
|
32
50
|
GetApiActiveConversationsAgentByAgentNumberErrors,
|
|
51
|
+
GetApiActiveConversationsAgentByAgentNumberResponse,
|
|
33
52
|
GetApiActiveConversationsAgentByAgentNumberResponses,
|
|
34
53
|
GetApiActiveConversationsByCustomerNumberData,
|
|
54
|
+
GetApiActiveConversationsByCustomerNumberError,
|
|
35
55
|
GetApiActiveConversationsByCustomerNumberErrors,
|
|
56
|
+
GetApiActiveConversationsByCustomerNumberResponse,
|
|
36
57
|
GetApiActiveConversationsByCustomerNumberResponses,
|
|
37
58
|
GetApiCountryConfigsData,
|
|
59
|
+
GetApiCountryConfigsError,
|
|
38
60
|
GetApiCountryConfigsErrors,
|
|
61
|
+
GetApiCountryConfigsResponse,
|
|
39
62
|
GetApiCountryConfigsResponses,
|
|
40
63
|
GetApiMessagesData,
|
|
41
64
|
GetApiMessagesErrors,
|
|
65
|
+
GetApiMessagesResponse,
|
|
42
66
|
GetApiMessagesResponses,
|
|
43
67
|
GetApiSyncTokenData,
|
|
68
|
+
GetApiSyncTokenError,
|
|
44
69
|
GetApiSyncTokenErrors,
|
|
70
|
+
GetApiSyncTokenResponse,
|
|
45
71
|
GetApiSyncTokenResponses,
|
|
72
|
+
GetApiWebchatConversationsTokenData,
|
|
73
|
+
GetApiWebchatConversationsTokenError,
|
|
74
|
+
GetApiWebchatConversationsTokenErrors,
|
|
75
|
+
GetApiWebchatConversationsTokenResponse,
|
|
76
|
+
GetApiWebchatConversationsTokenResponses,
|
|
77
|
+
GetApiWebchatVoiceTokenData,
|
|
78
|
+
GetApiWebchatVoiceTokenError,
|
|
79
|
+
GetApiWebchatVoiceTokenErrors,
|
|
80
|
+
GetApiWebchatVoiceTokenResponse,
|
|
81
|
+
GetApiWebchatVoiceTokenResponses,
|
|
46
82
|
PostApiActiveConversationsAgentClaimData,
|
|
83
|
+
PostApiActiveConversationsAgentClaimError,
|
|
47
84
|
PostApiActiveConversationsAgentClaimErrors,
|
|
85
|
+
PostApiActiveConversationsAgentClaimResponse,
|
|
48
86
|
PostApiActiveConversationsAgentClaimResponses,
|
|
49
87
|
PostApiClearData,
|
|
88
|
+
PostApiClearError,
|
|
50
89
|
PostApiClearErrors,
|
|
90
|
+
PostApiClearResponse,
|
|
51
91
|
PostApiClearResponses,
|
|
52
92
|
PostApiConversationMemoryProfilesLookupData,
|
|
93
|
+
PostApiConversationMemoryProfilesLookupError,
|
|
53
94
|
PostApiConversationMemoryProfilesLookupErrors,
|
|
95
|
+
PostApiConversationMemoryProfilesLookupResponse,
|
|
54
96
|
PostApiConversationMemoryProfilesLookupResponses,
|
|
55
97
|
PostApiConversationMemoryRecallData,
|
|
98
|
+
PostApiConversationMemoryRecallError,
|
|
56
99
|
PostApiConversationMemoryRecallErrors,
|
|
100
|
+
PostApiConversationMemoryRecallResponse,
|
|
57
101
|
PostApiConversationMemoryRecallResponses,
|
|
58
102
|
PostApiRealTimeCintelUiData,
|
|
103
|
+
PostApiRealTimeCintelUiError,
|
|
59
104
|
PostApiRealTimeCintelUiErrors,
|
|
105
|
+
PostApiRealTimeCintelUiResponse,
|
|
60
106
|
PostApiRealTimeCintelUiResponses,
|
|
61
107
|
PostApiTelemetryData,
|
|
108
|
+
PostApiTelemetryError,
|
|
62
109
|
PostApiTelemetryErrors,
|
|
110
|
+
PostApiTelemetryResponse,
|
|
63
111
|
PostApiTelemetryResponses,
|
|
112
|
+
PostApiWebchatChatData,
|
|
113
|
+
PostApiWebchatChatError,
|
|
114
|
+
PostApiWebchatChatErrors,
|
|
115
|
+
PostApiWebchatChatResponse,
|
|
116
|
+
PostApiWebchatChatResponses,
|
|
117
|
+
PostApiWebchatConversationsTokenData,
|
|
118
|
+
PostApiWebchatConversationsTokenError,
|
|
119
|
+
PostApiWebchatConversationsTokenErrors,
|
|
120
|
+
PostApiWebchatConversationsTokenResponse,
|
|
121
|
+
PostApiWebchatConversationsTokenResponses,
|
|
122
|
+
PostApiWebchatEndChatData,
|
|
123
|
+
PostApiWebchatEndChatError,
|
|
124
|
+
PostApiWebchatEndChatErrors,
|
|
125
|
+
PostApiWebchatEndChatResponse,
|
|
126
|
+
PostApiWebchatEndChatResponses,
|
|
127
|
+
PostApiWebchatLiveAgentChatData,
|
|
128
|
+
PostApiWebchatLiveAgentChatError,
|
|
129
|
+
PostApiWebchatLiveAgentChatErrors,
|
|
130
|
+
PostApiWebchatLiveAgentChatResponse,
|
|
131
|
+
PostApiWebchatLiveAgentChatResponses,
|
|
132
|
+
PostApiWebchatLiveAgentWebchatConnectData,
|
|
133
|
+
PostApiWebchatLiveAgentWebchatConnectError,
|
|
134
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
135
|
+
PostApiWebchatLiveAgentWebchatConnectResponse,
|
|
136
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
137
|
+
PostApiWebchatLiveAgentWebchatEndData,
|
|
138
|
+
PostApiWebchatLiveAgentWebchatEndError,
|
|
139
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
140
|
+
PostApiWebchatLiveAgentWebchatEndResponse,
|
|
141
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
142
|
+
PostApiWebchatUiConfigData,
|
|
143
|
+
PostApiWebchatUiConfigError,
|
|
144
|
+
PostApiWebchatUiConfigErrors,
|
|
145
|
+
PostApiWebchatUiConfigResponse,
|
|
146
|
+
PostApiWebchatUiConfigResponses,
|
|
147
|
+
PostApiWebchatWebchatSendData,
|
|
148
|
+
PostApiWebchatWebchatSendError,
|
|
149
|
+
PostApiWebchatWebchatSendErrors,
|
|
150
|
+
PostApiWebchatWebchatSendResponse,
|
|
151
|
+
PostApiWebchatWebchatSendResponses,
|
|
64
152
|
} from './types.gen';
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -27,6 +27,12 @@ import type {
|
|
|
27
27
|
GetApiSyncTokenData,
|
|
28
28
|
GetApiSyncTokenErrors,
|
|
29
29
|
GetApiSyncTokenResponses,
|
|
30
|
+
GetApiWebchatConversationsTokenData,
|
|
31
|
+
GetApiWebchatConversationsTokenErrors,
|
|
32
|
+
GetApiWebchatConversationsTokenResponses,
|
|
33
|
+
GetApiWebchatVoiceTokenData,
|
|
34
|
+
GetApiWebchatVoiceTokenErrors,
|
|
35
|
+
GetApiWebchatVoiceTokenResponses,
|
|
30
36
|
PostApiActiveConversationsAgentClaimData,
|
|
31
37
|
PostApiActiveConversationsAgentClaimErrors,
|
|
32
38
|
PostApiActiveConversationsAgentClaimResponses,
|
|
@@ -45,6 +51,30 @@ import type {
|
|
|
45
51
|
PostApiTelemetryData,
|
|
46
52
|
PostApiTelemetryErrors,
|
|
47
53
|
PostApiTelemetryResponses,
|
|
54
|
+
PostApiWebchatChatData,
|
|
55
|
+
PostApiWebchatChatErrors,
|
|
56
|
+
PostApiWebchatChatResponses,
|
|
57
|
+
PostApiWebchatConversationsTokenData,
|
|
58
|
+
PostApiWebchatConversationsTokenErrors,
|
|
59
|
+
PostApiWebchatConversationsTokenResponses,
|
|
60
|
+
PostApiWebchatEndChatData,
|
|
61
|
+
PostApiWebchatEndChatErrors,
|
|
62
|
+
PostApiWebchatEndChatResponses,
|
|
63
|
+
PostApiWebchatLiveAgentChatData,
|
|
64
|
+
PostApiWebchatLiveAgentChatErrors,
|
|
65
|
+
PostApiWebchatLiveAgentChatResponses,
|
|
66
|
+
PostApiWebchatLiveAgentWebchatConnectData,
|
|
67
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
68
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
69
|
+
PostApiWebchatLiveAgentWebchatEndData,
|
|
70
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
71
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
72
|
+
PostApiWebchatUiConfigData,
|
|
73
|
+
PostApiWebchatUiConfigErrors,
|
|
74
|
+
PostApiWebchatUiConfigResponses,
|
|
75
|
+
PostApiWebchatWebchatSendData,
|
|
76
|
+
PostApiWebchatWebchatSendErrors,
|
|
77
|
+
PostApiWebchatWebchatSendResponses,
|
|
48
78
|
} from './types.gen';
|
|
49
79
|
|
|
50
80
|
export type Options<
|
|
@@ -406,3 +436,203 @@ export const postApiTelemetry = <ThrowOnError extends boolean = false>(
|
|
|
406
436
|
...options,
|
|
407
437
|
},
|
|
408
438
|
);
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* POST webchat / chat
|
|
442
|
+
*/
|
|
443
|
+
export const postApiWebchatChat = <ThrowOnError extends boolean = false>(
|
|
444
|
+
options: Options<PostApiWebchatChatData, ThrowOnError>,
|
|
445
|
+
): RequestResult<PostApiWebchatChatResponses, PostApiWebchatChatErrors, ThrowOnError> =>
|
|
446
|
+
(options.client ?? client).post<
|
|
447
|
+
PostApiWebchatChatResponses,
|
|
448
|
+
PostApiWebchatChatErrors,
|
|
449
|
+
ThrowOnError
|
|
450
|
+
>({
|
|
451
|
+
url: '/api/webchat/chat',
|
|
452
|
+
...options,
|
|
453
|
+
headers: {
|
|
454
|
+
'Content-Type': 'application/json',
|
|
455
|
+
...options.headers,
|
|
456
|
+
},
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* GET webchat / conversations / token
|
|
461
|
+
*/
|
|
462
|
+
export const getApiWebchatConversationsToken = <ThrowOnError extends boolean = false>(
|
|
463
|
+
options?: Options<GetApiWebchatConversationsTokenData, ThrowOnError>,
|
|
464
|
+
): RequestResult<
|
|
465
|
+
GetApiWebchatConversationsTokenResponses,
|
|
466
|
+
GetApiWebchatConversationsTokenErrors,
|
|
467
|
+
ThrowOnError
|
|
468
|
+
> =>
|
|
469
|
+
(options?.client ?? client).get<
|
|
470
|
+
GetApiWebchatConversationsTokenResponses,
|
|
471
|
+
GetApiWebchatConversationsTokenErrors,
|
|
472
|
+
ThrowOnError
|
|
473
|
+
>({ url: '/api/webchat/conversations/token', ...options });
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* POST webchat / conversations / token
|
|
477
|
+
*/
|
|
478
|
+
export const postApiWebchatConversationsToken = <ThrowOnError extends boolean = false>(
|
|
479
|
+
options: Options<PostApiWebchatConversationsTokenData, ThrowOnError>,
|
|
480
|
+
): RequestResult<
|
|
481
|
+
PostApiWebchatConversationsTokenResponses,
|
|
482
|
+
PostApiWebchatConversationsTokenErrors,
|
|
483
|
+
ThrowOnError
|
|
484
|
+
> =>
|
|
485
|
+
(options.client ?? client).post<
|
|
486
|
+
PostApiWebchatConversationsTokenResponses,
|
|
487
|
+
PostApiWebchatConversationsTokenErrors,
|
|
488
|
+
ThrowOnError
|
|
489
|
+
>({
|
|
490
|
+
url: '/api/webchat/conversations/token',
|
|
491
|
+
...options,
|
|
492
|
+
headers: {
|
|
493
|
+
'Content-Type': 'application/json',
|
|
494
|
+
...options.headers,
|
|
495
|
+
},
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* POST webchat / end-chat
|
|
500
|
+
*/
|
|
501
|
+
export const postApiWebchatEndChat = <ThrowOnError extends boolean = false>(
|
|
502
|
+
options: Options<PostApiWebchatEndChatData, ThrowOnError>,
|
|
503
|
+
): RequestResult<PostApiWebchatEndChatResponses, PostApiWebchatEndChatErrors, ThrowOnError> =>
|
|
504
|
+
(options.client ?? client).post<
|
|
505
|
+
PostApiWebchatEndChatResponses,
|
|
506
|
+
PostApiWebchatEndChatErrors,
|
|
507
|
+
ThrowOnError
|
|
508
|
+
>({
|
|
509
|
+
url: '/api/webchat/end-chat',
|
|
510
|
+
...options,
|
|
511
|
+
headers: {
|
|
512
|
+
'Content-Type': 'application/json',
|
|
513
|
+
...options.headers,
|
|
514
|
+
},
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* POST webchat / live-agent-chat
|
|
519
|
+
*/
|
|
520
|
+
export const postApiWebchatLiveAgentChat = <ThrowOnError extends boolean = false>(
|
|
521
|
+
options: Options<PostApiWebchatLiveAgentChatData, ThrowOnError>,
|
|
522
|
+
): RequestResult<
|
|
523
|
+
PostApiWebchatLiveAgentChatResponses,
|
|
524
|
+
PostApiWebchatLiveAgentChatErrors,
|
|
525
|
+
ThrowOnError
|
|
526
|
+
> =>
|
|
527
|
+
(options.client ?? client).post<
|
|
528
|
+
PostApiWebchatLiveAgentChatResponses,
|
|
529
|
+
PostApiWebchatLiveAgentChatErrors,
|
|
530
|
+
ThrowOnError
|
|
531
|
+
>({
|
|
532
|
+
url: '/api/webchat/live-agent-chat',
|
|
533
|
+
...options,
|
|
534
|
+
headers: {
|
|
535
|
+
'Content-Type': 'application/json',
|
|
536
|
+
...options.headers,
|
|
537
|
+
},
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* POST webchat / live-agent-webchat-connect
|
|
542
|
+
*/
|
|
543
|
+
export const postApiWebchatLiveAgentWebchatConnect = <ThrowOnError extends boolean = false>(
|
|
544
|
+
options: Options<PostApiWebchatLiveAgentWebchatConnectData, ThrowOnError>,
|
|
545
|
+
): RequestResult<
|
|
546
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
547
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
548
|
+
ThrowOnError
|
|
549
|
+
> =>
|
|
550
|
+
(options.client ?? client).post<
|
|
551
|
+
PostApiWebchatLiveAgentWebchatConnectResponses,
|
|
552
|
+
PostApiWebchatLiveAgentWebchatConnectErrors,
|
|
553
|
+
ThrowOnError
|
|
554
|
+
>({
|
|
555
|
+
url: '/api/webchat/live-agent-webchat-connect',
|
|
556
|
+
...options,
|
|
557
|
+
headers: {
|
|
558
|
+
'Content-Type': 'application/json',
|
|
559
|
+
...options.headers,
|
|
560
|
+
},
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* POST webchat / live-agent-webchat-end
|
|
565
|
+
*/
|
|
566
|
+
export const postApiWebchatLiveAgentWebchatEnd = <ThrowOnError extends boolean = false>(
|
|
567
|
+
options: Options<PostApiWebchatLiveAgentWebchatEndData, ThrowOnError>,
|
|
568
|
+
): RequestResult<
|
|
569
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
570
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
571
|
+
ThrowOnError
|
|
572
|
+
> =>
|
|
573
|
+
(options.client ?? client).post<
|
|
574
|
+
PostApiWebchatLiveAgentWebchatEndResponses,
|
|
575
|
+
PostApiWebchatLiveAgentWebchatEndErrors,
|
|
576
|
+
ThrowOnError
|
|
577
|
+
>({
|
|
578
|
+
url: '/api/webchat/live-agent-webchat-end',
|
|
579
|
+
...options,
|
|
580
|
+
headers: {
|
|
581
|
+
'Content-Type': 'application/json',
|
|
582
|
+
...options.headers,
|
|
583
|
+
},
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* POST webchat / ui-config
|
|
588
|
+
*/
|
|
589
|
+
export const postApiWebchatUiConfig = <ThrowOnError extends boolean = false>(
|
|
590
|
+
options: Options<PostApiWebchatUiConfigData, ThrowOnError>,
|
|
591
|
+
): RequestResult<PostApiWebchatUiConfigResponses, PostApiWebchatUiConfigErrors, ThrowOnError> =>
|
|
592
|
+
(options.client ?? client).post<
|
|
593
|
+
PostApiWebchatUiConfigResponses,
|
|
594
|
+
PostApiWebchatUiConfigErrors,
|
|
595
|
+
ThrowOnError
|
|
596
|
+
>({
|
|
597
|
+
url: '/api/webchat/ui-config',
|
|
598
|
+
...options,
|
|
599
|
+
headers: {
|
|
600
|
+
'Content-Type': 'application/json',
|
|
601
|
+
...options.headers,
|
|
602
|
+
},
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* GET webchat / voice-token
|
|
607
|
+
*/
|
|
608
|
+
export const getApiWebchatVoiceToken = <ThrowOnError extends boolean = false>(
|
|
609
|
+
options?: Options<GetApiWebchatVoiceTokenData, ThrowOnError>,
|
|
610
|
+
): RequestResult<GetApiWebchatVoiceTokenResponses, GetApiWebchatVoiceTokenErrors, ThrowOnError> =>
|
|
611
|
+
(options?.client ?? client).get<
|
|
612
|
+
GetApiWebchatVoiceTokenResponses,
|
|
613
|
+
GetApiWebchatVoiceTokenErrors,
|
|
614
|
+
ThrowOnError
|
|
615
|
+
>({ url: '/api/webchat/voice-token', ...options });
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* POST webchat / webchat-send
|
|
619
|
+
*/
|
|
620
|
+
export const postApiWebchatWebchatSend = <ThrowOnError extends boolean = false>(
|
|
621
|
+
options: Options<PostApiWebchatWebchatSendData, ThrowOnError>,
|
|
622
|
+
): RequestResult<
|
|
623
|
+
PostApiWebchatWebchatSendResponses,
|
|
624
|
+
PostApiWebchatWebchatSendErrors,
|
|
625
|
+
ThrowOnError
|
|
626
|
+
> =>
|
|
627
|
+
(options.client ?? client).post<
|
|
628
|
+
PostApiWebchatWebchatSendResponses,
|
|
629
|
+
PostApiWebchatWebchatSendErrors,
|
|
630
|
+
ThrowOnError
|
|
631
|
+
>({
|
|
632
|
+
url: '/api/webchat/webchat-send',
|
|
633
|
+
...options,
|
|
634
|
+
headers: {
|
|
635
|
+
'Content-Type': 'application/json',
|
|
636
|
+
...options.headers,
|
|
637
|
+
},
|
|
638
|
+
});
|