@gtmi/ramp-dialog-client 0.0.1
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/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/es/index.d.mts +769 -0
- package/dist/es/index.mjs +1042 -0
- package/package.json +46 -0
- package/src/client.test.ts +39 -0
- package/src/client.ts +15 -0
- package/src/client.types.ts +11 -0
- package/src/generated/client/client.gen.ts +277 -0
- package/src/generated/client/index.ts +27 -0
- package/src/generated/client/types.gen.ts +214 -0
- package/src/generated/client/utils.gen.ts +316 -0
- package/src/generated/client.gen.ts +18 -0
- package/src/generated/core/auth.gen.ts +48 -0
- package/src/generated/core/bodySerializer.gen.ts +82 -0
- package/src/generated/core/params.gen.ts +178 -0
- package/src/generated/core/pathSerializer.gen.ts +171 -0
- package/src/generated/core/queryKeySerializer.gen.ts +117 -0
- package/src/generated/core/serverSentEvents.gen.ts +242 -0
- package/src/generated/core/types.gen.ts +110 -0
- package/src/generated/core/utils.gen.ts +140 -0
- package/src/generated/index.ts +64 -0
- package/src/generated/sdk.gen.ts +408 -0
- package/src/generated/types.gen.ts +322 -0
- package/src/generated/zod.gen.ts +38 -0
- package/src/index.ts +7 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
export type ClientOptions = {
|
|
4
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type GetApiActiveConversationsByCustomerNumberData = {
|
|
8
|
+
body?: never;
|
|
9
|
+
path: {
|
|
10
|
+
customerNumber: string;
|
|
11
|
+
};
|
|
12
|
+
query?: never;
|
|
13
|
+
url: '/api/active-conversations/{customerNumber}';
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type GetApiActiveConversationsByCustomerNumberErrors = {
|
|
17
|
+
/**
|
|
18
|
+
* Internal server error
|
|
19
|
+
*/
|
|
20
|
+
500: unknown;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type GetApiActiveConversationsByCustomerNumberResponses = {
|
|
24
|
+
/**
|
|
25
|
+
* Success
|
|
26
|
+
*/
|
|
27
|
+
200: unknown;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type GetApiActiveConversationsAgentByAgentNumberData = {
|
|
31
|
+
body?: never;
|
|
32
|
+
path: {
|
|
33
|
+
agentNumber: string;
|
|
34
|
+
};
|
|
35
|
+
query?: never;
|
|
36
|
+
url: '/api/active-conversations/agent/{agentNumber}';
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type GetApiActiveConversationsAgentByAgentNumberErrors = {
|
|
40
|
+
/**
|
|
41
|
+
* Internal server error
|
|
42
|
+
*/
|
|
43
|
+
500: unknown;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type GetApiActiveConversationsAgentByAgentNumberResponses = {
|
|
47
|
+
/**
|
|
48
|
+
* Success
|
|
49
|
+
*/
|
|
50
|
+
200: unknown;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type PostApiActiveConversationsAgentClaimData = {
|
|
54
|
+
body: {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
path?: never;
|
|
58
|
+
query?: never;
|
|
59
|
+
url: '/api/active-conversations/agent/claim';
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type PostApiActiveConversationsAgentClaimErrors = {
|
|
63
|
+
/**
|
|
64
|
+
* Internal server error
|
|
65
|
+
*/
|
|
66
|
+
500: unknown;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type PostApiActiveConversationsAgentClaimResponses = {
|
|
70
|
+
/**
|
|
71
|
+
* Success
|
|
72
|
+
*/
|
|
73
|
+
200: unknown;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type PostApiClearData = {
|
|
77
|
+
body: {
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
};
|
|
80
|
+
path?: never;
|
|
81
|
+
query?: never;
|
|
82
|
+
url: '/api/clear';
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type PostApiClearErrors = {
|
|
86
|
+
/**
|
|
87
|
+
* Internal server error
|
|
88
|
+
*/
|
|
89
|
+
500: unknown;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type PostApiClearResponses = {
|
|
93
|
+
/**
|
|
94
|
+
* Success
|
|
95
|
+
*/
|
|
96
|
+
200: unknown;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type PostApiConversationMemoryProfilesLookupData = {
|
|
100
|
+
body: {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
path?: never;
|
|
104
|
+
query?: never;
|
|
105
|
+
url: '/api/conversation-memory/profiles-lookup';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export type PostApiConversationMemoryProfilesLookupErrors = {
|
|
109
|
+
/**
|
|
110
|
+
* Internal server error
|
|
111
|
+
*/
|
|
112
|
+
500: unknown;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type PostApiConversationMemoryProfilesLookupResponses = {
|
|
116
|
+
/**
|
|
117
|
+
* Success
|
|
118
|
+
*/
|
|
119
|
+
200: unknown;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type PostApiConversationMemoryRecallData = {
|
|
123
|
+
body: {
|
|
124
|
+
[key: string]: unknown;
|
|
125
|
+
};
|
|
126
|
+
path?: never;
|
|
127
|
+
query?: never;
|
|
128
|
+
url: '/api/conversation-memory/recall';
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type PostApiConversationMemoryRecallErrors = {
|
|
132
|
+
/**
|
|
133
|
+
* Internal server error
|
|
134
|
+
*/
|
|
135
|
+
500: unknown;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export type PostApiConversationMemoryRecallResponses = {
|
|
139
|
+
/**
|
|
140
|
+
* Success
|
|
141
|
+
*/
|
|
142
|
+
200: unknown;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type DeleteApiConversationMemoryResetData = {
|
|
146
|
+
body?: never;
|
|
147
|
+
path?: never;
|
|
148
|
+
query: {
|
|
149
|
+
profileId: string;
|
|
150
|
+
};
|
|
151
|
+
url: '/api/conversation-memory/reset';
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export type DeleteApiConversationMemoryResetErrors = {
|
|
155
|
+
/**
|
|
156
|
+
* Internal server error
|
|
157
|
+
*/
|
|
158
|
+
500: unknown;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type DeleteApiConversationMemoryResetResponses = {
|
|
162
|
+
/**
|
|
163
|
+
* Success
|
|
164
|
+
*/
|
|
165
|
+
200: unknown;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type GetApiCountryConfigsData = {
|
|
169
|
+
body?: never;
|
|
170
|
+
path?: never;
|
|
171
|
+
query?: never;
|
|
172
|
+
url: '/api/country-configs';
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export type GetApiCountryConfigsErrors = {
|
|
176
|
+
/**
|
|
177
|
+
* Internal server error
|
|
178
|
+
*/
|
|
179
|
+
500: unknown;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export type GetApiCountryConfigsResponses = {
|
|
183
|
+
/**
|
|
184
|
+
* Success
|
|
185
|
+
*/
|
|
186
|
+
200: unknown;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export type DeleteApiKillConversationByPhoneData = {
|
|
190
|
+
body?: never;
|
|
191
|
+
path: {
|
|
192
|
+
phone: string;
|
|
193
|
+
};
|
|
194
|
+
query?: never;
|
|
195
|
+
url: '/api/kill-conversation/{phone}';
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type DeleteApiKillConversationByPhoneErrors = {
|
|
199
|
+
/**
|
|
200
|
+
* Internal server error
|
|
201
|
+
*/
|
|
202
|
+
500: unknown;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export type DeleteApiKillConversationByPhoneResponses = {
|
|
206
|
+
/**
|
|
207
|
+
* Success
|
|
208
|
+
*/
|
|
209
|
+
200: unknown;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export type DeleteApiLiveNumbersData = {
|
|
213
|
+
body?: never;
|
|
214
|
+
path?: never;
|
|
215
|
+
query?: never;
|
|
216
|
+
url: '/api/live-numbers';
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export type DeleteApiLiveNumbersErrors = {
|
|
220
|
+
/**
|
|
221
|
+
* Internal server error
|
|
222
|
+
*/
|
|
223
|
+
500: unknown;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export type DeleteApiLiveNumbersResponses = {
|
|
227
|
+
/**
|
|
228
|
+
* Success
|
|
229
|
+
*/
|
|
230
|
+
200: unknown;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export type GetApiMessagesData = {
|
|
234
|
+
body?: never;
|
|
235
|
+
path?: never;
|
|
236
|
+
query?: {
|
|
237
|
+
lastId?: string;
|
|
238
|
+
phoneNumber?: string;
|
|
239
|
+
};
|
|
240
|
+
url: '/api/messages';
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export type GetApiMessagesErrors = {
|
|
244
|
+
/**
|
|
245
|
+
* Internal server error
|
|
246
|
+
*/
|
|
247
|
+
500: unknown;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export type GetApiMessagesResponses = {
|
|
251
|
+
/**
|
|
252
|
+
* Success
|
|
253
|
+
*/
|
|
254
|
+
200: unknown;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type PostApiRealTimeCintelUiData = {
|
|
258
|
+
body: {
|
|
259
|
+
[key: string]: unknown;
|
|
260
|
+
};
|
|
261
|
+
path?: never;
|
|
262
|
+
query?: never;
|
|
263
|
+
url: '/api/real-time-cintel-ui';
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export type PostApiRealTimeCintelUiErrors = {
|
|
267
|
+
/**
|
|
268
|
+
* Internal server error
|
|
269
|
+
*/
|
|
270
|
+
500: unknown;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type PostApiRealTimeCintelUiResponses = {
|
|
274
|
+
/**
|
|
275
|
+
* Success
|
|
276
|
+
*/
|
|
277
|
+
200: unknown;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export type GetApiSyncTokenData = {
|
|
281
|
+
body?: never;
|
|
282
|
+
path?: never;
|
|
283
|
+
query?: never;
|
|
284
|
+
url: '/api/sync-token';
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export type GetApiSyncTokenErrors = {
|
|
288
|
+
/**
|
|
289
|
+
* Internal server error
|
|
290
|
+
*/
|
|
291
|
+
500: unknown;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export type GetApiSyncTokenResponses = {
|
|
295
|
+
/**
|
|
296
|
+
* Success
|
|
297
|
+
*/
|
|
298
|
+
200: unknown;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export type PostApiTelemetryData = {
|
|
302
|
+
body?: never;
|
|
303
|
+
path?: never;
|
|
304
|
+
query?: {
|
|
305
|
+
ddforward?: string;
|
|
306
|
+
};
|
|
307
|
+
url: '/api/telemetry';
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export type PostApiTelemetryErrors = {
|
|
311
|
+
/**
|
|
312
|
+
* Internal server error
|
|
313
|
+
*/
|
|
314
|
+
500: unknown;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
export type PostApiTelemetryResponses = {
|
|
318
|
+
/**
|
|
319
|
+
* Success
|
|
320
|
+
*/
|
|
321
|
+
200: unknown;
|
|
322
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
export const zGetApiActiveConversationsByCustomerNumberPath = z.object({
|
|
6
|
+
customerNumber: z.string(),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const zGetApiActiveConversationsAgentByAgentNumberPath = z.object({
|
|
10
|
+
agentNumber: z.string(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const zPostApiActiveConversationsAgentClaimBody = z.record(z.unknown());
|
|
14
|
+
|
|
15
|
+
export const zPostApiClearBody = z.record(z.unknown());
|
|
16
|
+
|
|
17
|
+
export const zPostApiConversationMemoryProfilesLookupBody = z.record(z.unknown());
|
|
18
|
+
|
|
19
|
+
export const zPostApiConversationMemoryRecallBody = z.record(z.unknown());
|
|
20
|
+
|
|
21
|
+
export const zDeleteApiConversationMemoryResetQuery = z.object({
|
|
22
|
+
profileId: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export const zDeleteApiKillConversationByPhonePath = z.object({
|
|
26
|
+
phone: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const zGetApiMessagesQuery = z.object({
|
|
30
|
+
lastId: z.string().optional(),
|
|
31
|
+
phoneNumber: z.string().optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const zPostApiRealTimeCintelUiBody = z.record(z.unknown());
|
|
35
|
+
|
|
36
|
+
export const zPostApiTelemetryQuery = z.object({
|
|
37
|
+
ddforward: z.string().optional(),
|
|
38
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createRampDialogClient } from './client';
|
|
2
|
+
export { type CreateRampDialogClientOptions } from './client.types';
|
|
3
|
+
|
|
4
|
+
export type { Client, Config, RequestResult } from './generated/client';
|
|
5
|
+
|
|
6
|
+
export * from './generated';
|
|
7
|
+
export * as schemas from './generated/zod.gen';
|