@ourofoundation/ouro-js 1.0.2 → 1.0.4

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.
@@ -1,4 +1,39 @@
1
1
  import { z } from "zod";
2
+ declare const TipTapSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"doc">;
4
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "doc";
7
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
8
+ }, {
9
+ type: "doc";
10
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
11
+ }>;
12
+ declare const ContentSchema: z.ZodObject<{
13
+ json: z.ZodObject<{
14
+ type: z.ZodLiteral<"doc">;
15
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "doc";
18
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
19
+ }, {
20
+ type: "doc";
21
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
22
+ }>;
23
+ text: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ text: string;
26
+ json: {
27
+ type: "doc";
28
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
29
+ };
30
+ }, {
31
+ text: string;
32
+ json: {
33
+ type: "doc";
34
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
35
+ };
36
+ }>;
2
37
  declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
3
38
  id: z.ZodString;
4
39
  user_id: z.ZodString;
@@ -40,7 +75,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
40
75
  org_id: z.ZodString;
41
76
  organization: z.ZodOptional<z.ZodObject<{
42
77
  id: z.ZodOptional<z.ZodString>;
43
- owner_id: z.ZodOptional<z.ZodString>;
44
78
  name: z.ZodOptional<z.ZodString>;
45
79
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
80
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -60,7 +94,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
60
94
  name?: string | undefined;
61
95
  size?: string | undefined;
62
96
  email?: string | null | undefined;
63
- owner_id?: string | undefined;
64
97
  avatar_path?: string | null | undefined;
65
98
  mission?: string | null | undefined;
66
99
  domain?: string | null | undefined;
@@ -73,7 +106,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
73
106
  name?: string | undefined;
74
107
  size?: string | undefined;
75
108
  email?: string | null | undefined;
76
- owner_id?: string | undefined;
77
109
  avatar_path?: string | null | undefined;
78
110
  mission?: string | null | undefined;
79
111
  domain?: string | null | undefined;
@@ -109,7 +141,7 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
109
141
  default_role?: "none" | "admin" | "read" | "write" | undefined;
110
142
  }>>;
111
143
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
144
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
113
145
  name: z.ZodString;
114
146
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
147
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -124,36 +156,70 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
124
156
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
157
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
126
158
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
159
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
127
160
  created_at: z.ZodString;
128
161
  last_updated: z.ZodString;
129
162
  }, {
130
163
  name: z.ZodNullable<z.ZodString>;
131
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
132
- preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
133
- type: z.ZodEffects<z.ZodString, string, string>;
164
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
165
+ preview: z.ZodDefault<z.ZodObject<{
166
+ type: z.ZodLiteral<"doc">;
134
167
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
135
168
  }, "strip", z.ZodTypeAny, {
136
- type: string;
169
+ type: "doc";
137
170
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
138
171
  }, {
139
- type: string;
172
+ type: "doc";
140
173
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
141
- }>>>>;
174
+ }>>;
175
+ content: z.ZodObject<{
176
+ json: z.ZodObject<{
177
+ type: z.ZodLiteral<"doc">;
178
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "doc";
181
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
182
+ }, {
183
+ type: "doc";
184
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
185
+ }>;
186
+ text: z.ZodString;
187
+ }, "strip", z.ZodTypeAny, {
188
+ text: string;
189
+ json: {
190
+ type: "doc";
191
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
192
+ };
193
+ }, {
194
+ text: string;
195
+ json: {
196
+ type: "doc";
197
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
198
+ };
199
+ }>;
142
200
  }>, "strip", z.ZodTypeAny, {
143
201
  id: string;
144
202
  name: string | null;
203
+ content: {
204
+ text: string;
205
+ json: {
206
+ type: "doc";
207
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
208
+ };
209
+ };
145
210
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
146
211
  user_id: string;
147
212
  org_id: string;
148
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
213
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
149
214
  created_at: string;
150
215
  last_updated: string;
151
216
  team_id: string;
152
217
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
153
218
  preview: {
154
- type: string;
219
+ type: "doc";
155
220
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
156
- } | null;
221
+ };
222
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
157
223
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
158
224
  description?: string | null | undefined;
