@relaycast/types 0.2.4 → 0.2.5

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 (61) hide show
  1. package/dist/agent.d.ts +189 -23
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +73 -1
  4. package/dist/agent.js.map +1 -1
  5. package/dist/api.d.ts +209 -14
  6. package/dist/api.d.ts.map +1 -1
  7. package/dist/api.js +22 -1
  8. package/dist/api.js.map +1 -1
  9. package/dist/billing.d.ts +97 -17
  10. package/dist/billing.d.ts.map +1 -1
  11. package/dist/billing.js +44 -1
  12. package/dist/billing.js.map +1 -1
  13. package/dist/channel.d.ts +80 -16
  14. package/dist/channel.d.ts.map +1 -1
  15. package/dist/channel.js +35 -1
  16. package/dist/channel.js.map +1 -1
  17. package/dist/command.d.ts +188 -26
  18. package/dist/command.d.ts.map +1 -1
  19. package/dist/command.js +47 -1
  20. package/dist/command.js.map +1 -1
  21. package/dist/dashboard.d.ts +141 -14
  22. package/dist/dashboard.d.ts.map +1 -1
  23. package/dist/dashboard.js +32 -1
  24. package/dist/dashboard.js.map +1 -1
  25. package/dist/dm.d.ts +74 -15
  26. package/dist/dm.d.ts.map +1 -1
  27. package/dist/dm.js +33 -1
  28. package/dist/dm.js.map +1 -1
  29. package/dist/events.d.ts +1479 -75
  30. package/dist/events.d.ts.map +1 -1
  31. package/dist/events.js +186 -1
  32. package/dist/events.js.map +1 -1
  33. package/dist/file.d.ts +83 -14
  34. package/dist/file.d.ts.map +1 -1
  35. package/dist/file.js +38 -1
  36. package/dist/file.js.map +1 -1
  37. package/dist/message.d.ts +875 -52
  38. package/dist/message.d.ts.map +1 -1
  39. package/dist/message.js +75 -1
  40. package/dist/message.js.map +1 -1
  41. package/dist/reaction.d.ts +35 -7
  42. package/dist/reaction.d.ts.map +1 -1
  43. package/dist/reaction.js +16 -1
  44. package/dist/reaction.js.map +1 -1
  45. package/dist/receipt.d.ts +34 -6
  46. package/dist/receipt.d.ts.map +1 -1
  47. package/dist/receipt.js +16 -1
  48. package/dist/receipt.js.map +1 -1
  49. package/dist/subscription.d.ts +119 -20
  50. package/dist/subscription.d.ts.map +1 -1
  51. package/dist/subscription.js +49 -1
  52. package/dist/subscription.js.map +1 -1
  53. package/dist/webhook.d.ts +81 -17
  54. package/dist/webhook.d.ts.map +1 -1
  55. package/dist/webhook.js +35 -1
  56. package/dist/webhook.js.map +1 -1
  57. package/dist/workspace.d.ts +77 -12
  58. package/dist/workspace.d.ts.map +1 -1
  59. package/dist/workspace.js +32 -1
  60. package/dist/workspace.js.map +1 -1
  61. package/package.json +4 -1
