@relaycast/types 0.2.5 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/agent.d.ts +77 -139
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +4 -4
  4. package/dist/agent.js.map +1 -1
  5. package/dist/api.d.ts +13 -177
  6. package/dist/api.d.ts.map +1 -1
  7. package/dist/billing.d.ts +32 -82
  8. package/dist/billing.d.ts.map +1 -1
  9. package/dist/channel.d.ts +14 -64
  10. package/dist/channel.d.ts.map +1 -1
  11. package/dist/command.d.ts +29 -153
  12. package/dist/command.d.ts.map +1 -1
  13. package/dist/command.js +2 -2
  14. package/dist/command.js.map +1 -1
  15. package/dist/dm.d.ts +19 -62
  16. package/dist/dm.d.ts.map +1 -1
  17. package/dist/events.d.ts +169 -1217
  18. package/dist/events.d.ts.map +1 -1
  19. package/dist/events.js +21 -1
  20. package/dist/events.js.map +1 -1
  21. package/dist/file.d.ts +15 -69
  22. package/dist/file.d.ts.map +1 -1
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +0 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/message.d.ts +85 -746
  28. package/dist/message.d.ts.map +1 -1
  29. package/dist/reaction.d.ts +4 -28
  30. package/dist/reaction.d.ts.map +1 -1
  31. package/dist/receipt.d.ts +3 -27
  32. package/dist/receipt.d.ts.map +1 -1
  33. package/dist/subscription.d.ts +87 -95
  34. package/dist/subscription.d.ts.map +1 -1
  35. package/dist/webhook.d.ts +6 -64
  36. package/dist/webhook.d.ts.map +1 -1
  37. package/dist/webhook.js +1 -1
  38. package/dist/webhook.js.map +1 -1
  39. package/dist/workspace.d.ts +41 -57
  40. package/dist/workspace.d.ts.map +1 -1
  41. package/dist/workspace.js +26 -1
  42. package/dist/workspace.js.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/dashboard.d.ts +0 -174
  45. package/dist/dashboard.d.ts.map +0 -1
  46. package/dist/dashboard.js +0 -33
  47. package/dist/dashboard.js.map +0 -1
package/dist/message.d.ts CHANGED
@@ -2,59 +2,26 @@ import { z } from 'zod';
2
2
  export declare const HeaderBlockSchema: z.ZodObject<{
3
3
  type: z.ZodLiteral<"header">;
4
4
  text: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- type: "header";
7
- text: string;
8
- }, {
9
- type: "header";
10
- text: string;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type HeaderBlock = z.infer<typeof HeaderBlockSchema>;
13
7
  export declare const FieldsBlockSchema: z.ZodObject<{
14
8
  type: z.ZodLiteral<"fields">;
15
9
  fields: z.ZodArray<z.ZodObject<{
16
10
  label: z.ZodString;
17
11
  value: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- value: string;
20
- label: string;
21
- }, {
22
- value: string;
23
- label: string;
24
- }>, "many">;
25
- }, "strip", z.ZodTypeAny, {
26
- type: "fields";
27
- fields: {
28
- value: string;
29
- label: string;
30
- }[];
31
- }, {
32
- type: "fields";
33
- fields: {
34
- value: string;
35
- label: string;
36
- }[];
37
- }>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
38
14
  export type FieldsBlock = z.infer<typeof FieldsBlockSchema>;
39
15
  export declare const ActionButtonSchema: z.ZodObject<{
40
16
  type: z.ZodLiteral<"button">;
41
17
  text: z.ZodString;
42
18
  action_id: z.ZodString;
43
19
  value: z.ZodOptional<z.ZodString>;
44
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: "button";
47
- text: string;
48
- action_id: string;
49
- value?: string | undefined;
50
- style?: "primary" | "danger" | undefined;
51
- }, {
52
- type: "button";
53
- text: string;
54
- action_id: string;
55
- value?: string | undefined;
56
- style?: "primary" | "danger" | undefined;
57
- }>;
20
+ style: z.ZodOptional<z.ZodEnum<{
21
+ primary: "primary";
22
+ danger: "danger";
23
+ }>>;
24
+ }, z.core.$strip>;
58
25
  export type ActionButton = z.infer<typeof ActionButtonSchema>;
