@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.
@@ -2,11 +2,112 @@
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 zCalledByData = z.object({
11
+ phoneNumber: z.string().optional(),
12
+ timestamp: z.number().optional(),
13
+ direction: z.string().optional(),
14
+ objectId: z.string().optional(),
15
+ });
16
+
17
+ export const zCampaign = z.object({
18
+ email: z.string().optional(),
19
+ companyName: z.string().optional(),
20
+ objectID: z.string().optional(),
21
+ encryptedObjectId: z.string().optional(),
22
+ agentNumber: z.string().optional(),
23
+ tag: z.string().optional(),
24
+ createdAt: z.string().optional(),
25
+ numCalls: z.string().optional(),
26
+ shortLink: z.string().optional(),
27
+ });
28
+
29
+ export const zConversationMemoryRecallResponse = z.object({
30
+ communications: z.string().optional(),
31
+ observations: z.string().optional(),
32
+ summaries: z.string().optional(),
33
+ meta: z.string().optional(),
34
+ queryTime: z.string().optional(),
35
+ });
36
+
37
+ export const zOperator = z.object({
38
+ id: z.string().optional(),
39
+ displayName: z.string().optional(),
40
+ description: z.string().optional(),
41
+ version: z.string().optional(),
42
+ availability: z.string().optional(),
43
+ author: z.string().optional(),
44
+ prompt: z.string().optional(),
45
+ outputFormat: z.string().optional(),
46
+ outputSchema: z.string().optional(),
47
+ trainingExamples: z.string().optional(),
48
+ context: z.string().optional(),
49
+ parameters: z.string().optional(),
50
+ });
51
+
52
+ export const zIntelligenceConfiguration = z.object({
53
+ accountId: z.string().optional(),
54
+ dateCreated: z.string().optional(),
55
+ dateUpdated: z.string().optional(),
56
+ description: z.string().optional(),
57
+ displayName: z.string().optional(),
58
+ id: z.string().optional(),
59
+ rules: z.string().optional(),
60
+ version: z.string().optional(),
61
+ });
62
+
63
+ export const zLockedTemplateData = z.object({
64
+ agentNumber: z.string().optional(),
65
+ countryCode: z.string().optional(),
66
+ dateShared: z.string().optional(),
67
+ dateExpires: z.string().optional(),
68
+ objectID: z.string().optional(),
69
+ templateName: z.string().optional(),
70
+ userEmail: z.string().optional(),
71
+ webrtcUrl: z.string().optional(),
72
+ });
73
+
74
+ export const zSupportedRegion = z.object({
75
+ isoCountry: z.string().optional(),
76
+ numberType: z.string().optional(),
77
+ bundleSid: z.string().optional(),
78
+ label: z.string().optional(),
79
+ flag: z.string().optional(),
80
+ capabilities: z.string().optional(),
81
+ });
82
+
83
+ /**
84
+ * Success
85
+ */
86
+ export const zPostApiAlgoliaSecuredKeyResponse = z.object({
87
+ expiresAt: z.number(),
88
+ securedKey: z.string(),
89
+ userEmail: z.string(),
90
+ });
91
+
92
+ /**
93
+ * Success
94
+ */
95
+ export const zGetApiCampaignResponse = z.object({
96
+ calledByData: z.array(zCalledByData),
97
+ campaigns: z.array(zCampaign),
98
+ total: z.number(),
99
+ });
100
+
5
101
  export const zDeleteApiConversationMemoryConversationSummariesQuery = z.object({
6
102
  profileId: z.string(),
7
103
  summaryId: z.string(),
8
104
  });
9
105
 
