@bubblelab/bubble-core 0.1.221 → 0.1.222

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.
@@ -0,0 +1,703 @@
1
+ import { z } from 'zod';
2
+ import { CredentialType } from '@bubblelab/shared-schemas';
3
+ export declare const SlabUserSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ name: string;
8
+ id: string;
9
+ }, {
10
+ name: string;
11
+ id: string;
12
+ }>;
13
+ export declare const SlabTopicSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ name: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: string;
18
+ id: string;
19
+ }, {
20
+ name: string;
21
+ id: string;
22
+ }>;
23
+ export declare const SlabPostSchema: z.ZodObject<{
24
+ id: z.ZodString;
25
+ title: z.ZodString;
26
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
27
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
+ archivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ name: string;
36
+ id: string;
37
+ }, {
38
+ name: string;
39
+ id: string;
40
+ }>>>;
41
+ version: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
42
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ id: z.ZodString;
44
+ name: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ name: string;
47
+ id: string;
48
+ }, {
49
+ name: string;
50
+ id: string;
51
+ }>, "many">>>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ title: string;
54
+ id: string;
55
+ content?: unknown;
56
+ version?: number | null | undefined;
57
+ owner?: {
58
+ name: string;
59
+ id: string;
60
+ } | null | undefined;
61
+ publishedAt?: string | null | undefined;
62
+ updatedAt?: string | null | undefined;
63
+ insertedAt?: string | null | undefined;
64
+ archivedAt?: string | null | undefined;
65
+ topics?: {
66
+ name: string;
67
+ id: string;
68
+ }[] | null | undefined;
69
+ }, {
70
+ title: string;
71
+ id: string;
72
+ content?: unknown;
73
+ version?: number | null | undefined;
74
+ owner?: {
75
+ name: string;
76
+ id: string;
77
+ } | null | undefined;
78
+ publishedAt?: string | null | undefined;
79
+ updatedAt?: string | null | undefined;
80
+ insertedAt?: string | null | undefined;
81
+ archivedAt?: string | null | undefined;
82
+ topics?: {
83
+ name: string;
84
+ id: string;
85
+ }[] | null | undefined;
86
+ }>;
87
+ export declare const SlabSearchResultSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ title: z.ZodString;
90
+ highlight: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
91
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
92
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
93
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
95
+ id: z.ZodString;
96
+ name: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ name: string;
99
+ id: string;
100
+ }, {
101
+ name: string;
102
+ id: string;
103
+ }>>>;
104
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ id: z.ZodString;
106
+ name: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ name: string;
109
+ id: string;
110
+ }, {
111
+ name: string;
112
+ id: string;
113
+ }>, "many">>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ title: string;
116
+ id: string;
117
+ content?: unknown;
118
+ owner?: {
119
+ name: string;
120
+ id: string;
121
+ } | null | undefined;
122
+ publishedAt?: string | null | undefined;
123
+ insertedAt?: string | null | undefined;
124
+ topics?: {
125
+ name: string;
126
+ id: string;
127
+ }[] | null | undefined;
128
+ highlight?: unknown;
129
+ }, {
130
+ title: string;
131
+ id: string;
132
+ content?: unknown;
133
+ owner?: {
134
+ name: string;
135
+ id: string;
136
+ } | null | undefined;
137
+ publishedAt?: string | null | undefined;
138
+ insertedAt?: string | null | undefined;
139
+ topics?: {
140
+ name: string;
141
+ id: string;
142
+ }[] | null | undefined;
143
+ highlight?: unknown;
144
+ }>;
145
+ export declare const SlabParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
146
+ operation: z.ZodLiteral<"search_posts">;
147
+ query: z.ZodString;
148
+ first: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
149
+ after: z.ZodOptional<z.ZodString>;
150
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ query: string;
153
+ operation: "search_posts";
154
+ first: number;
155
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
156
+ after?: string | undefined;
157
+ }, {
158
+ query: string;
159
+ operation: "search_posts";
160
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
161
+ after?: string | undefined;
162
+ first?: number | undefined;
163
+ }>, z.ZodObject<{
164
+ operation: z.ZodLiteral<"get_post">;
165
+ post_id: z.ZodString;
166
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ operation: "get_post";
169
+ post_id: string;
170
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
171
+ }, {
172
+ operation: "get_post";
173
+ post_id: string;
174
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
175
+ }>, z.ZodObject<{
176
+ operation: z.ZodLiteral<"list_posts">;
177
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ operation: "list_posts";
180
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
181
+ }, {
182
+ operation: "list_posts";
183
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
184
+ }>, z.ZodObject<{
185
+ operation: z.ZodLiteral<"get_topic_posts">;
186
+ topic_id: z.ZodString;
187
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ operation: "get_topic_posts";
190
+ topic_id: string;
191
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
192
+ }, {
193
+ operation: "get_topic_posts";
194
+ topic_id: string;
195
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
196
+ }>, z.ZodObject<{
197
+ operation: z.ZodLiteral<"list_topics">;
198
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ operation: "list_topics";
201
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
202
+ }, {
203
+ operation: "list_topics";
204
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
205
+ }>]>;
206
+ export declare const SlabResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
207
+ operation: z.ZodLiteral<"search_posts">;
208
+ success: z.ZodBoolean;
209
+ posts: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
+ id: z.ZodString;
211
+ title: z.ZodString;
212
+ highlight: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
213
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
214
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
215
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
216
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
217
+ id: z.ZodString;
218
+ name: z.ZodString;
219
+ }, "strip", z.ZodTypeAny, {
220
+ name: string;
221
+ id: string;
222
+ }, {
223
+ name: string;
224
+ id: string;
225
+ }>>>;
226
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ name: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ name: string;
231
+ id: string;
232
+ }, {
233
+ name: string;
234
+ id: string;
235
+ }>, "many">>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ title: string;
238
+ id: string;
239
+ content?: unknown;
240
+ owner?: {
241
+ name: string;
242
+ id: string;
243
+ } | null | undefined;
244
+ publishedAt?: string | null | undefined;
245
+ insertedAt?: string | null | undefined;
246
+ topics?: {
247
+ name: string;
248
+ id: string;
249
+ }[] | null | undefined;
250
+ highlight?: unknown;
251
+ }, {
252
+ title: string;
253
+ id: string;
254
+ content?: unknown;
255
+ owner?: {
256
+ name: string;
257
+ id: string;
258
+ } | null | undefined;
259
+ publishedAt?: string | null | undefined;
260
+ insertedAt?: string | null | undefined;
261
+ topics?: {
262
+ name: string;
263
+ id: string;
264
+ }[] | null | undefined;
265
+ highlight?: unknown;
266
+ }>, "many">>;
267
+ has_more: z.ZodOptional<z.ZodBoolean>;
268
+ end_cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
269
+ error: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ error: string;
272
+ success: boolean;
273
+ operation: "search_posts";
274
+ has_more?: boolean | undefined;
275
+ posts?: {
276
+ title: string;
277
+ id: string;
278
+ content?: unknown;
279
+ owner?: {
280
+ name: string;
281
+ id: string;
282
+ } | null | undefined;
283
+ publishedAt?: string | null | undefined;
284
+ insertedAt?: string | null | undefined;
285
+ topics?: {
286
+ name: string;
287
+ id: string;
288
+ }[] | null | undefined;
289
+ highlight?: unknown;
290
+ }[] | undefined;
291
+ end_cursor?: string | null | undefined;
292
+ }, {
293
+ error: string;
294
+ success: boolean;
295
+ operation: "search_posts";
296
+ has_more?: boolean | undefined;
297
+ posts?: {
298
+ title: string;
299
+ id: string;
300
+ content?: unknown;
301
+ owner?: {
302
+ name: string;
303
+ id: string;
304
+ } | null | undefined;
305
+ publishedAt?: string | null | undefined;
306
+ insertedAt?: string | null | undefined;
307
+ topics?: {
308
+ name: string;
309
+ id: string;
310
+ }[] | null | undefined;
311
+ highlight?: unknown;
312
+ }[] | undefined;
313
+ end_cursor?: string | null | undefined;
314
+ }>, z.ZodObject<{
315
+ operation: z.ZodLiteral<"get_post">;
316
+ success: z.ZodBoolean;
317
+ post: z.ZodOptional<z.ZodObject<{
318
+ id: z.ZodString;
319
+ title: z.ZodString;
320
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
321
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
322
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
323
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
324
+ archivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
325
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
326
+ id: z.ZodString;
327
+ name: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ name: string;
330
+ id: string;
331
+ }, {
332
+ name: string;
333
+ id: string;
334
+ }>>>;
335
+ version: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
336
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
337
+ id: z.ZodString;
338
+ name: z.ZodString;
339
+ }, "strip", z.ZodTypeAny, {
340
+ name: string;
341
+ id: string;
342
+ }, {
343
+ name: string;
344
+ id: string;
345
+ }>, "many">>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ title: string;
348
+ id: string;
349
+ content?: unknown;
350
+ version?: number | null | undefined;
351
+ owner?: {
352
+ name: string;
353
+ id: string;
354
+ } | null | undefined;
355
+ publishedAt?: string | null | undefined;
356
+ updatedAt?: string | null | undefined;
357
+ insertedAt?: string | null | undefined;
358
+ archivedAt?: string | null | undefined;
359
+ topics?: {
360
+ name: string;
361
+ id: string;
362
+ }[] | null | undefined;
363
+ }, {
364
+ title: string;
365
+ id: string;
366
+ content?: unknown;
367
+ version?: number | null | undefined;
368
+ owner?: {
369
+ name: string;
370
+ id: string;
371
+ } | null | undefined;
372
+ publishedAt?: string | null | undefined;
373
+ updatedAt?: string | null | undefined;
374
+ insertedAt?: string | null | undefined;
375
+ archivedAt?: string | null | undefined;
376
+ topics?: {
377
+ name: string;
378
+ id: string;
379
+ }[] | null | undefined;
380
+ }>>;
381
+ error: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ error: string;
384
+ success: boolean;
385
+ operation: "get_post";
386
+ post?: {
387
+ title: string;
388
+ id: string;
389
+ content?: unknown;
390
+ version?: number | null | undefined;
391
+ owner?: {
392
+ name: string;
393
+ id: string;
394
+ } | null | undefined;
395
+ publishedAt?: string | null | undefined;
396
+ updatedAt?: string | null | undefined;
397
+ insertedAt?: string | null | undefined;
398
+ archivedAt?: string | null | undefined;
399
+ topics?: {
400
+ name: string;
401
+ id: string;
402
+ }[] | null | undefined;
403
+ } | undefined;
404
+ }, {
405
+ error: string;
406
+ success: boolean;
407
+ operation: "get_post";
408
+ post?: {
409
+ title: string;
410
+ id: string;
411
+ content?: unknown;
412
+ version?: number | null | undefined;
413
+ owner?: {
414
+ name: string;
415
+ id: string;
416
+ } | null | undefined;
417
+ publishedAt?: string | null | undefined;
418
+ updatedAt?: string | null | undefined;
419
+ insertedAt?: string | null | undefined;
420
+ archivedAt?: string | null | undefined;
421
+ topics?: {
422
+ name: string;
423
+ id: string;
424
+ }[] | null | undefined;
425
+ } | undefined;
426
+ }>, z.ZodObject<{
427
+ operation: z.ZodLiteral<"list_posts">;
428
+ success: z.ZodBoolean;
429
+ posts: z.ZodOptional<z.ZodArray<z.ZodObject<{
430
+ id: z.ZodString;
431
+ title: z.ZodString;
432
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
433
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
434
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
435
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
436
+ archivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
437
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
438
+ id: z.ZodString;
439
+ name: z.ZodString;
440
+ }, "strip", z.ZodTypeAny, {
441
+ name: string;
442
+ id: string;
443
+ }, {
444
+ name: string;
445
+ id: string;
446
+ }>>>;
447
+ version: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
448
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ name: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ name: string;
453
+ id: string;
454
+ }, {
455
+ name: string;
456
+ id: string;
457
+ }>, "many">>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ title: string;
460
+ id: string;
461
+ content?: unknown;
462
+ version?: number | null | undefined;
463
+ owner?: {
464
+ name: string;
465
+ id: string;
466
+ } | null | undefined;
467
+ publishedAt?: string | null | undefined;
468
+ updatedAt?: string | null | undefined;
469
+ insertedAt?: string | null | undefined;
470
+ archivedAt?: string | null | undefined;
471
+ topics?: {
472
+ name: string;
473
+ id: string;
474
+ }[] | null | undefined;
475
+ }, {
476
+ title: string;
477
+ id: string;
478
+ content?: unknown;
479
+ version?: number | null | undefined;
480
+ owner?: {
481
+ name: string;
482
+ id: string;
483
+ } | null | undefined;
484
+ publishedAt?: string | null | undefined;
485
+ updatedAt?: string | null | undefined;
486
+ insertedAt?: string | null | undefined;
487
+ archivedAt?: string | null | undefined;
488
+ topics?: {
489
+ name: string;
490
+ id: string;
491
+ }[] | null | undefined;
492
+ }>, "many">>;
493
+ error: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ error: string;
496
+ success: boolean;
497
+ operation: "list_posts";
498
+ posts?: {
499
+ title: string;
500
+ id: string;
501
+ content?: unknown;
502
+ version?: number | null | undefined;
503
+ owner?: {
504
+ name: string;
505
+ id: string;
506
+ } | null | undefined;
507
+ publishedAt?: string | null | undefined;
508
+ updatedAt?: string | null | undefined;
509
+ insertedAt?: string | null | undefined;
510
+ archivedAt?: string | null | undefined;
511
+ topics?: {
512
+ name: string;
513
+ id: string;
514
+ }[] | null | undefined;
515
+ }[] | undefined;
516
+ }, {
517
+ error: string;
518
+ success: boolean;
519
+ operation: "list_posts";
520
+ posts?: {
521
+ title: string;
522
+ id: string;
523
+ content?: unknown;
524
+ version?: number | null | undefined;
525
+ owner?: {
526
+ name: string;
527
+ id: string;
528
+ } | null | undefined;
529
+ publishedAt?: string | null | undefined;
530
+ updatedAt?: string | null | undefined;
531
+ insertedAt?: string | null | undefined;
532
+ archivedAt?: string | null | undefined;
533
+ topics?: {
534
+ name: string;
535
+ id: string;
536
+ }[] | null | undefined;
537
+ }[] | undefined;
538
+ }>, z.ZodObject<{
539
+ operation: z.ZodLiteral<"get_topic_posts">;
540
+ success: z.ZodBoolean;
541
+ posts: z.ZodOptional<z.ZodArray<z.ZodObject<{
542
+ id: z.ZodString;
543
+ title: z.ZodString;
544
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
545
+ insertedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
546
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
547
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
548
+ archivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
549
+ owner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
550
+ id: z.ZodString;
551
+ name: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ name: string;
554
+ id: string;
555
+ }, {
556
+ name: string;
557
+ id: string;
558
+ }>>>;
559
+ version: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
560
+ topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
561
+ id: z.ZodString;
562
+ name: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ name: string;
565
+ id: string;
566
+ }, {
567
+ name: string;
568
+ id: string;
569
+ }>, "many">>>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ title: string;
572
+ id: string;
573
+ content?: unknown;
574
+ version?: number | null | undefined;
575
+ owner?: {
576
+ name: string;
577
+ id: string;
578
+ } | null | undefined;
579
+ publishedAt?: string | null | undefined;
580
+ updatedAt?: string | null | undefined;
581
+ insertedAt?: string | null | undefined;
582
+ archivedAt?: string | null | undefined;
583
+ topics?: {
584
+ name: string;
585
+ id: string;
586
+ }[] | null | undefined;
587
+ }, {
588
+ title: string;
589
+ id: string;
590
+ content?: unknown;
591
+ version?: number | null | undefined;
592
+ owner?: {
593
+ name: string;
594
+ id: string;
595
+ } | null | undefined;
596
+ publishedAt?: string | null | undefined;
597
+ updatedAt?: string | null | undefined;
598
+ insertedAt?: string | null | undefined;
599
+ archivedAt?: string | null | undefined;
600
+ topics?: {
601
+ name: string;
602
+ id: string;
603
+ }[] | null | undefined;
604
+ }>, "many">>;
605
+ error: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ error: string;
608
+ success: boolean;
609
+ operation: "get_topic_posts";
610
+ posts?: {
611
+ title: string;
612
+ id: string;
613
+ content?: unknown;
614
+ version?: number | null | undefined;
615
+ owner?: {
616
+ name: string;
617
+ id: string;
618
+ } | null | undefined;
619
+ publishedAt?: string | null | undefined;
620
+ updatedAt?: string | null | undefined;
621
+ insertedAt?: string | null | undefined;
622
+ archivedAt?: string | null | undefined;
623
+ topics?: {
624
+ name: string;
625
+ id: string;
626
+ }[] | null | undefined;
627
+ }[] | undefined;
628
+ }, {
629
+ error: string;
630
+ success: boolean;
631
+ operation: "get_topic_posts";
632
+ posts?: {
633
+ title: string;
634
+ id: string;
635
+ content?: unknown;
636
+ version?: number | null | undefined;
637
+ owner?: {
638
+ name: string;
639
+ id: string;
640
+ } | null | undefined;
641
+ publishedAt?: string | null | undefined;
642
+ updatedAt?: string | null | undefined;
643
+ insertedAt?: string | null | undefined;
644
+ archivedAt?: string | null | undefined;
645
+ topics?: {
646
+ name: string;
647
+ id: string;
648
+ }[] | null | undefined;
649
+ }[] | undefined;
650
+ }>, z.ZodObject<{
651
+ operation: z.ZodLiteral<"list_topics">;
652
+ success: z.ZodBoolean;
653
+ topics: z.ZodOptional<z.ZodArray<z.ZodObject<{
654
+ id: z.ZodString;
655
+ name: z.ZodString;
656
+ }, "strip", z.ZodTypeAny, {
657
+ name: string;
658
+ id: string;
659
+ }, {
660
+ name: string;
661
+ id: string;
662
+ }>, "many">>;
663
+ error: z.ZodString;
664
+ }, "strip", z.ZodTypeAny, {
665
+ error: string;
666
+ success: boolean;
667
+ operation: "list_topics";
668
+ topics?: {
669
+ name: string;
670
+ id: string;
671
+ }[] | undefined;
672
+ }, {
673
+ error: string;
674
+ success: boolean;
675
+ operation: "list_topics";
676
+ topics?: {
677
+ name: string;
678
+ id: string;
679
+ }[] | undefined;
680
+ }>]>;
681
+ export type SlabParamsInput = z.input<typeof SlabParamsSchema>;
682
+ export type SlabParams = z.output<typeof SlabParamsSchema>;
683
+ export type SlabResult = z.output<typeof SlabResultSchema>;
684
+ export type SlabUser = z.output<typeof SlabUserSchema>;
685
+ export type SlabTopic = z.output<typeof SlabTopicSchema>;
686
+ export type SlabPost = z.output<typeof SlabPostSchema>;
687
+ export type SlabSearchResult = z.output<typeof SlabSearchResultSchema>;
688
+ export type SlabSearchPostsParams = Extract<SlabParams, {
689
+ operation: 'search_posts';
690
+ }>;
691
+ export type SlabGetPostParams = Extract<SlabParams, {
692
+ operation: 'get_post';
693
+ }>;
694
+ export type SlabListPostsParams = Extract<SlabParams, {
695
+ operation: 'list_posts';
696
+ }>;
697
+ export type SlabGetTopicPostsParams = Extract<SlabParams, {
698
+ operation: 'get_topic_posts';
699
+ }>;
700
+ export type SlabListTopicsParams = Extract<SlabParams, {
701
+ operation: 'list_topics';
702
+ }>;
703
+ //# sourceMappingURL=slab.schema.d.ts.map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