@ourofoundation/ouro-js 1.0.5 → 1.0.6

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,39 +1,75 @@
1
1
  import { z } from "zod";
2
2
  declare const TipTapSchema: z.ZodObject<{
3
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">;
4
+ content: z.ZodArray<z.ZodObject<{
5
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
6
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
7
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
9
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
10
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
12
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
13
+ }, z.ZodTypeAny, "passthrough">>, "many">;
5
14
  }, "strip", z.ZodTypeAny, {
6
15
  type: "doc";
7
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
16
+ content: z.objectOutputType<{
17
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
18
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
19
+ }, z.ZodTypeAny, "passthrough">[];
8
20
  }, {
9
21
  type: "doc";
10
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
22
+ content: z.objectInputType<{
23
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
24
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
25
+ }, z.ZodTypeAny, "passthrough">[];
11
26
  }>;
12
- declare const ContentSchema: z.ZodObject<{
27
+ declare const ContentSchema: z.ZodDefault<z.ZodObject<{
13
28
  json: z.ZodObject<{
14
29
  type: z.ZodLiteral<"doc">;
15
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
30
+ content: z.ZodArray<z.ZodObject<{
31
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
32
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
33
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
34
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
35
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
36
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
37
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
38
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
39
+ }, z.ZodTypeAny, "passthrough">>, "many">;
16
40
  }, "strip", z.ZodTypeAny, {
17
41
  type: "doc";
18
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
42
+ content: z.objectOutputType<{
43
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
44
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
45
+ }, z.ZodTypeAny, "passthrough">[];
19
46
  }, {
20
47
  type: "doc";
21
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
48
+ content: z.objectInputType<{
49
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
50
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
51
+ }, z.ZodTypeAny, "passthrough">[];
22
52
  }>;
23
53
  text: z.ZodString;
24
54
  }, "strip", z.ZodTypeAny, {
25
55
  text: string;
26
56
  json: {
27
57
  type: "doc";
28
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
58
+ content: z.objectOutputType<{
59
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
60
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
61
+ }, z.ZodTypeAny, "passthrough">[];
29
62
  };
30
63
  }, {
31
64
  text: string;
32
65
  json: {
33
66
  type: "doc";
34
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
67
+ content: z.objectInputType<{
68
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
69
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
70
+ }, z.ZodTypeAny, "passthrough">[];
35
71
  };
36
- }>;
72
+ }>>;
37
73
  declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
38
74
  id: z.ZodString;
39
75
  user_id: z.ZodString;
@@ -164,39 +200,75 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
164
200
  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
201
  preview: z.ZodDefault<z.ZodObject<{
166
202
  type: z.ZodLiteral<"doc">;
167
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
203
+ content: z.ZodArray<z.ZodObject<{
204
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
205
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
206
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
207
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
208
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
209
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
210
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
211
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
212
+ }, z.ZodTypeAny, "passthrough">>, "many">;
168
213
  }, "strip", z.ZodTypeAny, {
169
214
  type: "doc";
170
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
215
+ content: z.objectOutputType<{
216
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
217
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
218
+ }, z.ZodTypeAny, "passthrough">[];
171
219
  }, {
172
220
  type: "doc";
173
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
221
+ content: z.objectInputType<{
222
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
223
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
224
+ }, z.ZodTypeAny, "passthrough">[];
174
225
  }>>;
175
- content: z.ZodObject<{
226
+ content: z.ZodDefault<z.ZodObject<{
176
227
  json: z.ZodObject<{
177
228
  type: z.ZodLiteral<"doc">;
178
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
229
+ content: z.ZodArray<z.ZodObject<{
230
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
231
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
232
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
233
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
234
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
235
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
236
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
237
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
238
+ }, z.ZodTypeAny, "passthrough">>, "many">;
179
239
  }, "strip", z.ZodTypeAny, {
180
240
  type: "doc";
181
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
241
+ content: z.objectOutputType<{
242
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
243
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
244
+ }, z.ZodTypeAny, "passthrough">[];
182
245
  }, {
183
246
  type: "doc";
184
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
247
+ content: z.objectInputType<{
248
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
249
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
250
+ }, z.ZodTypeAny, "passthrough">[];
185
251
  }>;
186
252
  text: z.ZodString;
187
253
  }, "strip", z.ZodTypeAny, {
188
254
  text: string;
189
255
  json: {
190
256
  type: "doc";
191
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
257
+ content: z.objectOutputType<{
258
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
259
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
260
+ }, z.ZodTypeAny, "passthrough">[];
192
261
  };
193
262
  }, {
194
263
  text: string;
195
264
  json: {
196
265
  type: "doc";
197
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
266
+ content: z.objectInputType<{
267
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
268
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
269
+ }, z.ZodTypeAny, "passthrough">[];
198
270
  };
199
- }>;
271
+ }>>;
200
272
  }>, "strip", z.ZodTypeAny, {
201
273
  id: string;
202
274
  name: string | null;
@@ -204,7 +276,10 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
204
276
  text: string;
205
277
  json: {
206
278
  type: "doc";
207
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
279
+ content: z.objectOutputType<{
280
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
281
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
282
+ }, z.ZodTypeAny, "passthrough">[];
208
283
  };
209
284
  };