59
26
  export declare const ActionsBlockSchema: z.ZodObject<{
60
27
  type: z.ZodLiteral<"actions">;
@@ -63,147 +30,49 @@ export declare const ActionsBlockSchema: z.ZodObject<{
63
30
  text: z.ZodString;
64
31
  action_id: z.ZodString;
65
32
  value: z.ZodOptional<z.ZodString>;
66
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
67
- }, "strip", z.ZodTypeAny, {
68
- type: "button";
69
- text: string;
70
- action_id: string;
71
- value?: string | undefined;
72
- style?: "primary" | "danger" | undefined;
73
- }, {
74
- type: "button";
75
- text: string;
76
- action_id: string;
77
- value?: string | undefined;
78
- style?: "primary" | "danger" | undefined;
79
- }>, "many">;
80
- }, "strip", z.ZodTypeAny, {
81
- type: "actions";
82
- elements: {
83
- type: "button";
84
- text: string;
85
- action_id: string;
86
- value?: string | undefined;
87
- style?: "primary" | "danger" | undefined;
88
- }[];
89
- }, {
90
- type: "actions";
91
- elements: {
92
- type: "button";
93
- text: string;
94
- action_id: string;
95
- value?: string | undefined;
96
- style?: "primary" | "danger" | undefined;
97
- }[];
98
- }>;
33
+ style: z.ZodOptional<z.ZodEnum<{
34
+ primary: "primary";
35
+ danger: "danger";
36
+ }>>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>;
99
39
  export type ActionsBlock = z.infer<typeof ActionsBlockSchema>;
100
40
  export declare const TextBlockSchema: z.ZodObject<{
101
41
  type: z.ZodLiteral<"text">;
102
42
  text: z.ZodString;
103
- }, "strip", z.ZodTypeAny, {
104
- type: "text";
105
- text: string;
106
- }, {
107
- type: "text";
108
- text: string;
109
- }>;
43
+ }, z.core.$strip>;
110
44
  export type TextBlock = z.infer<typeof TextBlockSchema>;
111
45
  export declare const DividerBlockSchema: z.ZodObject<{
112
46
  type: z.ZodLiteral<"divider">;
113
- }, "strip", z.ZodTypeAny, {
114
- type: "divider";
115
- }, {
116
- type: "divider";
117
- }>;
47
+ }, z.core.$strip>;
118
48
  export type DividerBlock = z.infer<typeof DividerBlockSchema>;
119
- export declare const MessageBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
49
+ export declare const MessageBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
50
  type: z.ZodLiteral<"header">;
121
51
  text: z.ZodString;
