@gtmi/ramp-api-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 +2386 -205
- package/dist/es/index.mjs +447 -8
- package/package.json +1 -1
- package/src/generated/index.ts +134 -0
- package/src/generated/sdk.gen.ts +3 -3
- package/src/generated/types.gen.ts +1362 -143
- package/src/generated/zod.gen.ts +487 -4
package/src/generated/zod.gen.ts
CHANGED
|
@@ -2,6 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
+
export const zErrorResponse = z.object({
|
|
6
|
+
error: z.string().optional(),
|
|
7
|
+
details: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const zConversation = z.object({
|
|
11
|
+
accountId: z.string().optional(),
|
|
12
|
+
configuration: z.string().optional(),
|
|
13
|
+
configurationId: z.string().optional(),
|
|
14
|
+
createdAt: z.string().optional(),
|
|
15
|
+
id: z.string().optional(),
|
|
16
|
+
name: z.string().optional(),
|
|
17
|
+
status: z.string().optional(),
|
|
18
|
+
updatedAt: z.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const zParticipant = z.object({
|
|
22
|
+
id: z.string().optional(),
|
|
23
|
+
conversationId: z.string().optional(),
|
|
24
|
+
accountId: z.string().optional(),
|
|
25
|
+
name: z.string().optional(),
|
|
26
|
+
type: z.string().optional(),
|
|
27
|
+
addresses: z.string().optional(),
|
|
28
|
+
createdAt: z.string().optional(),
|
|
29
|
+
updatedAt: z.string().optional(),
|
|
30
|
+
profileId: z.string().optional(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const zOperator = z.object({
|
|
34
|
+
id: z.string().optional(),
|
|
35
|
+
displayName: z.string().optional(),
|
|
36
|
+
description: z.string().optional(),
|
|
37
|
+
version: z.string().optional(),
|
|
38
|
+
availability: z.string().optional(),
|
|
39
|
+
author: z.string().optional(),
|
|
40
|
+
prompt: z.string().optional(),
|
|
41
|
+
outputFormat: z.string().optional(),
|
|
42
|
+
outputSchema: z.string().optional(),
|
|
43
|
+
trainingExamples: z.string().optional(),
|
|
44
|
+
context: z.string().optional(),
|
|
45
|
+
parameters: z.string().optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const zIntelligenceConfiguration = z.object({
|
|
49
|
+
accountId: z.string().optional(),
|
|
50
|
+
dateCreated: z.string().optional(),
|
|
51
|
+
dateUpdated: z.string().optional(),
|
|
52
|
+
description: z.string().optional(),
|
|
53
|
+
displayName: z.string().optional(),
|
|
54
|
+
id: z.string().optional(),
|
|
55
|
+
rules: z.string().optional(),
|
|
56
|
+
version: z.string().optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
5
59
|
export const zAutogenRequest = z.object({
|
|
6
60
|
email: z.string().optional(),
|
|
7
61
|
company: z.string().optional(),
|
|
@@ -16,6 +70,41 @@ export const zAutogenRequest = z.object({
|
|
|
16
70
|
websiteUrl: z.string().optional(),
|
|
17
71
|
});
|
|
18
72
|
|
|
73
|
+
export const zTemplateData = z.object({
|
|
74
|
+
objectID: z.string().optional(),
|
|
75
|
+
title: z.string().optional(),
|
|
76
|
+
img: z.string().optional(),
|
|
77
|
+
associatedNumbers: z.string().optional(),
|
|
78
|
+
author: z.string().optional(),
|
|
79
|
+
createdAt: z.string().optional(),
|
|
80
|
+
createdAtUnix: z.string().optional(),
|
|
81
|
+
lastUpdatedAtUnix: z.string().optional(),
|
|
82
|
+
lastUpdated: z.string().optional(),
|
|
83
|
+
lastUpdatedBy: z.string().optional(),
|
|
84
|
+
prompt: z.string().optional(),
|
|
85
|
+
data: z.string().optional(),
|
|
86
|
+
content: z.string().optional(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export const zCalledByData = z.object({
|
|
90
|
+
phoneNumber: z.string().optional(),
|
|
91
|
+
timestamp: z.number().optional(),
|
|
92
|
+
direction: z.string().optional(),
|
|
93
|
+
objectId: z.string().optional(),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const zCampaign = z.object({
|
|
97
|
+
email: z.string().optional(),
|
|
98
|
+
companyName: z.string().optional(),
|
|
99
|
+
objectID: z.string().optional(),
|
|
100
|
+
encryptedObjectId: z.string().optional(),
|
|
101
|
+
agentNumber: z.string().optional(),
|
|
102
|
+
tag: z.string().optional(),
|
|
103
|
+
createdAt: z.string().optional(),
|
|
104
|
+
numCalls: z.string().optional(),
|
|
105
|
+
shortLink: z.string().optional(),
|
|
106
|
+
});
|
|
107
|
+
|
|
19
108
|
export const zSupportedRegion = z.object({
|
|
20
109
|
isoCountry: z.string().optional(),
|
|
21
110
|
numberType: z.string().optional(),
|
|
@@ -27,24 +116,73 @@ export const zSupportedRegion = z.object({
|
|
|
27
116
|
|
|
28
117
|
export const zShortenUrlInput = z.record(z.unknown());
|
|
29
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Success
|
|
121
|
+
*/
|
|
122
|
+
export const zGetHealthResponse = z.object({
|
|
123
|
+
status: z.string(),
|
|
124
|
+
});
|
|
125
|
+
|
|
30
126
|
export const zPostConversationsTokenBody = z.record(z.unknown());
|
|
31
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Success
|
|
130
|
+
*/
|
|
131
|
+
export const zPostConversationsTokenResponse = z.object({
|
|
132
|
+
identity: z.string(),
|
|
133
|
+
token: z.string(),
|
|
134
|
+
});
|
|
135
|
+
|
|
32
136
|
export const zGetSyncTokenQuery = z.object({
|
|
33
137
|
identity: z.string().optional(),
|
|
34
138
|
});
|
|
35
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Success
|
|
142
|
+
*/
|
|
143
|
+
export const zGetSyncTokenResponse = z.object({
|
|
144
|
+
identity: z.string(),
|
|
145
|
+
token: z.string(),
|
|
146
|
+
});
|
|
147
|
+
|
|
36
148
|
export const zGetVoiceTokenQuery = z.object({
|
|
37
149
|
identity: z.string().optional(),
|
|
38
150
|
});
|
|
39
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Success
|
|
154
|
+
*/
|
|
155
|
+
export const zGetVoiceTokenResponse = z.object({
|
|
156
|
+
identity: z.string(),
|
|
157
|
+
token: z.string(),
|
|
158
|
+
});
|
|
159
|
+
|
|
40
160
|
export const zPostUiConfigBody = z.record(z.unknown());
|
|
41
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Success
|
|
164
|
+
*/
|
|
165
|
+
export const zPostUiConfigResponse = z.object({
|
|
166
|
+
ui: z.record(z.unknown()),
|
|
167
|
+
linkMap: z.record(z.unknown()),
|
|
168
|
+
hideChatLink: z.boolean(),
|
|
169
|
+
templateTitle: z.string(),
|
|
170
|
+
dialogConfig: z.record(z.unknown()),
|
|
171
|
+
templateObjectId: z.string(),
|
|
172
|
+
resolvedCustomerNumber: z.string(),
|
|
173
|
+
});
|
|
174
|
+
|
|
42
175
|
export const zPostCreateExternalFlexConnectionBody = z.object({
|
|
43
176
|
seAccountSid: z.string(),
|
|
44
177
|
seApiKeySid: z.string(),
|
|
45
178
|
seApiKeySecret: z.string(),
|
|
46
179
|
});
|
|
47
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Studio Flow, TwiML App, and RAMP integration configuration
|
|
183
|
+
*/
|
|
184
|
+
export const zPostCreateExternalFlexConnectionResponse = z.record(z.unknown());
|
|
185
|
+
|
|
48
186
|
export const zPostInstallFlexPluginBody = z.object({
|
|
49
187
|
seAccountSid: z.string(),
|
|
50
188
|
seApiKeySid: z.string(),
|
|
@@ -52,26 +190,91 @@ export const zPostInstallFlexPluginBody = z.object({
|
|
|
52
190
|
pluginName: z.string(),
|
|
53
191
|
});
|
|
54
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Success
|
|
195
|
+
*/
|
|
196
|
+
export const zPostInstallFlexPluginResponse = z.object({
|
|
197
|
+
success: z.boolean(),
|
|
198
|
+
plugin: z.record(z.unknown()),
|
|
199
|
+
deployedVersion: z.string(),
|
|
200
|
+
release: z.record(z.unknown()),
|
|
201
|
+
});
|
|
202
|
+
|
|
55
203
|
export const zPostLiveAgentWebchatConnectBody = z.record(z.unknown());
|
|
56
204
|
|
|
205
|
+
export const zPostLiveAgentWebchatConnectResponse = z.union([
|
|
206
|
+
z.unknown(),
|
|
207
|
+
z.object({
|
|
208
|
+
conversationSid: z.string(),
|
|
209
|
+
interactionSid: z.string(),
|
|
210
|
+
interactionChannelSid: z.string(),
|
|
211
|
+
identity: z.string(),
|
|
212
|
+
serviceSid: z.string(),
|
|
213
|
+
}),
|
|
214
|
+
]);
|
|
215
|
+
|
|
57
216
|
export const zPostLiveAgentWebchatSendBody = z.object({
|
|
58
217
|
conversationSid: z.string(),
|
|
59
218
|
identity: z.string(),
|
|
60
219
|
message: z.string(),
|
|
61
220
|
});
|
|
62
221
|
|
|
222
|
+
export const zPostLiveAgentWebchatSendResponse = z.union([
|
|
223
|
+
z.unknown(),
|
|
224
|
+
z.object({
|
|
225
|
+
message: z.record(z.unknown()),
|
|
226
|
+
}),
|
|
227
|
+
]);
|
|
228
|
+
|
|
63
229
|
export const zPostLiveAgentWebchatEndBody = z.record(z.unknown());
|
|
64
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Success
|
|
233
|
+
*/
|
|
234
|
+
export const zPostLiveAgentWebchatEndResponse = z.object({
|
|
235
|
+
success: z.boolean(),
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Success
|
|
240
|
+
*/
|
|
241
|
+
export const zDeleteLeadGenResponse = z.object({
|
|
242
|
+
message: z.string(),
|
|
243
|
+
});
|
|
244
|
+
|
|
65
245
|
export const zPatchLeadGenBody = z.record(z.unknown());
|
|
66
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Success
|
|
249
|
+
*/
|
|
250
|
+
export const zPatchLeadGenResponse = z.object({
|
|
251
|
+
message: z.string(),
|
|
252
|
+
data: z.record(z.unknown()),
|
|
253
|
+
});
|
|
254
|
+
|
|
67
255
|
export const zPostLeadGenBody = z.object({
|
|
68
256
|
objectID: z.string(),
|
|
69
257
|
userEmail: z.string(),
|
|
70
258
|
});
|
|
71
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Success
|
|
262
|
+
*/
|
|
263
|
+
export const zPostLeadGenResponse = z.object({
|
|
264
|
+
agentNumber: z.string(),
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Success
|
|
269
|
+
*/
|
|
270
|
+
export const zPostLeadGenMonitorResponse = z.object({
|
|
271
|
+
message: z.string(),
|
|
272
|
+
data: z.record(z.unknown()),
|
|
273
|
+
});
|
|
274
|
+
|
|
72
275
|
export const zPostConversationsCommunicationsByConversationIdBody = z.object({
|
|
73
|
-
author: z.
|
|
74
|
-
content: z.
|
|
276
|
+
author: z.record(z.unknown()),
|
|
277
|
+
content: z.record(z.unknown()),
|
|
75
278
|
recipients: z.string(),
|
|
76
279
|
});
|
|
77
280
|
|
|
@@ -79,45 +282,94 @@ export const zPostConversationsCommunicationsByConversationIdPath = z.object({
|
|
|
79
282
|
conversationId: z.string(),
|
|
80
283
|
});
|
|
81
284
|
|
|
285
|
+
export const zPostConversationsCommunicationsByConversationIdResponse = z.union([
|
|
286
|
+
z.unknown(),
|
|
287
|
+
z.record(z.unknown()),
|
|
288
|
+
]);
|
|
289
|
+
|
|
82
290
|
export const zGetConversationsFetchQuery = z.object({
|
|
83
291
|
conversationId: z.string().optional(),
|
|
84
292
|
status: z.string().optional(),
|
|
85
293
|
});
|
|
86
294
|
|
|
295
|
+
/**
|
|
296
|
+
* A single Conversation (when conversationId is provided) or a paginated conversations list
|
|
297
|
+
*/
|
|
298
|
+
export const zGetConversationsFetchResponse = z.record(z.unknown());
|
|
299
|
+
|
|
87
300
|
export const zPostConversationsBody = z.object({
|
|
88
301
|
configurationId: z.string(),
|
|
89
302
|
});
|
|
90
303
|
|
|
304
|
+
/**
|
|
305
|
+
* The created conversation
|
|
306
|
+
*/
|
|
307
|
+
export const zPostConversationsResponse = zConversation;
|
|
308
|
+
|
|
91
309
|
export const zPutConversationsBody = z.object({
|
|
92
310
|
conversationsId: z.string(),
|
|
93
311
|
status: z.string(),
|
|
94
312
|
});
|
|
95
313
|
|
|
314
|
+
/**
|
|
315
|
+
* The updated conversation object
|
|
316
|
+
*/
|
|
317
|
+
export const zPutConversationsResponse = zConversation;
|
|
318
|
+
|
|
96
319
|
export const zGetParticipantsQuery = z.object({
|
|
97
320
|
conversationId: z.string().optional(),
|
|
98
321
|
participantId: z.string().optional(),
|
|
99
322
|
});
|
|
100
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Success
|
|
326
|
+
*/
|
|
327
|
+
export const zGetParticipantsResponse = z.object({
|
|
328
|
+
participants: z.array(zParticipant),
|
|
329
|
+
});
|
|
330
|
+
|
|
101
331
|
export const zPostParticipantsBody = z.object({
|
|
102
332
|
conversationId: z.string(),
|
|
103
333
|
participantType: z.string(),
|
|
104
334
|
addresses: z.string(),
|
|
105
335
|
});
|
|
106
336
|
|
|
337
|
+
/**
|
|
338
|
+
* The created participant object from Twilio
|
|
339
|
+
*/
|
|
340
|
+
export const zPostParticipantsResponse = z.record(z.unknown());
|
|
341
|
+
|
|
107
342
|
export const zPutParticipantsBody = z.object({
|
|
108
343
|
conversationId: z.string(),
|
|
109
344
|
participantId: z.string(),
|
|
110
345
|
});
|
|
111
346
|
|
|
347
|
+
/**
|
|
348
|
+
* The updated participant object from Twilio
|
|
349
|
+
*/
|
|
350
|
+
export const zPutParticipantsResponse = z.record(z.unknown());
|
|
351
|
+
|
|
112
352
|
export const zDeleteConversationalIntelligenceOperatorBody = z.object({
|
|
113
353
|
intelligenceOperatorId: z.string(),
|
|
114
354
|
});
|
|
115
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Success
|
|
358
|
+
*/
|
|
359
|
+
export const zDeleteConversationalIntelligenceOperatorResponse = z.object({
|
|
360
|
+
success: z.boolean(),
|
|
361
|
+
});
|
|
362
|
+
|
|
116
363
|
export const zGetConversationalIntelligenceOperatorQuery = z.object({
|
|
117
364
|
intelligenceOperatorId: z.string().optional(),
|
|
118
365
|
pageToken: z.string().optional(),
|
|
119
366
|
});
|
|
120
367
|
|
|
368
|
+
/**
|
|
369
|
+
* A single Operator (when intelligenceOperatorId is provided) or an OperatorList (paginated)
|
|
370
|
+
*/
|
|
371
|
+
export const zGetConversationalIntelligenceOperatorResponse = z.record(z.unknown());
|
|
372
|
+
|
|
121
373
|
export const zPostConversationalIntelligenceOperatorBody = z.object({
|
|
122
374
|
author: z.string(),
|
|
123
375
|
displayName: z.string(),
|
|
@@ -127,6 +379,11 @@ export const zPostConversationalIntelligenceOperatorBody = z.object({
|
|
|
127
379
|
uiType: z.string(),
|
|
128
380
|
});
|
|
129
381
|
|
|
382
|
+
/**
|
|
383
|
+
* The created operator object
|
|
384
|
+
*/
|
|
385
|
+
export const zPostConversationalIntelligenceOperatorResponse = zOperator;
|
|
386
|
+
|
|
130
387
|
export const zPutConversationalIntelligenceOperatorBody = z.object({
|
|
131
388
|
displayName: z.string(),
|
|
132
389
|
description: z.string(),
|
|
@@ -136,22 +393,47 @@ export const zPutConversationalIntelligenceOperatorBody = z.object({
|
|
|
136
393
|
intelligenceOperatorId: z.string(),
|
|
137
394
|
});
|
|
138
395
|
|
|
396
|
+
/**
|
|
397
|
+
* The updated operator object
|
|
398
|
+
*/
|
|
399
|
+
export const zPutConversationalIntelligenceOperatorResponse = zOperator;
|
|
400
|
+
|
|
139
401
|
export const zGetIntelligenceConfigurationQuery = z.object({
|
|
140
402
|
intelligenceConfigurationId: z.string().optional(),
|
|
141
403
|
pageToken: z.string().optional(),
|
|
142
404
|
});
|
|
143
405
|
|
|
406
|
+
/**
|
|
407
|
+
* A single IntelligenceConfiguration (when intelligenceConfigurationId is provided) or an IntelligenceConfigurationList (paginated)
|
|
408
|
+
*/
|
|
409
|
+
export const zGetIntelligenceConfigurationResponse = z.record(z.unknown());
|
|
410
|
+
|
|
144
411
|
export const zPostIntelligenceConfigurationBody = z.record(z.unknown());
|
|
145
412
|
|
|
413
|
+
/**
|
|
414
|
+
* The created configuration
|
|
415
|
+
*/
|
|
416
|
+
export const zPostIntelligenceConfigurationResponse = zIntelligenceConfiguration;
|
|
417
|
+
|
|
146
418
|
export const zPutIntelligenceConfigurationBody = z.object({
|
|
147
419
|
intelligenceConfigurationId: z.string(),
|
|
148
420
|
});
|
|
149
421
|
|
|
422
|
+
/**
|
|
423
|
+
* The updated configuration
|
|
424
|
+
*/
|
|
425
|
+
export const zPutIntelligenceConfigurationResponse = zIntelligenceConfiguration;
|
|
426
|
+
|
|
150
427
|
export const zDeleteConversationMemoryProfilesQuery = z.object({
|
|
151
428
|
storeId: z.string().optional(),
|
|
152
429
|
profileId: z.string().optional(),
|
|
153
430
|
});
|
|
154
431
|
|
|
432
|
+
export const zDeleteConversationMemoryProfilesResponse = z.union([
|
|
433
|
+
z.unknown(),
|
|
434
|
+
z.record(z.unknown()),
|
|
435
|
+
]);
|
|
436
|
+
|
|
155
437
|
export const zGetConversationMemoryProfilesQuery = z.object({
|
|
156
438
|
storeId: z.string().optional(),
|
|
157
439
|
profileId: z.string().optional(),
|
|
@@ -161,28 +443,53 @@ export const zGetConversationMemoryProfilesQuery = z.object({
|
|
|
161
443
|
orderBy: z.string().optional(),
|
|
162
444
|
});
|
|
163
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Upstream profile data (single profile or paginated list) from the Conversation Memory API
|
|
448
|
+
*/
|
|
449
|
+
export const zGetConversationMemoryProfilesResponse = z.record(z.unknown());
|
|
450
|
+
|
|
164
451
|
export const zPatchConversationMemoryProfilesBody = z.object({
|
|
165
452
|
storeId: z.string(),
|
|
166
453
|
profileId: z.string(),
|
|
167
|
-
traits: z.
|
|
454
|
+
traits: z.record(z.unknown()),
|
|
168
455
|
});
|
|
169
456
|
|
|
457
|
+
export const zPatchConversationMemoryProfilesResponse = z.union([
|
|
458
|
+
z.unknown(),
|
|
459
|
+
z.record(z.unknown()),
|
|
460
|
+
]);
|
|
461
|
+
|
|
170
462
|
export const zPostConversationMemoryProfilesBody = z.object({
|
|
171
463
|
storeId: z.string(),
|
|
172
|
-
traits: z.
|
|
464
|
+
traits: z.record(z.unknown()),
|
|
173
465
|
});
|
|
174
466
|
|
|
467
|
+
export const zPostConversationMemoryProfilesResponse = z.union([
|
|
468
|
+
z.unknown(),
|
|
469
|
+
z.record(z.unknown()),
|
|
470
|
+
]);
|
|
471
|
+
|
|
175
472
|
export const zPostConversationMemoryProfilesLookupBody = z.object({
|
|
176
473
|
storeId: z.string(),
|
|
177
474
|
idType: z.string(),
|
|
178
475
|
value: z.string(),
|
|
179
476
|
});
|
|
180
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Upstream matching profiles payload from the Conversation Memory API
|
|
480
|
+
*/
|
|
481
|
+
export const zPostConversationMemoryProfilesLookupResponse = z.record(z.unknown());
|
|
482
|
+
|
|
181
483
|
export const zPostConversationMemoryRecallBody = z.object({
|
|
182
484
|
storeId: z.string(),
|
|
183
485
|
profileId: z.string(),
|
|
184
486
|
});
|
|
185
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Upstream memory retrieval results from the Conversation Memory API
|
|
490
|
+
*/
|
|
491
|
+
export const zPostConversationMemoryRecallResponse = z.record(z.unknown());
|
|
492
|
+
|
|
186
493
|
export const zDeleteConversationMemoryIdentifiersQuery = z.object({
|
|
187
494
|
storeId: z.string().optional(),
|
|
188
495
|
profileId: z.string().optional(),
|
|
@@ -190,12 +497,22 @@ export const zDeleteConversationMemoryIdentifiersQuery = z.object({
|
|
|
190
497
|
removeAll: z.string().optional(),
|
|
191
498
|
});
|
|
192
499
|
|
|
500
|
+
export const zDeleteConversationMemoryIdentifiersResponse = z.union([
|
|
501
|
+
z.unknown(),
|
|
502
|
+
z.record(z.unknown()),
|
|
503
|
+
]);
|
|
504
|
+
|
|
193
505
|
export const zGetConversationMemoryIdentifiersQuery = z.object({
|
|
194
506
|
storeId: z.string().optional(),
|
|
195
507
|
profileId: z.string().optional(),
|
|
196
508
|
idType: z.string().optional(),
|
|
197
509
|
});
|
|
198
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Upstream identifier data from the Conversation Memory API
|
|
513
|
+
*/
|
|
514
|
+
export const zGetConversationMemoryIdentifiersResponse = z.record(z.unknown());
|
|
515
|
+
|
|
199
516
|
export const zPatchConversationMemoryIdentifiersBody = z.object({
|
|
200
517
|
storeId: z.string(),
|
|
201
518
|
profileId: z.string(),
|
|
@@ -204,6 +521,11 @@ export const zPatchConversationMemoryIdentifiersBody = z.object({
|
|
|
204
521
|
newValue: z.string(),
|
|
205
522
|
});
|
|
206
523
|
|
|
524
|
+
export const zPatchConversationMemoryIdentifiersResponse = z.union([
|
|
525
|
+
z.unknown(),
|
|
526
|
+
z.record(z.unknown()),
|
|
527
|
+
]);
|
|
528
|
+
|
|
207
529
|
export const zPostConversationMemoryIdentifiersBody = z.object({
|
|
208
530
|
storeId: z.string(),
|
|
209
531
|
profileId: z.string(),
|
|
@@ -211,11 +533,21 @@ export const zPostConversationMemoryIdentifiersBody = z.object({
|
|
|
211
533
|
value: z.string(),
|
|
212
534
|
});
|
|
213
535
|
|
|
536
|
+
export const zPostConversationMemoryIdentifiersResponse = z.union([
|
|
537
|
+
z.unknown(),
|
|
538
|
+
z.record(z.unknown()),
|
|
539
|
+
]);
|
|
540
|
+
|
|
214
541
|
export const zDeleteConversationMemoryTraitGroupsQuery = z.object({
|
|
215
542
|
storeId: z.string().optional(),
|
|
216
543
|
traitGroupName: z.string().optional(),
|
|
217
544
|
});
|
|
218
545
|
|
|
546
|
+
export const zDeleteConversationMemoryTraitGroupsResponse = z.union([
|
|
547
|
+
z.unknown(),
|
|
548
|
+
z.record(z.unknown()),
|
|
549
|
+
]);
|
|
550
|
+
|
|
219
551
|
export const zGetConversationMemoryTraitGroupsQuery = z.object({
|
|
220
552
|
storeId: z.string().optional(),
|
|
221
553
|
traitGroupName: z.string().optional(),
|
|
@@ -225,16 +557,31 @@ export const zGetConversationMemoryTraitGroupsQuery = z.object({
|
|
|
225
557
|
orderBy: z.string().optional(),
|
|
226
558
|
});
|
|
227
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Upstream Trait Group data (single group or paginated list) from the Conversation Memory API
|
|
562
|
+
*/
|
|
563
|
+
export const zGetConversationMemoryTraitGroupsResponse = z.record(z.unknown());
|
|
564
|
+
|
|
228
565
|
export const zPatchConversationMemoryTraitGroupsBody = z.object({
|
|
229
566
|
storeId: z.string(),
|
|
230
567
|
traitGroupName: z.string(),
|
|
231
568
|
});
|
|
232
569
|
|
|
570
|
+
export const zPatchConversationMemoryTraitGroupsResponse = z.union([
|
|
571
|
+
z.unknown(),
|
|
572
|
+
z.record(z.unknown()),
|
|
573
|
+
]);
|
|
574
|
+
|
|
233
575
|
export const zPostConversationMemoryTraitGroupsBody = z.object({
|
|
234
576
|
storeId: z.string(),
|
|
235
577
|
displayName: z.string(),
|
|
236
578
|
});
|
|
237
579
|
|
|
580
|
+
export const zPostConversationMemoryTraitGroupsResponse = z.union([
|
|
581
|
+
z.unknown(),
|
|
582
|
+
z.record(z.unknown()),
|
|
583
|
+
]);
|
|
584
|
+
|
|
238
585
|
export const zGetConversationMemoryTraitsQuery = z.object({
|
|
239
586
|
storeId: z.string().optional(),
|
|
240
587
|
profileId: z.string().optional(),
|
|
@@ -244,12 +591,22 @@ export const zGetConversationMemoryTraitsQuery = z.object({
|
|
|
244
591
|
traitGroups: z.string().optional(),
|
|
245
592
|
});
|
|
246
593
|
|
|
594
|
+
/**
|
|
595
|
+
* Upstream paginated traits list from the Conversation Memory API
|
|
596
|
+
*/
|
|
597
|
+
export const zGetConversationMemoryTraitsResponse = z.record(z.unknown());
|
|
598
|
+
|
|
247
599
|
export const zDeleteConversationMemoryObservationsQuery = z.object({
|
|
248
600
|
storeId: z.string().optional(),
|
|
249
601
|
profileId: z.string().optional(),
|
|
250
602
|
observationId: z.string().optional(),
|
|
251
603
|
});
|
|
252
604
|
|
|
605
|
+
export const zDeleteConversationMemoryObservationsResponse = z.union([
|
|
606
|
+
z.unknown(),
|
|
607
|
+
z.record(z.unknown()),
|
|
608
|
+
]);
|
|
609
|
+
|
|
253
610
|
export const zGetConversationMemoryObservationsQuery = z.object({
|
|
254
611
|
storeId: z.string().optional(),
|
|
255
612
|
profileId: z.string().optional(),
|
|
@@ -262,6 +619,11 @@ export const zGetConversationMemoryObservationsQuery = z.object({
|
|
|
262
619
|
createdBefore: z.string().optional(),
|
|
263
620
|
});
|
|
264
621
|
|
|
622
|
+
/**
|
|
623
|
+
* Upstream observation data (single observation or paginated list) from the Conversation Memory API
|
|
624
|
+
*/
|
|
625
|
+
export const zGetConversationMemoryObservationsResponse = z.record(z.unknown());
|
|
626
|
+
|
|
265
627
|
export const zPatchConversationMemoryObservationsBody = z.object({
|
|
266
628
|
storeId: z.string(),
|
|
267
629
|
profileId: z.string(),
|
|
@@ -271,18 +633,33 @@ export const zPatchConversationMemoryObservationsBody = z.object({
|
|
|
271
633
|
occurredAt: z.string(),
|
|
272
634
|
});
|
|
273
635
|
|
|
636
|
+
export const zPatchConversationMemoryObservationsResponse = z.union([
|
|
637
|
+
z.unknown(),
|
|
638
|
+
z.record(z.unknown()),
|
|
639
|
+
]);
|
|
640
|
+
|
|
274
641
|
export const zPostConversationMemoryObservationsBody = z.object({
|
|
275
642
|
storeId: z.string(),
|
|
276
643
|
profileId: z.string(),
|
|
277
644
|
observations: z.string(),
|
|
278
645
|
});
|
|
279
646
|
|
|
647
|
+
export const zPostConversationMemoryObservationsResponse = z.union([
|
|
648
|
+
z.unknown(),
|
|
649
|
+
z.record(z.unknown()),
|
|
650
|
+
]);
|
|
651
|
+
|
|
280
652
|
export const zDeleteConversationMemoryConversationSummariesQuery = z.object({
|
|
281
653
|
storeId: z.string().optional(),
|
|
282
654
|
profileId: z.string().optional(),
|
|
283
655
|
summaryId: z.string().optional(),
|
|
284
656
|
});
|
|
285
657
|
|
|
658
|
+
export const zDeleteConversationMemoryConversationSummariesResponse = z.union([
|
|
659
|
+
z.unknown(),
|
|
660
|
+
z.record(z.unknown()),
|
|
661
|
+
]);
|
|
662
|
+
|
|
286
663
|
export const zGetConversationMemoryConversationSummariesQuery = z.object({
|
|
287
664
|
storeId: z.string().optional(),
|
|
288
665
|
profileId: z.string().optional(),
|
|
@@ -291,27 +668,69 @@ export const zGetConversationMemoryConversationSummariesQuery = z.object({
|
|
|
291
668
|
pageToken: z.string().optional(),
|
|
292
669
|
});
|
|
293
670
|
|
|
671
|
+
/**
|
|
672
|
+
* Upstream summary data (single summary or paginated list) from the Conversation Memory API
|
|
673
|
+
*/
|
|
674
|
+
export const zGetConversationMemoryConversationSummariesResponse = z.record(z.unknown());
|
|
675
|
+
|
|
294
676
|
export const zPatchConversationMemoryConversationSummariesBody = z.object({
|
|
295
677
|
storeId: z.string(),
|
|
296
678
|
profileId: z.string(),
|
|
297
679
|
summaryId: z.string(),
|
|
298
680
|
});
|
|
299
681
|
|
|
682
|
+
export const zPatchConversationMemoryConversationSummariesResponse = z.union([
|
|
683
|
+
z.unknown(),
|
|
684
|
+
z.record(z.unknown()),
|
|
685
|
+
]);
|
|
686
|
+
|
|
300
687
|
export const zPostConversationMemoryConversationSummariesBody = z.object({
|
|
301
688
|
storeId: z.string(),
|
|
302
689
|
profileId: z.string(),
|
|
303
690
|
summaries: z.string(),
|
|
304
691
|
});
|
|
305
692
|
|
|
693
|
+
export const zPostConversationMemoryConversationSummariesResponse = z.union([
|
|
694
|
+
z.unknown(),
|
|
695
|
+
z.record(z.unknown()),
|
|
696
|
+
]);
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Success
|
|
700
|
+
*/
|
|
701
|
+
export const zDeleteConversationMemoryResetResponse = z.object({
|
|
702
|
+
deletedObservations: z.number(),
|
|
703
|
+
deletedSummaries: z.number(),
|
|
704
|
+
});
|
|
705
|
+
|
|
306
706
|
export const zPostAssignDemoBody = z.object({
|
|
307
707
|
phoneNumber: z.string(),
|
|
308
708
|
targetObjectID: z.string(),
|
|
309
709
|
});
|
|
310
710
|
|
|
711
|
+
/**
|
|
712
|
+
* Success
|
|
713
|
+
*/
|
|
714
|
+
export const zPostAssignDemoResponse = z.object({
|
|
715
|
+
addedToTarget: z.boolean(),
|
|
716
|
+
message: z.string(),
|
|
717
|
+
phoneNumber: z.string(),
|
|
718
|
+
removedFrom: z.array(z.string()),
|
|
719
|
+
targetObjectID: z.string(),
|
|
720
|
+
});
|
|
721
|
+
|
|
311
722
|
export const zGetLookupDemoQuery = z.object({
|
|
312
723
|
phoneNumber: z.string().optional(),
|
|
313
724
|
});
|
|
314
725
|
|
|
726
|
+
/**
|
|
727
|
+
* Success
|
|
728
|
+
*/
|
|
729
|
+
export const zGetLookupDemoResponse = z.object({
|
|
730
|
+
phoneNumber: z.string(),
|
|
731
|
+
templates: z.array(z.record(z.unknown())),
|
|
732
|
+
});
|
|
733
|
+
|
|
315
734
|
export const zPostTemplateAutogenBody = z.object({
|
|
316
735
|
requests: z.array(zAutogenRequest),
|
|
317
736
|
tags: z.array(z.string()),
|
|
@@ -321,12 +740,33 @@ export const zPostTemplateAutogenBody = z.object({
|
|
|
321
740
|
tools: z.array(z.string()),
|
|
322
741
|
});
|
|
323
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Success
|
|
745
|
+
*/
|
|
746
|
+
export const zPostTemplateAutogenResponse = z.object({
|
|
747
|
+
templates: z.array(zTemplateData),
|
|
748
|
+
});
|
|
749
|
+
|
|
324
750
|
export const zDeleteTemplateQuery = z.object({
|
|
325
751
|
campaign: z.string().optional(),
|
|
326
752
|
});
|
|
327
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Success
|
|
756
|
+
*/
|
|
757
|
+
export const zDeleteTemplateResponse = z.object({
|
|
758
|
+
deleted: z.array(z.string()),
|
|
759
|
+
});
|
|
760
|
+
|
|
328
761
|
export const zPostTemplateBody = z.record(z.unknown());
|
|
329
762
|
|
|
763
|
+
/**
|
|
764
|
+
* Success
|
|
765
|
+
*/
|
|
766
|
+
export const zPostTemplateResponse = z.object({
|
|
767
|
+
message: z.string(),
|
|
768
|
+
});
|
|
769
|
+
|
|
330
770
|
export const zGetCampaignQuery = z.object({
|
|
331
771
|
limit: z.string().optional(),
|
|
332
772
|
offset: z.string().optional(),
|
|
@@ -337,6 +777,15 @@ export const zGetCampaignQuery = z.object({
|
|
|
337
777
|
includeCalledBy: z.string().optional(),
|
|
338
778
|
});
|
|
339
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Success
|
|
782
|
+
*/
|
|
783
|
+
export const zGetCampaignResponse = z.object({
|
|
784
|
+
calledByData: z.array(zCalledByData),
|
|
785
|
+
campaigns: z.array(zCampaign),
|
|
786
|
+
total: z.number(),
|
|
787
|
+
});
|
|
788
|
+
|
|
340
789
|
/**
|
|
341
790
|
* Success
|
|
342
791
|
*/
|
|
@@ -344,15 +793,49 @@ export const zGetSupportedRegionsResponse = z.object({
|
|
|
344
793
|
regions: z.array(zSupportedRegion),
|
|
345
794
|
});
|
|
346
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Success
|
|
798
|
+
*/
|
|
799
|
+
export const zGetLinkShortenerResponse = z.object({
|
|
800
|
+
links: z.array(z.record(z.unknown())),
|
|
801
|
+
});
|
|
802
|
+
|
|
347
803
|
export const zPatchLinkShortenerBody = z.object({
|
|
348
804
|
objectID: z.string(),
|
|
349
805
|
shortLink: z.string(),
|
|
350
806
|
});
|
|
351
807
|
|
|
808
|
+
/**
|
|
809
|
+
* Success
|
|
810
|
+
*/
|
|
811
|
+
export const zPatchLinkShortenerResponse = z.object({
|
|
812
|
+
ok: z.boolean(),
|
|
813
|
+
});
|
|
814
|
+
|
|
352
815
|
export const zPostLinkShortenerBody = z.object({
|
|
353
816
|
urls: z.array(zShortenUrlInput),
|
|
354
817
|
});
|
|
355
818
|
|
|
819
|
+
export const zPostLinkShortenerResponse = z.union([
|
|
820
|
+
z.unknown(),
|
|
821
|
+
z.object({
|
|
822
|
+
results: z.array(z.record(z.unknown())),
|
|
823
|
+
}),
|
|
824
|
+
]);
|
|
825
|
+
|
|
356
826
|
export const zDeleteLinkShortenerByCodePath = z.object({
|
|
357
827
|
code: z.string(),
|
|
358
828
|
});
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Success
|
|
832
|
+
*/
|
|
833
|
+
export const zDeleteLinkShortenerByCodeResponse = z.object({
|
|
834
|
+
code: z.string(),
|
|
835
|
+
ok: z.boolean(),
|
|
836
|
+
});
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* The raw OpenAPI 3.1 spec JSON document
|
|
840
|
+
*/
|
|
841
|
+
export const zGetDocsOpenapiJsonResponse = z.record(z.unknown());
|