210
285
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
@@ -217,7 +292,10 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
217
292
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
218
293
  preview: {
219
294
  type: "doc";
220
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
295
+ content: z.objectOutputType<{
296
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
297
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
298
+ }, z.ZodTypeAny, "passthrough">[];
221
299
  };
222
300
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
223
301
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
@@ -267,13 +345,6 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
267
345
  }, {
268
346
  id: string;
269
347
  name: string | null;
270
- content: {
271
- text: string;
272
- json: {
273
- type: "doc";
274
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
275
- };
276
- };
277
348
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
278
349
  user_id: string;
279
350
  org_id: string;
@@ -283,6 +354,16 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
283
354
  team_id: string;
284
355
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
285
356
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
357
+ content?: {
358
+ text: string;
359
+ json: {
360
+ type: "doc";
361
+ content: z.objectInputType<{
362
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
363
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
364
+ }, z.ZodTypeAny, "passthrough">[];
365
+ };
366
+ } | undefined;
286
367
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
287
368
  description?: string | null | undefined;
288
369
  user?: {
@@ -329,10 +410,13 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
329
410
  price_id?: string | null | undefined;
330
411
  preview?: {
331
412
  type: "doc";
332
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
413
+ content: z.objectInputType<{
414
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
415
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
416
+ }, z.ZodTypeAny, "passthrough">[];
333
417
  } | undefined;
334
418
  }>;
335
- declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
419
+ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
336
420
  id: z.ZodOptional<z.ZodString>;
337
421
  user_id: z.ZodOptional<z.ZodString>;
338
422
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -439,6 +523,8 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
439
523
  default_role?: "none" | "admin" | "read" | "write" | undefined;
440
524
  }>>>;
441
525
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
526
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
527
+ name: z.ZodOptional<z.ZodString>;
442
528
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
443
529
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
444
530
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -451,177 +537,97 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
451
537
  product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
452
538
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
453
539
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
540
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
454
541
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
455
542
  created_at: z.ZodOptional<z.ZodString>;
456
543
  last_updated: z.ZodOptional<z.ZodString>;