122
- }, "strip", z.ZodTypeAny, {
123
- type: "header";
124
- text: string;
125
- }, {
126
- type: "header";
127
- text: string;
128
- }>, z.ZodObject<{
52
+ }, z.core.$strip>, z.ZodObject<{
129
53
  type: z.ZodLiteral<"fields">;
130
54
  fields: z.ZodArray<z.ZodObject<{
131
55
  label: z.ZodString;
132
56
  value: z.ZodString;
133
- }, "strip", z.ZodTypeAny, {
134
- value: string;
135
- label: string;
136
- }, {
137
- value: string;
138
- label: string;
139
- }>, "many">;
140
- }, "strip", z.ZodTypeAny, {
141
- type: "fields";
142
- fields: {
143
- value: string;
144
- label: string;
145
- }[];
146
- }, {
147
- type: "fields";
148
- fields: {
149
- value: string;
150
- label: string;
151
- }[];
152
- }>, z.ZodObject<{
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>, z.ZodObject<{
153
59
  type: z.ZodLiteral<"actions">;
154
60
  elements: z.ZodArray<z.ZodObject<{
155
61
  type: z.ZodLiteral<"button">;
156
62
  text: z.ZodString;
157
63
  action_id: z.ZodString;
158
64
  value: z.ZodOptional<z.ZodString>;
159
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
160
- }, "strip", z.ZodTypeAny, {
161
- type: "button";
162
- text: string;
163
- action_id: string;
164
- value?: string | undefined;
165
- style?: "primary" | "danger" | undefined;
166
- }, {
167
- type: "button";
168
- text: string;
169
- action_id: string;
170
- value?: string | undefined;
171
- style?: "primary" | "danger" | undefined;
172
- }>, "many">;
173
- }, "strip", z.ZodTypeAny, {
174
- type: "actions";
175
- elements: {
176
- type: "button";
177
- text: string;
178
- action_id: string;
179
- value?: string | undefined;
180
- style?: "primary" | "danger" | undefined;
181
- }[];
182
- }, {
183
- type: "actions";
184
- elements: {
185
- type: "button";
186
- text: string;
187
- action_id: string;
188
- value?: string | undefined;
189
- style?: "primary" | "danger" | undefined;
190
- }[];
191
- }>, z.ZodObject<{
65
+ style: z.ZodOptional<z.ZodEnum<{
66
+ primary: "primary";
67
+ danger: "danger";
68
+ }>>;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>, z.ZodObject<{
192
71
  type: z.ZodLiteral<"text">;
193
72
  text: z.ZodString;
194
- }, "strip", z.ZodTypeAny, {
195
- type: "text";
196
- text: string;
197
- }, {
198
- type: "text";
199
- text: string;
200
- }>, z.ZodObject<{
73
+ }, z.core.$strip>, z.ZodObject<{
201
74
  type: z.ZodLiteral<"divider">;
202
- }, "strip", z.ZodTypeAny, {
203
- type: "divider";
204
- }, {
205
- type: "divider";
206
- }>]>;
75
+ }, z.core.$strip>], "type">;
207
76
  export type MessageBlock = z.infer<typeof MessageBlockSchema>;
208
77
  export declare const MessageSchema: z.ZodObject<{
209
78
  id: z.ZodString;
@@ -212,683 +81,153 @@ export declare const MessageSchema: z.ZodObject<{
212
81
  agent_id: z.ZodString;
213
82
  thread_id: z.ZodNullable<z.ZodString>;
214
83
  body: z.ZodString;
215
- blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
84
+ blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
216
85
  type: z.ZodLiteral<"header">;
217
86
  text: z.ZodString;
218
- }, "strip", z.ZodTypeAny, {
219
- type: "header";
220
- text: string;
221
- }, {
222
- type: "header";
223
- text: string;
224
- }>, z.ZodObject<{
87
+ }, z.core.$strip>, z.ZodObject<{
225
88
  type: z.ZodLiteral<"fields">;
226
89
  fields: z.ZodArray<z.ZodObject<{
227
90
  label: z.ZodString;
228
91
  value: z.ZodString;
229
- }, "strip", z.ZodTypeAny, {
230
- value: string;
231
- label: string;
232
- }, {
233
- value: string;
234
- label: string;
235
- }>, "many">;
236
- }, "strip", z.ZodTypeAny, {
237
- type: "fields";
238
- fields: {
239
- value: string;
240
- label: string;
241
- }[];
242
- }, {
243
- type: "fields";
244
- fields: {
245
- value: string;
246
- label: string;
247
- }[];
248
- }>, z.ZodObject<{
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>, z.ZodObject<{
249
94
  type: z.ZodLiteral<"actions">;
250
95
  elements: z.ZodArray<z.ZodObject<{
251
96
  type: z.ZodLiteral<"button">;
252
97
  text: z.ZodString;
253
98
  action_id: z.ZodString;
254
99
  value: z.ZodOptional<z.ZodString>;
255
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
256
- }, "strip", z.ZodTypeAny, {
257
- type: "button";
258
- text: string;
259
- action_id: string;
260
- value?: string | undefined;
261
- style?: "primary" | "danger" | undefined;
262
- }, {
263
- type: "button";
264
- text: string;
265
- action_id: string;
266
- value?: string | undefined;
267
- style?: "primary" | "danger" | undefined;
268
- }>, "many">;
269
- }, "strip", z.ZodTypeAny, {
270
- type: "actions";
271
- elements: {
272
- type: "button";
273
- text: string;
274
- action_id: string;
275
- value?: string | undefined;
276
- style?: "primary" | "danger" | undefined;
277
- }[];
278
- }, {
279
- type: "actions";
280
- elements: {
281
- type: "button";
282
- text: string;
283
- action_id: string;
284
- value?: string | undefined;
285
- style?: "primary" | "danger" | undefined;
286
- }[];
287
- }>, z.ZodObject<{
100
+ style: z.ZodOptional<z.ZodEnum<{
101
+ primary: "primary";
102
+ danger: "danger";
103
+ }>>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>, z.ZodObject<{
288
106
  type: z.ZodLiteral<"text">;
289
107
  text: z.ZodString;
290
- }, "strip", z.ZodTypeAny, {
291
- type: "text";
292
- text: string;
293
- }, {
294
- type: "text";
295
- text: string;
296
- }>, z.ZodObject<{
108
+ }, z.core.$strip>, z.ZodObject<{
297
109
  type: z.ZodLiteral<"divider">;
298
- }, "strip", z.ZodTypeAny, {
299
- type: "divider";
300
- }, {
301
- type: "divider";
302
- }>]>, "many">>;
110
+ }, z.core.$strip>], "type">>>;
303
111
  has_attachments: z.ZodBoolean;