106
+ export const zDeleteApiConversationMemoryConversationSummariesResponse = z.union([
107
+ z.record(z.unknown()),
108
+ z.record(z.unknown()),
109
+ ]);
110
+
10
111
  export const zGetApiConversationMemoryConversationSummariesQuery = z.object({
11
112
  profileId: z.string(),
12
113
  summaryId: z.string().optional(),
@@ -14,6 +115,11 @@ export const zGetApiConversationMemoryConversationSummariesQuery = z.object({
14
115
  pageToken: z.string().optional(),
15
116
  });
16
117
 
118
+ /**
119
+ * Upstream summary data (single summary or paginated list) from the Conversation Memory API
120
+ */
121
+ export const zGetApiConversationMemoryConversationSummariesResponse = z.record(z.unknown());
122
+
17
123
  export const zPatchApiConversationMemoryConversationSummariesBody = z.record(z.unknown());
18
124
 
19
125
  export const zPatchApiConversationMemoryConversationSummariesQuery = z.object({
@@ -21,8 +127,18 @@ export const zPatchApiConversationMemoryConversationSummariesQuery = z.object({
21
127
  summaryId: z.string(),
22
128
  });
23
129
 
130
+ export const zPatchApiConversationMemoryConversationSummariesResponse = z.union([
131
+ z.record(z.unknown()),
132
+ z.record(z.unknown()),
133
+ ]);
134
+
24
135
  export const zPostApiConversationMemoryConversationSummariesBody = z.record(z.unknown());
25
136
 
137
+ export const zPostApiConversationMemoryConversationSummariesResponse = z.union([
138
+ z.record(z.unknown()),
139
+ z.record(z.unknown()),
140
+ ]);
141
+
26
142
  export const zDeleteApiConversationMemoryIdentifiersQuery = z.object({
27
143
  profileId: z.string(),
28
144
  idType: z.string(),
@@ -30,11 +146,21 @@ export const zDeleteApiConversationMemoryIdentifiersQuery = z.object({
30
146
  value: z.string().optional(),
31
147
  });
32
148
 
149
+ export const zDeleteApiConversationMemoryIdentifiersResponse = z.union([
150
+ z.record(z.unknown()),
151
+ z.record(z.unknown()),
152
+ ]);
153
+
33
154
  export const zGetApiConversationMemoryIdentifiersQuery = z.object({
34
155
  profileId: z.string(),
35
- idType: z.string(),
156
+ idType: z.string().optional(),
36
157
  });
37
158
 
159
+ /**
160
+ * Upstream identifier data (single value or list) from the Conversation Memory API
161
+ */
162
+ export const zGetApiConversationMemoryIdentifiersResponse = z.record(z.unknown());
163
+
38
164
  export const zPatchApiConversationMemoryIdentifiersBody = z.record(z.unknown());
39
165
 
40
166
  export const zPatchApiConversationMemoryIdentifiersQuery = z.object({
@@ -44,20 +170,28 @@ export const zPatchApiConversationMemoryIdentifiersQuery = z.object({
44
170
  value: z.string().optional(),
45
171
  });
46
172
 
173
+ export const zPatchApiConversationMemoryIdentifiersResponse = z.union([
174
+ z.record(z.unknown()),
175
+ z.record(z.unknown()),
176
+ ]);
177
+
47
178
  export const zPostApiConversationMemoryIdentifiersBody = z.record(z.unknown());
48
179
 
49
- export const zPostApiConversationMemoryIdentifiersQuery = z.object({
50
- profileId: z.string(),
51
- idType: z.string(),
52
- removeAll: z.string().optional(),
53
- value: z.string(),
54
- });
180
+ export const zPostApiConversationMemoryIdentifiersResponse = z.union([
181
+ z.record(z.unknown()),
182
+ z.record(z.unknown()),
183
+ ]);
55
184
 
56
185
  export const zDeleteApiConversationMemoryObservationsQuery = z.object({
57
186
  profileId: z.string(),
58
187
  observationId: z.string(),
59
188
  });
60
189
 
190
+ export const zDeleteApiConversationMemoryObservationsResponse = z.union([
191
+ z.record(z.unknown()),
192
+ z.record(z.unknown()),
193
+ ]);
194
+
61
195
  export const zGetApiConversationMemoryObservationsQuery = z.object({
62
196
  profileId: z.string(),
63
197
  observationId: z.string().optional(),
@@ -69,6 +203,11 @@ export const zGetApiConversationMemoryObservationsQuery = z.object({
69
203
  createdBefore: z.string().optional(),
70
204
  });
71
205
 
206
+ /**
207
+ * Upstream observation data (single observation or paginated list) from the Conversation Memory API
208
+ */
209
+ export const zGetApiConversationMemoryObservationsResponse = z.record(z.unknown());
210
+
72
211
  export const zPatchApiConversationMemoryObservationsBody = z.record(z.unknown());
73
212
 
74
213
  export const zPatchApiConversationMemoryObservationsQuery = z.object({
@@ -76,16 +215,27 @@ export const zPatchApiConversationMemoryObservationsQuery = z.object({
76
215
  observationId: z.string(),
77
216
  });
78
217
 
218
+ export const zPatchApiConversationMemoryObservationsResponse = z.union([
219
+ z.record(z.unknown()),
220
+ z.record(z.unknown()),
221
+ ]);
222
+
79
223
  export const zPostApiConversationMemoryObservationsBody = z.record(z.unknown());
80
224
 
81
- export const zPostApiConversationMemoryObservationsQuery = z.object({
82
- profileId: z.string(),
83
- });
225
+ export const zPostApiConversationMemoryObservationsResponse = z.union([
226
+ z.record(z.unknown()),
227
+ z.record(z.unknown()),
228
+ ]);
84
229
 
85
230
  export const zDeleteApiConversationMemoryProfilesQuery = z.object({
86
231
  profileId: z.string(),
87
232
  });
88
233
 
234
+ export const zDeleteApiConversationMemoryProfilesResponse = z.union([
235
+ z.record(z.unknown()),
236
+ z.record(z.unknown()),
237
+ ]);
238
+
89
239
  export const zGetApiConversationMemoryProfilesQuery = z.object({
90
240
  profileId: z.string().optional(),
91
241
  traitGroups: z.string().optional(),
@@ -94,26 +244,56 @@ export const zGetApiConversationMemoryProfilesQuery = z.object({
94
244
  orderBy: z.string().optional(),
95
245
  });
96
246
 
247
+ /**
248
+ * Upstream profile data (single profile or paginated list) from the Conversation Memory API
249
+ */
250
+ export const zGetApiConversationMemoryProfilesResponse = z.record(z.unknown());
251
+
97
252
  export const zPatchApiConversationMemoryProfilesBody = z.record(z.unknown());
98
253
 
99
254
  export const zPatchApiConversationMemoryProfilesQuery = z.object({
100
255
  profileId: z.string(),
101
256
  });
102
257
 
258
+ export const zPatchApiConversationMemoryProfilesResponse = z.union([
259
+ z.record(z.unknown()),
260
+ z.record(z.unknown()),
261
+ ]);
262
+
103
263
  export const zPostApiConversationMemoryProfilesBody = z.record(z.unknown());
104
264
 
105
265
  export const zPostApiConversationMemoryProfilesQuery = z.object({
106
- profileId: z.string(),
266
+ profileId: z.string().optional(),
107
267
  });
108
268
 
269
+ export const zPostApiConversationMemoryProfilesResponse = z.union([
270
+ z.record(z.unknown()),
271
+ z.record(z.unknown()),
272
+ ]);
273
+
109
274
  export const zPostApiConversationMemoryProfilesLookupBody = z.record(z.unknown());
110
275
 
276
+ /**
277
+ * Upstream profile lookup result from the Conversation Memory API
278
+ */
279
+ export const zPostApiConversationMemoryProfilesLookupResponse = z.record(z.unknown());
280
+
111
281
  export const zPostApiConversationMemoryRecallBody = z.record(z.unknown());
112
282
 
283
+ /**
284
+ * Recalled communications, observations, and summaries matching the query
285
+ */
286
+ export const zPostApiConversationMemoryRecallResponse = zConversationMemoryRecallResponse;
287
+
113
288
  export const zDeleteApiConversationMemoryResetQuery = z.object({
114
289
  profileId: z.string(),
115
290
  });
116
291
 
292
+ /**
293
+ * Upstream confirmation payload from the Conversation Memory API
294
+ */
295
+ export const zDeleteApiConversationMemoryResetResponse = z.record(z.unknown());
296
+
117
297
  export const zGetApiConversationMemoryTraitGroupsQuery = z.object({
118
298
  traitGroupName: z.string().optional(),
119
299
  includeTraits: z.string().optional(),
@@ -121,10 +301,25 @@ export const zGetApiConversationMemoryTraitGroupsQuery = z.object({
121
301
  pageToken: z.string().optional(),
122
302
  });
123
303
 
304
+ /**
305
+ * Upstream trait group data (single group or paginated list) from the Conversation Memory API
306
+ */
307
+ export const zGetApiConversationMemoryTraitGroupsResponse = z.record(z.unknown());
308
+
124
309
  export const zPatchApiConversationMemoryTraitGroupsBody = z.record(z.unknown());
125
310
 
311
+ export const zPatchApiConversationMemoryTraitGroupsResponse = z.union([
312
+ z.record(z.unknown()),
313
+ z.record(z.unknown()),
314
+ ]);
315
+
126
316
  export const zPostApiConversationMemoryTraitGroupsBody = z.record(z.unknown());
127
317
 
318
+ export const zPostApiConversationMemoryTraitGroupsResponse = z.union([
319
+ z.record(z.unknown()),
320
+ z.record(z.unknown()),
321
+ ]);
322
+
128
323
  export const zGetApiConversationMemoryTraitsQuery = z.object({
129
324
  profileId: z.string(),
130
325
  pageSize: z.string().optional(),
@@ -133,89 +328,275 @@ export const zGetApiConversationMemoryTraitsQuery = z.object({
133
328
  traitGroups: z.string().optional(),
134
329
  });
135
330
 
331
+ /**
332
+ * Upstream paginated trait data from the Conversation Memory API
333
+ */
334
+ export const zGetApiConversationMemoryTraitsResponse = z.record(z.unknown());
335
+
136
336
  export const zDeleteApiConversationalIntelligenceOperatorQuery = z.object({
137
337
  intelligenceOperatorId: z.string(),
138
338
  });
139
339
 
340
+ /**
341
+ * `{ success: true }` when the upstream returned no content, otherwise the deleted operator object as-is
342
+ */
343
+ export const zDeleteApiConversationalIntelligenceOperatorResponse = z.record(z.unknown());
344
+
140
345
  export const zGetApiConversationalIntelligenceOperatorQuery = z.object({
141
346
  intelligenceOperatorId: z.string().optional(),
142
347
  pageToken: z.string().optional(),
143
348
  });
144
349
 
350
+ /**
351
+ * A single Operator (when intelligenceOperatorId is provided) or an OperatorList (paginated), proxied from the upstream API
352
+ */
353
+ export const zGetApiConversationalIntelligenceOperatorResponse = z.record(z.unknown());
354
+
145
355
  export const zPostApiConversationalIntelligenceOperatorBody = z.record(z.unknown());
146
356
 
147
357
  export const zPostApiConversationalIntelligenceOperatorQuery = z.object({
148
358
  intelligenceOperatorId: z.string().optional(),
149
359
  });
150
360
 
361
+ /**
362
+ * The created operator object
363
+ */
364
+ export const zPostApiConversationalIntelligenceOperatorResponse = zOperator;
365
+
151
366
  export const zPutApiConversationalIntelligenceOperatorBody = z.record(z.unknown());
152
367
 
153
368
  export const zPutApiConversationalIntelligenceOperatorQuery = z.object({
154
369
  intelligenceOperatorId: z.string(),
155
370
  });
156
371
 
372
+ /**
373
+ * The updated operator object
374
+ */
375
+ export const zPutApiConversationalIntelligenceOperatorResponse = zOperator;
376
+
377
+ /**
378
+ * Success
379
+ */
380
+ export const zDeleteApiConversationsDeleteResponse = z.object({
381
+ success: z.boolean(),
382
+ message: z.string(),
383
+ objectID: z.string(),
384
+ });
385
+
157
386
  export const zPostApiConversationsSaveBody = z.record(z.unknown());
158
387
 
388
+ /**
389
+ * Success
390
+ */
391
+ export const zPostApiConversationsSaveResponse = z.object({
392
+ message: z.string(),
393
+ objectID: z.string(),
394
+ success: z.boolean(),
395
+ intelligenceConfigurationId: z.string(),
396
+ crTargetWorker: z.string(),
397
+ });
398
+
159
399
  export const zPostApiConversationsShareBody = z.record(z.unknown());
160
400
 
401
+ /**
402
+ * Success
403
+ */
404
+ export const zPostApiConversationsShareResponse = z.object({
405
+ message: z.string(),
406
+ newObjectID: z.string(),
407
+ success: z.boolean(),
408
+ });
409
+
410
+ /**
411
+ * Success
412
+ */
413
+ export const zGetApiCountryConfigsResponse = z.object({
414
+ configs: z.array(z.record(z.unknown())),
415
+ });
416
+
161
417
  export const zPostApiCreateExternalFlexConnectionBody = z.record(z.unknown());
162
418
 
419
+ /**
420
+ * Proxied response from the upstream API (shape depends on upstream; non-2xx upstream statuses are also passed through as-is)
421
+ */
422
+ export const zPostApiCreateExternalFlexConnectionResponse = z.record(z.unknown());
423
+
163
424
  export const zPostApiEnhancePromptBody = z.record(z.unknown());
164
425
 
426
+ /**
427
+ * Success
428
+ */
429
+ export const zPostApiEnhancePromptResponse = z.object({
430
+ enhancedContext: z.string(),
431
+ enhancedInstructions: z.string(),
432
+ });
433
+
165
434
  export const zPostApiGenerateTagsBody = z.record(z.unknown());
166
435
 
436
+ /**
437
+ * Success
438
+ */
439
+ export const zPostApiGenerateTagsResponse = z.object({
440
+ tags: z.array(z.string()),
441
+ });
442
+
167
443
  export const zPostApiIncrementViewCountBody = z.record(z.unknown());
168
444
 
445
+ /**
446
+ * Success
447
+ */
448
+ export const zPostApiIncrementViewCountResponse = z.object({
449
+ objectID: z.string(),
450
+ success: z.boolean(),
451
+ viewCount: z.number(),
452
+ });
453
+
169
454
  export const zGetApiIntelligenceConfigurationQuery = z.object({
170
455
  intelligenceConfigurationId: z.string().optional(),
171
456
  pageToken: z.string().optional(),
172
457
  });
173
458
 
459
+ /**
460
+ * A single IntelligenceConfiguration (when intelligenceConfigurationId is provided) or a paginated list
461
+ */
462
+ export const zGetApiIntelligenceConfigurationResponse = z.record(z.unknown());
463
+
174
464
  export const zPostApiIntelligenceConfigurationBody = z.record(z.unknown());
175
465
 
466
+ /**
467
+ * The created configuration
468
+ */
469
+ export const zPostApiIntelligenceConfigurationResponse = zIntelligenceConfiguration;
470
+
176
471
  export const zPutApiIntelligenceConfigurationBody = z.record(z.unknown());
177
472
 
473
+ /**
474
+ * The updated configuration
475
+ */
476
+ export const zPutApiIntelligenceConfigurationResponse = zIntelligenceConfiguration;
477
+
178
478
  export const zGetApiIsvLogoQuery = z.object({
179
479
  company: z.string(),
180
480
  });
181
481
 
482
+ /**
483
+ * Success
484
+ */
485
+ export const zGetApiIsvLogoResponse = z.object({
486
+ company: z.string(),
487
+ logoUrl: z.string(),
488
+ objectID: z.string(),
489
+ });
490
+
491
+ /**
492
+ * Proxied response from the upstream lead-gen API (shape depends on upstream)
493
+ */
494
+ export const zDeleteApiLeadGenResponse = z.record(z.unknown());
495
+
182
496
  export const zGetApiLeadGenQuery = z.object({
183
497
  objectID: z.string(),
184
498
  agentNumber: z.string(),
185
499
  });
186
500
 
501
+ /**
502
+ * Success
503
+ */
504
+ export const zGetApiLeadGenResponse = z.object({
505
+ templates: z.array(zLockedTemplateData),
506
+ });
507
+
187
508
  export const zPatchApiLeadGenBody = z.record(z.unknown());
188
509
 
510
+ /**
511
+ * Proxied response from the upstream lead-gen API (shape depends on upstream)
512
+ */
513
+ export const zPatchApiLeadGenResponse = z.record(z.unknown());
514
+
189
515
  export const zPostApiLeadGenBody = z.record(z.unknown());
190
516
 
517
+ /**
518
+ * Proxied response from the upstream lead-gen API (shape depends on upstream)
519
+ */
520
+ export const zPostApiLeadGenResponse = z.record(z.unknown());
521
+
191
522
  export const zDeleteApiLinkShortenerQuery = z.object({
192
523
  code: z.string(),
193
524
  });
194
525
 
526
+ /**
527
+ * Proxied response from the upstream link-shortener API (shape depends on upstream)
528
+ */
529
+ export const zDeleteApiLinkShortenerResponse = z.record(z.unknown());
530
+
195
531
  export const zGetApiLinkShortenerQuery = z.object({
196
532
  code: z.string().optional(),
197
533
  });
198
534
 
535
+ /**
536
+ * Proxied response from the upstream link-shortener API (shape depends on upstream)
537
+ */
538
+ export const zGetApiLinkShortenerResponse = z.record(z.unknown());
539
+
199
540
  export const zPatchApiLinkShortenerBody = z.record(z.unknown());
200
541
 
201
542
  export const zPatchApiLinkShortenerQuery = z.object({
202
543
  code: z.string(),
203
544
  });
204
545
 
546
+ /**
547
+ * Proxied response from the upstream link-shortener API (shape depends on upstream)
548
+ */
549
+ export const zPatchApiLinkShortenerResponse = z.record(z.unknown());
550
+
205
551
  export const zPostApiLinkShortenerBody = z.record(z.unknown());
206
552
 
207
553
  export const zPostApiLinkShortenerQuery = z.object({
208
554
  code: z.string().optional(),
209
555
  });
210
556
 
557
+ /**
558
+ * Proxied response from the upstream link-shortener API (shape depends on upstream)
559
+ */
560
+ export const zPostApiLinkShortenerResponse = z.record(z.unknown());
561
+
562
+ /**
563
+ * Success
564
+ */
565
+ export const zDeleteApiLiveNumbersResponse = z.object({
566
+ success: z.boolean(),
567
+ liveNumbers: z.array(z.record(z.unknown())),
568
+ totalCount: z.number(),
569
+ timestamp: z.string(),
570
+ });
571
+
211
572
  export const zGetApiLiveNumbersQuery = z.object({
212
573
  countryCode: z.string().optional(),
213
574
  });
214
575
 
576
+ /**
577
+ * Success
578
+ */
579
+ export const zGetApiLiveNumbersResponse = z.object({
580
+ success: z.boolean(),
581
+ liveNumbers: z.array(z.record(z.unknown())),
582
+ totalCount: z.number(),
583
+ timestamp: z.string(),
584
+ });
585
+
215
586
  export const zPostApiOutboundCallBody = z.record(z.unknown());
216
587
 
588
+ /**
589
+ * Proxied response from the upstream agent outbound-call API (shape depends on upstream)
590
+ */
591
+ export const zPostApiOutboundCallResponse = z.record(z.unknown());
592
+
217
593
  export const zPostApiOutboundCommunicationTextBody = z.record(z.unknown());
218
594
 
595
+ /**
596
+ * Proxied response from the upstream agent outbound-communication-text API (shape depends on upstream)
597
+ */
598
+ export const zPostApiOutboundCommunicationTextResponse = z.record(z.unknown());
599
+
219
600
  export const zGetApiPhoneLogsByPhoneNumberPath = z.object({
220
601
  phoneNumber: z.string(),
221
602
  });
@@ -224,26 +605,201 @@ export const zGetApiPhoneLogsByPhoneNumberQuery = z.object({
224
605
  countryCode: z.string().optional(),
225
606
  });
226
607
 
608
+ /**
609
+ * Phone call logs for the requested number, proxied from the upstream agent API
610
+ */
611
+ export const zGetApiPhoneLogsByPhoneNumberResponse = z.record(z.unknown());
612
+
227
613
  export const zGetApiRecentlyActiveNumbersQuery = z.object({
228
614
  countryCode: z.string().optional(),
229
615
  });
230
616
 
617
+ /**
618
+ * Success
619
+ */
620
+ export const zGetApiRecentlyActiveNumbersResponse = z.object({
621
+ success: z.boolean(),
622
+ activeNumbers: z.array(z.record(z.unknown())),
623
+ totalCount: z.number(),
624
+ timestamp: z.string(),
625
+ });
626
+
231
627
  export const zPostApiSegmentIdentifyBody = z.record(z.unknown());
232
628
 
629
+ /**
630
+ * Success
631
+ */
632
+ export const zPostApiSegmentIdentifyResponse = z.object({
633
+ message: z.string(),
634
+ });
635
+
233
636
  export const zPostApiSegmentProfileBody = z.record(z.unknown());
234
637
 
638
+ /**
639
+ * Success
640
+ */
641
+ export const zPostApiSegmentProfileResponse = z.object({
642
+ canonicalUserId: z.string(),
643
+ data: z.record(z.unknown()),
644
+ identifier: z.string(),
645
+ identifiers: z.array(z.record(z.unknown())),
646
+ matchedKey: z.string(),
647
+ message: z.string(),
648
+ });
649
+
650
+ /**
651
+ * Success
652
+ */
653
+ export const zGetApiSessionResponse = z.object({
654
+ authenticated: z.boolean(),
655
+ user: z.record(z.unknown()),
656
+ timestamp: z.string(),
657
+ });
658
+
659
+ /**
660
+ * Success
661
+ */
662
+ export const zGetApiSupportedRegionsResponse = z.object({
663
+ regions: z.array(zSupportedRegion),
664
+ });
665
+
235
666
  export const zPostApiTagsBody = z.record(z.unknown());
236
667
 
668
+ /**
669
+ * Success
670
+ */
671
+ export const zPostApiTagsResponse = z.object({
672
+ success: z.boolean(),
673
+ tag: z.record(z.unknown()),
674
+ });
675
+
237
676
  export const zPostApiTelemetryQuery = z.object({
238
677
  ddforward: z.string().optional(),
239
678
  });
240
679
 
680
+ export const zPostApiTelemetryResponse = z.union([z.unknown(), z.record(z.unknown())]);
681
+
241
682
  export const zDeleteApiTemplateQuery = z.object({
242
683
  campaign: z.string().optional(),
243
684
  });
244
685
 
686
+ /**
687
+ * Proxied response from the upstream template API (shape depends on upstream)
688
+ */
689
+ export const zDeleteApiTemplateResponse = z.record(z.unknown());
690
+
245
691
  export const zPostApiTemplateAutogenBody = z.record(z.unknown());
246
692
 
693
+ /**
694
+ * Proxied response from the upstream template-autogen API (shape depends on upstream)
695
+ */
696
+ export const zPostApiTemplateAutogenResponse = z.record(z.unknown());
697
+
247
698
  export const zPostApiVerifyCheckBody = z.record(z.unknown());
248
699
 
700
+ /**
701
+ * Success
702
+ */
703
+ export const zPostApiVerifyCheckResponse = z.object({
704
+ verified: z.boolean(),
705
+ error: z.string(),
706
+ });
707
+
249
708
  export const zPostApiVerifySendBody = z.record(z.unknown());
709
+
710
+ /**
711
+ * Success
712
+ */
713
+ export const zPostApiVerifySendResponse = z.object({
714
+ channel: z.string(),
715
+ sid: z.string(),
716
+ });
717
+
718
+ export const zPostApiWebchatChatBody = z.record(z.unknown());
719
+
720
+ /**
721
+ * Proxied response from the agent chat service
722
+ */
723
+ export const zPostApiWebchatChatResponse = z.record(z.unknown());
724
+
725
+ export const zPostApiWebchatConversationBody = z.record(z.unknown());
726
+
727
+ /**
728
+ * Proxied response from the agent conversation service
729
+ */
730
+ export const zPostApiWebchatConversationResponse = z.record(z.unknown());
731
+
732
+ export const zGetApiWebchatConversationsTokenQuery = z.object({
733
+ identity: z.string().optional(),
734
+ });
735
+
736
+ /**
737
+ * Proxied response from the API conversations-token service
738
+ */
739
+ export const zGetApiWebchatConversationsTokenResponse = z.record(z.unknown());
740
+
741
+ export const zPostApiWebchatConversationsTokenBody = z.record(z.unknown());
742
+
743
+ export const zPostApiWebchatConversationsTokenQuery = z.object({
744
+ identity: z.string().optional(),
745
+ });
746
+
747
+ /**
748
+ * Proxied response from the API conversations-token service
749
+ */
750
+ export const zPostApiWebchatConversationsTokenResponse = z.record(z.unknown());
751
+
752
+ export const zPostApiWebchatEndChatBody = z.record(z.unknown());
753
+
754
+ /**
755
+ * Proxied response from the agent live-numbers delete service
756
+ */
757
+ export const zPostApiWebchatEndChatResponse = z.record(z.unknown());
758
+
759
+ export const zPostApiWebchatLiveAgentWebchatConnectBody = z.record(z.unknown());
760
+
761
+ /**
762
+ * Proxied response from the API live-agent-webchat-connect service
763
+ */
764
+ export const zPostApiWebchatLiveAgentWebchatConnectResponse = z.record(z.unknown());
765
+
766
+ export const zPostApiWebchatLiveAgentWebchatEndBody = z.record(z.unknown());
767
+
768
+ /**
769
+ * Proxied response from the API live-agent-webchat-end service
770
+ */
771
+ export const zPostApiWebchatLiveAgentWebchatEndResponse = z.record(z.unknown());
772
+
773
+ export const zPostApiWebchatUiConfigBody = z.record(z.unknown());
774
+
775
+ /**
776
+ * Success
777
+ */
778
+ export const zPostApiWebchatUiConfigResponse = z.object({
779
+ ui: z.record(z.unknown()),
780
+ linkMap: z.record(z.unknown()),
781
+ hideChatLink: z.boolean(),
782
+ templateObjectId: z.string(),
783
+ templateLanguage: z.string(),
784
+ resolvedCustomerNumber: z.string(),
785
+ resolvedAgentNumber: z.string(),
786
+ templateTitle: z.string(),
787
+ dialogConfig: z.record(z.unknown()),
788
+ dialogSettings: z.record(z.unknown()),
789
+ });
790
+
791
+ export const zGetApiWebchatVoiceTokenQuery = z.object({
792
+ identity: z.string().optional(),
793
+ });
794
+
795
+ /**
796
+ * Proxied response from the API voice-token service
797
+ */
798
+ export const zGetApiWebchatVoiceTokenResponse = z.record(z.unknown());
799
+
800
+ export const zPostApiWebchatWebchatSendBody = z.record(z.unknown());
801
+
802
+ /**
803
+ * Proxied response from the agent chat service
804
+ */
805
+ export const zPostApiWebchatWebchatSendResponse = z.record(z.unknown());