457
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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<{
544
+ }, "user" | "organization" | "user_id" | "team" | "slug">, {
545
+ id: z.ZodDefault<z.ZodString>;
546
+ team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
547
+ org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
548
+ name: z.ZodString;
549
+ name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
550
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
551
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
552
+ created_at: z.ZodDefault<z.ZodString>;
553
+ last_updated: z.ZodDefault<z.ZodString>;
554
+ }>, {
555
+ asset_type: z.ZodDefault<z.ZodLiteral<"post">>;
556
+ name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, string | undefined, string | null | undefined>, string | null, string | null | undefined>;
557
+ preview: z.ZodObject<{
460
558
  type: z.ZodLiteral<"doc">;
461
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
559
+ content: z.ZodArray<z.ZodObject<{
560
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
561
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
562
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
563
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
564
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
565
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
566
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
567
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
568
+ }, z.ZodTypeAny, "passthrough">>, "many">;
462
569
  }, "strip", z.ZodTypeAny, {
463
570
  type: "doc";
464
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
571
+ content: z.objectOutputType<{
572
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
573
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
574
+ }, z.ZodTypeAny, "passthrough">[];
465
575
  }, {
466
576
  type: "doc";
467
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
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
- }>>;
494
- }, "id" | "user_id">, {
495
- id: z.ZodDefault<z.ZodString>;
496
- team_id: z.ZodDefault<z.ZodString>;
497
- org_id: z.ZodDefault<z.ZodString>;
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>;
499
- name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>, string | null, string | undefined>;
500
- visibility: z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
501
- monetization: z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
502
- created_at: z.ZodDefault<z.ZodString>;
503
- last_updated: z.ZodDefault<z.ZodString>;
577
+ content: z.objectInputType<{
578
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
579
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
580
+ }, z.ZodTypeAny, "passthrough">[];
581
+ }>;
504
582
  }>, "strip", z.ZodTypeAny, {
505
583
  id: string;
584
+ state: "error" | "in-progress" | "success" | "queued";
506
585
  name: string | null;
507
586
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
508
- org_id: string;
509
- asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
587
+ org_id: string | null;
588
+ asset_type: "post";
510
589
  created_at: string;
511
590
  last_updated: string;
512
- team_id: string;
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;
591
+ team_id: string | null;
592
+ preview: {
593
+ type: "doc";
594
+ content: z.objectOutputType<{
595
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
596
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
597
+ }, z.ZodTypeAny, "passthrough">[];
598
+ };
522
599
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
523
600
  description?: string | null | undefined;
524
- user?: {
525
- id?: string | undefined;
526
- user_id?: string | undefined;
527
- avatar_path?: string | null | undefined;
528
- urls?: {
529
- value: string;
530
- }[] | undefined;
531
- username?: string | null | undefined;
532
- bio?: string | null | undefined;
533
- last_active?: string | undefined;
534
- } | undefined;
535
- organization?: {
536
- id?: string | undefined;
537
- name?: string | undefined;
538
- size?: string | undefined;
539
- email?: string | null | undefined;
540
- avatar_path?: string | null | undefined;
541
- mission?: string | null | undefined;
542
- domain?: string | null | undefined;
543
- urls?: {
544
- value: string;
545
- }[] | null | undefined;
546
- base_role?: "none" | "admin" | "read" | "write" | undefined;
547
- } | undefined;
548
- team?: {
549
- id?: string | undefined;
550
- name?: string | undefined;
551
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
552
- description?: string | null | undefined;
553
- org_id?: string | undefined;
554
- created_at?: string | undefined;
555
- default_role?: "none" | "admin" | "read" | "write" | undefined;
556
- } | undefined;
557
601
  parent_id?: string | null | undefined;
558
602
  name_url_slug?: string | null | undefined;
559
- slug?: string | null | undefined;
603
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
560
604
  price?: number | null | undefined;
561
605
  unit_cost?: number | null | undefined;
562
606
  cost_accounting?: "fixed" | "variable" | null | undefined;
563
607
  cost_unit?: string | null | undefined;
564
608
  product_id?: string | null | undefined;
565
609
  price_id?: string | null | undefined;
566
- preview?: {
567
- type: "doc";
568
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
569
- } | undefined;
570
610
  }, {
611
+ preview: {
612
+ type: "doc";
613
+ content: z.objectInputType<{
614
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
615
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
616
+ }, z.ZodTypeAny, "passthrough">[];
617
+ };
571
618
  id?: string | undefined;
572
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
573
- name?: string | undefined;
574
- content?: {
575
- text: string;
576
- json: {
577
- type: "doc";
578
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
579
- };
580
- } | undefined;
619
+ state?: "error" | "in-progress" | "success" | "queued" | undefined;
620
+ name?: string | null | undefined;
581
621
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
582
622
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
583
623
  description?: string | null | undefined;
584
- user?: {
585
- id?: string | undefined;
586
- user_id?: string | undefined;
587
- avatar_path?: string | null | undefined;
588
- urls?: {
589
- value: string;
590
- }[] | undefined;
591
- username?: string | null | undefined;
592
- bio?: string | null | undefined;
593
- last_active?: string | undefined;
594
- } | undefined;
595
- organization?: {
596
- id?: string | undefined;
597
- name?: string | undefined;
598
- size?: string | undefined;
599
- email?: string | null | undefined;
600
- avatar_path?: string | null | undefined;
601
- mission?: string | null | undefined;
602
- domain?: string | null | undefined;
603
- urls?: {
604
- value: string;
605
- }[] | null | undefined;
606
- base_role?: "none" | "admin" | "read" | "write" | undefined;
607
- } | undefined;
608
- org_id?: string | undefined;
609
- asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
624
+ org_id?: string | null | undefined;
625
+ asset_type?: "post" | undefined;
610
626
  created_at?: string | undefined;
611
627
  last_updated?: string | undefined;
612
- team_id?: string | undefined;
613
- team?: {
614
- id?: string | undefined;
615
- name?: string | undefined;
616
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
617
- description?: string | null | undefined;
618
- org_id?: string | undefined;
619
- created_at?: string | undefined;
620
- default_role?: "none" | "admin" | "read" | "write" | undefined;
621
- } | undefined;
628
+ team_id?: string | null | undefined;
622
629
  parent_id?: string | null | undefined;
623
630
  name_url_slug?: string | null | undefined;
624
- slug?: string | null | undefined;
625
631
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
626
632
  price?: number | null | undefined;
627
633
  unit_cost?: number | null | undefined;
@@ -629,10 +635,6 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
629
635
  cost_unit?: string | null | undefined;
630
636
  product_id?: string | null | undefined;
631
637
  price_id?: string | null | undefined;
632
- preview?: {
633
- type: "doc";
634
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
635
- } | undefined;
636
638
  }>;
637
639
  declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
638
640
  id: z.ZodString;
@@ -764,65 +766,122 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
764
766
  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
767
  preview: z.ZodDefault<z.ZodObject<{
766
768
  type: z.ZodLiteral<"doc">;
767
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
769
+ content: z.ZodArray<z.ZodObject<{
770
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
771
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
772
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
773
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
774
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
775
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
776
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
777
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
778
+ }, z.ZodTypeAny, "passthrough">>, "many">;
768
779
  }, "strip", z.ZodTypeAny, {
769
780
  type: "doc";
770
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
781
+ content: z.objectOutputType<{
782
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
783
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
784
+ }, z.ZodTypeAny, "passthrough">[];
771
785
  }, {
772
786
  type: "doc";
773
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
787
+ content: z.objectInputType<{
788
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
789
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
790
+ }, z.ZodTypeAny, "passthrough">[];
774
791
  }>>;