package/dist/message.d.ts CHANGED
@@ -1,71 +1,894 @@
1
- import type { FileAttachment } from './file.js';
2
- import type { ReactionGroup } from './reaction.js';
3
- export interface HeaderBlock {
4
- type: 'header';
5
- text: string;
6
- }
7
- export interface FieldsBlock {
8
- type: 'fields';
9
- fields: Array<{
1
+ import { z } from 'zod';
2
+ export declare const HeaderBlockSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"header">;
4
+ text: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "header";
7
+ text: string;
8
+ }, {
9
+ type: "header";
10
+ text: string;
11
+ }>;
12
+ export type HeaderBlock = z.infer<typeof HeaderBlockSchema>;
13
+ export declare const FieldsBlockSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"fields">;
15
+ fields: z.ZodArray<z.ZodObject<{
16
+ label: z.ZodString;
17
+ 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;
10
29
  label: string;
30
+ }[];
31
+ }, {
32
+ type: "fields";
33
+ fields: {
11
34
  value: string;
12
- }>;
13
- }
14
- export interface ActionButton {
15
- type: 'button';
35
+ label: string;
36
+ }[];
37
+ }>;
38
+ export type FieldsBlock = z.infer<typeof FieldsBlockSchema>;
39
+ export declare const ActionButtonSchema: z.ZodObject<{
40
+ type: z.ZodLiteral<"button">;
41
+ text: z.ZodString;
42
+ action_id: z.ZodString;
43
+ 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";
16
53
  text: string;
17
54
  action_id: string;
18
- value?: string;
19
- style?: 'primary' | 'danger';
20
- }
21
- export interface ActionsBlock {
22
- type: 'actions';
23
- elements: ActionButton[];
24
- }
25
- export interface TextBlock {
26
- type: 'text';
27
- text: string;
28
- }
29
- export interface DividerBlock {
30
- type: 'divider';
31
- }
32
- export type MessageBlock = HeaderBlock | FieldsBlock | ActionsBlock | TextBlock | DividerBlock;
33
- export interface Message {
55
+ value?: string | undefined;
56
+ style?: "primary" | "danger" | undefined;
57
+ }>;
58
+ export type ActionButton = z.infer<typeof ActionButtonSchema>;
59
+ export declare const ActionsBlockSchema: z.ZodObject<{
60
+ type: z.ZodLiteral<"actions">;
61
+ elements: z.ZodArray<z.ZodObject<{
62
+ type: z.ZodLiteral<"button">;
63
+ text: z.ZodString;
64
+ action_id: z.ZodString;
65
+ 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
+ }>;
99
+ export type ActionsBlock = z.infer<typeof ActionsBlockSchema>;
100
+ export declare const TextBlockSchema: z.ZodObject<{
101
+ type: z.ZodLiteral<"text">;
102
+ text: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: "text";
105
+ text: string;
106
+ }, {
107
+ type: "text";
108
+ text: string;
109
+ }>;
110
+ export type TextBlock = z.infer<typeof TextBlockSchema>;
111
+ export declare const DividerBlockSchema: z.ZodObject<{
112
+ type: z.ZodLiteral<"divider">;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "divider";
115
+ }, {
116
+ type: "divider";
117
+ }>;
118
+ export type DividerBlock = z.infer<typeof DividerBlockSchema>;
119
+ export declare const MessageBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
120
+ type: z.ZodLiteral<"header">;
121
+ text: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: "header";
124
+ text: string;
125
+ }, {
126
+ type: "header";
127
+ text: string;
128
+ }>, z.ZodObject<{
129
+ type: z.ZodLiteral<"fields">;
130
+ fields: z.ZodArray<z.ZodObject<{
131
+ label: z.ZodString;
132
+ 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<{
153
+ type: z.ZodLiteral<"actions">;
154
+ elements: z.ZodArray<z.ZodObject<{
155
+ type: z.ZodLiteral<"button">;
156
+ text: z.ZodString;
157
+ action_id: z.ZodString;
158
+ 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<{
192
+ type: z.ZodLiteral<"text">;
193
+ text: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: "text";
196
+ text: string;
197
+ }, {
198
+ type: "text";
199
+ text: string;
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"divider">;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: "divider";
204
+ }, {
205
+ type: "divider";
206
+ }>]>;
207
+ export type MessageBlock = z.infer<typeof MessageBlockSchema>;
208
+ export declare const MessageSchema: z.ZodObject<{
209
+ id: z.ZodString;
210
+ workspace_id: z.ZodString;
211
+ channel_id: z.ZodString;
212
+ agent_id: z.ZodString;
213
+ thread_id: z.ZodNullable<z.ZodString>;
214
+ body: z.ZodString;
215
+ blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
216
+ type: z.ZodLiteral<"header">;
217
+ text: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ type: "header";
220
+ text: string;
221
+ }, {
222
+ type: "header";
223
+ text: string;
224
+ }>, z.ZodObject<{
225
+ type: z.ZodLiteral<"fields">;
226
+ fields: z.ZodArray<z.ZodObject<{
227
+ label: z.ZodString;
228
+ 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<{
249
+ type: z.ZodLiteral<"actions">;
250
+ elements: z.ZodArray<z.ZodObject<{
251
+ type: z.ZodLiteral<"button">;
252
+ text: z.ZodString;
253
+ action_id: z.ZodString;
254
+ 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<{
288
+ type: z.ZodLiteral<"text">;
289
+ text: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ type: "text";
292
+ text: string;
293
+ }, {
294
+ type: "text";
295
+ text: string;
296
+ }>, z.ZodObject<{
297
+ type: z.ZodLiteral<"divider">;
298
+ }, "strip", z.ZodTypeAny, {
299
+ type: "divider";
300
+ }, {
301
+ type: "divider";
302
+ }>]>, "many">>;
303
+ has_attachments: z.ZodBoolean;
304
+ created_at: z.ZodString;
305
+ updated_at: z.ZodNullable<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
34
307
  id: string;
35
308
  workspace_id: string;
36
- channel_id: string;
309
+ created_at: string;
37
310
  agent_id: string;
311
+ channel_id: string;
38
312
  thread_id: string | null;
39
313
  body: string;
40
- blocks: MessageBlock[] | null;
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;
41
338
  has_attachments: boolean;
339
+ updated_at: string | null;
340
+ }, {
341
+ id: string;
342
+ workspace_id: string;
42
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;
43
373
  updated_at: string | null;
44
- }
45
- export interface MessageWithMeta {
374
+ }>;
375
+ export type Message = z.infer<typeof MessageSchema>;
376
+ export declare const MessageWithMetaSchema: z.ZodObject<{
377
+ id: z.ZodString;
378
+ agent_name: z.ZodString;
379
+ agent_id: z.ZodString;
380
+ text: z.ZodString;
381
+ blocks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
382
+ type: z.ZodLiteral<"header">;
383
+ text: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ type: "header";
386
+ text: string;
387
+ }, {
388
+ type: "header";
389
+ text: string;
390
+ }>, z.ZodObject<{
391
+ type: z.ZodLiteral<"fields">;
392
+ fields: z.ZodArray<z.ZodObject<{
393
+ label: z.ZodString;
394
+ 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<{
415
+ type: z.ZodLiteral<"actions">;
416
+ elements: z.ZodArray<z.ZodObject<{
417
+ type: z.ZodLiteral<"button">;
418
+ text: z.ZodString;
419
+ action_id: z.ZodString;
420
+ 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<{
454
+ type: z.ZodLiteral<"text">;
455
+ text: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: "text";
458
+ text: string;
459
+ }, {
460
+ type: "text";
461
+ text: string;
462
+ }>, z.ZodObject<{
463
+ type: z.ZodLiteral<"divider">;
464
+ }, "strip", z.ZodTypeAny, {
465
+ type: "divider";
466
+ }, {
467
+ type: "divider";
468
+ }>]>, "many">>;
469
+ attachments: z.ZodArray<z.ZodObject<{
470
+ file_id: z.ZodString;
471
+ filename: z.ZodString;
472
+ url: z.ZodString;
473
+ 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">;
485
+ created_at: z.ZodString;
486
+ reply_count: z.ZodNumber;
487
+ reactions: z.ZodArray<z.ZodObject<{
488
+ emoji: z.ZodString;
489
+ 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">;
500
+ read_by_count: z.ZodNumber;
501
+ }, "strip", z.ZodTypeAny, {
46
502
  id: string;
47
- agent_name: string;
503
+ created_at: string;
48
504
  agent_id: string;
505
+ agent_name: string;
49
506
  text: string;
50
- blocks: MessageBlock[] | null;
51
- attachments: FileAttachment[];
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;
52
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;
53
580
  reply_count: number;
54
- reactions: ReactionGroup[];
581
+ reactions: {
582
+ agents: string[];
583
+ emoji: string;
584
+ count: number;
585
+ }[];
55
586
  read_by_count: number;
56
- }
57
- export interface PostMessageRequest {
58
- text: string;
59
- blocks?: MessageBlock[];
60
- attachments?: string[];
61
- }
62
- export interface MessageListQuery {
63
- limit?: number;
64
- before?: string;
65
- after?: string;
66
- }
67
- export interface ThreadReplyRequest {
68
- text: string;
69
- blocks?: MessageBlock[];
70
- }
587
+ }>;
588
+ export type MessageWithMeta = z.infer<typeof MessageWithMetaSchema>;
589
+ export declare const PostMessageRequestSchema: z.ZodObject<{
590
+ text: z.ZodString;
591
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
592
+ type: z.ZodLiteral<"header">;
593
+ text: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ type: "header";
596
+ text: string;
597
+ }, {
598
+ type: "header";
599
+ text: string;
600
+ }>, z.ZodObject<{
601
+ type: z.ZodLiteral<"fields">;
602
+ fields: z.ZodArray<z.ZodObject<{
603
+ label: z.ZodString;
604
+ 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<{
625
+ type: z.ZodLiteral<"actions">;
626
+ elements: z.ZodArray<z.ZodObject<{
627
+ type: z.ZodLiteral<"button">;
628
+ text: z.ZodString;
629
+ action_id: z.ZodString;
630
+ 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<{
664
+ type: z.ZodLiteral<"text">;
665
+ text: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "text";
668
+ text: string;
669
+ }, {
670
+ type: "text";
671
+ text: string;
672
+ }>, z.ZodObject<{
673
+ 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
+ }>;
735
+ export type PostMessageRequest = z.infer<typeof PostMessageRequestSchema>;
736
+ export declare const MessageListQuerySchema: z.ZodObject<{
737
+ limit: z.ZodOptional<z.ZodNumber>;
738
+ before: z.ZodOptional<z.ZodString>;
739
+ 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
+ }>;
749
+ export type MessageListQuery = z.infer<typeof MessageListQuerySchema>;
750
+ export declare const ThreadReplyRequestSchema: z.ZodObject<{
751
+ text: z.ZodString;
752
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
753
+ type: z.ZodLiteral<"header">;
754
+ text: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ type: "header";
757
+ text: string;
758
+ }, {
759
+ type: "header";
760
+ text: string;
761
+ }>, z.ZodObject<{
762
+ type: z.ZodLiteral<"fields">;
763
+ fields: z.ZodArray<z.ZodObject<{
764
+ label: z.ZodString;
765
+ 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<{
786
+ type: z.ZodLiteral<"actions">;
787
+ elements: z.ZodArray<z.ZodObject<{
788
+ type: z.ZodLiteral<"button">;
789
+ text: z.ZodString;
790
+ action_id: z.ZodString;
791
+ 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<{
825
+ type: z.ZodLiteral<"text">;
826
+ text: z.ZodString;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: "text";
829
+ text: string;
830
+ }, {
831
+ type: "text";
832
+ text: string;
833
+ }>, z.ZodObject<{
834
+ 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
+ }>;
893
+ export type ThreadReplyRequest = z.infer<typeof ThreadReplyRequestSchema>;
71
894
  //# sourceMappingURL=message.d.ts.map