@voltade/envoy-sdk 1.2.2 → 1.2.3

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.
@@ -3,6 +3,8 @@ export declare const CompanySchema: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  name: z.ZodString;
5
5
  account_id: z.ZodOptional<z.ZodNumber>;
6
+ created_at: z.ZodOptional<z.ZodNumber>;
7
+ updated_at: z.ZodOptional<z.ZodNumber>;
6
8
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
9
  id: z.ZodNumber;
8
10
  name: z.ZodOptional<z.ZodString>;
@@ -23,6 +25,8 @@ export declare const CompanySchema: z.ZodObject<{
23
25
  id: number;
24
26
  name: string;
25
27
  account_id?: number | undefined;
28
+ created_at?: number | undefined;
29
+ updated_at?: number | undefined;
26
30
  contacts?: {
27
31
  id: number;
28
32
  name?: string | undefined;
@@ -33,6 +37,8 @@ export declare const CompanySchema: z.ZodObject<{
33
37
  id: number;
34
38
  name: string;
35
39
  account_id?: number | undefined;
40
+ created_at?: number | undefined;
41
+ updated_at?: number | undefined;
36
42
  contacts?: {
37
43
  id: number;
38
44
  name?: string | undefined;
@@ -54,6 +60,8 @@ export declare const ListCompaniesResponseSchema: z.ZodArray<z.ZodObject<{
54
60
  id: z.ZodNumber;
55
61
  name: z.ZodString;
56
62
  account_id: z.ZodOptional<z.ZodNumber>;
63
+ created_at: z.ZodOptional<z.ZodNumber>;
64
+ updated_at: z.ZodOptional<z.ZodNumber>;
57
65
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
66
  id: z.ZodNumber;
59
67
  name: z.ZodOptional<z.ZodString>;
@@ -74,6 +82,8 @@ export declare const ListCompaniesResponseSchema: z.ZodArray<z.ZodObject<{
74
82
  id: number;
75
83
  name: string;
76
84
  account_id?: number | undefined;
85
+ created_at?: number | undefined;
86
+ updated_at?: number | undefined;
77
87
  contacts?: {
78
88
  id: number;
79
89
  name?: string | undefined;
@@ -84,6 +94,8 @@ export declare const ListCompaniesResponseSchema: z.ZodArray<z.ZodObject<{
84
94
  id: number;
85
95
  name: string;
86
96
  account_id?: number | undefined;
97
+ created_at?: number | undefined;
98
+ updated_at?: number | undefined;
87
99
  contacts?: {
88
100
  id: number;
89
101
  name?: string | undefined;
@@ -119,6 +131,8 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
119
131
  id: z.ZodNumber;
120
132
  name: z.ZodString;
121
133
  account_id: z.ZodOptional<z.ZodNumber>;
134
+ created_at: z.ZodOptional<z.ZodNumber>;
135
+ updated_at: z.ZodOptional<z.ZodNumber>;
122
136
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
137
  id: z.ZodNumber;
124
138
  name: z.ZodOptional<z.ZodString>;
@@ -139,6 +153,8 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
139
153
  id: number;
140
154
  name: string;
141
155
  account_id?: number | undefined;
156
+ created_at?: number | undefined;
157
+ updated_at?: number | undefined;
142
158
  contacts?: {
143
159
  id: number;
144
160
  name?: string | undefined;
@@ -149,6 +165,8 @@ export declare const CreateCompanyResponseSchema: z.ZodObject<{
149
165
  id: number;
150
166
  name: string;
151
167
  account_id?: number | undefined;
168
+ created_at?: number | undefined;
169
+ updated_at?: number | undefined;
152
170
  contacts?: {
153
171
  id: number;
154
172
  name?: string | undefined;
@@ -160,6 +178,8 @@ export declare const GetCompanyResponseSchema: z.ZodObject<{
160
178
  id: z.ZodNumber;
161
179
  name: z.ZodString;
162
180
  account_id: z.ZodOptional<z.ZodNumber>;
181
+ created_at: z.ZodOptional<z.ZodNumber>;
182
+ updated_at: z.ZodOptional<z.ZodNumber>;
163
183
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
184
  id: z.ZodNumber;
165
185
  name: z.ZodOptional<z.ZodString>;
@@ -180,6 +200,8 @@ export declare const GetCompanyResponseSchema: z.ZodObject<{
180
200
  id: number;
181
201
  name: string;
182
202
  account_id?: number | undefined;
203
+ created_at?: number | undefined;
204
+ updated_at?: number | undefined;
183
205
  contacts?: {
184
206
  id: number;
185
207
  name?: string | undefined;
@@ -190,6 +212,8 @@ export declare const GetCompanyResponseSchema: z.ZodObject<{
190
212
  id: number;
191
213
  name: string;
192
214
  account_id?: number | undefined;
215
+ created_at?: number | undefined;
216
+ updated_at?: number | undefined;
193
217
  contacts?: {
194
218
  id: number;
195
219
  name?: string | undefined;
@@ -225,6 +249,8 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
225
249
  id: z.ZodNumber;
226
250
  name: z.ZodString;
227
251
  account_id: z.ZodOptional<z.ZodNumber>;
252
+ created_at: z.ZodOptional<z.ZodNumber>;
253
+ updated_at: z.ZodOptional<z.ZodNumber>;
228
254
  contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
229
255
  id: z.ZodNumber;
230
256
  name: z.ZodOptional<z.ZodString>;
@@ -245,6 +271,8 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
245
271
  id: number;
246
272
  name: string;
247
273
  account_id?: number | undefined;
274
+ created_at?: number | undefined;
275
+ updated_at?: number | undefined;
248
276
  contacts?: {
249
277
  id: number;
250
278
  name?: string | undefined;
@@ -255,6 +283,8 @@ export declare const UpdateCompanyResponseSchema: z.ZodObject<{
255
283
  id: number;
256
284
  name: string;
257
285
  account_id?: number | undefined;
286
+ created_at?: number | undefined;
287
+ updated_at?: number | undefined;
258
288
  contacts?: {
259
289
  id: number;
260
290
  name?: string | undefined;
@@ -275,47 +305,111 @@ export declare const SearchCompaniesParamsSchema: z.ZodObject<{
275
305
  page?: number | undefined;
276
306
  per_page?: number | undefined;
277
307
  }>;
278
- export declare const SearchCompaniesResponseSchema: z.ZodArray<z.ZodObject<{
279
- id: z.ZodNumber;
280
- name: z.ZodString;
281
- account_id: z.ZodOptional<z.ZodNumber>;
282
- contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ export declare const SearchCompaniesMetaSchema: z.ZodObject<{
309
+ count: z.ZodNumber;
310
+ current_page: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ count: number;
313
+ current_page: string | number;
314
+ }, {
315
+ count: number;
316
+ current_page: string | number;
317
+ }>;
318
+ export declare const SearchCompaniesResponseSchema: z.ZodObject<{
319
+ meta: z.ZodObject<{
320
+ count: z.ZodNumber;
321
+ current_page: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ count: number;
324
+ current_page: string | number;
325
+ }, {
326
+ count: number;
327
+ current_page: string | number;
328
+ }>;
329
+ payload: z.ZodArray<z.ZodObject<{
283
330
  id: z.ZodNumber;
284
- name: z.ZodOptional<z.ZodString>;
285
- email: z.ZodOptional<z.ZodString>;
286
- phone_number: z.ZodOptional<z.ZodString>;
331
+ name: z.ZodString;
332
+ account_id: z.ZodOptional<z.ZodNumber>;
333
+ created_at: z.ZodOptional<z.ZodNumber>;
334
+ updated_at: z.ZodOptional<z.ZodNumber>;
335
+ contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
336
+ id: z.ZodNumber;
337
+ name: z.ZodOptional<z.ZodString>;
338
+ email: z.ZodOptional<z.ZodString>;
339
+ phone_number: z.ZodOptional<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ id: number;
342
+ name?: string | undefined;
343
+ email?: string | undefined;
344
+ phone_number?: string | undefined;
345
+ }, {
346
+ id: number;
347
+ name?: string | undefined;
348
+ email?: string | undefined;
349
+ phone_number?: string | undefined;
350
+ }>, "many">>;
287
351
  }, "strip", z.ZodTypeAny, {
288
352
  id: number;
289
- name?: string | undefined;
290
- email?: string | undefined;
291
- phone_number?: string | undefined;
353
+ name: string;
354
+ account_id?: number | undefined;
355
+ created_at?: number | undefined;
356
+ updated_at?: number | undefined;
357
+ contacts?: {
358
+ id: number;
359
+ name?: string | undefined;
360
+ email?: string | undefined;
361
+ phone_number?: string | undefined;
362
+ }[] | undefined;
292
363
  }, {
293
364
  id: number;
294
- name?: string | undefined;
295
- email?: string | undefined;
296
- phone_number?: string | undefined;
297
- }>, "many">>;
365
+ name: string;
366
+ account_id?: number | undefined;
367
+ created_at?: number | undefined;
368
+ updated_at?: number | undefined;
369
+ contacts?: {
370
+ id: number;
371
+ name?: string | undefined;
372
+ email?: string | undefined;
373
+ phone_number?: string | undefined;
374
+ }[] | undefined;
375
+ }>, "many">;
298
376
  }, "strip", z.ZodTypeAny, {
299
- id: number;
300
- name: string;
301
- account_id?: number | undefined;
302
- contacts?: {
377
+ meta: {
378
+ count: number;
379
+ current_page: string | number;
380
+ };
381
+ payload: {
303
382
  id: number;
304
- name?: string | undefined;
305
- email?: string | undefined;
306
- phone_number?: string | undefined;
307
- }[] | undefined;
383
+ name: string;
384
+ account_id?: number | undefined;
385
+ created_at?: number | undefined;
386
+ updated_at?: number | undefined;
387
+ contacts?: {
388
+ id: number;
389
+ name?: string | undefined;
390
+ email?: string | undefined;
391
+ phone_number?: string | undefined;
392
+ }[] | undefined;
393
+ }[];
308
394
  }, {
309
- id: number;
310
- name: string;
311
- account_id?: number | undefined;
312
- contacts?: {
395
+ meta: {
396
+ count: number;
397
+ current_page: string | number;
398
+ };
399
+ payload: {
313
400
  id: number;
314
- name?: string | undefined;
315
- email?: string | undefined;
316
- phone_number?: string | undefined;
317
- }[] | undefined;
318
- }>, "many">;
401
+ name: string;
402
+ account_id?: number | undefined;
403
+ created_at?: number | undefined;
404
+ updated_at?: number | undefined;
405
+ contacts?: {
406
+ id: number;
407
+ name?: string | undefined;
408
+ email?: string | undefined;
409
+ phone_number?: string | undefined;
410
+ }[] | undefined;
411
+ }[];
412
+ }>;
319
413
  /**
320
414
  * TypeScript Types (inferred from Zod schemas)
321
415
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,aAAa;;;;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qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC"}
@@ -14,6 +14,8 @@ export const CompanySchema = z.object({
14
14
  id: z.number(),
15
15
  name: z.string(),
16
16
  account_id: z.number().optional(),
17
+ created_at: z.number().optional(),
18
+ updated_at: z.number().optional(),
17
19
  contacts: z.array(CompanyContactSchema).optional(),
18
20
  });
19
21
  // List companies params schema
@@ -51,6 +53,14 @@ export const SearchCompaniesParamsSchema = z.object({
51
53
  page: z.number().optional(),
52
54
  per_page: z.number().optional(),
53
55
  });
54
- // Search companies response - returns array directly
55
- export const SearchCompaniesResponseSchema = z.array(CompanySchema);
56
+ // Search companies meta schema
57
+ export const SearchCompaniesMetaSchema = z.object({
58
+ count: z.number(),
59
+ current_page: z.union([z.string(), z.number()]),
60
+ });
61
+ // Search companies response - returns meta and payload
62
+ export const SearchCompaniesResponseSchema = z.object({
63
+ meta: SearchCompaniesMetaSchema,
64
+ payload: z.array(CompanySchema),
65
+ });
56
66
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/companies/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,gDAAgD;AAChD,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CA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A2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH,uDAAuD;AACvD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CAChC,CAAC,CAAC"}
@@ -50,12 +50,12 @@ export declare const MessageSchema: z.ZodObject<{
50
50
  }>>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  id: number;
53
+ created_at: number;
53
54
  content: string;
54
55
  message_type: "incoming" | "outgoing";
55
56
  private: boolean;
56
57
  content_type: "text" | "input_select" | "cards" | "form" | "article";
57
58
  content_attributes: Record<string, unknown>;
58
- created_at: number;
59
59
  conversation_id: number;
60
60
  sender?: {
61
61
  id: number;
@@ -65,12 +65,12 @@ export declare const MessageSchema: z.ZodObject<{
65
65
  } | undefined;
66
66
  }, {
67
67
  id: number;
68
+ created_at: number;
68
69
  content: string;
69
70
  message_type: "incoming" | "outgoing";
70
71
  private: boolean;
71
72
  content_type: "text" | "input_select" | "cards" | "form" | "article";
72
73
  content_attributes: Record<string, unknown>;
73
- created_at: number;
74
74
  conversation_id: number;
75
75
  sender?: {
76
76
  id: number;
@@ -246,19 +246,19 @@ export declare const ContactInboxSchema: z.ZodObject<{
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  id: number;
248
248
  created_at: string;
249
+ updated_at: string;
249
250
  contact_id: number;
250
251
  inbox_id: number;
251
252
  source_id: string | null;
252
- updated_at: string;
253
253
  hmac_verified: boolean;
254
254
  pubsub_token: string;
255
255
  }, {
256
256
  id: number;
257
257
  created_at: string;
258
+ updated_at: string;
258
259
  contact_id: number;
259
260
  inbox_id: number;
260
261
  source_id: string | null;
261
- updated_at: string;
262
262
  hmac_verified: boolean;
263
263
  pubsub_token: string;
264
264
  }>;
@@ -395,19 +395,19 @@ export declare const ConversationSchema: z.ZodObject<{
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  id: number;
397
397
  created_at: string;
398
+ updated_at: string;
398
399
  contact_id: number;
399
400
  inbox_id: number;
400
401
  source_id: string | null;
401
- updated_at: string;
402
402
  hmac_verified: boolean;
403
403
  pubsub_token: string;
404
404
  }, {
405
405
  id: number;
406
406
  created_at: string;
407
+ updated_at: string;
407
408
  contact_id: number;
408
409
  inbox_id: number;
409
410
  source_id: string | null;
410
- updated_at: string;
411
411
  hmac_verified: boolean;
412
412
  pubsub_token: string;
413
413
  }>>;
@@ -438,12 +438,12 @@ export declare const ConversationSchema: z.ZodObject<{
438
438
  }>>;
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  id: number;
441
+ created_at: number;
441
442
  content: string;
442
443
  message_type: "incoming" | "outgoing";
443
444
  private: boolean;
444
445
  content_type: "text" | "input_select" | "cards" | "form" | "article";
445
446
  content_attributes: Record<string, unknown>;
446
- created_at: number;
447
447
  conversation_id: number;
448
448
  sender?: {
449
449
  id: number;
@@ -453,12 +453,12 @@ export declare const ConversationSchema: z.ZodObject<{
453
453
  } | undefined;
454
454
  }, {
455
455
  id: number;
456
+ created_at: number;
456
457
  content: string;
457
458
  message_type: "incoming" | "outgoing";
458
459
  private: boolean;
459
460
  content_type: "text" | "input_select" | "cards" | "form" | "article";
460
461
  content_attributes: Record<string, unknown>;
461
- created_at: number;
462
462
  conversation_id: number;
463
463
  sender?: {
464
464
  id: number;
@@ -591,8 +591,31 @@ export declare const ConversationSchema: z.ZodObject<{
591
591
  status: "open" | "resolved" | "pending" | "snoozed";
592
592
  account_id: number;
593
593
  created_at: number;
594
- inbox_id: number;
595
594
  updated_at: number;
595
+ inbox_id: number;
596
+ meta?: {
597
+ sender: {
598
+ id: number;
599
+ name: string | null;
600
+ email: string | null;
601
+ phone_number: string | null;
602
+ thumbnail: string;
603
+ identifier: string | null;
604
+ additional_attributes: Record<string, unknown>;
605
+ custom_attributes: Record<string, unknown>;
606
+ blocked: boolean;
607
+ customer_stage: string;
608
+ customer_stage_explanation: string | null;
609
+ type?: string | undefined;
610
+ };
611
+ hmac_verified: boolean;
612
+ assignee: {
613
+ id: number;
614
+ name: string;
615
+ email: string;
616
+ } | null;
617
+ team?: unknown;
618
+ } | undefined;
596
619
  priority?: string | null | undefined;
597
620
  additional_attributes?: Record<string, unknown> | undefined;
598
621
  custom_attributes?: Record<string, unknown> | undefined;
@@ -601,21 +624,21 @@ export declare const ConversationSchema: z.ZodObject<{
601
624
  contact_inbox?: {
602
625
  id: number;
603
626
  created_at: string;
627
+ updated_at: string;
604
628
  contact_id: number;
605
629
  inbox_id: number;
606
630
  source_id: string | null;
607
- updated_at: string;
608
631
  hmac_verified: boolean;
609
632
  pubsub_token: string;
610
633
  } | undefined;
611
634
  messages?: {
612
635
  id: number;
636
+ created_at: number;
613
637
  content: string;
614
638
  message_type: "incoming" | "outgoing";
615
639
  private: boolean;
616
640
  content_type: "text" | "input_select" | "cards" | "form" | "article";
617
641
  content_attributes: Record<string, unknown>;
618
- created_at: number;
619
642
  conversation_id: number;
620
643
  sender?: {
621
644
  id: number;
@@ -624,6 +647,26 @@ export declare const ConversationSchema: z.ZodObject<{
624
647
  email?: string | undefined;
625
648
  } | undefined;
626
649
  }[] | undefined;
650
+ labels?: string[] | undefined;
651
+ snoozed_until?: number | null | undefined;
652
+ unread_count?: number | undefined;
653
+ first_reply_created_at?: string | number | null | undefined;
654
+ waiting_since?: number | null | undefined;
655
+ ai_disabled?: boolean | undefined;
656
+ reenable_ai_at?: number | null | undefined;
657
+ ai_summary?: string | null | undefined;
658
+ conversation_type?: string | undefined;
659
+ agent_last_seen_at?: number | undefined;
660
+ contact_last_seen_at?: number | undefined;
661
+ last_activity_at?: number | undefined;
662
+ timestamp?: number | undefined;
663
+ }, {
664
+ id: number;
665
+ status: "open" | "resolved" | "pending" | "snoozed";
666
+ account_id: number;
667
+ created_at: number;
668
+ updated_at: number;
669
+ inbox_id: number;
627
670
  meta?: {
628
671
  sender: {
629
672
  id: number;
@@ -647,26 +690,6 @@ export declare const ConversationSchema: z.ZodObject<{
647
690
  } | null;
648
691
  team?: unknown;
649
692
  } | undefined;
650
- labels?: string[] | undefined;
651
- snoozed_until?: number | null | undefined;
652
- unread_count?: number | undefined;
653
- first_reply_created_at?: string | number | null | undefined;
654
- waiting_since?: number | null | undefined;
655
- ai_disabled?: boolean | undefined;
656
- reenable_ai_at?: number | null | undefined;
657
- ai_summary?: string | null | undefined;
658
- conversation_type?: string | undefined;
659
- agent_last_seen_at?: number | undefined;
660
- contact_last_seen_at?: number | undefined;
661
- last_activity_at?: number | undefined;
662
- timestamp?: number | undefined;
663
- }, {
664
- id: number;
665
- status: "open" | "resolved" | "pending" | "snoozed";
666
- account_id: number;
667
- created_at: number;
668
- inbox_id: number;
669
- updated_at: number;
670
693
  priority?: string | null | undefined;
671
694
  additional_attributes?: Record<string, unknown> | undefined;
672
695
  custom_attributes?: Record<string, unknown> | undefined;
@@ -675,21 +698,21 @@ export declare const ConversationSchema: z.ZodObject<{
675
698
  contact_inbox?: {
676
699
  id: number;
677
700
  created_at: string;
701
+ updated_at: string;
678
702
  contact_id: number;
679
703
  inbox_id: number;
680
704
  source_id: string | null;
681
- updated_at: string;
682
705
  hmac_verified: boolean;
683
706
  pubsub_token: string;
684
707
  } | undefined;
685
708
  messages?: {
686
709
  id: number;
710
+ created_at: number;
687
711
  content: string;
688
712
  message_type: "incoming" | "outgoing";
689
713
  private: boolean;
690
714
  content_type: "text" | "input_select" | "cards" | "form" | "article";
691
715
  content_attributes: Record<string, unknown>;
692
- created_at: number;
693
716
  conversation_id: number;
694
717
  sender?: {
695
718
  id: number;
@@ -698,29 +721,6 @@ export declare const ConversationSchema: z.ZodObject<{
698
721
  email?: string | undefined;
699
722
  } | undefined;
700
723
  }[] | undefined;
701
- meta?: {
702
- sender: {
703
- id: number;
704
- name: string | null;
705
- email: string | null;
706
- phone_number: string | null;
707
- thumbnail: string;
708
- identifier: string | null;
709
- additional_attributes: Record<string, unknown>;
710
- custom_attributes: Record<string, unknown>;
711
- blocked: boolean;
712
- customer_stage: string;
713
- customer_stage_explanation: string | null;
714
- type?: string | undefined;
715
- };
716
- hmac_verified: boolean;
717
- assignee: {
718
- id: number;
719
- name: string;
720
- email: string;
721
- } | null;
722
- team?: unknown;
723
- } | undefined;
724
724
  labels?: string[] | undefined;
725
725
  snoozed_until?: number | null | undefined;
726
726
  unread_count?: number | undefined;
@@ -847,12 +847,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
847
847
  }>>;
848
848
  }, "strip", z.ZodTypeAny, {
849
849
  id: number;
850
+ created_at: number;
850
851
  content: string;
851
852
  message_type: "incoming" | "outgoing";
852
853
  private: boolean;
853
854
  content_type: "text" | "input_select" | "cards" | "form" | "article";
854
855
  content_attributes: Record<string, unknown>;
855
- created_at: number;
856
856
  conversation_id: number;
857
857
  sender?: {
858
858
  id: number;
@@ -862,12 +862,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
862
862
  } | undefined;
863
863
  }, {
864
864
  id: number;
865
+ created_at: number;
865
866
  content: string;
866
867
  message_type: "incoming" | "outgoing";
867
868
  private: boolean;
868
869
  content_type: "text" | "input_select" | "cards" | "form" | "article";
869
870
  content_attributes: Record<string, unknown>;
870
- created_at: number;
871
871
  conversation_id: number;
872
872
  sender?: {
873
873
  id: number;
@@ -891,12 +891,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
891
891
  };
892
892
  payload: {
893
893
  id: number;
894
+ created_at: number;
894
895
  content: string;
895
896
  message_type: "incoming" | "outgoing";
896
897
  private: boolean;
897
898
  content_type: "text" | "input_select" | "cards" | "form" | "article";
898
899
  content_attributes: Record<string, unknown>;
899
- created_at: number;
900
900
  conversation_id: number;
901
901
  sender?: {
902
902
  id: number;
@@ -920,12 +920,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
920
920
  };
921
921
  payload: {
922
922
  id: number;
923
+ created_at: number;
923
924
  content: string;
924
925
  message_type: "incoming" | "outgoing";
925
926
  private: boolean;
926
927
  content_type: "text" | "input_select" | "cards" | "form" | "article";
927
928
  content_attributes: Record<string, unknown>;
928
- created_at: number;
929
929
  conversation_id: number;
930
930
  sender?: {
931
931
  id: number;