775
- content: z.ZodObject<{
792
+ content: z.ZodDefault<z.ZodObject<{
776
793
  json: z.ZodObject<{
777
794
  type: z.ZodLiteral<"doc">;
778
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
795
+ content: z.ZodArray<z.ZodObject<{
796
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
797
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
798
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
799
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
800
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
801
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
802
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
803
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
804
+ }, z.ZodTypeAny, "passthrough">>, "many">;
779
805
  }, "strip", z.ZodTypeAny, {
780
806
  type: "doc";
781
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
807
+ content: z.objectOutputType<{
808
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
809
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
810
+ }, z.ZodTypeAny, "passthrough">[];
782
811
  }, {
783
812
  type: "doc";
784
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
813
+ content: z.objectInputType<{
814
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
815
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
816
+ }, z.ZodTypeAny, "passthrough">[];
785
817
  }>;
786
818
  text: z.ZodString;
787
819
  }, "strip", z.ZodTypeAny, {
788
820
  text: string;
789
821
  json: {
790
822
  type: "doc";
791
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
823
+ content: z.objectOutputType<{
824
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
825
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
826
+ }, z.ZodTypeAny, "passthrough">[];
792
827
  };
793
828
  }, {
794
829
  text: string;
795
830
  json: {
796
831
  type: "doc";
797
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
832
+ content: z.objectInputType<{
833
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
834
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
835
+ }, z.ZodTypeAny, "passthrough">[];
798
836
  };
799
- }>;
837
+ }>>;
800
838
  }>, {
801
- content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
839
+ content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodObject<{
802
840
  json: z.ZodObject<{
803
841
  type: z.ZodLiteral<"doc">;
804
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
842
+ content: z.ZodArray<z.ZodObject<{
843
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
844
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
845
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
846
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
847
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
848
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
849
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
850
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
851
+ }, z.ZodTypeAny, "passthrough">>, "many">;
805
852
  }, "strip", z.ZodTypeAny, {
806
853
  type: "doc";
807
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
854
+ content: z.objectOutputType<{
855
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
856
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
857
+ }, z.ZodTypeAny, "passthrough">[];
808
858
  }, {
809
859
  type: "doc";
810
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
860
+ content: z.objectInputType<{
861
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
862
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
863
+ }, z.ZodTypeAny, "passthrough">[];
811
864
  }>;
812
865
  text: z.ZodString;
813
866
  }, "strip", z.ZodTypeAny, {
814
867
  text: string;
815
868
  json: {
816
869
  type: "doc";
817
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
870
+ content: z.objectOutputType<{
871
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
872
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
873
+ }, z.ZodTypeAny, "passthrough">[];
818
874
  };
819
875
  }, {
820
876
  text: string;
821
877
  json: {
822
878
  type: "doc";
823
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
879
+ content: z.objectInputType<{
880
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
881
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
882
+ }, z.ZodTypeAny, "passthrough">[];
824
883
  };
825
- }>>>>;
884
+ }>>>>>;
826
885
  reactions: z.ZodDefault<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
827
886
  views: z.ZodDefault<z.ZodNumber>;
828
887
  commentCount: z.ZodDefault<z.ZodNumber>;
@@ -868,7 +927,10 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
868
927
  text: string;
869
928
  json: {
870
929
  type: "doc";
871
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
930
+ content: z.objectOutputType<{
931
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
932
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
933
+ }, z.ZodTypeAny, "passthrough">[];
872
934
  };
873
935
  } | null;
874
936
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
@@ -881,7 +943,10 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
881
943
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
882
944
  preview: {
883
945
  type: "doc";
884
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
946
+ content: z.objectOutputType<{
947
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
948
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
949
+ }, z.ZodTypeAny, "passthrough">[];
885
950
  };
886
951
  reactions: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
887
952
  views: number;
@@ -960,7 +1025,10 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
960
1025
  text: string;
961
1026
  json: {
962
1027
  type: "doc";
963
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1028
+ content: z.objectInputType<{
1029
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1030
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1031
+ }, z.ZodTypeAny, "passthrough">[];
964
1032
  };
965
1033
  } | null | undefined;
966
1034
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
@@ -1021,7 +1089,10 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
1021
1089
  price_id?: string | null | undefined;
1022
1090
  preview?: {
1023
1091
  type: "doc";
1024
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1092
+ content: z.objectInputType<{
1093
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1094
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1095
+ }, z.ZodTypeAny, "passthrough">[];
1025
1096
  } | undefined;
1026
1097
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
1027
1098
  views?: number | undefined;