304
112
  created_at: z.ZodString;
305
113
  updated_at: z.ZodNullable<z.ZodString>;
306
- }, "strip", z.ZodTypeAny, {
307
- id: string;
308
- workspace_id: string;
309
- created_at: string;
310
- agent_id: string;
311
- channel_id: string;
312
- thread_id: string | null;
313
- body: string;
314
- blocks: ({
315
- type: "header";
316
- text: string;
317
- } | {
318
- type: "fields";
319
- fields: {
320
- value: string;
321
- label: string;
322
- }[];
323
- } | {
324
- type: "actions";
325
- elements: {
326
- type: "button";
327
- text: string;
328
- action_id: string;
329
- value?: string | undefined;
330
- style?: "primary" | "danger" | undefined;
331
- }[];
332
- } | {
333
- type: "text";
334
- text: string;
335
- } | {
336
- type: "divider";
337
- })[] | null;
338
- has_attachments: boolean;
339
- updated_at: string | null;
340
- }, {
341
- id: string;
342
- workspace_id: string;
343
- created_at: string;
344
- agent_id: string;
345
- channel_id: string;
346
- thread_id: string | null;
347
- body: string;
348
- blocks: ({
349
- type: "header";
350
- text: string;
351
- } | {
352
- type: "fields";
353
- fields: {
354
- value: string;
355
- label: string;
356
- }[];
357
- } | {
358
- type: "actions";
359
- elements: {
360
- type: "button";
361
- text: string;
362
- action_id: string;
363
- value?: string | undefined;
364
- style?: "primary" | "danger" | undefined;
365
- }[];
366
- } | {
367
- type: "text";
368
- text: string;
369
- } | {
370
- type: "divider";
371
- })[] | null;
372
- has_attachments: boolean;
373
- updated_at: string | null;
374
- }>;
114
+ }, z.core.$strip>;
375
115
  export type Message = z.infer<typeof MessageSchema>;
