controlresell 2.2.18 → 2.3.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.
Files changed (37) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +130 -130
  3. package/src/com/controlresell/models/items/Item.d.ts +104 -104
  4. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +130 -130
  5. package/src/com/controlresell/models/items/UpdatedItem.d.ts +130 -130
  6. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  7. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  8. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  9. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  10. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  11. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +130 -130
  12. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +130 -130
  13. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  14. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +130 -130
  15. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  16. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  17. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  18. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  19. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  23. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  24. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  25. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +1417 -1417
  26. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  27. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  28. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  32. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  33. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  34. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  35. package/src/index.d.ts +1 -0
  36. package/src/index.js +3 -1
  37. package/src/index.ts +1 -0
@@ -0,0 +1,1205 @@
1
+ import { z } from "zod";
2
+ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
3
+ conversation: z.ZodObject<{
4
+ id: z.ZodString;
5
+ accountId: z.ZodString;
6
+ platformConversationId: z.ZodString;
7
+ updatedAt: z.ZodDate;
8
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
10
+ accountId: z.ZodString;
11
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
12
+ name: z.ZodString;
13
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
17
+ userId: string | number;
18
+ name: string;
19
+ platform: "VINTED" | "SHOPIFY";
20
+ accountId: string;
21
+ locale?: string | null | undefined;
22
+ }, {
23
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
24
+ userId: string | number;
25
+ name: string;
26
+ platform: "VINTED" | "SHOPIFY";
27
+ accountId: string;
28
+ locale?: string | null | undefined;
29
+ }>>>;
30
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31
+ id: z.ZodString;
32
+ conversationId: z.ZodString;
33
+ conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
36
+ status: z.ZodEnum<["NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "SENT"]>;
37
+ associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
38
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ createdAt: z.ZodDate;
40
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ id: z.ZodString;
42
+ platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ messageId: z.ZodString;
44
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ price: z.ZodNumber;
46
+ originalPrice: z.ZodNumber;
47
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
50
+ id: string;
51
+ price: number;
52
+ originalPrice: number;
53
+ messageId: string;
54
+ transactionId?: string | null | undefined;
55
+ platformOfferId?: string | null | undefined;
56
+ }, {
57
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
58
+ id: string;
59
+ price: number;
60
+ originalPrice: number;
61
+ messageId: string;
62
+ transactionId?: string | null | undefined;
63
+ platformOfferId?: string | null | undefined;
64
+ }>>>;
65
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
+ messageId: z.ZodString;
67
+ lang: z.ZodString;
68
+ body: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ body: string;
71
+ messageId: string;
72
+ lang: string;
73
+ }, {
74
+ body: string;
75
+ messageId: string;
76
+ lang: string;
77
+ }>>>;
78
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
79
+ fileId: z.ZodString;
80
+ messageId: z.ZodString;
81
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ id: z.ZodString;
84
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
85
+ path: z.ZodString;
86
+ signedUrl: z.ZodString;
87
+ createdAt: z.ZodDate;
88
+ }, "strip", z.ZodTypeAny, {
89
+ path: string;
90
+ id: string;
91
+ userId: string | number;
92
+ signedUrl: string;
93
+ createdAt: Date;
94
+ }, {
95
+ path: string;
96
+ id: string;
97
+ userId: string | number;
98
+ signedUrl: string;
99
+ createdAt: Date;
100
+ }>>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ fileId: string;
103
+ messageId: string;
104
+ file?: {
105
+ path: string;
106
+ id: string;
107
+ userId: string | number;
108
+ signedUrl: string;
109
+ createdAt: Date;
110
+ } | null | undefined;
111
+ index?: number | null | undefined;
112
+ }, {
113
+ fileId: string;
114
+ messageId: string;
115
+ file?: {
116
+ path: string;
117
+ id: string;
118
+ userId: string | number;
119
+ signedUrl: string;
120
+ createdAt: Date;
121
+ } | null | undefined;
122
+ index?: number | null | undefined;
123
+ }>, "many">>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
126
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
127
+ id: string;
128
+ createdAt: Date;
129
+ conversationId: string;
130
+ body?: string | null | undefined;
131
+ offer?: {
132
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
133
+ id: string;
134
+ price: number;
135
+ originalPrice: number;
136
+ messageId: string;
137
+ transactionId?: string | null | undefined;
138
+ platformOfferId?: string | null | undefined;
139
+ } | null | undefined;
140
+ files?: {
141
+ fileId: string;
142
+ messageId: string;
143
+ file?: {
144
+ path: string;
145
+ id: string;
146
+ userId: string | number;
147
+ signedUrl: string;
148
+ createdAt: Date;
149
+ } | null | undefined;
150
+ index?: number | null | undefined;
151
+ }[] | null | undefined;
152
+ conversationUserId?: string | null | undefined;
153
+ platformMessageId?: string | null | undefined;
154
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
155
+ translation?: {
156
+ body: string;
157
+ messageId: string;
158
+ lang: string;
159
+ } | null | undefined;
160
+ }, {
161
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
162
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
163
+ id: string;
164
+ createdAt: Date;
165
+ conversationId: string;
166
+ body?: string | null | undefined;
167
+ offer?: {
168
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
169
+ id: string;
170
+ price: number;
171
+ originalPrice: number;
172
+ messageId: string;
173
+ transactionId?: string | null | undefined;
174
+ platformOfferId?: string | null | undefined;
175
+ } | null | undefined;
176
+ files?: {
177
+ fileId: string;
178
+ messageId: string;
179
+ file?: {
180
+ path: string;
181
+ id: string;
182
+ userId: string | number;
183
+ signedUrl: string;
184
+ createdAt: Date;
185
+ } | null | undefined;
186
+ index?: number | null | undefined;
187
+ }[] | null | undefined;
188
+ conversationUserId?: string | null | undefined;
189
+ platformMessageId?: string | null | undefined;
190
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
191
+ translation?: {
192
+ body: string;
193
+ messageId: string;
194
+ lang: string;
195
+ } | null | undefined;
196
+ }>>>;
197
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
198
+ id: z.ZodString;
199
+ platformUserId: z.ZodString;
200
+ conversationId: z.ZodString;
201
+ login: z.ZodString;
202
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
204
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
205
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
207
+ id: z.ZodString;
208
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
209
+ path: z.ZodString;
210
+ signedUrl: z.ZodString;
211
+ createdAt: z.ZodDate;
212
+ }, "strip", z.ZodTypeAny, {
213
+ path: string;
214
+ id: string;
215
+ userId: string | number;
216
+ signedUrl: string;
217
+ createdAt: Date;
218
+ }, {
219
+ path: string;
220
+ id: string;
221
+ userId: string | number;
222
+ signedUrl: string;
223
+ createdAt: Date;
224
+ }>>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ id: string;
227
+ login: string;
228
+ conversationId: string;
229
+ platformUserId: string;
230
+ reviewCount?: number | null | undefined;
231
+ reviewValue?: number | null | undefined;
232
+ location?: string | null | undefined;
233
+ photoFileId?: string | null | undefined;
234
+ photoFile?: {
235
+ path: string;
236
+ id: string;
237
+ userId: string | number;
238
+ signedUrl: string;
239
+ createdAt: Date;
240
+ } | null | undefined;
241
+ }, {
242
+ id: string;
243
+ login: string;
244
+ conversationId: string;
245
+ platformUserId: string;
246
+ reviewCount?: number | null | undefined;
247
+ reviewValue?: number | null | undefined;
248
+ location?: string | null | undefined;
249
+ photoFileId?: string | null | undefined;
250
+ photoFile?: {
251
+ path: string;
252
+ id: string;
253
+ userId: string | number;
254
+ signedUrl: string;
255
+ createdAt: Date;
256
+ } | null | undefined;
257
+ }>, "many">>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ id: string;
260
+ updatedAt: Date;
261
+ accountId: string;
262
+ platformConversationId: string;
263
+ account?: {
264
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
265
+ userId: string | number;
266
+ name: string;
267
+ platform: "VINTED" | "SHOPIFY";
268
+ accountId: string;
269
+ locale?: string | null | undefined;
270
+ } | null | undefined;
271
+ users?: {
272
+ id: string;
273
+ login: string;
274
+ conversationId: string;
275
+ platformUserId: string;
276
+ reviewCount?: number | null | undefined;
277
+ reviewValue?: number | null | undefined;
278
+ location?: string | null | undefined;
279
+ photoFileId?: string | null | undefined;
280
+ photoFile?: {
281
+ path: string;
282
+ id: string;
283
+ userId: string | number;
284
+ signedUrl: string;
285
+ createdAt: Date;
286
+ } | null | undefined;
287
+ }[] | null | undefined;
288
+ lastMessage?: {
289
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
290
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
291
+ id: string;
292
+ createdAt: Date;
293
+ conversationId: string;
294
+ body?: string | null | undefined;
295
+ offer?: {
296
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
297
+ id: string;
298
+ price: number;
299
+ originalPrice: number;
300
+ messageId: string;
301
+ transactionId?: string | null | undefined;
302
+ platformOfferId?: string | null | undefined;
303
+ } | null | undefined;
304
+ files?: {
305
+ fileId: string;
306
+ messageId: string;
307
+ file?: {
308
+ path: string;
309
+ id: string;
310
+ userId: string | number;
311
+ signedUrl: string;
312
+ createdAt: Date;
313
+ } | null | undefined;
314
+ index?: number | null | undefined;
315
+ }[] | null | undefined;
316
+ conversationUserId?: string | null | undefined;
317
+ platformMessageId?: string | null | undefined;
318
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
319
+ translation?: {
320
+ body: string;
321
+ messageId: string;
322
+ lang: string;
323
+ } | null | undefined;
324
+ } | null | undefined;
325
+ }, {
326
+ id: string;
327
+ updatedAt: Date;
328
+ accountId: string;
329
+ platformConversationId: string;
330
+ account?: {
331
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
332
+ userId: string | number;
333
+ name: string;
334
+ platform: "VINTED" | "SHOPIFY";
335
+ accountId: string;
336
+ locale?: string | null | undefined;
337
+ } | null | undefined;
338
+ users?: {
339
+ id: string;
340
+ login: string;
341
+ conversationId: string;
342
+ platformUserId: string;
343
+ reviewCount?: number | null | undefined;
344
+ reviewValue?: number | null | undefined;
345
+ location?: string | null | undefined;
346
+ photoFileId?: string | null | undefined;
347
+ photoFile?: {
348
+ path: string;
349
+ id: string;
350
+ userId: string | number;
351
+ signedUrl: string;
352
+ createdAt: Date;
353
+ } | null | undefined;
354
+ }[] | null | undefined;
355
+ lastMessage?: {
356
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
357
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
358
+ id: string;
359
+ createdAt: Date;
360
+ conversationId: string;
361
+ body?: string | null | undefined;
362
+ offer?: {
363
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
364
+ id: string;
365
+ price: number;
366
+ originalPrice: number;
367
+ messageId: string;
368
+ transactionId?: string | null | undefined;
369
+ platformOfferId?: string | null | undefined;
370
+ } | null | undefined;
371
+ files?: {
372
+ fileId: string;
373
+ messageId: string;
374
+ file?: {
375
+ path: string;
376
+ id: string;
377
+ userId: string | number;
378
+ signedUrl: string;
379
+ createdAt: Date;
380
+ } | null | undefined;
381
+ index?: number | null | undefined;
382
+ }[] | null | undefined;
383
+ conversationUserId?: string | null | undefined;
384
+ platformMessageId?: string | null | undefined;
385
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
386
+ translation?: {
387
+ body: string;
388
+ messageId: string;
389
+ lang: string;
390
+ } | null | undefined;
391
+ } | null | undefined;
392
+ }>;
393
+ type: z.ZodLiteral<"CONVERSATION">;
394
+ }, "strip", z.ZodTypeAny, {
395
+ type: "CONVERSATION";
396
+ conversation: {
397
+ id: string;
398
+ updatedAt: Date;
399
+ accountId: string;
400
+ platformConversationId: string;
401
+ account?: {
402
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
403
+ userId: string | number;
404
+ name: string;
405
+ platform: "VINTED" | "SHOPIFY";
406
+ accountId: string;
407
+ locale?: string | null | undefined;
408
+ } | null | undefined;
409
+ users?: {
410
+ id: string;
411
+ login: string;
412
+ conversationId: string;
413
+ platformUserId: string;
414
+ reviewCount?: number | null | undefined;
415
+ reviewValue?: number | null | undefined;
416
+ location?: string | null | undefined;
417
+ photoFileId?: string | null | undefined;
418
+ photoFile?: {
419
+ path: string;
420
+ id: string;
421
+ userId: string | number;
422
+ signedUrl: string;
423
+ createdAt: Date;
424
+ } | null | undefined;
425
+ }[] | null | undefined;
426
+ lastMessage?: {
427
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
428
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
429
+ id: string;
430
+ createdAt: Date;
431
+ conversationId: string;
432
+ body?: string | null | undefined;
433
+ offer?: {
434
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
435
+ id: string;
436
+ price: number;
437
+ originalPrice: number;
438
+ messageId: string;
439
+ transactionId?: string | null | undefined;
440
+ platformOfferId?: string | null | undefined;
441
+ } | null | undefined;
442
+ files?: {
443
+ fileId: string;
444
+ messageId: string;
445
+ file?: {
446
+ path: string;
447
+ id: string;
448
+ userId: string | number;
449
+ signedUrl: string;
450
+ createdAt: Date;
451
+ } | null | undefined;
452
+ index?: number | null | undefined;
453
+ }[] | null | undefined;
454
+ conversationUserId?: string | null | undefined;
455
+ platformMessageId?: string | null | undefined;
456
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
457
+ translation?: {
458
+ body: string;
459
+ messageId: string;
460
+ lang: string;
461
+ } | null | undefined;
462
+ } | null | undefined;
463
+ };
464
+ }, {
465
+ type: "CONVERSATION";
466
+ conversation: {
467
+ id: string;
468
+ updatedAt: Date;
469
+ accountId: string;
470
+ platformConversationId: string;
471
+ account?: {
472
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
473
+ userId: string | number;
474
+ name: string;
475
+ platform: "VINTED" | "SHOPIFY";
476
+ accountId: string;
477
+ locale?: string | null | undefined;
478
+ } | null | undefined;
479
+ users?: {
480
+ id: string;
481
+ login: string;
482
+ conversationId: string;
483
+ platformUserId: string;
484
+ reviewCount?: number | null | undefined;
485
+ reviewValue?: number | null | undefined;
486
+ location?: string | null | undefined;
487
+ photoFileId?: string | null | undefined;
488
+ photoFile?: {
489
+ path: string;
490
+ id: string;
491
+ userId: string | number;
492
+ signedUrl: string;
493
+ createdAt: Date;
494
+ } | null | undefined;
495
+ }[] | null | undefined;
496
+ lastMessage?: {
497
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
498
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
499
+ id: string;
500
+ createdAt: Date;
501
+ conversationId: string;
502
+ body?: string | null | undefined;
503
+ offer?: {
504
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
505
+ id: string;
506
+ price: number;
507
+ originalPrice: number;
508
+ messageId: string;
509
+ transactionId?: string | null | undefined;
510
+ platformOfferId?: string | null | undefined;
511
+ } | null | undefined;
512
+ files?: {
513
+ fileId: string;
514
+ messageId: string;
515
+ file?: {
516
+ path: string;
517
+ id: string;
518
+ userId: string | number;
519
+ signedUrl: string;
520
+ createdAt: Date;
521
+ } | null | undefined;
522
+ index?: number | null | undefined;
523
+ }[] | null | undefined;
524
+ conversationUserId?: string | null | undefined;
525
+ platformMessageId?: string | null | undefined;
526
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
527
+ translation?: {
528
+ body: string;
529
+ messageId: string;
530
+ lang: string;
531
+ } | null | undefined;
532
+ } | null | undefined;
533
+ };
534
+ }>;
535
+ export type UserWsPayloadConversation = z.infer<typeof UserWsPayloadConversationSchema>;
536
+ export declare const UserWsPayloadEmptySchema: z.ZodObject<{
537
+ type: z.ZodLiteral<"EMPTY">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "EMPTY";
540
+ }, {
541
+ type: "EMPTY";
542
+ }>;
543
+ export type UserWsPayloadEmpty = z.infer<typeof UserWsPayloadEmptySchema>;
544
+ export declare const UserWsPayloadOtpSchema: z.ZodObject<{
545
+ accountId: z.ZodString;
546
+ otp: z.ZodString;
547
+ type: z.ZodLiteral<"OTP">;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "OTP";
550
+ accountId: string;
551
+ otp: string;
552
+ }, {
553
+ type: "OTP";
554
+ accountId: string;
555
+ otp: string;
556
+ }>;
557
+ export type UserWsPayloadOtp = z.infer<typeof UserWsPayloadOtpSchema>;
558
+ export declare const UserWsPayloadReconnectSchema: z.ZodObject<{
559
+ accountId: z.ZodString;
560
+ type: z.ZodLiteral<"RECONNECT">;
561
+ }, "strip", z.ZodTypeAny, {
562
+ type: "RECONNECT";
563
+ accountId: string;
564
+ }, {
565
+ type: "RECONNECT";
566
+ accountId: string;
567
+ }>;
568
+ export type UserWsPayloadReconnect = z.infer<typeof UserWsPayloadReconnectSchema>;
569
+ export declare const UserWsPayloadUserOnPlatformSessionSchema: z.ZodObject<{
570
+ accountId: z.ZodString;
571
+ data: z.ZodObject<{
572
+ otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
573
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_REPUBLISH", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_FAVORITES_LIST", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
575
+ done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_REPUBLISH", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_FAVORITES_LIST", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ error?: string | null | undefined;
578
+ otp?: number | null | undefined;
579
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
580
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
581
+ }, {
582
+ error?: string | null | undefined;
583
+ otp?: number | null | undefined;
584
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
585
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
586
+ }>;
587
+ type: z.ZodLiteral<"USER_ON_PLATFORM_SESSION">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "USER_ON_PLATFORM_SESSION";
590
+ data: {
591
+ error?: string | null | undefined;
592
+ otp?: number | null | undefined;
593
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
594
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
595
+ };
596
+ accountId: string;
597
+ }, {
598
+ type: "USER_ON_PLATFORM_SESSION";
599
+ data: {
600
+ error?: string | null | undefined;
601
+ otp?: number | null | undefined;
602
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
603
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
604
+ };
605
+ accountId: string;
606
+ }>;
607
+ export type UserWsPayloadUserOnPlatformSession = z.infer<typeof UserWsPayloadUserOnPlatformSessionSchema>;
608
+ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
609
+ conversation: z.ZodObject<{
610
+ id: z.ZodString;
611
+ accountId: z.ZodString;
612
+ platformConversationId: z.ZodString;
613
+ updatedAt: z.ZodDate;
614
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
615
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
616
+ accountId: z.ZodString;
617
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
618
+ name: z.ZodString;
619
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
623
+ userId: string | number;
624
+ name: string;
625
+ platform: "VINTED" | "SHOPIFY";
626
+ accountId: string;
627
+ locale?: string | null | undefined;
628
+ }, {
629
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
630
+ userId: string | number;
631
+ name: string;
632
+ platform: "VINTED" | "SHOPIFY";
633
+ accountId: string;
634
+ locale?: string | null | undefined;
635
+ }>>>;
636
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
637
+ id: z.ZodString;
638
+ conversationId: z.ZodString;
639
+ conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
642
+ status: z.ZodEnum<["NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "SENT"]>;
643
+ associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
644
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ createdAt: z.ZodDate;
646
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
647
+ id: z.ZodString;
648
+ platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
+ messageId: z.ZodString;
650
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ price: z.ZodNumber;
652
+ originalPrice: z.ZodNumber;
653
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
656
+ id: string;
657
+ price: number;
658
+ originalPrice: number;
659
+ messageId: string;
660
+ transactionId?: string | null | undefined;
661
+ platformOfferId?: string | null | undefined;
662
+ }, {
663
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
664
+ id: string;
665
+ price: number;
666
+ originalPrice: number;
667
+ messageId: string;
668
+ transactionId?: string | null | undefined;
669
+ platformOfferId?: string | null | undefined;
670
+ }>>>;
671
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
672
+ messageId: z.ZodString;
673
+ lang: z.ZodString;
674
+ body: z.ZodString;
675
+ }, "strip", z.ZodTypeAny, {
676
+ body: string;
677
+ messageId: string;
678
+ lang: string;
679
+ }, {
680
+ body: string;
681
+ messageId: string;
682
+ lang: string;
683
+ }>>>;
684
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
685
+ fileId: z.ZodString;
686
+ messageId: z.ZodString;
687
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
688
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
689
+ id: z.ZodString;
690
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
691
+ path: z.ZodString;
692
+ signedUrl: z.ZodString;
693
+ createdAt: z.ZodDate;
694
+ }, "strip", z.ZodTypeAny, {
695
+ path: string;
696
+ id: string;
697
+ userId: string | number;
698
+ signedUrl: string;
699
+ createdAt: Date;
700
+ }, {
701
+ path: string;
702
+ id: string;
703
+ userId: string | number;
704
+ signedUrl: string;
705
+ createdAt: Date;
706
+ }>>>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ fileId: string;
709
+ messageId: string;
710
+ file?: {
711
+ path: string;
712
+ id: string;
713
+ userId: string | number;
714
+ signedUrl: string;
715
+ createdAt: Date;
716
+ } | null | undefined;
717
+ index?: number | null | undefined;
718
+ }, {
719
+ fileId: string;
720
+ messageId: string;
721
+ file?: {
722
+ path: string;
723
+ id: string;
724
+ userId: string | number;
725
+ signedUrl: string;
726
+ createdAt: Date;
727
+ } | null | undefined;
728
+ index?: number | null | undefined;
729
+ }>, "many">>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
732
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
733
+ id: string;
734
+ createdAt: Date;
735
+ conversationId: string;
736
+ body?: string | null | undefined;
737
+ offer?: {
738
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
739
+ id: string;
740
+ price: number;
741
+ originalPrice: number;
742
+ messageId: string;
743
+ transactionId?: string | null | undefined;
744
+ platformOfferId?: string | null | undefined;
745
+ } | null | undefined;
746
+ files?: {
747
+ fileId: string;
748
+ messageId: string;
749
+ file?: {
750
+ path: string;
751
+ id: string;
752
+ userId: string | number;
753
+ signedUrl: string;
754
+ createdAt: Date;
755
+ } | null | undefined;
756
+ index?: number | null | undefined;
757
+ }[] | null | undefined;
758
+ conversationUserId?: string | null | undefined;
759
+ platformMessageId?: string | null | undefined;
760
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
761
+ translation?: {
762
+ body: string;
763
+ messageId: string;
764
+ lang: string;
765
+ } | null | undefined;
766
+ }, {
767
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
768
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
769
+ id: string;
770
+ createdAt: Date;
771
+ conversationId: string;
772
+ body?: string | null | undefined;
773
+ offer?: {
774
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
775
+ id: string;
776
+ price: number;
777
+ originalPrice: number;
778
+ messageId: string;
779
+ transactionId?: string | null | undefined;
780
+ platformOfferId?: string | null | undefined;
781
+ } | null | undefined;
782
+ files?: {
783
+ fileId: string;
784
+ messageId: string;
785
+ file?: {
786
+ path: string;
787
+ id: string;
788
+ userId: string | number;
789
+ signedUrl: string;
790
+ createdAt: Date;
791
+ } | null | undefined;
792
+ index?: number | null | undefined;
793
+ }[] | null | undefined;
794
+ conversationUserId?: string | null | undefined;
795
+ platformMessageId?: string | null | undefined;
796
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
797
+ translation?: {
798
+ body: string;
799
+ messageId: string;
800
+ lang: string;
801
+ } | null | undefined;
802
+ }>>>;
803
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
804
+ id: z.ZodString;
805
+ platformUserId: z.ZodString;
806
+ conversationId: z.ZodString;
807
+ login: z.ZodString;
808
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
810
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
811
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
813
+ id: z.ZodString;
814
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
815
+ path: z.ZodString;
816
+ signedUrl: z.ZodString;
817
+ createdAt: z.ZodDate;
818
+ }, "strip", z.ZodTypeAny, {
819
+ path: string;
820
+ id: string;
821
+ userId: string | number;
822
+ signedUrl: string;
823
+ createdAt: Date;
824
+ }, {
825
+ path: string;
826
+ id: string;
827
+ userId: string | number;
828
+ signedUrl: string;
829
+ createdAt: Date;
830
+ }>>>;
831
+ }, "strip", z.ZodTypeAny, {
832
+ id: string;
833
+ login: string;
834
+ conversationId: string;
835
+ platformUserId: string;
836
+ reviewCount?: number | null | undefined;
837
+ reviewValue?: number | null | undefined;
838
+ location?: string | null | undefined;
839
+ photoFileId?: string | null | undefined;
840
+ photoFile?: {
841
+ path: string;
842
+ id: string;
843
+ userId: string | number;
844
+ signedUrl: string;
845
+ createdAt: Date;
846
+ } | null | undefined;
847
+ }, {
848
+ id: string;
849
+ login: string;
850
+ conversationId: string;
851
+ platformUserId: string;
852
+ reviewCount?: number | null | undefined;
853
+ reviewValue?: number | null | undefined;
854
+ location?: string | null | undefined;
855
+ photoFileId?: string | null | undefined;
856
+ photoFile?: {
857
+ path: string;
858
+ id: string;
859
+ userId: string | number;
860
+ signedUrl: string;
861
+ createdAt: Date;
862
+ } | null | undefined;
863
+ }>, "many">>>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ id: string;
866
+ updatedAt: Date;
867
+ accountId: string;
868
+ platformConversationId: string;
869
+ account?: {
870
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
871
+ userId: string | number;
872
+ name: string;
873
+ platform: "VINTED" | "SHOPIFY";
874
+ accountId: string;
875
+ locale?: string | null | undefined;
876
+ } | null | undefined;
877
+ users?: {
878
+ id: string;
879
+ login: string;
880
+ conversationId: string;
881
+ platformUserId: string;
882
+ reviewCount?: number | null | undefined;
883
+ reviewValue?: number | null | undefined;
884
+ location?: string | null | undefined;
885
+ photoFileId?: string | null | undefined;
886
+ photoFile?: {
887
+ path: string;
888
+ id: string;
889
+ userId: string | number;
890
+ signedUrl: string;
891
+ createdAt: Date;
892
+ } | null | undefined;
893
+ }[] | null | undefined;
894
+ lastMessage?: {
895
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
896
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
897
+ id: string;
898
+ createdAt: Date;
899
+ conversationId: string;
900
+ body?: string | null | undefined;
901
+ offer?: {
902
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
903
+ id: string;
904
+ price: number;
905
+ originalPrice: number;
906
+ messageId: string;
907
+ transactionId?: string | null | undefined;
908
+ platformOfferId?: string | null | undefined;
909
+ } | null | undefined;
910
+ files?: {
911
+ fileId: string;
912
+ messageId: string;
913
+ file?: {
914
+ path: string;
915
+ id: string;
916
+ userId: string | number;
917
+ signedUrl: string;
918
+ createdAt: Date;
919
+ } | null | undefined;
920
+ index?: number | null | undefined;
921
+ }[] | null | undefined;
922
+ conversationUserId?: string | null | undefined;
923
+ platformMessageId?: string | null | undefined;
924
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
925
+ translation?: {
926
+ body: string;
927
+ messageId: string;
928
+ lang: string;
929
+ } | null | undefined;
930
+ } | null | undefined;
931
+ }, {
932
+ id: string;
933
+ updatedAt: Date;
934
+ accountId: string;
935
+ platformConversationId: string;
936
+ account?: {
937
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
938
+ userId: string | number;
939
+ name: string;
940
+ platform: "VINTED" | "SHOPIFY";
941
+ accountId: string;
942
+ locale?: string | null | undefined;
943
+ } | null | undefined;
944
+ users?: {
945
+ id: string;
946
+ login: string;
947
+ conversationId: string;
948
+ platformUserId: string;
949
+ reviewCount?: number | null | undefined;
950
+ reviewValue?: number | null | undefined;
951
+ location?: string | null | undefined;
952
+ photoFileId?: string | null | undefined;
953
+ photoFile?: {
954
+ path: string;
955
+ id: string;
956
+ userId: string | number;
957
+ signedUrl: string;
958
+ createdAt: Date;
959
+ } | null | undefined;
960
+ }[] | null | undefined;
961
+ lastMessage?: {
962
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
963
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
964
+ id: string;
965
+ createdAt: Date;
966
+ conversationId: string;
967
+ body?: string | null | undefined;
968
+ offer?: {
969
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
970
+ id: string;
971
+ price: number;
972
+ originalPrice: number;
973
+ messageId: string;
974
+ transactionId?: string | null | undefined;
975
+ platformOfferId?: string | null | undefined;
976
+ } | null | undefined;
977
+ files?: {
978
+ fileId: string;
979
+ messageId: string;
980
+ file?: {
981
+ path: string;
982
+ id: string;
983
+ userId: string | number;
984
+ signedUrl: string;
985
+ createdAt: Date;
986
+ } | null | undefined;
987
+ index?: number | null | undefined;
988
+ }[] | null | undefined;
989
+ conversationUserId?: string | null | undefined;
990
+ platformMessageId?: string | null | undefined;
991
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
992
+ translation?: {
993
+ body: string;
994
+ messageId: string;
995
+ lang: string;
996
+ } | null | undefined;
997
+ } | null | undefined;
998
+ }>;
999
+ type: z.ZodLiteral<"CONVERSATION">;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ type: "CONVERSATION";
1002
+ conversation: {
1003
+ id: string;
1004
+ updatedAt: Date;
1005
+ accountId: string;
1006
+ platformConversationId: string;
1007
+ account?: {
1008
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
1009
+ userId: string | number;
1010
+ name: string;
1011
+ platform: "VINTED" | "SHOPIFY";
1012
+ accountId: string;
1013
+ locale?: string | null | undefined;
1014
+ } | null | undefined;
1015
+ users?: {
1016
+ id: string;
1017
+ login: string;
1018
+ conversationId: string;
1019
+ platformUserId: string;
1020
+ reviewCount?: number | null | undefined;
1021
+ reviewValue?: number | null | undefined;
1022
+ location?: string | null | undefined;
1023
+ photoFileId?: string | null | undefined;
1024
+ photoFile?: {
1025
+ path: string;
1026
+ id: string;
1027
+ userId: string | number;
1028
+ signedUrl: string;
1029
+ createdAt: Date;
1030
+ } | null | undefined;
1031
+ }[] | null | undefined;
1032
+ lastMessage?: {
1033
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1034
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1035
+ id: string;
1036
+ createdAt: Date;
1037
+ conversationId: string;
1038
+ body?: string | null | undefined;
1039
+ offer?: {
1040
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
1041
+ id: string;
1042
+ price: number;
1043
+ originalPrice: number;
1044
+ messageId: string;
1045
+ transactionId?: string | null | undefined;
1046
+ platformOfferId?: string | null | undefined;
1047
+ } | null | undefined;
1048
+ files?: {
1049
+ fileId: string;
1050
+ messageId: string;
1051
+ file?: {
1052
+ path: string;
1053
+ id: string;
1054
+ userId: string | number;
1055
+ signedUrl: string;
1056
+ createdAt: Date;
1057
+ } | null | undefined;
1058
+ index?: number | null | undefined;
1059
+ }[] | null | undefined;
1060
+ conversationUserId?: string | null | undefined;
1061
+ platformMessageId?: string | null | undefined;
1062
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1063
+ translation?: {
1064
+ body: string;
1065
+ messageId: string;
1066
+ lang: string;
1067
+ } | null | undefined;
1068
+ } | null | undefined;
1069
+ };
1070
+ }, {
1071
+ type: "CONVERSATION";
1072
+ conversation: {
1073
+ id: string;
1074
+ updatedAt: Date;
1075
+ accountId: string;
1076
+ platformConversationId: string;
1077
+ account?: {
1078
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
1079
+ userId: string | number;
1080
+ name: string;
1081
+ platform: "VINTED" | "SHOPIFY";
1082
+ accountId: string;
1083
+ locale?: string | null | undefined;
1084
+ } | null | undefined;
1085
+ users?: {
1086
+ id: string;
1087
+ login: string;
1088
+ conversationId: string;
1089
+ platformUserId: string;
1090
+ reviewCount?: number | null | undefined;
1091
+ reviewValue?: number | null | undefined;
1092
+ location?: string | null | undefined;
1093
+ photoFileId?: string | null | undefined;
1094
+ photoFile?: {
1095
+ path: string;
1096
+ id: string;
1097
+ userId: string | number;
1098
+ signedUrl: string;
1099
+ createdAt: Date;
1100
+ } | null | undefined;
1101
+ }[] | null | undefined;
1102
+ lastMessage?: {
1103
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1104
+ status: "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1105
+ id: string;
1106
+ createdAt: Date;
1107
+ conversationId: string;
1108
+ body?: string | null | undefined;
1109
+ offer?: {
1110
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
1111
+ id: string;
1112
+ price: number;
1113
+ originalPrice: number;
1114
+ messageId: string;
1115
+ transactionId?: string | null | undefined;
1116
+ platformOfferId?: string | null | undefined;
1117
+ } | null | undefined;
1118
+ files?: {
1119
+ fileId: string;
1120
+ messageId: string;
1121
+ file?: {
1122
+ path: string;
1123
+ id: string;
1124
+ userId: string | number;
1125
+ signedUrl: string;
1126
+ createdAt: Date;
1127
+ } | null | undefined;
1128
+ index?: number | null | undefined;
1129
+ }[] | null | undefined;
1130
+ conversationUserId?: string | null | undefined;
1131
+ platformMessageId?: string | null | undefined;
1132
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1133
+ translation?: {
1134
+ body: string;
1135
+ messageId: string;
1136
+ lang: string;
1137
+ } | null | undefined;
1138
+ } | null | undefined;
1139
+ };
1140
+ }>, z.ZodObject<{
1141
+ type: z.ZodLiteral<"EMPTY">;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ type: "EMPTY";
1144
+ }, {
1145
+ type: "EMPTY";
1146
+ }>, z.ZodObject<{
1147
+ accountId: z.ZodString;
1148
+ otp: z.ZodString;
1149
+ type: z.ZodLiteral<"OTP">;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ type: "OTP";
1152
+ accountId: string;
1153
+ otp: string;
1154
+ }, {
1155
+ type: "OTP";
1156
+ accountId: string;
1157
+ otp: string;
1158
+ }>, z.ZodObject<{
1159
+ accountId: z.ZodString;
1160
+ type: z.ZodLiteral<"RECONNECT">;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ type: "RECONNECT";
1163
+ accountId: string;
1164
+ }, {
1165
+ type: "RECONNECT";
1166
+ accountId: string;
1167
+ }>, z.ZodObject<{
1168
+ accountId: z.ZodString;
1169
+ data: z.ZodObject<{
1170
+ otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1171
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
+ launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_REPUBLISH", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_FAVORITES_LIST", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
1173
+ done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_REPUBLISH", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_FAVORITES_LIST", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ error?: string | null | undefined;
1176
+ otp?: number | null | undefined;
1177
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1178
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1179
+ }, {
1180
+ error?: string | null | undefined;
1181
+ otp?: number | null | undefined;
1182
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1183
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1184
+ }>;
1185
+ type: z.ZodLiteral<"USER_ON_PLATFORM_SESSION">;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ type: "USER_ON_PLATFORM_SESSION";
1188
+ data: {
1189
+ error?: string | null | undefined;
1190
+ otp?: number | null | undefined;
1191
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1192
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1193
+ };
1194
+ accountId: string;
1195
+ }, {
1196
+ type: "USER_ON_PLATFORM_SESSION";
1197
+ data: {
1198
+ error?: string | null | undefined;
1199
+ otp?: number | null | undefined;
1200
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1201
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_REPUBLISH" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_FAVORITES_LIST" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
1202
+ };
1203
+ accountId: string;
1204
+ }>]>;
1205
+ export type UserWsPayload = z.infer<typeof UserWsPayloadSchema>;