@@ -1158,65 +1229,122 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1158
1229
  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
1230
  preview: z.ZodDefault<z.ZodObject<{
1160
1231
  type: z.ZodLiteral<"doc">;
1161
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1232
+ content: z.ZodArray<z.ZodObject<{
1233
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1234
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1235
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1236
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1237
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1238
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1239
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1240
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1241
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1162
1242
  }, "strip", z.ZodTypeAny, {
1163
1243
  type: "doc";
1164
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1244
+ content: z.objectOutputType<{
1245
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1246
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1247
+ }, z.ZodTypeAny, "passthrough">[];
1165
1248
  }, {
1166
1249
  type: "doc";
1167
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1250
+ content: z.objectInputType<{
1251
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1252
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1253
+ }, z.ZodTypeAny, "passthrough">[];
1168
1254
  }>>;
1169
- content: z.ZodObject<{
1255
+ content: z.ZodDefault<z.ZodObject<{
1170
1256
  json: z.ZodObject<{
1171
1257
  type: z.ZodLiteral<"doc">;
1172
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1258
+ content: z.ZodArray<z.ZodObject<{
1259
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1260
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1261
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1262
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1263
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1264
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1265
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1266
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1267
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1173
1268
  }, "strip", z.ZodTypeAny, {
1174
1269
  type: "doc";
1175
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1270
+ content: z.objectOutputType<{
1271
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1272
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1273
+ }, z.ZodTypeAny, "passthrough">[];
1176
1274
  }, {
1177
1275
  type: "doc";
1178
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1276
+ content: z.objectInputType<{
1277
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1278
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1279
+ }, z.ZodTypeAny, "passthrough">[];
1179
1280
  }>;
1180
1281
  text: z.ZodString;
1181
1282
  }, "strip", z.ZodTypeAny, {
1182
1283
  text: string;
1183
1284
  json: {
1184
1285
  type: "doc";
1185
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1286
+ content: z.objectOutputType<{
1287
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1288
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1289
+ }, z.ZodTypeAny, "passthrough">[];
1186
1290
  };
1187
1291
  }, {
1188
1292
  text: string;
1189
1293
  json: {
1190
1294
  type: "doc";
1191
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1295
+ content: z.objectInputType<{
1296
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1297
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1298
+ }, z.ZodTypeAny, "passthrough">[];
1192
1299
  };
1193
- }>;
1300
+ }>>;
1194
1301
  }>, {
1195
- content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1302
+ content: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodObject<{
1196
1303
  json: z.ZodObject<{
1197
1304
  type: z.ZodLiteral<"doc">;
1198
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1305
+ content: z.ZodArray<z.ZodObject<{
1306
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1307
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1308
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1309
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1310
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1311
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1312
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1313
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1314
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1199
1315
  }, "strip", z.ZodTypeAny, {
1200
1316
  type: "doc";
1201
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1317
+ content: z.objectOutputType<{
1318
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1319
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1320
+ }, z.ZodTypeAny, "passthrough">[];
1202
1321
  }, {
1203
1322
  type: "doc";
1204
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1323
+ content: z.objectInputType<{
1324
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1325
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1326
+ }, z.ZodTypeAny, "passthrough">[];
1205
1327
  }>;
1206
1328
  text: z.ZodString;
1207
1329
  }, "strip", z.ZodTypeAny, {
1208
1330
  text: string;
1209
1331
  json: {
1210
1332
  type: "doc";
1211
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1333
+ content: z.objectOutputType<{
1334
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1335
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1336
+ }, z.ZodTypeAny, "passthrough">[];
1212
1337
  };
1213
1338
  }, {
1214
1339
  text: string;
1215
1340
  json: {
1216
1341
  type: "doc";
1217
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1342
+ content: z.objectInputType<{
1343
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1344
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1345
+ }, z.ZodTypeAny, "passthrough">[];
1218
1346
  };
1219
- }>>>>;
1347
+ }>>>>>;
1220
1348
  reactions: z.ZodDefault<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1221
1349
  views: z.ZodDefault<z.ZodNumber>;
1222
1350
  commentCount: z.ZodDefault<z.ZodNumber>;
@@ -1262,7 +1390,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1262
1390
  text: string;
1263
1391
  json: {
1264
1392
  type: "doc";
1265
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1393
+ content: z.objectOutputType<{
1394
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1395
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1396
+ }, z.ZodTypeAny, "passthrough">[];
1266
1397
  };
1267
1398
  } | null;
1268
1399
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
@@ -1275,7 +1406,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1275
1406
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1276
1407
  preview: {
1277
1408
  type: "doc";
1278
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1409
+ content: z.objectOutputType<{
1410
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1411
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1412
+ }, z.ZodTypeAny, "passthrough">[];
1279
1413
  };
1280
1414
  reactions: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1281
1415
  views: number;
@@ -1354,7 +1488,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1354
1488
  text: string;
1355
1489
  json: {
1356
1490
  type: "doc";
1357
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1491
+ content: z.objectInputType<{
1492
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1493
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1494
+ }, z.ZodTypeAny, "passthrough">[];
1358
1495
  };
1359
1496
  } | null | undefined;