376
116
  export declare const MessageWithMetaSchema: z.ZodObject<{
377
117
  id: z.ZodString;
378
118
  agent_name: z.ZodString;
379
119
  agent_id: z.ZodString;
380
120
  text: z.ZodString;
381
- blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
121
+ blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
382
122
  type: z.ZodLiteral<"header">;
383
123
  text: z.ZodString;
384
- }, "strip", z.ZodTypeAny, {
385
- type: "header";
386
- text: string;
387
- }, {
388
- type: "header";
389
- text: string;
390
- }>, z.ZodObject<{
124
+ }, z.core.$strip>, z.ZodObject<{
391
125
  type: z.ZodLiteral<"fields">;
392
126
  fields: z.ZodArray<z.ZodObject<{
393
127
  label: z.ZodString;
394
128
  value: z.ZodString;
395
- }, "strip", z.ZodTypeAny, {
396
- value: string;
397
- label: string;
398
- }, {
399
- value: string;
400
- label: string;
401
- }>, "many">;
402
- }, "strip", z.ZodTypeAny, {
403
- type: "fields";
404
- fields: {
405
- value: string;
406
- label: string;
407
- }[];
408
- }, {
409
- type: "fields";
410
- fields: {
411
- value: string;
412
- label: string;
413
- }[];
414
- }>, z.ZodObject<{
129
+ }, z.core.$strip>>;
130
+ }, z.core.$strip>, z.ZodObject<{
415
131
  type: z.ZodLiteral<"actions">;
416
132
  elements: z.ZodArray<z.ZodObject<{
417
133
  type: z.ZodLiteral<"button">;
418
134
  text: z.ZodString;
419
135
  action_id: z.ZodString;
420
136
  value: z.ZodOptional<z.ZodString>;
421
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
422
- }, "strip", z.ZodTypeAny, {
423
- type: "button";
424
- text: string;
425
- action_id: string;
426
- value?: string | undefined;
427
- style?: "primary" | "danger" | undefined;
428
- }, {
429
- type: "button";
430
- text: string;
431
- action_id: string;
432
- value?: string | undefined;
433
- style?: "primary" | "danger" | undefined;
434
- }>, "many">;
435
- }, "strip", z.ZodTypeAny, {
436
- type: "actions";
437
- elements: {
438
- type: "button";
439
- text: string;
440
- action_id: string;
441
- value?: string | undefined;
442
- style?: "primary" | "danger" | undefined;
443
- }[];
444
- }, {
445
- type: "actions";
446
- elements: {
447
- type: "button";
448
- text: string;
449
- action_id: string;
450
- value?: string | undefined;
451
- style?: "primary" | "danger" | undefined;
452
- }[];
453
- }>, z.ZodObject<{
137
+ style: z.ZodOptional<z.ZodEnum<{
138
+ primary: "primary";
139
+ danger: "danger";
140
+ }>>;
141
+ }, z.core.$strip>>;
142
+ }, z.core.$strip>, z.ZodObject<{
454
143
  type: z.ZodLiteral<"text">;
455
144
  text: z.ZodString;
456
- }, "strip", z.ZodTypeAny, {
457
- type: "text";
458
- text: string;
459
- }, {
460
- type: "text";
461
- text: string;
462
- }>, z.ZodObject<{
145
+ }, z.core.$strip>, z.ZodObject<{
463
146
  type: z.ZodLiteral<"divider">;
464
- }, "strip", z.ZodTypeAny, {
465
- type: "divider";
466
- }, {
467
- type: "divider";
468
- }>]>, "many">>;
147
+ }, z.core.$strip>], "type">>>;
469
148
  attachments: z.ZodArray<z.ZodObject<{
470
149
  file_id: z.ZodString;
471
150
  filename: z.ZodString;
472
151
  url: z.ZodString;
473
152
  size: z.ZodNumber;
474
- }, "strip", z.ZodTypeAny, {
475
- file_id: string;
476
- filename: string;
477
- url: string;
478
- size: number;
479
- }, {
480
- file_id: string;
481
- filename: string;
482
- url: string;
483
- size: number;
484
- }>, "many">;
153
+ }, z.core.$strip>>;
485
154
  created_at: z.ZodString;
486
155
  reply_count: z.ZodNumber;
487
156
  reactions: z.ZodArray<z.ZodObject<{
488
157
  emoji: z.ZodString;
489
158
  count: z.ZodNumber;
490
- agents: z.ZodArray<z.ZodString, "many">;
491
- }, "strip", z.ZodTypeAny, {
492
- agents: string[];
493
- emoji: string;
494
- count: number;
495
- }, {
496
- agents: string[];
497
- emoji: string;
498
- count: number;
499
- }>, "many">;
159
+ agents: z.ZodArray<z.ZodString>;
160
+ }, z.core.$strip>>;
500
161
  read_by_count: z.ZodNumber;