159
225
  user?: {
@@ -172,7 +238,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
172
238
  name?: string | undefined;
173
239
  size?: string | undefined;
174
240
  email?: string | null | undefined;
175
- owner_id?: string | undefined;
176
241
  avatar_path?: string | null | undefined;
177
242
  mission?: string | null | undefined;
178
243
  domain?: string | null | undefined;
@@ -202,14 +267,22 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
202
267
  }, {
203
268
  id: string;
204
269
  name: string | null;
270
+ content: {
271
+ text: string;
272
+ json: {
273
+ type: "doc";
274
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
275
+ };
276
+ };
205
277
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
206
278
  user_id: string;
207
279
  org_id: string;
208
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
280
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
209
281
  created_at: string;
210
282
  last_updated: string;
211
283
  team_id: string;
212
284
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
285
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
213
286
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
214
287
  description?: string | null | undefined;
215
288
  user?: {
@@ -228,7 +301,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
228
301
  name?: string | undefined;
229
302
  size?: string | undefined;
230
303
  email?: string | null | undefined;
231
- owner_id?: string | undefined;
232
304
  avatar_path?: string | null | undefined;
233
305
  mission?: string | null | undefined;
234
306
  domain?: string | null | undefined;
@@ -256,44 +328,9 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
256
328
  product_id?: string | null | undefined;
257
329
  price_id?: string | null | undefined;
258
330
  preview?: {
259
- type: string;
260
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
261
- } | null | undefined;
262
- }>;
263
- declare const TipTapSchema: z.ZodObject<{
264
- type: z.ZodEffects<z.ZodString, string, string>;
265
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
266
- }, "strip", z.ZodTypeAny, {
267
- type: string;
268
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
269
- }, {
270
- type: string;
271
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
272
- }>;
273
- declare const ContentSchema: z.ZodObject<{
274
- json: z.ZodObject<{
275
- type: z.ZodEffects<z.ZodString, string, string>;
276
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
277
- }, "strip", z.ZodTypeAny, {
278
- type: string;
279
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
280
- }, {
281
- type: string;
331
+ type: "doc";
282
332
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
283
- }>;
284
- text: z.ZodString;
285
- }, "strip", z.ZodTypeAny, {
286
- text: string;
287
- json: {
288
- type: string;
289
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
290
- };
291
- }, {
292
- text: string;
293
- json: {
294
- type: string;
295
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
296
- };
333
+ } | undefined;
297
334
  }>;
298
335
  declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
299
336
  id: z.ZodOptional<z.ZodString>;
@@ -336,7 +373,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
336
373
  org_id: z.ZodOptional<z.ZodString>;
337
374
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
338
375
  id: z.ZodOptional<z.ZodString>;
339
- owner_id: z.ZodOptional<z.ZodString>;
340
376
  name: z.ZodOptional<z.ZodString>;
341
377
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
342
378
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -356,7 +392,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
356
392
  name?: string | undefined;
357
393
  size?: string | undefined;
358
394
  email?: string | null | undefined;
359
- owner_id?: string | undefined;
360
395
  avatar_path?: string | null | undefined;
361
396
  mission?: string | null | undefined;
362
397
  domain?: string | null | undefined;
@@ -369,7 +404,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
369
404
  name?: string | undefined;
370
405
  size?: string | undefined;
371
406
  email?: string | null | undefined;
372
- owner_id?: string | undefined;
373
407
  avatar_path?: string | null | undefined;
374
408
  mission?: string | null | undefined;
375
409
  domain?: string | null | undefined;
@@ -417,25 +451,51 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
417
451
  product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
418
452
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
419
453
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
454
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
420
455
  created_at: z.ZodOptional<z.ZodString>;
421
456
  last_updated: z.ZodOptional<z.ZodString>;
