@kl1/contracts 1.3.38 → 1.3.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/chat/index.d.ts +428 -0
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +95 -0
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +56 -0
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +957 -446
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +56 -0
- package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/index.d.ts +57 -3
- package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +56 -0
- package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/line/index.d.ts +56 -0
- package/dist/api-contracts/src/line/index.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/index.d.ts +56 -0
- package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +527 -526
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telegram/index.d.ts +56 -0
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +56 -0
- package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
- package/dist/api-contracts/src/webchat/index.d.ts +56 -0
- package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/index.d.ts +56 -0
- package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
- package/dist/api-contracts/src/workflow-rule/index.d.ts +63 -0
- package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
- package/dist/index.js +37 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,10 +1,11 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { PresenceStatusSchema, TPresenceStatusOption } from './schema';
|
2
|
+
import { PresenceStatusSchema, TPresenceStatusOption, UserPresenceStatusSchema } from './schema';
|
3
3
|
import { CreatePresenceStatusSchema, UpdatePresenceStatusSchema } from './validation';
|
4
4
|
export type CreatePresenceStatusRequest = z.infer<typeof CreatePresenceStatusSchema>;
|
5
5
|
export type UpdatePresenceStatusRequest = z.infer<typeof UpdatePresenceStatusSchema>;
|
6
6
|
export type GetPresenceStatusRequest = z.infer<typeof PresenceStatusSchema>;
|
7
7
|
export type PresenceStatusOption = z.infer<typeof TPresenceStatusOption>;
|
8
|
+
export type UserPresenceStatus = z.infer<typeof UserPresenceStatusSchema>;
|
8
9
|
export declare const presenceStatusContract: {
|
9
10
|
getAllStatus: {
|
10
11
|
summary: "Get all presence status list.";
|
@@ -121,34 +122,220 @@ export declare const presenceStatusContract: {
|
|
121
122
|
'x-client-timezone'?: string | undefined;
|
122
123
|
}>>>;
|
123
124
|
};
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
displayName: z.ZodString;
|
128
|
-
description: z.ZodOptional<z.ZodString>;
|
129
|
-
position: z.ZodNumber;
|
130
|
-
emoji: z.ZodString;
|
131
|
-
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
133
|
-
emoji: string;
|
134
|
-
position: number;
|
135
|
-
systemName: string;
|
136
|
-
displayName: string;
|
137
|
-
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
138
|
-
description?: string | undefined;
|
139
|
-
}, {
|
140
|
-
emoji: string;
|
141
|
-
position: number;
|
142
|
-
systemName: string;
|
143
|
-
displayName: string;
|
144
|
-
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
145
|
-
description?: string | undefined;
|
146
|
-
}>;
|
147
|
-
summary: "Create a new presence status.";
|
148
|
-
method: "POST";
|
125
|
+
getAllUserPresenceStatus: {
|
126
|
+
summary: "Get all users presence status";
|
127
|
+
method: "GET";
|
149
128
|
responses: {
|
150
|
-
|
151
|
-
|
129
|
+
200: z.ZodArray<z.ZodObject<{
|
130
|
+
id: z.ZodString;
|
131
|
+
createdAt: z.ZodDate;
|
132
|
+
updatedAt: z.ZodDate;
|
133
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
134
|
+
userId: z.ZodString;
|
135
|
+
user: z.ZodObject<{
|
136
|
+
name: z.ZodString;
|
137
|
+
id: z.ZodString;
|
138
|
+
address: z.ZodNullable<z.ZodString>;
|
139
|
+
email: z.ZodString;
|
140
|
+
createdAt: z.ZodDate;
|
141
|
+
updatedAt: z.ZodDate;
|
142
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
143
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
144
|
+
password: z.ZodString;
|
145
|
+
phone: z.ZodNullable<z.ZodString>;
|
146
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
147
|
+
roles: z.ZodArray<z.ZodObject<{
|
148
|
+
id: z.ZodString;
|
149
|
+
createdAt: z.ZodDate;
|
150
|
+
updatedAt: z.ZodDate;
|
151
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
152
|
+
systemName: z.ZodString;
|
153
|
+
displayName: z.ZodString;
|
154
|
+
description: z.ZodNullable<z.ZodString>;
|
155
|
+
permissions: z.ZodArray<z.ZodObject<{
|
156
|
+
id: z.ZodString;
|
157
|
+
createdAt: z.ZodDate;
|
158
|
+
updatedAt: z.ZodDate;
|
159
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
160
|
+
systemName: z.ZodString;
|
161
|
+
displayName: z.ZodString;
|
162
|
+
description: z.ZodNullable<z.ZodString>;
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
164
|
+
id: string;
|
165
|
+
description: string | null;
|
166
|
+
createdAt: Date;
|
167
|
+
updatedAt: Date;
|
168
|
+
deletedAt: Date | null;
|
169
|
+
systemName: string;
|
170
|
+
displayName: string;
|
171
|
+
}, {
|
172
|
+
id: string;
|
173
|
+
description: string | null;
|
174
|
+
createdAt: Date;
|
175
|
+
updatedAt: Date;
|
176
|
+
deletedAt: Date | null;
|
177
|
+
systemName: string;
|
178
|
+
displayName: string;
|
179
|
+
}>, "many">;
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
181
|
+
id: string;
|
182
|
+
description: string | null;
|
183
|
+
createdAt: Date;
|
184
|
+
updatedAt: Date;
|
185
|
+
deletedAt: Date | null;
|
186
|
+
systemName: string;
|
187
|
+
displayName: string;
|
188
|
+
permissions: {
|
189
|
+
id: string;
|
190
|
+
description: string | null;
|
191
|
+
createdAt: Date;
|
192
|
+
updatedAt: Date;
|
193
|
+
deletedAt: Date | null;
|
194
|
+
systemName: string;
|
195
|
+
displayName: string;
|
196
|
+
}[];
|
197
|
+
}, {
|
198
|
+
id: string;
|
199
|
+
description: string | null;
|
200
|
+
createdAt: Date;
|
201
|
+
updatedAt: Date;
|
202
|
+
deletedAt: Date | null;
|
203
|
+
systemName: string;
|
204
|
+
displayName: string;
|
205
|
+
permissions: {
|
206
|
+
id: string;
|
207
|
+
description: string | null;
|
208
|
+
createdAt: Date;
|
209
|
+
updatedAt: Date;
|
210
|
+
deletedAt: Date | null;
|
211
|
+
systemName: string;
|
212
|
+
displayName: string;
|
213
|
+
}[];
|
214
|
+
}>, "many">;
|
215
|
+
extension: z.ZodObject<{
|
216
|
+
id: z.ZodString;
|
217
|
+
createdAt: z.ZodDate;
|
218
|
+
updatedAt: z.ZodDate;
|
219
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
220
|
+
userId: z.ZodNullable<z.ZodString>;
|
221
|
+
sipServerUrl: z.ZodString;
|
222
|
+
sipUserName: z.ZodString;
|
223
|
+
webphoneLoginUser: z.ZodString;
|
224
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
225
|
+
extensionName: z.ZodString;
|
226
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
228
|
+
id: string;
|
229
|
+
createdAt: Date;
|
230
|
+
updatedAt: Date;
|
231
|
+
deletedAt: Date | null;
|
232
|
+
userId: string | null;
|
233
|
+
sipServerUrl: string;
|
234
|
+
sipUserName: string;
|
235
|
+
webphoneLoginUser: string;
|
236
|
+
extensionId: string | null;
|
237
|
+
extensionName: string;
|
238
|
+
telephonySignature: string | null;
|
239
|
+
}, {
|
240
|
+
id: string;
|
241
|
+
createdAt: Date;
|
242
|
+
updatedAt: Date;
|
243
|
+
deletedAt: Date | null;
|
244
|
+
userId: string | null;
|
245
|
+
sipServerUrl: string;
|
246
|
+
sipUserName: string;
|
247
|
+
webphoneLoginUser: string;
|
248
|
+
extensionId: string | null;
|
249
|
+
extensionName: string;
|
250
|
+
telephonySignature: string | null;
|
251
|
+
}>;
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
253
|
+
name: string;
|
254
|
+
id: string;
|
255
|
+
address: string | null;
|
256
|
+
email: string;
|
257
|
+
createdAt: Date;
|
258
|
+
updatedAt: Date;
|
259
|
+
deletedAt: Date | null;
|
260
|
+
emailVerifiedAt: Date | null;
|
261
|
+
password: string;
|
262
|
+
phone: string | null;
|
263
|
+
notificationCount: number | null;
|
264
|
+
roles: {
|
265
|
+
id: string;
|
266
|
+
description: string | null;
|
267
|
+
createdAt: Date;
|
268
|
+
updatedAt: Date;
|
269
|
+
deletedAt: Date | null;
|
270
|
+
systemName: string;
|
271
|
+
displayName: string;
|
272
|
+
permissions: {
|
273
|
+
id: string;
|
274
|
+
description: string | null;
|
275
|
+
createdAt: Date;
|
276
|
+
updatedAt: Date;
|
277
|
+
deletedAt: Date | null;
|
278
|
+
systemName: string;
|
279
|
+
displayName: string;
|
280
|
+
}[];
|
281
|
+
}[];
|
282
|
+
extension: {
|
283
|
+
id: string;
|
284
|
+
createdAt: Date;
|
285
|
+
updatedAt: Date;
|
286
|
+
deletedAt: Date | null;
|
287
|
+
userId: string | null;
|
288
|
+
sipServerUrl: string;
|
289
|
+
sipUserName: string;
|
290
|
+
webphoneLoginUser: string;
|
291
|
+
extensionId: string | null;
|
292
|
+
extensionName: string;
|
293
|
+
telephonySignature: string | null;
|
294
|
+
};
|
295
|
+
}, {
|
296
|
+
name: string;
|
297
|
+
id: string;
|
298
|
+
address: string | null;
|
299
|
+
email: string;
|
300
|
+
createdAt: Date;
|
301
|
+
updatedAt: Date;
|
302
|
+
deletedAt: Date | null;
|
303
|
+
emailVerifiedAt: Date | null;
|
304
|
+
password: string;
|
305
|
+
phone: string | null;
|
306
|
+
notificationCount: number | null;
|
307
|
+
roles: {
|
308
|
+
id: string;
|
309
|
+
description: string | null;
|
310
|
+
createdAt: Date;
|
311
|
+
updatedAt: Date;
|
312
|
+
deletedAt: Date | null;
|
313
|
+
systemName: string;
|
314
|
+
displayName: string;
|
315
|
+
permissions: {
|
316
|
+
id: string;
|
317
|
+
description: string | null;
|
318
|
+
createdAt: Date;
|
319
|
+
updatedAt: Date;
|
320
|
+
deletedAt: Date | null;
|
321
|
+
systemName: string;
|
322
|
+
displayName: string;
|
323
|
+
}[];
|
324
|
+
}[];
|
325
|
+
extension: {
|
326
|
+
id: string;
|
327
|
+
createdAt: Date;
|
328
|
+
updatedAt: Date;
|
329
|
+
deletedAt: Date | null;
|
330
|
+
userId: string | null;
|
331
|
+
sipServerUrl: string;
|
332
|
+
sipUserName: string;
|
333
|
+
webphoneLoginUser: string;
|
334
|
+
extensionId: string | null;
|
335
|
+
extensionName: string;
|
336
|
+
telephonySignature: string | null;
|
337
|
+
};
|
338
|
+
}>;
|
152
339
|
presenceStatus: z.ZodObject<{
|
153
340
|
id: z.ZodString;
|
154
341
|
createdAt: z.ZodDate;
|
@@ -184,21 +371,55 @@ export declare const presenceStatusContract: {
|
|
184
371
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
185
372
|
}>;
|
186
373
|
}, "strip", z.ZodTypeAny, {
|
187
|
-
|
188
|
-
|
189
|
-
|
374
|
+
id: string;
|
375
|
+
user: {
|
376
|
+
name: string;
|
190
377
|
id: string;
|
191
|
-
|
192
|
-
|
378
|
+
address: string | null;
|
379
|
+
email: string;
|
193
380
|
createdAt: Date;
|
194
381
|
updatedAt: Date;
|
195
382
|
deletedAt: Date | null;
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
383
|
+
emailVerifiedAt: Date | null;
|
384
|
+
password: string;
|
385
|
+
phone: string | null;
|
386
|
+
notificationCount: number | null;
|
387
|
+
roles: {
|
388
|
+
id: string;
|
389
|
+
description: string | null;
|
390
|
+
createdAt: Date;
|
391
|
+
updatedAt: Date;
|
392
|
+
deletedAt: Date | null;
|
393
|
+
systemName: string;
|
394
|
+
displayName: string;
|
395
|
+
permissions: {
|
396
|
+
id: string;
|
397
|
+
description: string | null;
|
398
|
+
createdAt: Date;
|
399
|
+
updatedAt: Date;
|
400
|
+
deletedAt: Date | null;
|
401
|
+
systemName: string;
|
402
|
+
displayName: string;
|
403
|
+
}[];
|
404
|
+
}[];
|
405
|
+
extension: {
|
406
|
+
id: string;
|
407
|
+
createdAt: Date;
|
408
|
+
updatedAt: Date;
|
409
|
+
deletedAt: Date | null;
|
410
|
+
userId: string | null;
|
411
|
+
sipServerUrl: string;
|
412
|
+
sipUserName: string;
|
413
|
+
webphoneLoginUser: string;
|
414
|
+
extensionId: string | null;
|
415
|
+
extensionName: string;
|
416
|
+
telephonySignature: string | null;
|
417
|
+
};
|
418
|
+
};
|
419
|
+
createdAt: Date;
|
420
|
+
updatedAt: Date;
|
421
|
+
deletedAt: Date | null;
|
422
|
+
userId: string;
|
202
423
|
presenceStatus: {
|
203
424
|
emoji: string | null;
|
204
425
|
id: string;
|
@@ -211,118 +432,69 @@ export declare const presenceStatusContract: {
|
|
211
432
|
displayName: string;
|
212
433
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
213
434
|
};
|
214
|
-
}>;
|
215
|
-
400: z.ZodObject<{
|
216
|
-
message: z.ZodString;
|
217
|
-
}, "strip", z.ZodTypeAny, {
|
218
|
-
message: string;
|
219
|
-
}, {
|
220
|
-
message: string;
|
221
|
-
}>;
|
222
|
-
401: z.ZodObject<{
|
223
|
-
message: z.ZodString;
|
224
|
-
error: z.ZodAny;
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
226
|
-
message: string;
|
227
|
-
error?: any;
|
228
|
-
}, {
|
229
|
-
message: string;
|
230
|
-
error?: any;
|
231
|
-
}>;
|
232
|
-
404: z.ZodObject<{
|
233
|
-
message: z.ZodString;
|
234
|
-
error: z.ZodAny;
|
235
|
-
}, "strip", z.ZodTypeAny, {
|
236
|
-
message: string;
|
237
|
-
error?: any;
|
238
|
-
}, {
|
239
|
-
message: string;
|
240
|
-
error?: any;
|
241
|
-
}>;
|
242
|
-
422: z.ZodObject<{
|
243
|
-
message: z.ZodString;
|
244
|
-
error: z.ZodAny;
|
245
|
-
}, "strip", z.ZodTypeAny, {
|
246
|
-
message: string;
|
247
|
-
error?: any;
|
248
|
-
}, {
|
249
|
-
message: string;
|
250
|
-
error?: any;
|
251
|
-
}>;
|
252
|
-
500: z.ZodObject<{
|
253
|
-
message: z.ZodString;
|
254
|
-
error: z.ZodAny;
|
255
|
-
}, "strip", z.ZodTypeAny, {
|
256
|
-
message: string;
|
257
|
-
error?: any;
|
258
|
-
}, {
|
259
|
-
message: string;
|
260
|
-
error?: any;
|
261
|
-
}>;
|
262
|
-
};
|
263
|
-
path: "ms/presence_status";
|
264
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
265
|
-
'x-tenant': z.ZodString;
|
266
|
-
'x-service-token': z.ZodString;
|
267
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
268
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
269
|
-
}, "strip", z.ZodTypeAny, {
|
270
|
-
'x-tenant': string;
|
271
|
-
'x-service-token': string;
|
272
|
-
'x-client-timezone': string;
|
273
|
-
'x-code'?: string | undefined;
|
274
|
-
}, {
|
275
|
-
'x-tenant': string;
|
276
|
-
'x-service-token': string;
|
277
|
-
'x-code'?: string | undefined;
|
278
|
-
'x-client-timezone'?: string | undefined;
|
279
|
-
}>>>;
|
280
|
-
};
|
281
|
-
getPresenceStatusById: {
|
282
|
-
summary: "Get presence status by id";
|
283
|
-
method: "GET";
|
284
|
-
pathParams: z.ZodObject<{
|
285
|
-
id: z.ZodString;
|
286
|
-
}, "strip", z.ZodTypeAny, {
|
287
|
-
id: string;
|
288
|
-
}, {
|
289
|
-
id: string;
|
290
|
-
}>;
|
291
|
-
responses: {
|
292
|
-
200: z.ZodObject<{
|
293
|
-
id: z.ZodString;
|
294
|
-
createdAt: z.ZodDate;
|
295
|
-
updatedAt: z.ZodDate;
|
296
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
297
|
-
systemName: z.ZodString;
|
298
|
-
displayName: z.ZodString;
|
299
|
-
description: z.ZodNullable<z.ZodString>;
|
300
|
-
position: z.ZodNumber;
|
301
|
-
emoji: z.ZodNullable<z.ZodString>;
|
302
|
-
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
304
|
-
emoji: string | null;
|
305
|
-
id: string;
|
306
|
-
position: number;
|
307
|
-
description: string | null;
|
308
|
-
createdAt: Date;
|
309
|
-
updatedAt: Date;
|
310
|
-
deletedAt: Date | null;
|
311
|
-
systemName: string;
|
312
|
-
displayName: string;
|
313
|
-
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
314
435
|
}, {
|
315
|
-
emoji: string | null;
|
316
436
|
id: string;
|
317
|
-
|
318
|
-
|
437
|
+
user: {
|
438
|
+
name: string;
|
439
|
+
id: string;
|
440
|
+
address: string | null;
|
441
|
+
email: string;
|
442
|
+
createdAt: Date;
|
443
|
+
updatedAt: Date;
|
444
|
+
deletedAt: Date | null;
|
445
|
+
emailVerifiedAt: Date | null;
|
446
|
+
password: string;
|
447
|
+
phone: string | null;
|
448
|
+
notificationCount: number | null;
|
449
|
+
roles: {
|
450
|
+
id: string;
|
451
|
+
description: string | null;
|
452
|
+
createdAt: Date;
|
453
|
+
updatedAt: Date;
|
454
|
+
deletedAt: Date | null;
|
455
|
+
systemName: string;
|
456
|
+
displayName: string;
|
457
|
+
permissions: {
|
458
|
+
id: string;
|
459
|
+
description: string | null;
|
460
|
+
createdAt: Date;
|
461
|
+
updatedAt: Date;
|
462
|
+
deletedAt: Date | null;
|
463
|
+
systemName: string;
|
464
|
+
displayName: string;
|
465
|
+
}[];
|
466
|
+
}[];
|
467
|
+
extension: {
|
468
|
+
id: string;
|
469
|
+
createdAt: Date;
|
470
|
+
updatedAt: Date;
|
471
|
+
deletedAt: Date | null;
|
472
|
+
userId: string | null;
|
473
|
+
sipServerUrl: string;
|
474
|
+
sipUserName: string;
|
475
|
+
webphoneLoginUser: string;
|
476
|
+
extensionId: string | null;
|
477
|
+
extensionName: string;
|
478
|
+
telephonySignature: string | null;
|
479
|
+
};
|
480
|
+
};
|
319
481
|
createdAt: Date;
|
320
482
|
updatedAt: Date;
|
321
483
|
deletedAt: Date | null;
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
484
|
+
userId: string;
|
485
|
+
presenceStatus: {
|
486
|
+
emoji: string | null;
|
487
|
+
id: string;
|
488
|
+
position: number;
|
489
|
+
description: string | null;
|
490
|
+
createdAt: Date;
|
491
|
+
updatedAt: Date;
|
492
|
+
deletedAt: Date | null;
|
493
|
+
systemName: string;
|
494
|
+
displayName: string;
|
495
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
496
|
+
};
|
497
|
+
}>, "many">;
|
326
498
|
400: z.ZodObject<{
|
327
499
|
message: z.ZodString;
|
328
500
|
}, "strip", z.ZodTypeAny, {
|
@@ -340,26 +512,6 @@ export declare const presenceStatusContract: {
|
|
340
512
|
message: string;
|
341
513
|
error?: any;
|
342
514
|
}>;
|
343
|
-
404: z.ZodObject<{
|
344
|
-
message: z.ZodString;
|
345
|
-
error: z.ZodAny;
|
346
|
-
}, "strip", z.ZodTypeAny, {
|
347
|
-
message: string;
|
348
|
-
error?: any;
|
349
|
-
}, {
|
350
|
-
message: string;
|
351
|
-
error?: any;
|
352
|
-
}>;
|
353
|
-
422: z.ZodObject<{
|
354
|
-
message: z.ZodString;
|
355
|
-
error: z.ZodAny;
|
356
|
-
}, "strip", z.ZodTypeAny, {
|
357
|
-
message: string;
|
358
|
-
error?: any;
|
359
|
-
}, {
|
360
|
-
message: string;
|
361
|
-
error?: any;
|
362
|
-
}>;
|
363
515
|
500: z.ZodObject<{
|
364
516
|
message: z.ZodString;
|
365
517
|
error: z.ZodAny;
|
@@ -371,7 +523,7 @@ export declare const presenceStatusContract: {
|
|
371
523
|
error?: any;
|
372
524
|
}>;
|
373
525
|
};
|
374
|
-
path: "ms/presence_status
|
526
|
+
path: "ms/presence_status/ps/user-presence-status";
|
375
527
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
376
528
|
'x-tenant': z.ZodString;
|
377
529
|
'x-service-token': z.ZodString;
|
@@ -389,7 +541,7 @@ export declare const presenceStatusContract: {
|
|
389
541
|
'x-client-timezone'?: string | undefined;
|
390
542
|
}>>>;
|
391
543
|
};
|
392
|
-
|
544
|
+
createPresenceStatus: {
|
393
545
|
body: z.ZodObject<{
|
394
546
|
systemName: z.ZodString;
|
395
547
|
displayName: z.ZodString;
|
@@ -412,15 +564,8 @@ export declare const presenceStatusContract: {
|
|
412
564
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
413
565
|
description?: string | undefined;
|
414
566
|
}>;
|
415
|
-
summary: "
|
416
|
-
method: "
|
417
|
-
pathParams: z.ZodObject<{
|
418
|
-
id: z.ZodString;
|
419
|
-
}, "strip", z.ZodTypeAny, {
|
420
|
-
id: string;
|
421
|
-
}, {
|
422
|
-
id: string;
|
423
|
-
}>;
|
567
|
+
summary: "Create a new presence status.";
|
568
|
+
method: "POST";
|
424
569
|
responses: {
|
425
570
|
201: z.ZodObject<{
|
426
571
|
requestId: z.ZodString;
|
@@ -535,7 +680,7 @@ export declare const presenceStatusContract: {
|
|
535
680
|
error?: any;
|
536
681
|
}>;
|
537
682
|
};
|
538
|
-
path: "ms/presence_status
|
683
|
+
path: "ms/presence_status";
|
539
684
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
540
685
|
'x-tenant': z.ZodString;
|
541
686
|
'x-service-token': z.ZodString;
|
@@ -553,10 +698,9 @@ export declare const presenceStatusContract: {
|
|
553
698
|
'x-client-timezone'?: string | undefined;
|
554
699
|
}>>>;
|
555
700
|
};
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
method: "DELETE";
|
701
|
+
getPresenceStatusById: {
|
702
|
+
summary: "Get presence status by id";
|
703
|
+
method: "GET";
|
560
704
|
pathParams: z.ZodObject<{
|
561
705
|
id: z.ZodString;
|
562
706
|
}, "strip", z.ZodTypeAny, {
|
@@ -566,16 +710,47 @@ export declare const presenceStatusContract: {
|
|
566
710
|
}>;
|
567
711
|
responses: {
|
568
712
|
200: z.ZodObject<{
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
713
|
+
id: z.ZodString;
|
714
|
+
createdAt: z.ZodDate;
|
715
|
+
updatedAt: z.ZodDate;
|
716
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
717
|
+
systemName: z.ZodString;
|
718
|
+
displayName: z.ZodString;
|
719
|
+
description: z.ZodNullable<z.ZodString>;
|
720
|
+
position: z.ZodNumber;
|
721
|
+
emoji: z.ZodNullable<z.ZodString>;
|
722
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
724
|
+
emoji: string | null;
|
725
|
+
id: string;
|
726
|
+
position: number;
|
727
|
+
description: string | null;
|
728
|
+
createdAt: Date;
|
729
|
+
updatedAt: Date;
|
730
|
+
deletedAt: Date | null;
|
731
|
+
systemName: string;
|
732
|
+
displayName: string;
|
733
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
734
|
+
}, {
|
735
|
+
emoji: string | null;
|
736
|
+
id: string;
|
737
|
+
position: number;
|
738
|
+
description: string | null;
|
739
|
+
createdAt: Date;
|
740
|
+
updatedAt: Date;
|
741
|
+
deletedAt: Date | null;
|
742
|
+
systemName: string;
|
743
|
+
displayName: string;
|
744
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
577
745
|
}>;
|
578
|
-
|
746
|
+
400: z.ZodObject<{
|
747
|
+
message: z.ZodString;
|
748
|
+
}, "strip", z.ZodTypeAny, {
|
749
|
+
message: string;
|
750
|
+
}, {
|
751
|
+
message: string;
|
752
|
+
}>;
|
753
|
+
401: z.ZodObject<{
|
579
754
|
message: z.ZodString;
|
580
755
|
error: z.ZodAny;
|
581
756
|
}, "strip", z.ZodTypeAny, {
|
@@ -585,7 +760,7 @@ export declare const presenceStatusContract: {
|
|
585
760
|
message: string;
|
586
761
|
error?: any;
|
587
762
|
}>;
|
588
|
-
|
763
|
+
404: z.ZodObject<{
|
589
764
|
message: z.ZodString;
|
590
765
|
error: z.ZodAny;
|
591
766
|
}, "strip", z.ZodTypeAny, {
|
@@ -595,7 +770,7 @@ export declare const presenceStatusContract: {
|
|
595
770
|
message: string;
|
596
771
|
error?: any;
|
597
772
|
}>;
|
598
|
-
|
773
|
+
422: z.ZodObject<{
|
599
774
|
message: z.ZodString;
|
600
775
|
error: z.ZodAny;
|
601
776
|
}, "strip", z.ZodTypeAny, {
|
@@ -605,239 +780,70 @@ export declare const presenceStatusContract: {
|
|
605
780
|
message: string;
|
606
781
|
error?: any;
|
607
782
|
}>;
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
'x-tenant':
|
622
|
-
'x-service-token':
|
623
|
-
'x-code'
|
624
|
-
'x-client-timezone'
|
625
|
-
}
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
displayName: string;
|
673
|
-
}, {
|
674
|
-
id: string;
|
675
|
-
description: string | null;
|
676
|
-
createdAt: Date;
|
677
|
-
updatedAt: Date;
|
678
|
-
deletedAt: Date | null;
|
679
|
-
systemName: string;
|
680
|
-
displayName: string;
|
681
|
-
}>, "many">;
|
682
|
-
}, "strip", z.ZodTypeAny, {
|
683
|
-
id: string;
|
684
|
-
description: string | null;
|
685
|
-
createdAt: Date;
|
686
|
-
updatedAt: Date;
|
687
|
-
deletedAt: Date | null;
|
688
|
-
systemName: string;
|
689
|
-
displayName: string;
|
690
|
-
permissions: {
|
691
|
-
id: string;
|
692
|
-
description: string | null;
|
693
|
-
createdAt: Date;
|
694
|
-
updatedAt: Date;
|
695
|
-
deletedAt: Date | null;
|
696
|
-
systemName: string;
|
697
|
-
displayName: string;
|
698
|
-
}[];
|
699
|
-
}, {
|
700
|
-
id: string;
|
701
|
-
description: string | null;
|
702
|
-
createdAt: Date;
|
703
|
-
updatedAt: Date;
|
704
|
-
deletedAt: Date | null;
|
705
|
-
systemName: string;
|
706
|
-
displayName: string;
|
707
|
-
permissions: {
|
708
|
-
id: string;
|
709
|
-
description: string | null;
|
710
|
-
createdAt: Date;
|
711
|
-
updatedAt: Date;
|
712
|
-
deletedAt: Date | null;
|
713
|
-
systemName: string;
|
714
|
-
displayName: string;
|
715
|
-
}[];
|
716
|
-
}>, "many">;
|
717
|
-
extension: z.ZodObject<{
|
718
|
-
id: z.ZodString;
|
719
|
-
createdAt: z.ZodDate;
|
720
|
-
updatedAt: z.ZodDate;
|
721
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
722
|
-
userId: z.ZodNullable<z.ZodString>;
|
723
|
-
sipServerUrl: z.ZodString;
|
724
|
-
sipUserName: z.ZodString;
|
725
|
-
webphoneLoginUser: z.ZodString;
|
726
|
-
extensionId: z.ZodNullable<z.ZodString>;
|
727
|
-
extensionName: z.ZodString;
|
728
|
-
telephonySignature: z.ZodNullable<z.ZodString>;
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
730
|
-
id: string;
|
731
|
-
createdAt: Date;
|
732
|
-
updatedAt: Date;
|
733
|
-
deletedAt: Date | null;
|
734
|
-
userId: string | null;
|
735
|
-
sipServerUrl: string;
|
736
|
-
sipUserName: string;
|
737
|
-
webphoneLoginUser: string;
|
738
|
-
extensionId: string | null;
|
739
|
-
extensionName: string;
|
740
|
-
telephonySignature: string | null;
|
741
|
-
}, {
|
742
|
-
id: string;
|
743
|
-
createdAt: Date;
|
744
|
-
updatedAt: Date;
|
745
|
-
deletedAt: Date | null;
|
746
|
-
userId: string | null;
|
747
|
-
sipServerUrl: string;
|
748
|
-
sipUserName: string;
|
749
|
-
webphoneLoginUser: string;
|
750
|
-
extensionId: string | null;
|
751
|
-
extensionName: string;
|
752
|
-
telephonySignature: string | null;
|
753
|
-
}>;
|
754
|
-
}, "strip", z.ZodTypeAny, {
|
755
|
-
name: string;
|
756
|
-
id: string;
|
757
|
-
address: string | null;
|
758
|
-
email: string;
|
759
|
-
createdAt: Date;
|
760
|
-
updatedAt: Date;
|
761
|
-
deletedAt: Date | null;
|
762
|
-
emailVerifiedAt: Date | null;
|
763
|
-
password: string;
|
764
|
-
phone: string | null;
|
765
|
-
notificationCount: number | null;
|
766
|
-
roles: {
|
767
|
-
id: string;
|
768
|
-
description: string | null;
|
769
|
-
createdAt: Date;
|
770
|
-
updatedAt: Date;
|
771
|
-
deletedAt: Date | null;
|
772
|
-
systemName: string;
|
773
|
-
displayName: string;
|
774
|
-
permissions: {
|
775
|
-
id: string;
|
776
|
-
description: string | null;
|
777
|
-
createdAt: Date;
|
778
|
-
updatedAt: Date;
|
779
|
-
deletedAt: Date | null;
|
780
|
-
systemName: string;
|
781
|
-
displayName: string;
|
782
|
-
}[];
|
783
|
-
}[];
|
784
|
-
extension: {
|
785
|
-
id: string;
|
786
|
-
createdAt: Date;
|
787
|
-
updatedAt: Date;
|
788
|
-
deletedAt: Date | null;
|
789
|
-
userId: string | null;
|
790
|
-
sipServerUrl: string;
|
791
|
-
sipUserName: string;
|
792
|
-
webphoneLoginUser: string;
|
793
|
-
extensionId: string | null;
|
794
|
-
extensionName: string;
|
795
|
-
telephonySignature: string | null;
|
796
|
-
};
|
797
|
-
}, {
|
798
|
-
name: string;
|
799
|
-
id: string;
|
800
|
-
address: string | null;
|
801
|
-
email: string;
|
802
|
-
createdAt: Date;
|
803
|
-
updatedAt: Date;
|
804
|
-
deletedAt: Date | null;
|
805
|
-
emailVerifiedAt: Date | null;
|
806
|
-
password: string;
|
807
|
-
phone: string | null;
|
808
|
-
notificationCount: number | null;
|
809
|
-
roles: {
|
810
|
-
id: string;
|
811
|
-
description: string | null;
|
812
|
-
createdAt: Date;
|
813
|
-
updatedAt: Date;
|
814
|
-
deletedAt: Date | null;
|
815
|
-
systemName: string;
|
816
|
-
displayName: string;
|
817
|
-
permissions: {
|
818
|
-
id: string;
|
819
|
-
description: string | null;
|
820
|
-
createdAt: Date;
|
821
|
-
updatedAt: Date;
|
822
|
-
deletedAt: Date | null;
|
823
|
-
systemName: string;
|
824
|
-
displayName: string;
|
825
|
-
}[];
|
826
|
-
}[];
|
827
|
-
extension: {
|
828
|
-
id: string;
|
829
|
-
createdAt: Date;
|
830
|
-
updatedAt: Date;
|
831
|
-
deletedAt: Date | null;
|
832
|
-
userId: string | null;
|
833
|
-
sipServerUrl: string;
|
834
|
-
sipUserName: string;
|
835
|
-
webphoneLoginUser: string;
|
836
|
-
extensionId: string | null;
|
837
|
-
extensionName: string;
|
838
|
-
telephonySignature: string | null;
|
839
|
-
};
|
840
|
-
}>;
|
783
|
+
500: z.ZodObject<{
|
784
|
+
message: z.ZodString;
|
785
|
+
error: z.ZodAny;
|
786
|
+
}, "strip", z.ZodTypeAny, {
|
787
|
+
message: string;
|
788
|
+
error?: any;
|
789
|
+
}, {
|
790
|
+
message: string;
|
791
|
+
error?: any;
|
792
|
+
}>;
|
793
|
+
};
|
794
|
+
path: "ms/presence_status/:id";
|
795
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
796
|
+
'x-tenant': z.ZodString;
|
797
|
+
'x-service-token': z.ZodString;
|
798
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
799
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
800
|
+
}, "strip", z.ZodTypeAny, {
|
801
|
+
'x-tenant': string;
|
802
|
+
'x-service-token': string;
|
803
|
+
'x-client-timezone': string;
|
804
|
+
'x-code'?: string | undefined;
|
805
|
+
}, {
|
806
|
+
'x-tenant': string;
|
807
|
+
'x-service-token': string;
|
808
|
+
'x-code'?: string | undefined;
|
809
|
+
'x-client-timezone'?: string | undefined;
|
810
|
+
}>>>;
|
811
|
+
};
|
812
|
+
updatePresenceStatus: {
|
813
|
+
body: z.ZodObject<{
|
814
|
+
systemName: z.ZodString;
|
815
|
+
displayName: z.ZodString;
|
816
|
+
description: z.ZodOptional<z.ZodString>;
|
817
|
+
position: z.ZodNumber;
|
818
|
+
emoji: z.ZodString;
|
819
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
821
|
+
emoji: string;
|
822
|
+
position: number;
|
823
|
+
systemName: string;
|
824
|
+
displayName: string;
|
825
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
826
|
+
description?: string | undefined;
|
827
|
+
}, {
|
828
|
+
emoji: string;
|
829
|
+
position: number;
|
830
|
+
systemName: string;
|
831
|
+
displayName: string;
|
832
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
833
|
+
description?: string | undefined;
|
834
|
+
}>;
|
835
|
+
summary: "Update a presence status.";
|
836
|
+
method: "PATCH";
|
837
|
+
pathParams: z.ZodObject<{
|
838
|
+
id: z.ZodString;
|
839
|
+
}, "strip", z.ZodTypeAny, {
|
840
|
+
id: string;
|
841
|
+
}, {
|
842
|
+
id: string;
|
843
|
+
}>;
|
844
|
+
responses: {
|
845
|
+
201: z.ZodObject<{
|
846
|
+
requestId: z.ZodString;
|
841
847
|
presenceStatus: z.ZodObject<{
|
842
848
|
id: z.ZodString;
|
843
849
|
createdAt: z.ZodDate;
|
@@ -873,55 +879,7 @@ export declare const presenceStatusContract: {
|
|
873
879
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
874
880
|
}>;
|
875
881
|
}, "strip", z.ZodTypeAny, {
|
876
|
-
|
877
|
-
user: {
|
878
|
-
name: string;
|
879
|
-
id: string;
|
880
|
-
address: string | null;
|
881
|
-
email: string;
|
882
|
-
createdAt: Date;
|
883
|
-
updatedAt: Date;
|
884
|
-
deletedAt: Date | null;
|
885
|
-
emailVerifiedAt: Date | null;
|
886
|
-
password: string;
|
887
|
-
phone: string | null;
|
888
|
-
notificationCount: number | null;
|
889
|
-
roles: {
|
890
|
-
id: string;
|
891
|
-
description: string | null;
|
892
|
-
createdAt: Date;
|
893
|
-
updatedAt: Date;
|
894
|
-
deletedAt: Date | null;
|
895
|
-
systemName: string;
|
896
|
-
displayName: string;
|
897
|
-
permissions: {
|
898
|
-
id: string;
|
899
|
-
description: string | null;
|
900
|
-
createdAt: Date;
|
901
|
-
updatedAt: Date;
|
902
|
-
deletedAt: Date | null;
|
903
|
-
systemName: string;
|
904
|
-
displayName: string;
|
905
|
-
}[];
|
906
|
-
}[];
|
907
|
-
extension: {
|
908
|
-
id: string;
|
909
|
-
createdAt: Date;
|
910
|
-
updatedAt: Date;
|
911
|
-
deletedAt: Date | null;
|
912
|
-
userId: string | null;
|
913
|
-
sipServerUrl: string;
|
914
|
-
sipUserName: string;
|
915
|
-
webphoneLoginUser: string;
|
916
|
-
extensionId: string | null;
|
917
|
-
extensionName: string;
|
918
|
-
telephonySignature: string | null;
|
919
|
-
};
|
920
|
-
};
|
921
|
-
createdAt: Date;
|
922
|
-
updatedAt: Date;
|
923
|
-
deletedAt: Date | null;
|
924
|
-
userId: string;
|
882
|
+
requestId: string;
|
925
883
|
presenceStatus: {
|
926
884
|
emoji: string | null;
|
927
885
|
id: string;
|
@@ -935,55 +893,7 @@ export declare const presenceStatusContract: {
|
|
935
893
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
936
894
|
};
|
937
895
|
}, {
|
938
|
-
|
939
|
-
user: {
|
940
|
-
name: string;
|
941
|
-
id: string;
|
942
|
-
address: string | null;
|
943
|
-
email: string;
|
944
|
-
createdAt: Date;
|
945
|
-
updatedAt: Date;
|
946
|
-
deletedAt: Date | null;
|
947
|
-
emailVerifiedAt: Date | null;
|
948
|
-
password: string;
|
949
|
-
phone: string | null;
|
950
|
-
notificationCount: number | null;
|
951
|
-
roles: {
|
952
|
-
id: string;
|
953
|
-
description: string | null;
|
954
|
-
createdAt: Date;
|
955
|
-
updatedAt: Date;
|
956
|
-
deletedAt: Date | null;
|
957
|
-
systemName: string;
|
958
|
-
displayName: string;
|
959
|
-
permissions: {
|
960
|
-
id: string;
|
961
|
-
description: string | null;
|
962
|
-
createdAt: Date;
|
963
|
-
updatedAt: Date;
|
964
|
-
deletedAt: Date | null;
|
965
|
-
systemName: string;
|
966
|
-
displayName: string;
|
967
|
-
}[];
|
968
|
-
}[];
|
969
|
-
extension: {
|
970
|
-
id: string;
|
971
|
-
createdAt: Date;
|
972
|
-
updatedAt: Date;
|
973
|
-
deletedAt: Date | null;
|
974
|
-
userId: string | null;
|
975
|
-
sipServerUrl: string;
|
976
|
-
sipUserName: string;
|
977
|
-
webphoneLoginUser: string;
|
978
|
-
extensionId: string | null;
|
979
|
-
extensionName: string;
|
980
|
-
telephonySignature: string | null;
|
981
|
-
};
|
982
|
-
};
|
983
|
-
createdAt: Date;
|
984
|
-
updatedAt: Date;
|
985
|
-
deletedAt: Date | null;
|
986
|
-
userId: string;
|
896
|
+
requestId: string;
|
987
897
|
presenceStatus: {
|
988
898
|
emoji: string | null;
|
989
899
|
id: string;
|
@@ -996,7 +906,7 @@ export declare const presenceStatusContract: {
|
|
996
906
|
displayName: string;
|
997
907
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
998
908
|
};
|
999
|
-
}
|
909
|
+
}>;
|
1000
910
|
400: z.ZodObject<{
|
1001
911
|
message: z.ZodString;
|
1002
912
|
}, "strip", z.ZodTypeAny, {
|
@@ -1014,6 +924,97 @@ export declare const presenceStatusContract: {
|
|
1014
924
|
message: string;
|
1015
925
|
error?: any;
|
1016
926
|
}>;
|
927
|
+
404: z.ZodObject<{
|
928
|
+
message: z.ZodString;
|
929
|
+
error: z.ZodAny;
|
930
|
+
}, "strip", z.ZodTypeAny, {
|
931
|
+
message: string;
|
932
|
+
error?: any;
|
933
|
+
}, {
|
934
|
+
message: string;
|
935
|
+
error?: any;
|
936
|
+
}>;
|
937
|
+
422: z.ZodObject<{
|
938
|
+
message: z.ZodString;
|
939
|
+
error: z.ZodAny;
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
941
|
+
message: string;
|
942
|
+
error?: any;
|
943
|
+
}, {
|
944
|
+
message: string;
|
945
|
+
error?: any;
|
946
|
+
}>;
|
947
|
+
500: z.ZodObject<{
|
948
|
+
message: z.ZodString;
|
949
|
+
error: z.ZodAny;
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
951
|
+
message: string;
|
952
|
+
error?: any;
|
953
|
+
}, {
|
954
|
+
message: string;
|
955
|
+
error?: any;
|
956
|
+
}>;
|
957
|
+
};
|
958
|
+
path: "ms/presence_status/:id";
|
959
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
960
|
+
'x-tenant': z.ZodString;
|
961
|
+
'x-service-token': z.ZodString;
|
962
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
963
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
964
|
+
}, "strip", z.ZodTypeAny, {
|
965
|
+
'x-tenant': string;
|
966
|
+
'x-service-token': string;
|
967
|
+
'x-client-timezone': string;
|
968
|
+
'x-code'?: string | undefined;
|
969
|
+
}, {
|
970
|
+
'x-tenant': string;
|
971
|
+
'x-service-token': string;
|
972
|
+
'x-code'?: string | undefined;
|
973
|
+
'x-client-timezone'?: string | undefined;
|
974
|
+
}>>>;
|
975
|
+
};
|
976
|
+
deletePresenceStatus: {
|
977
|
+
body: null;
|
978
|
+
summary: "Delete a presence status.";
|
979
|
+
method: "DELETE";
|
980
|
+
pathParams: z.ZodObject<{
|
981
|
+
id: z.ZodString;
|
982
|
+
}, "strip", z.ZodTypeAny, {
|
983
|
+
id: string;
|
984
|
+
}, {
|
985
|
+
id: string;
|
986
|
+
}>;
|
987
|
+
responses: {
|
988
|
+
200: z.ZodObject<{
|
989
|
+
requestId: z.ZodString;
|
990
|
+
message: z.ZodString;
|
991
|
+
}, "strip", z.ZodTypeAny, {
|
992
|
+
message: string;
|
993
|
+
requestId: string;
|
994
|
+
}, {
|
995
|
+
message: string;
|
996
|
+
requestId: string;
|
997
|
+
}>;
|
998
|
+
404: z.ZodObject<{
|
999
|
+
message: z.ZodString;
|
1000
|
+
error: z.ZodAny;
|
1001
|
+
}, "strip", z.ZodTypeAny, {
|
1002
|
+
message: string;
|
1003
|
+
error?: any;
|
1004
|
+
}, {
|
1005
|
+
message: string;
|
1006
|
+
error?: any;
|
1007
|
+
}>;
|
1008
|
+
422: z.ZodObject<{
|
1009
|
+
message: z.ZodString;
|
1010
|
+
error: z.ZodAny;
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
1012
|
+
message: string;
|
1013
|
+
error?: any;
|
1014
|
+
}, {
|
1015
|
+
message: string;
|
1016
|
+
error?: any;
|
1017
|
+
}>;
|
1017
1018
|
500: z.ZodObject<{
|
1018
1019
|
message: z.ZodString;
|
1019
1020
|
error: z.ZodAny;
|
@@ -1025,7 +1026,7 @@ export declare const presenceStatusContract: {
|
|
1025
1026
|
error?: any;
|
1026
1027
|
}>;
|
1027
1028
|
};
|
1028
|
-
path: "ms/presence_status
|
1029
|
+
path: "ms/presence_status/:id";
|
1029
1030
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
1030
1031
|
'x-tenant': z.ZodString;
|
1031
1032
|
'x-service-token': z.ZodString;
|