501
- }, "strip", z.ZodTypeAny, {
502
- id: string;
503
- created_at: string;
504
- agent_id: string;
505
- agent_name: string;
506
- text: string;
507
- attachments: {
508
- file_id: string;
509
- filename: string;
510
- url: string;
511
- size: number;
512
- }[];
513
- blocks: ({
514
- type: "header";
515
- text: string;
516
- } | {
517
- type: "fields";
518
- fields: {
519
- value: string;
520
- label: string;
521
- }[];
522
- } | {
523
- type: "actions";
524
- elements: {
525
- type: "button";
526
- text: string;
527
- action_id: string;
528
- value?: string | undefined;
529
- style?: "primary" | "danger" | undefined;
530
- }[];
531
- } | {
532
- type: "text";
533
- text: string;
534
- } | {
535
- type: "divider";
536
- })[] | null;
537
- reply_count: number;
538
- reactions: {
539
- agents: string[];
540
- emoji: string;
541
- count: number;
542
- }[];
543
- read_by_count: number;
544
- }, {
545
- id: string;
546
- created_at: string;
547
- agent_id: string;
548
- agent_name: string;
549
- text: string;
550
- attachments: {
551
- file_id: string;
552
- filename: string;
553
- url: string;
554
- size: number;
555
- }[];
556
- blocks: ({
557
- type: "header";
558
- text: string;
559
- } | {
560
- type: "fields";
561
- fields: {
562
- value: string;
563
- label: string;
564
- }[];
565
- } | {
566
- type: "actions";
567
- elements: {
568
- type: "button";
569
- text: string;
570
- action_id: string;
571
- value?: string | undefined;
572
- style?: "primary" | "danger" | undefined;
573
- }[];
574
- } | {
575
- type: "text";
576
- text: string;
577
- } | {
578
- type: "divider";
579
- })[] | null;
580
- reply_count: number;
581
- reactions: {
582
- agents: string[];
583
- emoji: string;
584
- count: number;
585
- }[];
586
- read_by_count: number;
587
- }>;
162
+ }, z.core.$strip>;
588
163
  export type MessageWithMeta = z.infer<typeof MessageWithMetaSchema>;