422
457
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
- asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
424
- preview: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
425
- type: z.ZodEffects<z.ZodString, string, string>;
458
+ asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
459
+ preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
460
+ type: z.ZodLiteral<"doc">;
426
461
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
427
462
  }, "strip", z.ZodTypeAny, {
428
- type: string;
463
+ type: "doc";
429
464
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
430
465
  }, {
431
- type: string;
466
+ type: "doc";
432
467
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
433
- }>>>>>;
468
+ }>>>;
469
+ content: z.ZodOptional<z.ZodObject<{
470
+ json: z.ZodObject<{
471
+ type: z.ZodLiteral<"doc">;
472
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "doc";
475
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
476
+ }, {
477
+ type: "doc";
478
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
479
+ }>;
480
+ text: z.ZodString;
481
+ }, "strip", z.ZodTypeAny, {
482
+ text: string;
483
+ json: {
484
+ type: "doc";
485
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
486
+ };
487
+ }, {
488
+ text: string;
489
+ json: {
490
+ type: "doc";
491
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
492
+ };
493
+ }>>;
434
494
  }, "id" | "user_id">, {
435
495
  id: z.ZodDefault<z.ZodString>;
436
496
  team_id: z.ZodDefault<z.ZodString>;
437
497
  org_id: z.ZodDefault<z.ZodString>;
438
- asset_type: z.ZodEffects<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined>;
498
+ asset_type: z.ZodEffects<z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined>;
439
499
  name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>, string | null, string | undefined>;
440
500
  visibility: z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
441
501
  monetization: z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
@@ -446,11 +506,19 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
446
506
  name: string | null;
447
507
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
448
508
  org_id: string;
449
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
509
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
450
510
  created_at: string;
451
511
  last_updated: string;
452
512
  team_id: string;
453
513
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
514
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
515
+ content?: {
516
+ text: string;
517
+ json: {
518
+ type: "doc";
519
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
520
+ };
521
+ } | undefined;
454
522
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
455
523
  description?: string | null | undefined;
456
524
  user?: {
@@ -469,7 +537,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
469
537
  name?: string | undefined;
470
538
  size?: string | undefined;
471
539
  email?: string | null | undefined;
472
- owner_id?: string | undefined;
473
540
  avatar_path?: string | null | undefined;
474
541
  mission?: string | null | undefined;
475
542
  domain?: string | null | undefined;
@@ -497,12 +564,20 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
497
564
  product_id?: string | null | undefined;
498
565
  price_id?: string | null | undefined;
499
566
  preview?: {
500
- type: string;
567
+ type: "doc";
501
568
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
502
- } | null | undefined;
569
+ } | undefined;
503
570
  }, {
504
571
  id?: string | undefined;
572
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
505
573
  name?: string | undefined;
574
+ content?: {
575
+ text: string;
576
+ json: {
577
+ type: "doc";
578
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
579
+ };
580
+ } | undefined;
506
581
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
507
582
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
508
583
  description?: string | null | undefined;
@@ -522,7 +597,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
522
597
  name?: string | undefined;
523
598
  size?: string | undefined;
524
599
  email?: string | null | undefined;
525
- owner_id?: string | undefined;
526
600
  avatar_path?: string | null | undefined;
527
601
  mission?: string | null | undefined;
528
602
  domain?: string | null | undefined;
@@ -531,6 +605,11 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
531
605
  }[] | null | undefined;
532
606
  base_role?: "none" | "admin" | "read" | "write" | undefined;
533
607
  } | undefined;
608
+ org_id?: string | undefined;
609
+ asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
610
+ created_at?: string | undefined;
611
+ last_updated?: string | undefined;
612
+ team_id?: string | undefined;
534
613
  team?: {
535
614
  id?: string | undefined;
536
615
  name?: string | undefined;
@@ -540,11 +619,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
540
619
  created_at?: string | undefined;
541
620
  default_role?: "none" | "admin" | "read" | "write" | undefined;
542
621
  } | undefined;
543
- org_id?: string | undefined;
544
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
545
- created_at?: string | undefined;
546
- last_updated?: string | undefined;
547
- team_id?: string | undefined;
548
622
  parent_id?: string | null | undefined;
549
623
  name_url_slug?: string | null | undefined;
550
624
  slug?: string | null | undefined;
@@ -556,9 +630,9 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
556
630
  product_id?: string | null | undefined;
557
631
  price_id?: string | null | undefined;