1360
1497
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
@@ -1415,7 +1552,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1415
1552
  price_id?: string | null | undefined;
1416
1553
  preview?: {
1417
1554
  type: "doc";
1418
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1555
+ content: z.objectInputType<{
1556
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1557
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1558
+ }, z.ZodTypeAny, "passthrough">[];
1419
1559
  } | undefined;
1420
1560
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
1421
1561
  views?: number | undefined;
@@ -1552,39 +1692,75 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1552
1692
  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
1693
  preview: z.ZodDefault<z.ZodObject<{
1554
1694
  type: z.ZodLiteral<"doc">;
1555
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1695
+ content: z.ZodArray<z.ZodObject<{
1696
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1697
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1698
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1699
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1700
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1701
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1702
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1703
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1704
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1556
1705
  }, "strip", z.ZodTypeAny, {
1557
1706
  type: "doc";
1558
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1707
+ content: z.objectOutputType<{
1708
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1709
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1710
+ }, z.ZodTypeAny, "passthrough">[];
1559
1711
  }, {
1560
1712
  type: "doc";
1561
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1713
+ content: z.objectInputType<{
1714
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1715
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1716
+ }, z.ZodTypeAny, "passthrough">[];
1562
1717
  }>>;
1563
- content: z.ZodObject<{
1718
+ content: z.ZodDefault<z.ZodObject<{
1564
1719
  json: z.ZodObject<{
1565
1720
  type: z.ZodLiteral<"doc">;
1566
- content: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
1721
+ content: z.ZodArray<z.ZodObject<{
1722
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1723
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1724
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1725
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1726
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1727
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1728
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1729
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1730
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1567
1731
  }, "strip", z.ZodTypeAny, {
1568
1732
  type: "doc";
1569
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1733
+ content: z.objectOutputType<{
1734
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1735
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1736
+ }, z.ZodTypeAny, "passthrough">[];
1570
1737
  }, {
1571
1738
  type: "doc";
1572
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1739
+ content: z.objectInputType<{
1740
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1741
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1742
+ }, z.ZodTypeAny, "passthrough">[];
1573
1743
  }>;
1574
1744
  text: z.ZodString;
1575
1745
  }, "strip", z.ZodTypeAny, {
1576
1746
  text: string;
1577
1747
  json: {
1578
1748
  type: "doc";
1579
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1749
+ content: z.objectOutputType<{
1750
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1751
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1752
+ }, z.ZodTypeAny, "passthrough">[];
1580
1753
  };
1581
1754
  }, {
1582
1755
  text: string;
1583
1756
  json: {
1584
1757
  type: "doc";
1585
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1758
+ content: z.objectInputType<{
1759
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1760
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1761
+ }, z.ZodTypeAny, "passthrough">[];
1586
1762
  };
1587
- }>;
1763
+ }>>;
1588
1764
  }>, "strip", z.ZodTypeAny, {
1589
1765
  id: string;
1590
1766
  name: string | null;
@@ -1592,7 +1768,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1592
1768
  text: string;
1593
1769
  json: {
1594
1770
  type: "doc";
1595
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1771
+ content: z.objectOutputType<{
1772
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1773
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1774
+ }, z.ZodTypeAny, "passthrough">[];
1596
1775
  };
1597
1776
  };
1598
1777
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
@@ -1605,7 +1784,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1605
1784
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1606
1785
  preview: {
1607
1786
  type: "doc";
1608
- content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
1787
+ content: z.objectOutputType<{
1788
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1789
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1790
+ }, z.ZodTypeAny, "passthrough">[];
1609
1791
  };
1610
1792
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1611
1793
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
@@ -1655,13 +1837,6 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1655
1837
  }, {
1656
1838
  id: string;
1657
1839
  name: string | null;
1658
- content: {
1659
- text: string;
1660
- json: {
1661
- type: "doc";
1662
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1663
- };
1664
- };
1665
1840
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1666
1841
  user_id: string;
1667
1842
  org_id: string;
@@ -1671,6 +1846,16 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1671
1846
  team_id: string;
1672
1847
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1673
1848
  state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1849
+ content?: {
1850
+ text: string;
1851
+ json: {
1852
+ type: "doc";
1853
+ content: z.objectInputType<{
1854
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1855
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1856
+ }, z.ZodTypeAny, "passthrough">[];
1857
+ };
1858
+ } | undefined;
1674
1859
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1675
1860
  description?: string | null | undefined;
1676
1861
  user?: {
@@ -1717,53 +1902,240 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1717
1902
  price_id?: string | null | undefined;
1718
1903
  preview?: {
1719
1904
  type: "doc";
1720
- content: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
1905
+ content: z.objectInputType<{
1906
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1907
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1908
+ }, z.ZodTypeAny, "passthrough">[];
1721
1909
  } | undefined;
1722
1910
  }>, "many">;
1723
- declare const updatePostSchema: z.ZodObject<{
1724
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
- visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
1727
- monetization: z.ZodOptional<z.ZodNullable<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>>;
1728
- price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1729
- metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1730
- table_name: z.ZodString;
1731
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1732
- table_name: z.ZodString;
1733
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1734
- table_name: z.ZodString;
1735
- }, z.ZodTypeAny, "passthrough">>>>;
1736
- preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
1911
+ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
1912
+ id: z.ZodOptional<z.ZodString>;
1913
+ user_id: z.ZodOptional<z.ZodString>;
1914
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1915
+ id: z.ZodOptional<z.ZodString>;
1916
+ user_id: z.ZodOptional<z.ZodString>;
1917
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1918
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1919
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1920
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1921
+ value: z.ZodString;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ value: string;
1924
+ }, {
1925
+ value: string;
1926
+ }>, "many">>>;
1927
+ last_active: z.ZodOptional<z.ZodString>;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ id?: string | undefined;
1930
+ user_id?: string | undefined;
1931
+ avatar_path?: string | null | undefined;
1932
+ urls?: {
1933
+ value: string;
1934
+ }[] | undefined;
1935
+ username?: string | null | undefined;
1936
+ bio?: string | null | undefined;
1937
+ last_active?: string | undefined;
1938
+ }, {
1939
+ id?: string | undefined;
1940
+ user_id?: string | undefined;
1941
+ avatar_path?: string | null | undefined;
1942
+ urls?: {
1943
+ value: string;
1944
+ }[] | undefined;
1945
+ username?: string | null | undefined;
1946
+ bio?: string | null | undefined;
1947
+ last_active?: string | undefined;
1948
+ }>>>;
1949
+ org_id: z.ZodOptional<z.ZodString>;
1950
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1951
+ id: z.ZodOptional<z.ZodString>;
1952
+ name: z.ZodOptional<z.ZodString>;
1953
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1954
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1955
+ size: z.ZodOptional<z.ZodString>;
1956
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1957
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1958
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1959
+ value: z.ZodString;
1960
+ }, "strip", z.ZodTypeAny, {
1961
+ value: string;
1962
+ }, {
1963
+ value: string;
1964
+ }>, "many">>>>;
1965
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
1966
+ }, "strip", z.ZodTypeAny, {
1967
+ id?: string | undefined;
1968
+ name?: string | undefined;
1969
+ size?: string | undefined;
1970
+ email?: string | null | undefined;
1971
+ avatar_path?: string | null | undefined;
1972
+ mission?: string | null | undefined;
1973
+ domain?: string | null | undefined;
1974
+ urls?: {
1975
+ value: string;
1976
+ }[] | null | undefined;
1977
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1978
+ }, {
1979
+ id?: string | undefined;
1980
+ name?: string | undefined;
1981
+ size?: string | undefined;
1982
+ email?: string | null | undefined;
1983
+ avatar_path?: string | null | undefined;
1984
+ mission?: string | null | undefined;
1985
+ domain?: string | null | undefined;
1986
+ urls?: {
1987
+ value: string;
1988
+ }[] | null | undefined;
1989
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1990
+ }>>>;
1991
+ team_id: z.ZodOptional<z.ZodString>;
1992
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1993
+ id: z.ZodOptional<z.ZodString>;
1994
+ org_id: z.ZodOptional<z.ZodString>;
1995
+ name: z.ZodOptional<z.ZodString>;
1996
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1997
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
1998
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
1999
+ created_at: z.ZodOptional<z.ZodString>;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ id?: string | undefined;
2002
+ name?: string | undefined;
2003
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
2004
+ description?: string | null | undefined;
2005
+ org_id?: string | undefined;
2006
+ created_at?: string | undefined;
2007
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
2008
+ }, {
2009
+ id?: string | undefined;
2010
+ name?: string | undefined;
2011
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
2012
+ description?: string | null | undefined;
2013
+ org_id?: string | undefined;
2014
+ created_at?: string | undefined;
2015
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
2016
+ }>>>;
2017
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2018
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
2019
+ name: z.ZodOptional<z.ZodString>;
2020
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2021
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2022
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2023
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
2024
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
2025
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
2026
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
2027
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
2028
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2029
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2030
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2031
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
2032
+ preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
2033
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
2034
+ created_at: z.ZodOptional<z.ZodString>;
2035
+ last_updated: z.ZodOptional<z.ZodString>;
2036
+ }, "user" | "organization" | "user_id" | "team" | "slug">, {
2037
+ id: z.ZodDefault<z.ZodString>;
2038
+ team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2039
+ org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2040
+ name: z.ZodString;
2041
+ name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2042
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
2043
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
2044
+ created_at: z.ZodDefault<z.ZodString>;
1737
2045
  last_updated: z.ZodDefault<z.ZodString>;
1738
- }, "strip", z.ZodTypeAny, {
2046
+ }>, {
2047
+ asset_type: z.ZodDefault<z.ZodLiteral<"post">>;
2048
+ name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, string | undefined, string | null | undefined>, string | null, string | null | undefined>;
2049
+ preview: z.ZodObject<{
2050
+ type: z.ZodLiteral<"doc">;
2051
+ content: z.ZodArray<z.ZodObject<{
2052
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2053
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2054
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2055
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2056
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2057
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2058
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2059
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2060
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2061
+ }, "strip", z.ZodTypeAny, {
2062
+ type: "doc";
2063
+ content: z.objectOutputType<{
2064
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2065
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2066
+ }, z.ZodTypeAny, "passthrough">[];
2067
+ }, {
2068
+ type: "doc";
2069
+ content: z.objectInputType<{
2070
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2071
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2072
+ }, z.ZodTypeAny, "passthrough">[];
2073
+ }>;
2074
+ }>, "last_updated">, {
2075
+ last_updated: z.ZodDefault<z.ZodString>;
2076
+ }>, "strip", z.ZodTypeAny, {
2077
+ id: string;
2078
+ state: "error" | "in-progress" | "success" | "queued";
2079
+ name: string | null;
2080
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
2081
+ org_id: string | null;
2082
+ asset_type: "post";
2083
+ created_at: string;
1739
2084
  last_updated: string;
1740
- name?: string | null | undefined;
1741
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
1742
- metadata?: z.objectOutputType<{
1743
- table_name: z.ZodString;
1744
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
2085
+ team_id: string | null;
2086
+ preview: {
2087
+ type: "doc";
2088
+ content: z.objectOutputType<{
2089
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2090
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2091
+ }, z.ZodTypeAny, "passthrough">[];
2092
+ };
2093
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1745
2094
  description?: string | null | undefined;
1746
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | null | undefined;
2095
+ parent_id?: string | null | undefined;
2096
+ name_url_slug?: string | null | undefined;
2097
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1747
2098
  price?: number | null | undefined;
1748
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
2099
+ unit_cost?: number | null | undefined;
2100
+ cost_accounting?: "fixed" | "variable" | null | undefined;
2101
+ cost_unit?: string | null | undefined;
2102
+ product_id?: string | null | undefined;
2103
+ price_id?: string | null | undefined;
1749
2104
  }, {
2105
+ preview: {
2106
+ type: "doc";
2107
+ content: z.objectInputType<{
2108
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
2109
+ attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2110
+ }, z.ZodTypeAny, "passthrough">[];
2111
+ };
2112
+ id?: string | undefined;
2113
+ state?: "error" | "in-progress" | "success" | "queued" | undefined;
1750
2114
  name?: string | null | undefined;
1751
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
1752
- metadata?: z.objectInputType<{
1753
- table_name: z.ZodString;
1754
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
2115
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
2116
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1755
2117
  description?: string | null | undefined;
2118
+ org_id?: string | null | undefined;
2119
+ asset_type?: "post" | undefined;
2120
+ created_at?: string | undefined;
1756
2121
  last_updated?: string | undefined;
1757
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | null | undefined;
2122
+ team_id?: string | null | undefined;
2123
+ parent_id?: string | null | undefined;
2124
+ name_url_slug?: string | null | undefined;
2125
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1758
2126
  price?: number | null | undefined;
1759
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
2127
+ unit_cost?: number | null | undefined;
2128
+ cost_accounting?: "fixed" | "variable" | null | undefined;
2129
+ cost_unit?: string | null | undefined;
2130
+ product_id?: string | null | undefined;
2131
+ price_id?: string | null | undefined;
1760
2132
  }>;
1761
2133
  type Post = z.infer<typeof PostSchema>;
1762
2134
  type CreatePost = z.infer<typeof CreatePostSchema>;
1763
2135
  type ListPosts = z.infer<typeof ListPostsSchema>;
1764
2136
  type ReadPost = z.infer<typeof ReadPostSchema>;
1765
2137
  type ReadPosts = z.infer<typeof ReadPostsSchema>;
1766
- type UpdatePost = z.infer<typeof updatePostSchema>;
2138
+ type UpdatePost = z.infer<typeof UpdatePostSchema>;
1767
2139
  type Content = z.infer<typeof ContentSchema>;
1768
2140
  type TipTap = z.infer<typeof TipTapSchema>;
1769
- export { TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, updatePostSchema, type Post, type CreatePost, type ListPosts, type ReadPost, type ReadPosts, type UpdatePost, type Content, type TipTap, };
2141
+ export { TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, UpdatePostSchema, type Post, type CreatePost, type ListPosts, type ReadPost, type ReadPosts, type UpdatePost, type Content, type TipTap, };