589
164
  export declare const PostMessageRequestSchema: z.ZodObject<{
590
165
  text: z.ZodString;
591
- blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
166
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
592
167
  type: z.ZodLiteral<"header">;
593
168
  text: z.ZodString;
594
- }, "strip", z.ZodTypeAny, {
595
- type: "header";
596
- text: string;
597
- }, {
598
- type: "header";
599
- text: string;
600
- }>, z.ZodObject<{
169
+ }, z.core.$strip>, z.ZodObject<{
601
170
  type: z.ZodLiteral<"fields">;
602
171
  fields: z.ZodArray<z.ZodObject<{
603
172
  label: z.ZodString;
604
173
  value: z.ZodString;
605
- }, "strip", z.ZodTypeAny, {
606
- value: string;
607
- label: string;
608
- }, {
609
- value: string;
610
- label: string;
611
- }>, "many">;
612
- }, "strip", z.ZodTypeAny, {
613
- type: "fields";
614
- fields: {
615
- value: string;
616
- label: string;
617
- }[];
618
- }, {
619
- type: "fields";
620
- fields: {
621
- value: string;
622
- label: string;
623
- }[];
624
- }>, z.ZodObject<{
174
+ }, z.core.$strip>>;
175
+ }, z.core.$strip>, z.ZodObject<{
625
176
  type: z.ZodLiteral<"actions">;
626
177
  elements: z.ZodArray<z.ZodObject<{
627
178
  type: z.ZodLiteral<"button">;
628
179
  text: z.ZodString;
629
180
  action_id: z.ZodString;
630
181
  value: z.ZodOptional<z.ZodString>;
631
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
632
- }, "strip", z.ZodTypeAny, {
633
- type: "button";
634
- text: string;
635
- action_id: string;
636
- value?: string | undefined;
637
- style?: "primary" | "danger" | undefined;
638
- }, {
639
- type: "button";
640
- text: string;
641
- action_id: string;
642
- value?: string | undefined;
643
- style?: "primary" | "danger" | undefined;
644
- }>, "many">;
645
- }, "strip", z.ZodTypeAny, {
646
- type: "actions";
647
- elements: {
648
- type: "button";
649
- text: string;
650
- action_id: string;
651
- value?: string | undefined;
652
- style?: "primary" | "danger" | undefined;
653
- }[];
654
- }, {
655
- type: "actions";
656
- elements: {
657
- type: "button";
658
- text: string;
659
- action_id: string;
660
- value?: string | undefined;
661
- style?: "primary" | "danger" | undefined;
662
- }[];
663
- }>, z.ZodObject<{
182
+ style: z.ZodOptional<z.ZodEnum<{
183
+ primary: "primary";
184
+ danger: "danger";
185
+ }>>;
186
+ }, z.core.$strip>>;
187
+ }, z.core.$strip>, z.ZodObject<{
664
188
  type: z.ZodLiteral<"text">;
665
189
  text: z.ZodString;
666
- }, "strip", z.ZodTypeAny, {
667
- type: "text";
668
- text: string;
669
- }, {
670
- type: "text";
671
- text: string;
672
- }>, z.ZodObject<{
190
+ }, z.core.$strip>, z.ZodObject<{
673
191
  type: z.ZodLiteral<"divider">;
674
- }, "strip", z.ZodTypeAny, {
675
- type: "divider";
676
- }, {
677
- type: "divider";
678
- }>]>, "many">>;
679
- attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
680
- }, "strip", z.ZodTypeAny, {
681
- text: string;
682
- attachments?: string[] | undefined;
683
- blocks?: ({
684
- type: "header";
685
- text: string;
686
- } | {
687
- type: "fields";
688
- fields: {
689
- value: string;
690
- label: string;
691
- }[];
692
- } | {
693
- type: "actions";
694
- elements: {
695
- type: "button";
696
- text: string;
697
- action_id: string;
698
- value?: string | undefined;
699
- style?: "primary" | "danger" | undefined;
700
- }[];
701
- } | {
702
- type: "text";
703
- text: string;
704
- } | {
705
- type: "divider";
706
- })[] | undefined;
707
- }, {
708
- text: string;
709
- attachments?: string[] | undefined;
710
- blocks?: ({
711
- type: "header";
712
- text: string;
713
- } | {
714
- type: "fields";
715
- fields: {
716
- value: string;
717
- label: string;
718
- }[];
719
- } | {
720
- type: "actions";
721
- elements: {
722
- type: "button";
723
- text: string;
724
- action_id: string;
725
- value?: string | undefined;
726
- style?: "primary" | "danger" | undefined;
727
- }[];
728
- } | {
729
- type: "text";
730
- text: string;
731
- } | {
732
- type: "divider";
733
- })[] | undefined;
734
- }>;
192
+ }, z.core.$strip>], "type">>>;
193
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ }, z.core.$strip>;
735
195
  export type PostMessageRequest = z.infer<typeof PostMessageRequestSchema>;
736
196
  export declare const MessageListQuerySchema: z.ZodObject<{
737
197
  limit: z.ZodOptional<z.ZodNumber>;
738
198
  before: z.ZodOptional<z.ZodString>;
739
199
  after: z.ZodOptional<z.ZodString>;
740
- }, "strip", z.ZodTypeAny, {
741
- limit?: number | undefined;
742
- before?: string | undefined;
743
- after?: string | undefined;
744
- }, {
745
- limit?: number | undefined;
746
- before?: string | undefined;
747
- after?: string | undefined;
748
- }>;
200
+ }, z.core.$strip>;
749
201
  export type MessageListQuery = z.infer<typeof MessageListQuerySchema>;
