@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/src/generated/zod.gen.ts
CHANGED
|
@@ -2,37 +2,205 @@
|
|
|
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
|
+
|
|
5
10
|
export const zGetApiActiveConversationsByCustomerNumberPath = z.object({
|
|
6
11
|
customerNumber: z.string(),
|
|
7
12
|
});
|
|
8
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Proxied active-conversations payload from the agent server
|
|
16
|
+
*/
|
|
17
|
+
export const zGetApiActiveConversationsByCustomerNumberResponse = z.record(z.unknown());
|
|
18
|
+
|
|
9
19
|
export const zGetApiActiveConversationsAgentByAgentNumberPath = z.object({
|
|
10
20
|
agentNumber: z.string(),
|
|
11
21
|
});
|
|
12
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Proxied active-conversations-by-agent payload from the agent server
|
|
25
|
+
*/
|
|
26
|
+
export const zGetApiActiveConversationsAgentByAgentNumberResponse = z.record(z.unknown());
|
|
27
|
+
|
|
13
28
|
export const zPostApiActiveConversationsAgentClaimBody = z.record(z.unknown());
|
|
14
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Success
|
|
32
|
+
*/
|
|
33
|
+
export const zPostApiActiveConversationsAgentClaimResponse = z.object({
|
|
34
|
+
success: z.boolean(),
|
|
35
|
+
});
|
|
36
|
+
|
|
15
37
|
export const zPostApiClearBody = z.record(z.unknown());
|
|
16
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Proxied JSON body from the dialog backend's /api/clear (status code mirrors the upstream response)
|
|
41
|
+
*/
|
|
42
|
+
export const zPostApiClearResponse = z.record(z.unknown());
|
|
43
|
+
|
|
17
44
|
export const zPostApiConversationMemoryProfilesLookupBody = z.record(z.unknown());
|
|
18
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Proxied profiles-lookup payload from the api server
|
|
48
|
+
*/
|
|
49
|
+
export const zPostApiConversationMemoryProfilesLookupResponse = z.record(z.unknown());
|
|
50
|
+
|
|
19
51
|
export const zPostApiConversationMemoryRecallBody = z.record(z.unknown());
|
|
20
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Proxied conversation-memory recall payload from the api server
|
|
55
|
+
*/
|
|
56
|
+
export const zPostApiConversationMemoryRecallResponse = z.record(z.unknown());
|
|
57
|
+
|
|
21
58
|
export const zDeleteApiConversationMemoryResetQuery = z.object({
|
|
22
59
|
profileId: z.string(),
|
|
23
60
|
});
|
|
24
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Proxied conversation-memory reset payload from the api server
|
|
64
|
+
*/
|
|
65
|
+
export const zDeleteApiConversationMemoryResetResponse = z.record(z.unknown());
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Proxied country-configs payload from the agent server
|
|
69
|
+
*/
|
|
70
|
+
export const zGetApiCountryConfigsResponse = z.record(z.unknown());
|
|
71
|
+
|
|
25
72
|
export const zDeleteApiKillConversationByPhonePath = z.object({
|
|
26
73
|
phone: z.string(),
|
|
27
74
|
});
|
|
28
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Proxied kill-conversation payload from the agent server (status mirrors the upstream response)
|
|
78
|
+
*/
|
|
79
|
+
export const zDeleteApiKillConversationByPhoneResponse = z.record(z.unknown());
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Proxied live-numbers deletion payload from the agent server
|
|
83
|
+
*/
|
|
84
|
+
export const zDeleteApiLiveNumbersResponse = z.record(z.unknown());
|
|
85
|
+
|
|
29
86
|
export const zGetApiMessagesQuery = z.object({
|
|
30
87
|
lastId: z.string().optional(),
|
|
31
88
|
phoneNumber: z.string().optional(),
|
|
32
89
|
});
|
|
33
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Success
|
|
93
|
+
*/
|
|
94
|
+
export const zGetApiMessagesResponse = z.object({
|
|
95
|
+
success: z.boolean(),
|
|
96
|
+
messages: z.array(z.record(z.unknown())),
|
|
97
|
+
customerProfile: z.record(z.unknown()),
|
|
98
|
+
realtimeCintel: z.record(z.unknown()),
|
|
99
|
+
});
|
|
100
|
+
|
|
34
101
|
export const zPostApiRealTimeCintelUiBody = z.record(z.unknown());
|
|
35
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Map of intelligenceOperatorId to the operator's parsed uiType; operators whose fetch failed or had no uiType are silently omitted
|
|
105
|
+
*/
|
|
106
|
+
export const zPostApiRealTimeCintelUiResponse = z.record(z.unknown());
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Proxied sync token payload from the api server
|
|
110
|
+
*/
|
|
111
|
+
export const zGetApiSyncTokenResponse = z.record(z.unknown());
|
|
112
|
+
|
|
36
113
|
export const zPostApiTelemetryQuery = z.object({
|
|
37
114
|
ddforward: z.string().optional(),
|
|
38
115
|
});
|
|
116
|
+
|
|
117
|
+
export const zPostApiTelemetryResponse = z.union([z.unknown(), z.record(z.unknown())]);
|
|
118
|
+
|
|
119
|
+
export const zPostApiWebchatChatBody = z.record(z.unknown());
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Proxied response from the agent chat service
|
|
123
|
+
*/
|
|
124
|
+
export const zPostApiWebchatChatResponse = z.record(z.unknown());
|
|
125
|
+
|
|
126
|
+
export const zGetApiWebchatConversationsTokenQuery = z.object({
|
|
127
|
+
identity: z.string().optional(),
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Proxied response from the API conversations-token service
|
|
132
|
+
*/
|
|
133
|
+
export const zGetApiWebchatConversationsTokenResponse = z.record(z.unknown());
|
|
134
|
+
|
|
135
|
+
export const zPostApiWebchatConversationsTokenBody = z.record(z.unknown());
|
|
136
|
+
|
|
137
|
+
export const zPostApiWebchatConversationsTokenQuery = z.object({
|
|
138
|
+
identity: z.string().optional(),
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Proxied response from the API conversations-token service
|
|
143
|
+
*/
|
|
144
|
+
export const zPostApiWebchatConversationsTokenResponse = z.record(z.unknown());
|
|
145
|
+
|
|
146
|
+
export const zPostApiWebchatEndChatBody = z.record(z.unknown());
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Proxied response from the agent live-numbers delete service
|
|
150
|
+
*/
|
|
151
|
+
export const zPostApiWebchatEndChatResponse = z.record(z.unknown());
|
|
152
|
+
|
|
153
|
+
export const zPostApiWebchatLiveAgentChatBody = z.record(z.unknown());
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Proxied response from the API live-agent-webchat-connect service
|
|
157
|
+
*/
|
|
158
|
+
export const zPostApiWebchatLiveAgentChatResponse = z.record(z.unknown());
|
|
159
|
+
|
|
160
|
+
export const zPostApiWebchatLiveAgentWebchatConnectBody = z.record(z.unknown());
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Proxied response from the API live-agent-webchat-connect service
|
|
164
|
+
*/
|
|
165
|
+
export const zPostApiWebchatLiveAgentWebchatConnectResponse = z.record(z.unknown());
|
|
166
|
+
|
|
167
|
+
export const zPostApiWebchatLiveAgentWebchatEndBody = z.record(z.unknown());
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Proxied response from the API live-agent-webchat-end service
|
|
171
|
+
*/
|
|
172
|
+
export const zPostApiWebchatLiveAgentWebchatEndResponse = z.record(z.unknown());
|
|
173
|
+
|
|
174
|
+
export const zPostApiWebchatUiConfigBody = z.record(z.unknown());
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Success
|
|
178
|
+
*/
|
|
179
|
+
export const zPostApiWebchatUiConfigResponse = z.object({
|
|
180
|
+
ui: z.record(z.unknown()),
|
|
181
|
+
linkMap: z.record(z.unknown()),
|
|
182
|
+
hideChatLink: z.boolean(),
|
|
183
|
+
templateObjectId: z.string(),
|
|
184
|
+
templateLanguage: z.string(),
|
|
185
|
+
resolvedCustomerNumber: z.string(),
|
|
186
|
+
resolvedAgentNumber: z.string(),
|
|
187
|
+
templateTitle: z.string(),
|
|
188
|
+
dialogConfig: z.record(z.unknown()),
|
|
189
|
+
dialogSettings: z.record(z.unknown()),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export const zGetApiWebchatVoiceTokenQuery = z.object({
|
|
193
|
+
identity: z.string().optional(),
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Proxied response from the API voice-token service
|
|
198
|
+
*/
|
|
199
|
+
export const zGetApiWebchatVoiceTokenResponse = z.record(z.unknown());
|
|
200
|
+
|
|
201
|
+
export const zPostApiWebchatWebchatSendBody = z.record(z.unknown());
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Proxied response from the agent chat service
|
|
205
|
+
*/
|
|
206
|
+
export const zPostApiWebchatWebchatSendResponse = z.record(z.unknown());
|