558
632
  preview?: {
559
- type: string;
633
+ type: "doc";
560
634
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
561
- } | null | undefined;
635
+ } | undefined;
562
636
  }>;
563
637
  declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
564
638
  id: z.ZodString;
@@ -601,7 +675,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
601
675
  org_id: z.ZodString;
602
676
  organization: z.ZodOptional<z.ZodObject<{
603
677
  id: z.ZodOptional<z.ZodString>;
604
- owner_id: z.ZodOptional<z.ZodString>;
605
678
  name: z.ZodOptional<z.ZodString>;
606
679
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
607
680
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -621,7 +694,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
621
694
  name?: string | undefined;
622
695
  size?: string | undefined;
623
696
  email?: string | null | undefined;
624
- owner_id?: string | undefined;
625
697
  avatar_path?: string | null | undefined;
626
698
  mission?: string | null | undefined;
627
699
  domain?: string | null | undefined;
@@ -634,7 +706,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
634
706
  name?: string | undefined;
635
707
  size?: string | undefined;
636
708
  email?: string | null | undefined;
637
- owner_id?: string | undefined;
638
709
  avatar_path?: string | null | undefined;
639
710
  mission?: string | null | undefined;
640
711
  domain?: string | null | undefined;
@@ -670,7 +741,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
670
741
  default_role?: "none" | "admin" | "read" | "write" | undefined;
671
742
  }>>;
672
743
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
673
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
744
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
674
745
  name: z.ZodString;
675
746
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
676
747
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -685,44 +756,70 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
685
756
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
686
757
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
687
758
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
759
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
688
760
  created_at: z.ZodString;
689
761
  last_updated: z.ZodString;
690
762
  }, {
691
763
  name: z.ZodNullable<z.ZodString>;
692
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
693
- preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
694
- type: z.ZodEffects<z.ZodString, string, string>;
764
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
765
+ preview: z.ZodDefault<z.ZodObject<{
766
+ type: z.ZodLiteral<"doc">;
695
767
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
696
768
  }, "strip", z.ZodTypeAny, {
697
- type: string;
769
+ type: "doc";
698
770
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
699
771
  }, {
700
- type: string;
772
+ type: "doc";
701
773
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
702
- }>>>>;
774
+ }>>;
775
+ content: z.ZodObject<{
776
+ json: z.ZodObject<{
777
+ type: z.ZodLiteral<"doc">;
778
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: "doc";
781
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
782
+ }, {
783
+ type: "doc";
784
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
785
+ }>;
786
+ text: z.ZodString;
787
+ }, "strip", z.ZodTypeAny, {
788
+ text: string;
789
+ json: {
790
+ type: "doc";
791
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
792
+ };
793
+ }, {
794
+ text: string;
795
+ json: {
796
+ type: "doc";
797
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
798
+ };
799
+ }>;
703
800
  }>, {
704
801
  content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
705
802
  json: z.ZodObject<{
706
- type: z.ZodEffects<z.ZodString, string, string>;
803
+ type: z.ZodLiteral<"doc">;
707
804
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
708
805
  }, "strip", z.ZodTypeAny, {
709
- type: string;
806
+ type: "doc";
710
807
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
711
808
  }, {
712
- type: string;
809
+ type: "doc";
713
810
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
714
811
  }>;
715
812
  text: z.ZodString;
716
813
  }, "strip", z.ZodTypeAny, {
717
814
  text: string;
718
815
  json: {
719
- type: string;
816
+ type: "doc";
720
817
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
721
818
  };
722
819
  }, {
723
820
  text: string;
724
821
  json: {
725
- type: string;
822
+ type: "doc";
726
823
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
727
824
  };
728
825
  }>>>>;
@@ -736,8 +833,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
736
833
  action_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
737
834
  source_id: z.ZodString;
738
835
  target_id: z.ZodString;
739
- source_asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
740
- target_asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
836
+ source_asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
837
+ target_asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
741
838
  created_at: z.ZodString;
742
839
  last_updated: z.ZodString;