750
202
  export declare const ThreadReplyRequestSchema: z.ZodObject<{
751
203
  text: z.ZodString;
752
- blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
204
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
753
205
  type: z.ZodLiteral<"header">;
754
206
  text: z.ZodString;
755
- }, "strip", z.ZodTypeAny, {
756
- type: "header";
757
- text: string;
758
- }, {
759
- type: "header";
760
- text: string;
761
- }>, z.ZodObject<{
207
+ }, z.core.$strip>, z.ZodObject<{
762
208
  type: z.ZodLiteral<"fields">;
763
209
  fields: z.ZodArray<z.ZodObject<{
764
210
  label: z.ZodString;
765
211
  value: z.ZodString;
766
- }, "strip", z.ZodTypeAny, {
767
- value: string;
768
- label: string;
769
- }, {
770
- value: string;
771
- label: string;
772
- }>, "many">;
773
- }, "strip", z.ZodTypeAny, {
774
- type: "fields";
775
- fields: {
776
- value: string;
777
- label: string;
778
- }[];
779
- }, {
780
- type: "fields";
781
- fields: {
782
- value: string;
783
- label: string;
784
- }[];
785
- }>, z.ZodObject<{
212
+ }, z.core.$strip>>;
213
+ }, z.core.$strip>, z.ZodObject<{
786
214
  type: z.ZodLiteral<"actions">;
787
215
  elements: z.ZodArray<z.ZodObject<{
788
216
  type: z.ZodLiteral<"button">;
789
217
  text: z.ZodString;
790
218
  action_id: z.ZodString;
791
219
  value: z.ZodOptional<z.ZodString>;
792
- style: z.ZodOptional<z.ZodEnum<["primary", "danger"]>>;
793
- }, "strip", z.ZodTypeAny, {
794
- type: "button";
795
- text: string;
796
- action_id: string;
797
- value?: string | undefined;
798
- style?: "primary" | "danger" | undefined;
799
- }, {
800
- type: "button";
801
- text: string;
802
- action_id: string;
803
- value?: string | undefined;
804
- style?: "primary" | "danger" | undefined;
805
- }>, "many">;
806
- }, "strip", z.ZodTypeAny, {
807
- type: "actions";
808
- elements: {
809
- type: "button";
810
- text: string;
811
- action_id: string;
812
- value?: string | undefined;
813
- style?: "primary" | "danger" | undefined;
814
- }[];
815
- }, {
816
- type: "actions";
817
- elements: {
818
- type: "button";
819
- text: string;
820
- action_id: string;
821
- value?: string | undefined;
822
- style?: "primary" | "danger" | undefined;
823
- }[];
824
- }>, z.ZodObject<{
220
+ style: z.ZodOptional<z.ZodEnum<{
221
+ primary: "primary";
222
+ danger: "danger";
223
+ }>>;
224
+ }, z.core.$strip>>;
225
+ }, z.core.$strip>, z.ZodObject<{
825
226
  type: z.ZodLiteral<"text">;
826
227
  text: z.ZodString;
827
- }, "strip", z.ZodTypeAny, {
828
- type: "text";
829
- text: string;
830
- }, {
831
- type: "text";
832
- text: string;
833
- }>, z.ZodObject<{
228
+ }, z.core.$strip>, z.ZodObject<{
834
229
  type: z.ZodLiteral<"divider">;
835
- }, "strip", z.ZodTypeAny, {
836
- type: "divider";
837
- }, {
838
- type: "divider";
839
- }>]>, "many">>;
840
- }, "strip", z.ZodTypeAny, {
841
- text: string;
842
- blocks?: ({
843
- type: "header";
844
- text: string;
845
- } | {
846
- type: "fields";
847
- fields: {
848
- value: string;
849
- label: string;
850
- }[];
851
- } | {
852
- type: "actions";
853
- elements: {
854
- type: "button";
855
- text: string;
856
- action_id: string;
857
- value?: string | undefined;
858
- style?: "primary" | "danger" | undefined;
859
- }[];
860
- } | {
861
- type: "text";
862
- text: string;
863
- } | {
864
- type: "divider";
865
- })[] | undefined;
866
- }, {
867
- text: string;
868
- blocks?: ({
869
- type: "header";
870
- text: string;
871
- } | {
872
- type: "fields";
873
- fields: {
874
- value: string;
875
- label: string;
876
- }[];
877
- } | {
878
- type: "actions";
879
- elements: {
880
- type: "button";
881
- text: string;
882
- action_id: string;
883
- value?: string | undefined;
884
- style?: "primary" | "danger" | undefined;
885
- }[];
886
- } | {
887
- type: "text";
888
- text: string;
889
- } | {
890
- type: "divider";
891
- })[] | undefined;
892
- }>;
230
+ }, z.core.$strip>], "type">>>;
231
+ }, z.core.$strip>;
893
232
  export type ThreadReplyRequest = z.infer<typeof ThreadReplyRequestSchema>;
894
233
  //# sourceMappingURL=message.d.ts.map