743
840
  }, "strip", z.ZodTypeAny, {
@@ -748,8 +845,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
748
845
  last_updated: string;
749
846
  source_id: string;
750
847
  target_id: string;
751
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
752
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
848
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
849
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
753
850
  action_id?: string | null | undefined;
754
851
  }, {
755
852
  type: "action" | "comment" | "reference" | "mention" | "component";
@@ -759,8 +856,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
759
856
  last_updated: string;
760
857
  source_id: string;
761
858
  target_id: string;
762
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
763
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
859
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
860
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
764
861
  action_id?: string | null | undefined;
765
862
  }>>>;
766
863
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -770,26 +867,27 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
770
867
  content: {
771
868
  text: string;
772
869
  json: {
773
- type: string;
870
+ type: "doc";
774
871
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
775
872
  };
776
873
  } | null;
777
874
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
778
875
  user_id: string;
779
876
  org_id: string;
780
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
877
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
781
878
  created_at: string;
782
879
  last_updated: string;
783
880
  team_id: string;
784
881
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
785
882
  preview: {
786
- type: string;
883
+ type: "doc";
787
884
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
788
- } | null;
885
+ };
789
886
  reactions: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
790
887
  views: number;
791
888
  commentCount: number;
792
889
  pinned: boolean;
890
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
793
891
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
794
892
  description?: string | null | undefined;
795
893
  parent?: {
@@ -800,8 +898,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
800
898
  last_updated: string;
801
899
  source_id: string;
802
900
  target_id: string;
803
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
804
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
901
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
902
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
805
903
  action_id?: string | null | undefined;
806
904
  } | null | undefined;
807
905
  user?: {
@@ -820,7 +918,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
820
918
  name?: string | undefined;
821
919
  size?: string | undefined;
822
920
  email?: string | null | undefined;
823
- owner_id?: string | undefined;
824
921
  avatar_path?: string | null | undefined;
825
922
  mission?: string | null | undefined;
826
923
  domain?: string | null | undefined;
@@ -853,15 +950,16 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
853
950
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
854
951
  user_id: string;
855
952
  org_id: string;
856
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
953
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
857
954
  created_at: string;
858
955
  last_updated: string;
859
956
  team_id: string;
860
957
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
958
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
861
959
  content?: {
862
960
  text: string;
863
961
  json: {
864
- type: string;
962
+ type: "doc";
865
963
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
866
964
  };
867
965
  } | null | undefined;
@@ -875,8 +973,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
875
973
  last_updated: string;
876
974
  source_id: string;
877
975
  target_id: string;
878
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
879
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
976
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
977
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
880
978
  action_id?: string | null | undefined;
881
979
  } | null | undefined;
882
980
  user?: {
@@ -895,7 +993,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
895
993
  name?: string | undefined;
896
994
  size?: string | undefined;
897
995
  email?: string | null | undefined;
898
- owner_id?: string | undefined;
899
996
  avatar_path?: string | null | undefined;
900
997
  mission?: string | null | undefined;
901
998
  domain?: string | null | undefined;
@@ -923,9 +1020,9 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
923
1020
  product_id?: string | null | undefined;
924
1021
  price_id?: string | null | undefined;
925
1022
  preview?: {
926
- type: string;
1023
+ type: "doc";
927
1024
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
928
- } | null | undefined;
1025
+ } | undefined;
929
1026
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
930
1027
  views?: number | undefined;
931
1028
  commentCount?: number | undefined;
@@ -972,7 +1069,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
972
1069
  org_id: z.ZodString;
973
1070
  organization: z.ZodOptional<z.ZodObject<{
974
1071
  id: z.ZodOptional<z.ZodString>;
975
- owner_id: z.ZodOptional<z.ZodString>;
976
1072
  name: z.ZodOptional<z.ZodString>;
977
1073
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
978
1074
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -992,7 +1088,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
992
1088
  name?: string | undefined;
993
1089
  size?: string | undefined;
994
1090
  email?: string | null | undefined;
995
- owner_id?: string | undefined;
996
1091
  avatar_path?: string | null | undefined;
997
1092
  mission?: string | null | undefined;
998
1093
  domain?: string | null | undefined;
@@ -1005,7 +1100,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1005
1100
  name?: string | undefined;
1006
1101
  size?: string | undefined;
1007
1102
  email?: string | null | undefined;
1008
- owner_id?: string | undefined;
1009
1103
  avatar_path?: string | null | undefined;
1010
1104
  mission?: string | null | undefined;
1011
1105
  domain?: string | null | undefined;
@@ -1041,7 +1135,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1041
1135
  default_role?: "none" | "admin" | "read" | "write" | undefined;
1042
1136
  }>>;
1043
1137
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1044
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1138
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1045
1139
  name: z.ZodString;
1046
1140
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1047
1141
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1056,44 +1150,70 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1056
1150
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1057
1151
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1058
1152
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
1153
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
1059
1154
  created_at: z.ZodString;
1060
1155
  last_updated: z.ZodString;
1061
1156
  }, {
1062
1157
  name: z.ZodNullable<z.ZodString>;
1063
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1064
- preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1065
- type: z.ZodEffects<z.ZodString, string, string>;
1158
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1159
+ preview: z.ZodDefault<z.ZodObject<{
1160
+ type: z.ZodLiteral<"doc">;
1066
1161
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1067
1162
  }, "strip", z.ZodTypeAny, {
1068
- type: string;
1163
+ type: "doc";
1069
1164
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1070
1165
  }, {
1071
- type: string;
1166
+ type: "doc";
1072
1167
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1073
- }>>>>;
1168
+ }>>;
1169
+ content: z.ZodObject<{
1170
+ json: z.ZodObject<{
1171
+ type: z.ZodLiteral<"doc">;
1172
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ type: "doc";
1175
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1176
+ }, {
1177
+ type: "doc";
1178
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1179
+ }>;
1180
+ text: z.ZodString;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ text: string;
1183
+ json: {
1184
+ type: "doc";
1185
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1186
+ };
1187
+ }, {
1188
+ text: string;
1189
+ json: {
1190
+ type: "doc";
1191
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1192
+ };
1193
+ }>;
1074
1194
  }>, {
1075
1195
  content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1076
1196
  json: z.ZodObject<{
1077
- type: z.ZodEffects<z.ZodString, string, string>;
1197
+ type: z.ZodLiteral<"doc">;
1078
1198
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1079
1199
  }, "strip", z.ZodTypeAny, {
1080
- type: string;
1200
+ type: "doc";
1081
1201
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1082
1202
  }, {
1083
- type: string;
1203
+ type: "doc";
1084
1204
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1085
1205
  }>;
1086
1206
  text: z.ZodString;
1087
1207
  }, "strip", z.ZodTypeAny, {
1088
1208
  text: string;
1089
1209
  json: {
1090
- type: string;
1210
+ type: "doc";
1091
1211
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1092
1212
  };
1093
1213
  }, {
1094
1214
  text: string;
1095
1215
  json: {
1096
- type: string;
1216
+ type: "doc";
1097
1217
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1098
1218
  };
1099
1219
  }>>>>;
@@ -1107,8 +1227,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1107
1227
  action_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1108
1228
  source_id: z.ZodString;
1109
1229
  target_id: z.ZodString;
1110
- source_asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1111
- target_asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1230
+ source_asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1231
+ target_asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1112
1232
  created_at: z.ZodString;
1113
1233
  last_updated: z.ZodString;
1114
1234
  }, "strip", z.ZodTypeAny, {
@@ -1119,8 +1239,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1119
1239
  last_updated: string;
1120
1240
  source_id: string;
1121
1241
  target_id: string;
1122
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1123
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1242
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1243
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1124
1244
  action_id?: string | null | undefined;
1125
1245
  }, {
1126
1246
  type: "action" | "comment" | "reference" | "mention" | "component";
@@ -1130,8 +1250,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1130
1250
  last_updated: string;
1131
1251
  source_id: string;
1132
1252
  target_id: string;
1133
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1134
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1253
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1254
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1135
1255
  action_id?: string | null | undefined;
1136
1256
  }>>>;
1137
1257
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -1141,26 +1261,27 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1141
1261
  content: {
1142
1262
  text: string;
1143
1263
  json: {
1144
- type: string;
1264
+ type: "doc";
1145
1265
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1146
1266
  };
1147
1267
  } | null;
1148
1268
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1149
1269
  user_id: string;
1150
1270
  org_id: string;
1151
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1271
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1152
1272
  created_at: string;
1153
1273
  last_updated: string;
1154
1274
  team_id: string;
1155
1275
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1156
1276
  preview: {
1157
- type: string;
1277
+ type: "doc";
1158
1278
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1159
- } | null;
1279
+ };
1160
1280
  reactions: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1161
1281
  views: number;
1162
1282
  commentCount: number;
1163
1283
  pinned: boolean;
1284
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1164
1285
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1165
1286
  description?: string | null | undefined;
1166
1287
  parent?: {
@@ -1171,8 +1292,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1171
1292
  last_updated: string;
1172
1293
  source_id: string;
1173
1294
  target_id: string;
1174
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1175
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1295
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1296
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1176
1297
  action_id?: string | null | undefined;
1177
1298
  } | null | undefined;
1178
1299
  user?: {
@@ -1191,7 +1312,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1191
1312
  name?: string | undefined;
1192
1313
  size?: string | undefined;
1193
1314
  email?: string | null | undefined;
1194
- owner_id?: string | undefined;
1195
1315
  avatar_path?: string | null | undefined;
1196
1316
  mission?: string | null | undefined;
1197
1317
  domain?: string | null | undefined;
@@ -1224,15 +1344,16 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1224
1344
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1225
1345
  user_id: string;
1226
1346
  org_id: string;
1227
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1347
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1228
1348
  created_at: string;
1229
1349
  last_updated: string;
1230
1350
  team_id: string;
1231
1351
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1352
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1232
1353
  content?: {
1233
1354
  text: string;
1234
1355
  json: {
1235
- type: string;
1356
+ type: "doc";
1236
1357
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1237
1358
  };
1238
1359
  } | null | undefined;
@@ -1246,8 +1367,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1246
1367
  last_updated: string;
1247
1368
  source_id: string;
1248
1369
  target_id: string;
1249
- source_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1250
- target_asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1370
+ source_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1371
+ target_asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1251
1372
  action_id?: string | null | undefined;
1252
1373
  } | null | undefined;
1253
1374
  user?: {
@@ -1266,7 +1387,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1266
1387
  name?: string | undefined;
1267
1388
  size?: string | undefined;
1268
1389
  email?: string | null | undefined;
1269
- owner_id?: string | undefined;
1270
1390
  avatar_path?: string | null | undefined;
1271
1391
  mission?: string | null | undefined;
1272
1392
  domain?: string | null | undefined;
@@ -1294,9 +1414,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1294
1414
  product_id?: string | null | undefined;
1295
1415
  price_id?: string | null | undefined;
1296
1416
  preview?: {
1297
- type: string;
1417
+ type: "doc";
1298
1418
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1299
- } | null | undefined;
1419
+ } | undefined;
1300
1420
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
1301
1421
  views?: number | undefined;
1302
1422
  commentCount?: number | undefined;
@@ -1343,7 +1463,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1343
1463
  org_id: z.ZodString;
1344
1464
  organization: z.ZodOptional<z.ZodObject<{
1345
1465
  id: z.ZodOptional<z.ZodString>;
1346
- owner_id: z.ZodOptional<z.ZodString>;
1347
1466
  name: z.ZodOptional<z.ZodString>;
1348
1467
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1349
1468
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1363,7 +1482,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1363
1482
  name?: string | undefined;
1364
1483
  size?: string | undefined;
1365
1484
  email?: string | null | undefined;
1366
- owner_id?: string | undefined;
1367
1485
  avatar_path?: string | null | undefined;
1368
1486
  mission?: string | null | undefined;
1369
1487
  domain?: string | null | undefined;
@@ -1376,7 +1494,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1376
1494
  name?: string | undefined;
1377
1495
  size?: string | undefined;
1378
1496
  email?: string | null | undefined;
1379
- owner_id?: string | undefined;
1380
1497
  avatar_path?: string | null | undefined;
1381
1498
  mission?: string | null | undefined;
1382
1499
  domain?: string | null | undefined;
@@ -1412,7 +1529,7 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1412
1529
  default_role?: "none" | "admin" | "read" | "write" | undefined;
1413
1530
  }>>;
1414
1531
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1415
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1532
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
1416
1533
  name: z.ZodString;
1417
1534
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1418
1535
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1427,36 +1544,70 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1427
1544
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1428
1545
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1429
1546
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
1547
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
1430
1548
  created_at: z.ZodString;
1431
1549
  last_updated: z.ZodString;
1432
1550
  }, {
1433
1551
  name: z.ZodNullable<z.ZodString>;
1434
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1435
- preview: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1436
- type: z.ZodEffects<z.ZodString, string, string>;
1552
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1553
+ preview: z.ZodDefault<z.ZodObject<{
1554
+ type: z.ZodLiteral<"doc">;
1437
1555
  content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1438
1556
  }, "strip", z.ZodTypeAny, {
1439
- type: string;
1557
+ type: "doc";
1440
1558
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1441
1559
  }, {
1442
- type: string;
1560
+ type: "doc";
1443
1561
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1444
- }>>>>;
1562
+ }>>;
1563
+ content: z.ZodObject<{
1564
+ json: z.ZodObject<{
1565
+ type: z.ZodLiteral<"doc">;
1566
+ content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ type: "doc";
1569
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1570
+ }, {
1571
+ type: "doc";
1572
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1573
+ }>;
1574
+ text: z.ZodString;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ text: string;
1577
+ json: {
1578
+ type: "doc";
1579
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1580
+ };
1581
+ }, {
1582
+ text: string;
1583
+ json: {
1584
+ type: "doc";
1585
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1586
+ };
1587
+ }>;
1445
1588
  }>, "strip", z.ZodTypeAny, {
1446
1589
  id: string;
1447
1590
  name: string | null;
1591
+ content: {
1592
+ text: string;
1593
+ json: {
1594
+ type: "doc";
1595
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1596
+ };
1597
+ };
1448
1598
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1449
1599
  user_id: string;
1450
1600
  org_id: string;
1451
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1601
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1452
1602
  created_at: string;
1453
1603
  last_updated: string;
1454
1604
  team_id: string;
1455
1605
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1456
1606
  preview: {
1457
- type: string;
1607
+ type: "doc";
1458
1608
  content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1459
- } | null;
1609
+ };
1610
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1460
1611
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1461
1612
  description?: string | null | undefined;
1462
1613
  user?: {
@@ -1475,7 +1626,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1475
1626
  name?: string | undefined;
1476
1627
  size?: string | undefined;
1477
1628
  email?: string | null | undefined;
1478
- owner_id?: string | undefined;
1479
1629
  avatar_path?: string | null | undefined;
1480
1630
  mission?: string | null | undefined;
1481
1631
  domain?: string | null | undefined;
@@ -1505,14 +1655,22 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1505
1655
  }, {
1506
1656
  id: string;
1507
1657
  name: string | null;
1658
+ content: {
1659
+ text: string;
1660
+ json: {
1661
+ type: "doc";
1662
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1663
+ };
1664
+ };
1508
1665
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1509
1666
  user_id: string;
1510
1667
  org_id: string;
1511
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1668
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1512
1669
  created_at: string;
1513
1670
  last_updated: string;
1514
1671
  team_id: string;
1515
1672
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1673
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1516
1674
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1517
1675
  description?: string | null | undefined;
1518
1676
  user?: {
@@ -1531,7 +1689,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1531
1689
  name?: string | undefined;
1532
1690
  size?: string | undefined;
1533
1691
  email?: string | null | undefined;
1534
- owner_id?: string | undefined;
1535
1692
  avatar_path?: string | null | undefined;
1536
1693
  mission?: string | null | undefined;
1537
1694
  domain?: string | null | undefined;
@@ -1559,9 +1716,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1559
1716
  product_id?: string | null | undefined;
1560
1717
  price_id?: string | null | undefined;
1561
1718
  preview?: {
1562
- type: string;
1719
+ type: "doc";
1563
1720
  content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1564
- } | null | undefined;
1721
+ } | undefined;
1565
1722
  }>, "many">;
1566
1723
  declare const updatePostSchema: z.ZodObject<{
1567
1724
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;