@ourofoundation/ouro-js 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/index.d.ts +18 -19
  2. package/dist/index.esm.js +2 -0
  3. package/dist/index.esm.js.map +1 -0
  4. package/dist/index.js +2 -80
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema/assets.d.ts +240 -70
  7. package/dist/schema/assets.esm.js +2 -0
  8. package/dist/schema/assets.esm.js.map +1 -0
  9. package/dist/schema/assets.js +2 -83
  10. package/dist/schema/assets.js.map +1 -1
  11. package/dist/schema/blueprints.d.ts +95 -95
  12. package/dist/schema/blueprints.esm.js +2 -0
  13. package/dist/schema/blueprints.esm.js.map +1 -0
  14. package/dist/schema/blueprints.js +2 -38
  15. package/dist/schema/blueprints.js.map +1 -1
  16. package/dist/schema/comments.d.ts +81 -81
  17. package/dist/schema/comments.esm.js +2 -0
  18. package/dist/schema/comments.esm.js.map +1 -0
  19. package/dist/schema/comments.js +2 -32
  20. package/dist/schema/comments.js.map +1 -1
  21. package/dist/schema/common.d.ts +32 -32
  22. package/dist/schema/common.esm.js +2 -0
  23. package/dist/schema/common.esm.js.map +1 -0
  24. package/dist/schema/common.js +2 -87
  25. package/dist/schema/common.js.map +1 -1
  26. package/dist/schema/conversations.d.ts +139 -139
  27. package/dist/schema/conversations.esm.js +2 -0
  28. package/dist/schema/conversations.esm.js.map +1 -0
  29. package/dist/schema/conversations.js +2 -54
  30. package/dist/schema/conversations.js.map +1 -1
  31. package/dist/schema/datasets.d.ts +202 -202
  32. package/dist/schema/datasets.esm.js +2 -0
  33. package/dist/schema/datasets.esm.js.map +1 -0
  34. package/dist/schema/datasets.js +2 -49
  35. package/dist/schema/datasets.js.map +1 -1
  36. package/dist/schema/files.d.ts +185 -185
  37. package/dist/schema/files.esm.js +2 -0
  38. package/dist/schema/files.esm.js.map +1 -0
  39. package/dist/schema/files.js +2 -50
  40. package/dist/schema/files.js.map +1 -1
  41. package/dist/schema/index.d.ts +14 -80
  42. package/dist/schema/notifications.d.ts +22 -22
  43. package/dist/schema/notifications.esm.js +2 -0
  44. package/dist/schema/notifications.esm.js.map +1 -0
  45. package/dist/schema/notifications.js +2 -46
  46. package/dist/schema/notifications.js.map +1 -1
  47. package/dist/schema/organizations.d.ts +11 -11
  48. package/dist/schema/organizations.esm.js +2 -0
  49. package/dist/schema/organizations.esm.js.map +1 -0
  50. package/dist/schema/organizations.js +2 -33
  51. package/dist/schema/organizations.js.map +1 -1
  52. package/dist/schema/posts.d.ts +390 -301
  53. package/dist/schema/posts.esm.js +2 -0
  54. package/dist/schema/posts.esm.js.map +1 -0
  55. package/dist/schema/posts.js +2 -76
  56. package/dist/schema/posts.js.map +1 -1
  57. package/dist/schema/replications.d.ts +115 -115
  58. package/dist/schema/replications.esm.js +2 -0
  59. package/dist/schema/replications.esm.js.map +1 -0
  60. package/dist/schema/replications.js +2 -42
  61. package/dist/schema/replications.js.map +1 -1
  62. package/dist/schema/services.d.ts +14 -14
  63. package/dist/schema/services.esm.js +2 -0
  64. package/dist/schema/services.esm.js.map +1 -0
  65. package/dist/schema/services.js +2 -39
  66. package/dist/schema/services.js.map +1 -1
  67. package/dist/schema/teams.d.ts +85 -85
  68. package/dist/schema/teams.esm.js +2 -0
  69. package/dist/schema/teams.esm.js.map +1 -0
  70. package/dist/schema/teams.js +2 -57
  71. package/dist/schema/teams.js.map +1 -1
  72. package/dist/schema/users.d.ts +4 -4
  73. package/dist/schema/users.esm.js +2 -0
  74. package/dist/schema/users.esm.js.map +1 -0
  75. package/dist/schema/users.js +2 -35
  76. package/dist/schema/users.js.map +1 -1
  77. package/dist/types/index.d.ts +14 -0
  78. package/dist/utils/air/index.d.ts +1 -1
  79. package/dist/utils/air/index.esm.js +2 -0
  80. package/dist/utils/air/index.esm.js.map +1 -0
  81. package/dist/utils/air/index.js +2 -51
  82. package/dist/utils/air/index.js.map +1 -1
  83. package/dist/utils/air/markdown-parser.esm.js +2 -0
  84. package/dist/utils/air/markdown-parser.esm.js.map +1 -0
  85. package/dist/utils/air/markdown-parser.js +2 -118
  86. package/dist/utils/air/markdown-parser.js.map +1 -1
  87. package/dist/utils/dataset.esm.js +2 -0
  88. package/dist/utils/dataset.esm.js.map +1 -0
  89. package/dist/utils/dataset.js +2 -19
  90. package/dist/utils/dataset.js.map +1 -1
  91. package/dist/utils/navigate.esm.js +2 -0
  92. package/dist/utils/navigate.esm.js.map +1 -0
  93. package/dist/utils/navigate.js +2 -56
  94. package/dist/utils/navigate.js.map +1 -1
  95. package/package.json +21 -4
  96. package/rollup.config.js +52 -0
@@ -92,27 +92,27 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  id?: string | undefined;
94
94
  name?: string | undefined;
95
- size?: string | undefined;
96
- email?: string | null | undefined;
97
95
  avatar_path?: string | null | undefined;
98
96
  mission?: string | null | undefined;
97
+ size?: string | undefined;
98
+ email?: string | null | undefined;
99
99
  domain?: string | null | undefined;
100
100
  urls?: {
101
101
  value: string;
102
102
  }[] | null | undefined;
103
- base_role?: "none" | "admin" | "read" | "write" | undefined;
103
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
104
104
  }, {
105
105
  id?: string | undefined;
106
106
  name?: string | undefined;
107
- size?: string | undefined;
108
- email?: string | null | undefined;
109
107
  avatar_path?: string | null | undefined;
110
108
  mission?: string | null | undefined;
109
+ size?: string | undefined;
110
+ email?: string | null | undefined;
111
111
  domain?: string | null | undefined;
112
112
  urls?: {
113
113
  value: string;
114
114
  }[] | null | undefined;
115
- base_role?: "none" | "admin" | "read" | "write" | undefined;
115
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
116
116
  }>>;
117
117
  team_id: z.ZodString;
118
118
  team: z.ZodOptional<z.ZodObject<{
@@ -125,20 +125,20 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
125
125
  created_at: z.ZodOptional<z.ZodString>;
126
126
  }, "strip", z.ZodTypeAny, {
127
127
  id?: string | undefined;
128
- name?: string | undefined;
129
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
130
- description?: string | null | undefined;
131
128
  org_id?: string | undefined;
132
129
  created_at?: string | undefined;
133
- default_role?: "none" | "admin" | "read" | "write" | undefined;
134
- }, {
135
- id?: string | undefined;
136
130
  name?: string | undefined;
137
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
131
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
138
132
  description?: string | null | undefined;
133
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
134
+ }, {
135
+ id?: string | undefined;
139
136
  org_id?: string | undefined;
140
137
  created_at?: string | undefined;
141
- default_role?: "none" | "admin" | "read" | "write" | undefined;
138
+ name?: string | undefined;
139
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
140
+ description?: string | null | undefined;
141
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
142
142
  }>>;
143
143
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -162,7 +162,7 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
162
162
  last_updated: z.ZodString;
163
163
  }, {
164
164
  name: z.ZodNullable<z.ZodString>;
165
- 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">;
165
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
166
166
  preview: z.ZodDefault<z.ZodObject<{
167
167
  type: z.ZodLiteral<"doc">;
168
168
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -200,7 +200,8 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
200
200
  }>>;
201
201
  }>, "strip", z.ZodTypeAny, {
202
202
  id: string;
203
- name: string | null;
203
+ user_id: string;
204
+ org_id: string;
204
205
  content: {
205
206
  text: string;
206
207
  json: {
@@ -208,22 +209,17 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
208
209
  content: any[];
209
210
  };
210
211
  };
211
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
212
- user_id: string;
213
- org_id: string;
214
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
212
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
215
213
  created_at: string;
216
214
  last_updated: string;
215
+ name: string | null;
217
216
  team_id: string;
217
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
218
218
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
219
219
  preview: {
220
220
  type: "doc";
221
221
  content: any[];
222
222
  };
223
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
224
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
225
- description?: string | null | undefined;
226
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
227
223
  user?: {
228
224
  id?: string | undefined;
229
225
  user_id?: string | undefined;
@@ -238,26 +234,29 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
238
234
  organization?: {
239
235
  id?: string | undefined;
240
236
  name?: string | undefined;
241
- size?: string | undefined;
242
- email?: string | null | undefined;
243
237
  avatar_path?: string | null | undefined;
244
238
  mission?: string | null | undefined;
239
+ size?: string | undefined;
240
+ email?: string | null | undefined;
245
241
  domain?: string | null | undefined;
246
242
  urls?: {
247
243
  value: string;
248
244
  }[] | null | undefined;
249
- base_role?: "none" | "admin" | "read" | "write" | undefined;
245
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
250
246
  } | undefined;
251
247
  team?: {
252
248
  id?: string | undefined;
253
- name?: string | undefined;
254
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
255
- description?: string | null | undefined;
256
249
  org_id?: string | undefined;
257
250
  created_at?: string | undefined;
258
- default_role?: "none" | "admin" | "read" | "write" | undefined;
251
+ name?: string | undefined;
252
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
253
+ description?: string | null | undefined;
254
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
259
255
  } | undefined;
256
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
257
+ description?: string | null | undefined;
260
258
  parent_id?: string | null | undefined;
259
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
261
260
  name_url_slug?: string | null | undefined;
262
261
  slug?: string | null | undefined;
263
262
  price?: number | null | undefined;
@@ -266,28 +265,18 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
266
265
  cost_unit?: string | null | undefined;
267
266
  product_id?: string | null | undefined;
268
267
  price_id?: string | null | undefined;
268
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
269
269
  }, {
270
270
  id: string;
271
- name: string | null;
272
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
273
271
  user_id: string;
274
272
  org_id: string;
275
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
273
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
276
274
  created_at: string;
277
275
  last_updated: string;
276
+ name: string | null;
278
277
  team_id: string;
278
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
279
279
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
280
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
281
- content?: {
282
- text: string;
283
- json: {
284
- type: "doc";
285
- content: any[];
286
- };
287
- } | undefined;
288
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
289
- description?: string | null | undefined;
290
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
291
280
  user?: {
292
281
  id?: string | undefined;
293
282
  user_id?: string | undefined;
@@ -302,26 +291,36 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
302
291
  organization?: {
303
292
  id?: string | undefined;
304
293
  name?: string | undefined;
305
- size?: string | undefined;
306
- email?: string | null | undefined;
307
294
  avatar_path?: string | null | undefined;
308
295
  mission?: string | null | undefined;
296
+ size?: string | undefined;
297
+ email?: string | null | undefined;
309
298
  domain?: string | null | undefined;
310
299
  urls?: {
311
300
  value: string;
312
301
  }[] | null | undefined;
313
- base_role?: "none" | "admin" | "read" | "write" | undefined;
302
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
314
303
  } | undefined;
315
304
  team?: {
316
305
  id?: string | undefined;
317
- name?: string | undefined;
318
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
319
- description?: string | null | undefined;
320
306
  org_id?: string | undefined;
321
307
  created_at?: string | undefined;
322
- default_role?: "none" | "admin" | "read" | "write" | undefined;
308
+ name?: string | undefined;
309
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
310
+ description?: string | null | undefined;
311
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
312
+ } | undefined;
313
+ content?: {
314
+ text: string;
315
+ json: {
316
+ type: "doc";
317
+ content: any[];
318
+ };
323
319
  } | undefined;
320
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
321
+ description?: string | null | undefined;
324
322
  parent_id?: string | null | undefined;
323
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
325
324
  name_url_slug?: string | null | undefined;
326
325
  slug?: string | null | undefined;
327
326
  price?: number | null | undefined;
@@ -334,6 +333,7 @@ declare const PostSchema: z.ZodObject<z.objectUtil.extendShape<{
334
333
  type: "doc";
335
334
  content: any[];
336
335
  } | undefined;
336
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
337
337
  }>;
338
338
  declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
339
339
  id: z.ZodOptional<z.ZodString>;
@@ -393,27 +393,27 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUti
393
393
  }, "strip", z.ZodTypeAny, {
394
394
  id?: string | undefined;
395
395
  name?: string | undefined;
396
- size?: string | undefined;
397
- email?: string | null | undefined;
398
396
  avatar_path?: string | null | undefined;
399
397
  mission?: string | null | undefined;
398
+ size?: string | undefined;
399
+ email?: string | null | undefined;
400
400
  domain?: string | null | undefined;
401
401
  urls?: {
402
402
  value: string;
403
403
  }[] | null | undefined;
404
- base_role?: "none" | "admin" | "read" | "write" | undefined;
404
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
405
405
  }, {
406
406
  id?: string | undefined;
407
407
  name?: string | undefined;
408
- size?: string | undefined;
409
- email?: string | null | undefined;
410
408
  avatar_path?: string | null | undefined;
411
409
  mission?: string | null | undefined;
410
+ size?: string | undefined;
411
+ email?: string | null | undefined;
412
412
  domain?: string | null | undefined;
413
413
  urls?: {
414
414
  value: string;
415
415
  }[] | null | undefined;
416
- base_role?: "none" | "admin" | "read" | "write" | undefined;
416
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
417
417
  }>>>;
418
418
  team_id: z.ZodOptional<z.ZodString>;
419
419
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -426,20 +426,20 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUti
426
426
  created_at: z.ZodOptional<z.ZodString>;
427
427
  }, "strip", z.ZodTypeAny, {
428
428
  id?: string | undefined;
429
- name?: string | undefined;
430
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
431
- description?: string | null | undefined;
432
429
  org_id?: string | undefined;
433
430
  created_at?: string | undefined;
434
- default_role?: "none" | "admin" | "read" | "write" | undefined;
435
- }, {
436
- id?: string | undefined;
437
431
  name?: string | undefined;
438
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
432
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
439
433
  description?: string | null | undefined;
434
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
435
+ }, {
436
+ id?: string | undefined;
440
437
  org_id?: string | undefined;
441
438
  created_at?: string | undefined;
442
- default_role?: "none" | "admin" | "read" | "write" | undefined;
439
+ name?: string | undefined;
440
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
441
+ description?: string | null | undefined;
442
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
443
443
  }>>>;
444
444
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
445
445
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -486,22 +486,22 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUti
486
486
  }>;
487
487
  }>, "strip", z.ZodTypeAny, {
488
488
  id: string;
489
- state: "error" | "in-progress" | "success" | "queued";
490
- name: string | null;
491
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
492
489
  org_id: string | null;
493
490
  asset_type: "post";
494
491
  created_at: string;
495
492
  last_updated: string;
493
+ name: string | null;
496
494
  team_id: string | null;
495
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
497
496
  preview: {
498
497
  type: "doc";
499
498
  content: any[];
500
499
  };
500
+ state: "queued" | "in-progress" | "success" | "error";
501
501
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
502
502
  description?: string | null | undefined;
503
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
504
503
  parent_id?: string | null | undefined;
504
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
505
505
  name_url_slug?: string | null | undefined;
506
506
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
507
507
  price?: number | null | undefined;
@@ -516,18 +516,17 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUti
516
516
  content: any[];
517
517
  };
518
518
  id?: string | undefined;
519
- state?: "error" | "in-progress" | "success" | "queued" | undefined;
520
- name?: string | null | undefined;
521
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
522
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
523
- description?: string | null | undefined;
524
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
525
519
  org_id?: string | null | undefined;
526
520
  asset_type?: "post" | undefined;
521
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
527
522
  created_at?: string | undefined;
528
523
  last_updated?: string | undefined;
524
+ name?: string | null | undefined;
529
525
  team_id?: string | null | undefined;
526
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
527
+ description?: string | null | undefined;
530
528
  parent_id?: string | null | undefined;
529
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
531
530
  name_url_slug?: string | null | undefined;
532
531
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
533
532
  price?: number | null | undefined;
@@ -536,6 +535,7 @@ declare const CreatePostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUti
536
535
  cost_unit?: string | null | undefined;
537
536
  product_id?: string | null | undefined;
538
537
  price_id?: string | null | undefined;
538
+ state?: "queued" | "in-progress" | "success" | "error" | undefined;
539
539
  }>;
540
540
  declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
541
541
  id: z.ZodString;
@@ -595,27 +595,27 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
595
595
  }, "strip", z.ZodTypeAny, {
596
596
  id?: string | undefined;
597
597
  name?: string | undefined;
598
- size?: string | undefined;
599
- email?: string | null | undefined;
600
598
  avatar_path?: string | null | undefined;
601
599
  mission?: string | null | undefined;
600
+ size?: string | undefined;
601
+ email?: string | null | undefined;
602
602
  domain?: string | null | undefined;
603
603
  urls?: {
604
604
  value: string;
605
605
  }[] | null | undefined;
606
- base_role?: "none" | "admin" | "read" | "write" | undefined;
606
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
607
607
  }, {
608
608
  id?: string | undefined;
609
609
  name?: string | undefined;
610
- size?: string | undefined;
611
- email?: string | null | undefined;
612
610
  avatar_path?: string | null | undefined;
613
611
  mission?: string | null | undefined;
612
+ size?: string | undefined;
613
+ email?: string | null | undefined;
614
614
  domain?: string | null | undefined;
615
615
  urls?: {
616
616
  value: string;
617
617
  }[] | null | undefined;
618
- base_role?: "none" | "admin" | "read" | "write" | undefined;
618
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
619
619
  }>>;
620
620
  team_id: z.ZodString;
621
621
  team: z.ZodOptional<z.ZodObject<{
@@ -628,20 +628,20 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
628
628
  created_at: z.ZodOptional<z.ZodString>;
629
629
  }, "strip", z.ZodTypeAny, {
630
630
  id?: string | undefined;
631
- name?: string | undefined;
632
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
633
- description?: string | null | undefined;
634
631
  org_id?: string | undefined;
635
632
  created_at?: string | undefined;
636
- default_role?: "none" | "admin" | "read" | "write" | undefined;
637
- }, {
638
- id?: string | undefined;
639
633
  name?: string | undefined;
640
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
634
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
641
635
  description?: string | null | undefined;
636
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
637
+ }, {
638
+ id?: string | undefined;
642
639
  org_id?: string | undefined;
643
640
  created_at?: string | undefined;
644
- default_role?: "none" | "admin" | "read" | "write" | undefined;
641
+ name?: string | undefined;
642
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
643
+ description?: string | null | undefined;
644
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
645
645
  }>>;
646
646
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
647
647
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -665,7 +665,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
665
665
  last_updated: z.ZodString;
666
666
  }, {
667
667
  name: z.ZodNullable<z.ZodString>;
668
- 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">;
668
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
669
669
  preview: z.ZodDefault<z.ZodObject<{
670
670
  type: z.ZodLiteral<"doc">;
671
671
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -733,7 +733,8 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
733
733
  pinned: z.ZodDefault<z.ZodBoolean>;
734
734
  }>, "strip", z.ZodTypeAny, {
735
735
  id: string;
736
- name: string | null;
736
+ user_id: string;
737
+ org_id: string;
737
738
  content: {
738
739
  text: string;
739
740
  json: {
@@ -741,13 +742,12 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
741
742
  content: any[];
742
743
  };
743
744
  } | null;
744
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
745
- user_id: string;
746
- org_id: string;
747
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
745
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
748
746
  created_at: string;
749
747
  last_updated: string;
748
+ name: string | null;
750
749
  team_id: string;
750
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
751
751
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
752
752
  preview: {
753
753
  type: "doc";
@@ -757,10 +757,6 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
757
757
  views: number;
758
758
  commentCount: number;
759
759
  pinned: boolean;
760
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
761
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
762
- description?: string | null | undefined;
763
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
764
760
  user?: {
765
761
  id?: string | undefined;
766
762
  user_id?: string | undefined;
@@ -775,26 +771,29 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
775
771
  organization?: {
776
772
  id?: string | undefined;
777
773
  name?: string | undefined;
778
- size?: string | undefined;
779
- email?: string | null | undefined;
780
774
  avatar_path?: string | null | undefined;
781
775
  mission?: string | null | undefined;
776
+ size?: string | undefined;
777
+ email?: string | null | undefined;
782
778
  domain?: string | null | undefined;
783
779
  urls?: {
784
780
  value: string;
785
781
  }[] | null | undefined;
786
- base_role?: "none" | "admin" | "read" | "write" | undefined;
782
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
787
783
  } | undefined;
788
784
  team?: {
789
785
  id?: string | undefined;
790
- name?: string | undefined;
791
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
792
- description?: string | null | undefined;
793
786
  org_id?: string | undefined;
794
787
  created_at?: string | undefined;
795
- default_role?: "none" | "admin" | "read" | "write" | undefined;
788
+ name?: string | undefined;
789
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
790
+ description?: string | null | undefined;
791
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
796
792
  } | undefined;
793
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
794
+ description?: string | null | undefined;
797
795
  parent_id?: string | null | undefined;
796
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
798
797
  name_url_slug?: string | null | undefined;
799
798
  slug?: string | null | undefined;
800
799
  price?: number | null | undefined;
@@ -803,28 +802,18 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
803
802
  cost_unit?: string | null | undefined;
804
803
  product_id?: string | null | undefined;
805
804
  price_id?: string | null | undefined;
805
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
806
806
  }, {
807
807
  id: string;
808
- name: string | null;
809
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
810
808
  user_id: string;
811
809
  org_id: string;
812
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
810
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
813
811
  created_at: string;
814
812
  last_updated: string;
813
+ name: string | null;
815
814
  team_id: string;
815
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
816
816
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
817
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
818
- content?: {
819
- text: string;
820
- json: {
821
- type: "doc";
822
- content: any[];
823
- };
824
- } | null | undefined;
825
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
826
- description?: string | null | undefined;
827
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
828
817
  user?: {
829
818
  id?: string | undefined;
830
819
  user_id?: string | undefined;
@@ -839,26 +828,36 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
839
828
  organization?: {
840
829
  id?: string | undefined;
841
830
  name?: string | undefined;
842
- size?: string | undefined;
843
- email?: string | null | undefined;
844
831
  avatar_path?: string | null | undefined;
845
832
  mission?: string | null | undefined;
833
+ size?: string | undefined;
834
+ email?: string | null | undefined;
846
835
  domain?: string | null | undefined;
847
836
  urls?: {
848
837
  value: string;
849
838
  }[] | null | undefined;
850
- base_role?: "none" | "admin" | "read" | "write" | undefined;
839
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
851
840
  } | undefined;
852
841
  team?: {
853
842
  id?: string | undefined;
854
- name?: string | undefined;
855
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
856
- description?: string | null | undefined;
857
843
  org_id?: string | undefined;
858
844
  created_at?: string | undefined;
859
- default_role?: "none" | "admin" | "read" | "write" | undefined;
845
+ name?: string | undefined;
846
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
847
+ description?: string | null | undefined;
848
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
860
849
  } | undefined;
850
+ content?: {
851
+ text: string;
852
+ json: {
853
+ type: "doc";
854
+ content: any[];
855
+ };
856
+ } | null | undefined;
857
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
858
+ description?: string | null | undefined;
861
859
  parent_id?: string | null | undefined;
860
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
862
861
  name_url_slug?: string | null | undefined;
863
862
  slug?: string | null | undefined;
864
863
  price?: number | null | undefined;
@@ -871,6 +870,7 @@ declare const ReadPostSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
871
870
  type: "doc";
872
871
  content: any[];
873
872
  } | undefined;
873
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
874
874
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
875
875
  views?: number | undefined;
876
876
  commentCount?: number | undefined;
@@ -934,27 +934,27 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
934
934
  }, "strip", z.ZodTypeAny, {
935
935
  id?: string | undefined;
936
936
  name?: string | undefined;
937
- size?: string | undefined;
938
- email?: string | null | undefined;
939
937
  avatar_path?: string | null | undefined;
940
938
  mission?: string | null | undefined;
939
+ size?: string | undefined;
940
+ email?: string | null | undefined;
941
941
  domain?: string | null | undefined;
942
942
  urls?: {
943
943
  value: string;
944
944
  }[] | null | undefined;
945
- base_role?: "none" | "admin" | "read" | "write" | undefined;
945
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
946
946
  }, {
947
947
  id?: string | undefined;
948
948
  name?: string | undefined;
949
- size?: string | undefined;
950
- email?: string | null | undefined;
951
949
  avatar_path?: string | null | undefined;
952
950
  mission?: string | null | undefined;
951
+ size?: string | undefined;
952
+ email?: string | null | undefined;
953
953
  domain?: string | null | undefined;
954
954
  urls?: {
955
955
  value: string;
956
956
  }[] | null | undefined;
957
- base_role?: "none" | "admin" | "read" | "write" | undefined;
957
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
958
958
  }>>;
959
959
  team_id: z.ZodString;
960
960
  team: z.ZodOptional<z.ZodObject<{
@@ -967,20 +967,20 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
967
967
  created_at: z.ZodOptional<z.ZodString>;
968
968
  }, "strip", z.ZodTypeAny, {
969
969
  id?: string | undefined;
970
- name?: string | undefined;
971
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
972
- description?: string | null | undefined;
973
970
  org_id?: string | undefined;
974
971
  created_at?: string | undefined;
975
- default_role?: "none" | "admin" | "read" | "write" | undefined;
976
- }, {
977
- id?: string | undefined;
978
972
  name?: string | undefined;
979
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
973
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
980
974
  description?: string | null | undefined;
975
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
976
+ }, {
977
+ id?: string | undefined;
981
978
  org_id?: string | undefined;
982
979
  created_at?: string | undefined;
983
- default_role?: "none" | "admin" | "read" | "write" | undefined;
980
+ name?: string | undefined;
981
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
982
+ description?: string | null | undefined;
983
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
984
984
  }>>;
985
985
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
986
986
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -1004,7 +1004,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1004
1004
  last_updated: z.ZodString;
1005
1005
  }, {
1006
1006
  name: z.ZodNullable<z.ZodString>;
1007
- 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">;
1007
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1008
1008
  preview: z.ZodDefault<z.ZodObject<{
1009
1009
  type: z.ZodLiteral<"doc">;
1010
1010
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -1072,7 +1072,8 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1072
1072
  pinned: z.ZodDefault<z.ZodBoolean>;
1073
1073
  }>, "strip", z.ZodTypeAny, {
1074
1074
  id: string;
1075
- name: string | null;
1075
+ user_id: string;
1076
+ org_id: string;
1076
1077
  content: {
1077
1078
  text: string;
1078
1079
  json: {
@@ -1080,13 +1081,12 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1080
1081
  content: any[];
1081
1082
  };
1082
1083
  } | null;
1083
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1084
- user_id: string;
1085
- org_id: string;
1086
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1084
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1087
1085
  created_at: string;
1088
1086
  last_updated: string;
1087
+ name: string | null;
1089
1088
  team_id: string;
1089
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1090
1090
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1091
1091
  preview: {
1092
1092
  type: "doc";
@@ -1096,10 +1096,6 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1096
1096
  views: number;
1097
1097
  commentCount: number;
1098
1098
  pinned: boolean;
1099
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1100
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1101
- description?: string | null | undefined;
1102
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1103
1099
  user?: {
1104
1100
  id?: string | undefined;
1105
1101
  user_id?: string | undefined;
@@ -1114,26 +1110,29 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1114
1110
  organization?: {
1115
1111
  id?: string | undefined;
1116
1112
  name?: string | undefined;
1117
- size?: string | undefined;
1118
- email?: string | null | undefined;
1119
1113
  avatar_path?: string | null | undefined;
1120
1114
  mission?: string | null | undefined;
1115
+ size?: string | undefined;
1116
+ email?: string | null | undefined;
1121
1117
  domain?: string | null | undefined;
1122
1118
  urls?: {
1123
1119
  value: string;
1124
1120
  }[] | null | undefined;
1125
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1121
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1126
1122
  } | undefined;
1127
1123
  team?: {
1128
1124
  id?: string | undefined;
1129
- name?: string | undefined;
1130
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1131
- description?: string | null | undefined;
1132
1125
  org_id?: string | undefined;
1133
1126
  created_at?: string | undefined;
1134
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1127
+ name?: string | undefined;
1128
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1129
+ description?: string | null | undefined;
1130
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1135
1131
  } | undefined;
1132
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1133
+ description?: string | null | undefined;
1136
1134
  parent_id?: string | null | undefined;
1135
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1137
1136
  name_url_slug?: string | null | undefined;
1138
1137
  slug?: string | null | undefined;
1139
1138
  price?: number | null | undefined;
@@ -1142,28 +1141,18 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1142
1141
  cost_unit?: string | null | undefined;
1143
1142
  product_id?: string | null | undefined;
1144
1143
  price_id?: string | null | undefined;
1144
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1145
1145
  }, {
1146
1146
  id: string;
1147
- name: string | null;
1148
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1149
1147
  user_id: string;
1150
1148
  org_id: string;
1151
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1149
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1152
1150
  created_at: string;
1153
1151
  last_updated: string;
1152
+ name: string | null;
1154
1153
  team_id: string;
1154
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1155
1155
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1156
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1157
- content?: {
1158
- text: string;
1159
- json: {
1160
- type: "doc";
1161
- content: any[];
1162
- };
1163
- } | null | undefined;
1164
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1165
- description?: string | null | undefined;
1166
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1167
1156
  user?: {
1168
1157
  id?: string | undefined;
1169
1158
  user_id?: string | undefined;
@@ -1178,26 +1167,36 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1178
1167
  organization?: {
1179
1168
  id?: string | undefined;
1180
1169
  name?: string | undefined;
1181
- size?: string | undefined;
1182
- email?: string | null | undefined;
1183
1170
  avatar_path?: string | null | undefined;
1184
1171
  mission?: string | null | undefined;
1172
+ size?: string | undefined;
1173
+ email?: string | null | undefined;
1185
1174
  domain?: string | null | undefined;
1186
1175
  urls?: {
1187
1176
  value: string;
1188
1177
  }[] | null | undefined;
1189
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1178
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1190
1179
  } | undefined;
1191
1180
  team?: {
1192
1181
  id?: string | undefined;
1193
- name?: string | undefined;
1194
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1195
- description?: string | null | undefined;
1196
1182
  org_id?: string | undefined;
1197
1183
  created_at?: string | undefined;
1198
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1184
+ name?: string | undefined;
1185
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1186
+ description?: string | null | undefined;
1187
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1199
1188
  } | undefined;
1189
+ content?: {
1190
+ text: string;
1191
+ json: {
1192
+ type: "doc";
1193
+ content: any[];
1194
+ };
1195
+ } | null | undefined;
1196
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1197
+ description?: string | null | undefined;
1200
1198
  parent_id?: string | null | undefined;
1199
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1201
1200
  name_url_slug?: string | null | undefined;
1202
1201
  slug?: string | null | undefined;
1203
1202
  price?: number | null | undefined;
@@ -1210,6 +1209,7 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z
1210
1209
  type: "doc";
1211
1210
  content: any[];
1212
1211
  } | undefined;
1212
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1213
1213
  reactions?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
1214
1214
  views?: number | undefined;
1215
1215
  commentCount?: number | undefined;
@@ -1273,27 +1273,27 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1273
1273
  }, "strip", z.ZodTypeAny, {
1274
1274
  id?: string | undefined;
1275
1275
  name?: string | undefined;
1276
- size?: string | undefined;
1277
- email?: string | null | undefined;
1278
1276
  avatar_path?: string | null | undefined;
1279
1277
  mission?: string | null | undefined;
1278
+ size?: string | undefined;
1279
+ email?: string | null | undefined;
1280
1280
  domain?: string | null | undefined;
1281
1281
  urls?: {
1282
1282
  value: string;
1283
1283
  }[] | null | undefined;
1284
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1284
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1285
1285
  }, {
1286
1286
  id?: string | undefined;
1287
1287
  name?: string | undefined;
1288
- size?: string | undefined;
1289
- email?: string | null | undefined;
1290
1288
  avatar_path?: string | null | undefined;
1291
1289
  mission?: string | null | undefined;
1290
+ size?: string | undefined;
1291
+ email?: string | null | undefined;
1292
1292
  domain?: string | null | undefined;
1293
1293
  urls?: {
1294
1294
  value: string;
1295
1295
  }[] | null | undefined;
1296
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1296
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1297
1297
  }>>;
1298
1298
  team_id: z.ZodString;
1299
1299
  team: z.ZodOptional<z.ZodObject<{
@@ -1306,20 +1306,20 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1306
1306
  created_at: z.ZodOptional<z.ZodString>;
1307
1307
  }, "strip", z.ZodTypeAny, {
1308
1308
  id?: string | undefined;
1309
- name?: string | undefined;
1310
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1311
- description?: string | null | undefined;
1312
1309
  org_id?: string | undefined;
1313
1310
  created_at?: string | undefined;
1314
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1315
- }, {
1316
- id?: string | undefined;
1317
1311
  name?: string | undefined;
1318
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1312
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1319
1313
  description?: string | null | undefined;
1314
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1315
+ }, {
1316
+ id?: string | undefined;
1320
1317
  org_id?: string | undefined;
1321
1318
  created_at?: string | undefined;
1322
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1319
+ name?: string | undefined;
1320
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1321
+ description?: string | null | undefined;
1322
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1323
1323
  }>>;
1324
1324
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1325
1325
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -1343,7 +1343,7 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1343
1343
  last_updated: z.ZodString;
1344
1344
  }, {
1345
1345
  name: z.ZodNullable<z.ZodString>;
1346
- 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">;
1346
+ asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
1347
1347
  preview: z.ZodDefault<z.ZodObject<{
1348
1348
  type: z.ZodLiteral<"doc">;
1349
1349
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -1381,7 +1381,8 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1381
1381
  }>>;
1382
1382
  }>, "strip", z.ZodTypeAny, {
1383
1383
  id: string;
1384
- name: string | null;
1384
+ user_id: string;
1385
+ org_id: string;
1385
1386
  content: {
1386
1387
  text: string;
1387
1388
  json: {
@@ -1389,22 +1390,17 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1389
1390
  content: any[];
1390
1391
  };
1391
1392
  };
1392
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1393
- user_id: string;
1394
- org_id: string;
1395
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1393
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1396
1394
  created_at: string;
1397
1395
  last_updated: string;
1396
+ name: string | null;
1398
1397
  team_id: string;
1398
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1399
1399
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1400
1400
  preview: {
1401
1401
  type: "doc";
1402
1402
  content: any[];
1403
1403
  };
1404
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1405
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1406
- description?: string | null | undefined;
1407
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1408
1404
  user?: {
1409
1405
  id?: string | undefined;
1410
1406
  user_id?: string | undefined;
@@ -1419,26 +1415,29 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1419
1415
  organization?: {
1420
1416
  id?: string | undefined;
1421
1417
  name?: string | undefined;
1422
- size?: string | undefined;
1423
- email?: string | null | undefined;
1424
1418
  avatar_path?: string | null | undefined;
1425
1419
  mission?: string | null | undefined;
1420
+ size?: string | undefined;
1421
+ email?: string | null | undefined;
1426
1422
  domain?: string | null | undefined;
1427
1423
  urls?: {
1428
1424
  value: string;
1429
1425
  }[] | null | undefined;
1430
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1426
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1431
1427
  } | undefined;
1432
1428
  team?: {
1433
1429
  id?: string | undefined;
1434
- name?: string | undefined;
1435
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1436
- description?: string | null | undefined;
1437
1430
  org_id?: string | undefined;
1438
1431
  created_at?: string | undefined;
1439
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1432
+ name?: string | undefined;
1433
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1434
+ description?: string | null | undefined;
1435
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1440
1436
  } | undefined;
1437
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1438
+ description?: string | null | undefined;
1441
1439
  parent_id?: string | null | undefined;
1440
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1442
1441
  name_url_slug?: string | null | undefined;
1443
1442
  slug?: string | null | undefined;
1444
1443
  price?: number | null | undefined;
@@ -1447,28 +1446,18 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1447
1446
  cost_unit?: string | null | undefined;
1448
1447
  product_id?: string | null | undefined;
1449
1448
  price_id?: string | null | undefined;
1449
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1450
1450
  }, {
1451
1451
  id: string;
1452
- name: string | null;
1453
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1454
1452
  user_id: string;
1455
1453
  org_id: string;
1456
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1454
+ asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1457
1455
  created_at: string;
1458
1456
  last_updated: string;
1457
+ name: string | null;
1459
1458
  team_id: string;
1459
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
1460
1460
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
1461
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1462
- content?: {
1463
- text: string;
1464
- json: {
1465
- type: "doc";
1466
- content: any[];
1467
- };
1468
- } | undefined;
1469
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1470
- description?: string | null | undefined;
1471
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1472
1461
  user?: {
1473
1462
  id?: string | undefined;
1474
1463
  user_id?: string | undefined;
@@ -1483,26 +1472,36 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1483
1472
  organization?: {
1484
1473
  id?: string | undefined;
1485
1474
  name?: string | undefined;
1486
- size?: string | undefined;
1487
- email?: string | null | undefined;
1488
1475
  avatar_path?: string | null | undefined;
1489
1476
  mission?: string | null | undefined;
1477
+ size?: string | undefined;
1478
+ email?: string | null | undefined;
1490
1479
  domain?: string | null | undefined;
1491
1480
  urls?: {
1492
1481
  value: string;
1493
1482
  }[] | null | undefined;
1494
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1483
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1495
1484
  } | undefined;
1496
1485
  team?: {
1497
1486
  id?: string | undefined;
1498
- name?: string | undefined;
1499
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1500
- description?: string | null | undefined;
1501
1487
  org_id?: string | undefined;
1502
1488
  created_at?: string | undefined;
1503
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1489
+ name?: string | undefined;
1490
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1491
+ description?: string | null | undefined;
1492
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1493
+ } | undefined;
1494
+ content?: {
1495
+ text: string;
1496
+ json: {
1497
+ type: "doc";
1498
+ content: any[];
1499
+ };
1504
1500
  } | undefined;
1501
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1502
+ description?: string | null | undefined;
1505
1503
  parent_id?: string | null | undefined;
1504
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1506
1505
  name_url_slug?: string | null | undefined;
1507
1506
  slug?: string | null | undefined;
1508
1507
  price?: number | null | undefined;
@@ -1515,8 +1514,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1515
1514
  type: "doc";
1516
1515
  content: any[];
1517
1516
  } | undefined;
1517
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1518
1518
  }>, "many">;
1519
- declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
1519
+ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1520
1520
  id: z.ZodOptional<z.ZodString>;
1521
1521
  user_id: z.ZodOptional<z.ZodString>;
1522
1522
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1574,27 +1574,27 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1574
1574
  }, "strip", z.ZodTypeAny, {
1575
1575
  id?: string | undefined;
1576
1576
  name?: string | undefined;
1577
- size?: string | undefined;
1578
- email?: string | null | undefined;
1579
1577
  avatar_path?: string | null | undefined;
1580
1578
  mission?: string | null | undefined;
1579
+ size?: string | undefined;
1580
+ email?: string | null | undefined;
1581
1581
  domain?: string | null | undefined;
1582
1582
  urls?: {
1583
1583
  value: string;
1584
1584
  }[] | null | undefined;
1585
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1585
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1586
1586
  }, {
1587
1587
  id?: string | undefined;
1588
1588
  name?: string | undefined;
1589
- size?: string | undefined;
1590
- email?: string | null | undefined;
1591
1589
  avatar_path?: string | null | undefined;
1592
1590
  mission?: string | null | undefined;
1591
+ size?: string | undefined;
1592
+ email?: string | null | undefined;
1593
1593
  domain?: string | null | undefined;
1594
1594
  urls?: {
1595
1595
  value: string;
1596
1596
  }[] | null | undefined;
1597
- base_role?: "none" | "admin" | "read" | "write" | undefined;
1597
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1598
1598
  }>>>;
1599
1599
  team_id: z.ZodOptional<z.ZodString>;
1600
1600
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1607,25 +1607,23 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1607
1607
  created_at: z.ZodOptional<z.ZodString>;
1608
1608
  }, "strip", z.ZodTypeAny, {
1609
1609
  id?: string | undefined;
1610
- name?: string | undefined;
1611
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1612
- description?: string | null | undefined;
1613
1610
  org_id?: string | undefined;
1614
1611
  created_at?: string | undefined;
1615
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1616
- }, {
1617
- id?: string | undefined;
1618
1612
  name?: string | undefined;
1619
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1613
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1620
1614
  description?: string | null | undefined;
1615
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1616
+ }, {
1617
+ id?: string | undefined;
1621
1618
  org_id?: string | undefined;
1622
1619
  created_at?: string | undefined;
1623
- default_role?: "none" | "admin" | "read" | "write" | undefined;
1620
+ name?: string | undefined;
1621
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1622
+ description?: string | null | undefined;
1623
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1624
1624
  }>>>;
1625
1625
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1626
1626
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1627
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
1628
- name: z.ZodOptional<z.ZodString>;
1629
1627
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1630
1628
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1631
1629
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1638,24 +1636,12 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1638
1636
  product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1639
1637
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1640
1638
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
1641
- 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">>>>;
1642
1639
  state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
1643
1640
  created_at: z.ZodOptional<z.ZodString>;
1644
1641
  last_updated: z.ZodOptional<z.ZodString>;
1645
- }, "user" | "organization" | "team" | "user_id" | "slug">, {
1646
- id: z.ZodDefault<z.ZodString>;
1647
- team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1648
- org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1649
- name: z.ZodString;
1650
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1651
- state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
1652
- visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
1653
- created_at: z.ZodDefault<z.ZodString>;
1654
- last_updated: z.ZodDefault<z.ZodString>;
1655
- }>, {
1656
- asset_type: z.ZodDefault<z.ZodLiteral<"post">>;
1657
- name: z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>, string | undefined, string | null | undefined>, string | null, string | null | undefined>;
1658
- preview: z.ZodObject<{
1642
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1643
+ asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
1644
+ preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1659
1645
  type: z.ZodLiteral<"doc">;
1660
1646
  content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
1661
1647
  }, "strip", z.ZodTypeAny, {
@@ -1664,28 +1650,87 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1664
1650
  }, {
1665
1651
  type: "doc";
1666
1652
  content: any[];
1667
- }>;
1668
- }>, "last_updated">, {
1653
+ }>>>;
1654
+ content: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1655
+ json: z.ZodObject<{
1656
+ type: z.ZodLiteral<"doc">;
1657
+ content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ type: "doc";
1660
+ content: any[];
1661
+ }, {
1662
+ type: "doc";
1663
+ content: any[];
1664
+ }>;
1665
+ text: z.ZodString;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ text: string;
1668
+ json: {
1669
+ type: "doc";
1670
+ content: any[];
1671
+ };
1672
+ }, {
1673
+ text: string;
1674
+ json: {
1675
+ type: "doc";
1676
+ content: any[];
1677
+ };
1678
+ }>>>;
1679
+ }, "id" | "user_id" | "created_at" | "last_updated">, {
1669
1680
  last_updated: z.ZodDefault<z.ZodString>;
1670
1681
  }>, "strip", z.ZodTypeAny, {
1671
- id: string;
1672
- state: "error" | "in-progress" | "success" | "queued";
1673
- name: string | null;
1674
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
1675
- org_id: string | null;
1676
- asset_type: "post";
1677
- created_at: string;
1678
1682
  last_updated: string;
1679
- team_id: string | null;
1680
- preview: {
1681
- type: "doc";
1682
- content: any[];
1683
- };
1683
+ user?: {
1684
+ id?: string | undefined;
1685
+ user_id?: string | undefined;
1686
+ avatar_path?: string | null | undefined;
1687
+ urls?: {
1688
+ value: string;
1689
+ }[] | undefined;
1690
+ username?: string | null | undefined;
1691
+ bio?: string | null | undefined;
1692
+ last_active?: string | undefined;
1693
+ } | undefined;
1694
+ organization?: {
1695
+ id?: string | undefined;
1696
+ name?: string | undefined;
1697
+ avatar_path?: string | null | undefined;
1698
+ mission?: string | null | undefined;
1699
+ size?: string | undefined;
1700
+ email?: string | null | undefined;
1701
+ domain?: string | null | undefined;
1702
+ urls?: {
1703
+ value: string;
1704
+ }[] | null | undefined;
1705
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1706
+ } | undefined;
1707
+ team?: {
1708
+ id?: string | undefined;
1709
+ org_id?: string | undefined;
1710
+ created_at?: string | undefined;
1711
+ name?: string | undefined;
1712
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1713
+ description?: string | null | undefined;
1714
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1715
+ } | undefined;
1716
+ org_id?: string | undefined;
1717
+ content?: {
1718
+ text: string;
1719
+ json: {
1720
+ type: "doc";
1721
+ content: any[];
1722
+ };
1723
+ } | undefined;
1724
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1684
1725
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1726
+ name?: string | null | undefined;
1727
+ team_id?: string | undefined;
1728
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1685
1729
  description?: string | null | undefined;
1686
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1687
1730
  parent_id?: string | null | undefined;
1731
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1688
1732
  name_url_slug?: string | null | undefined;
1733
+ slug?: string | null | undefined;
1689
1734
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1690
1735
  price?: number | null | undefined;
1691
1736
  unit_cost?: number | null | undefined;
@@ -1693,25 +1738,64 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1693
1738
  cost_unit?: string | null | undefined;
1694
1739
  product_id?: string | null | undefined;
1695
1740
  price_id?: string | null | undefined;
1696
- }, {
1697
- preview: {
1741
+ preview?: {
1698
1742
  type: "doc";
1699
1743
  content: any[];
1700
- };
1701
- id?: string | undefined;
1702
- state?: "error" | "in-progress" | "success" | "queued" | undefined;
1703
- name?: string | null | undefined;
1704
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1744
+ } | undefined;
1745
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1746
+ }, {
1747
+ user?: {
1748
+ id?: string | undefined;
1749
+ user_id?: string | undefined;
1750
+ avatar_path?: string | null | undefined;
1751
+ urls?: {
1752
+ value: string;
1753
+ }[] | undefined;
1754
+ username?: string | null | undefined;
1755
+ bio?: string | null | undefined;
1756
+ last_active?: string | undefined;
1757
+ } | undefined;
1758
+ organization?: {
1759
+ id?: string | undefined;
1760
+ name?: string | undefined;
1761
+ avatar_path?: string | null | undefined;
1762
+ mission?: string | null | undefined;
1763
+ size?: string | undefined;
1764
+ email?: string | null | undefined;
1765
+ domain?: string | null | undefined;
1766
+ urls?: {
1767
+ value: string;
1768
+ }[] | null | undefined;
1769
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1770
+ } | undefined;
1771
+ team?: {
1772
+ id?: string | undefined;
1773
+ org_id?: string | undefined;
1774
+ created_at?: string | undefined;
1775
+ name?: string | undefined;
1776
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1777
+ description?: string | null | undefined;
1778
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1779
+ } | undefined;
1780
+ org_id?: string | undefined;
1781
+ content?: {
1782
+ text: string;
1783
+ json: {
1784
+ type: "doc";
1785
+ content: any[];
1786
+ };
1787
+ } | undefined;
1788
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
1705
1789
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
1706
- description?: string | null | undefined;
1707
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1708
- org_id?: string | null | undefined;
1709
- asset_type?: "post" | undefined;
1710
- created_at?: string | undefined;
1711
1790
  last_updated?: string | undefined;
1712
- team_id?: string | null | undefined;
1791
+ name?: string | null | undefined;
1792
+ team_id?: string | undefined;
1793
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1794
+ description?: string | null | undefined;
1713
1795
  parent_id?: string | null | undefined;
1796
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1714
1797
  name_url_slug?: string | null | undefined;
1798
+ slug?: string | null | undefined;
1715
1799
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1716
1800
  price?: number | null | undefined;
1717
1801
  unit_cost?: number | null | undefined;
@@ -1719,13 +1803,18 @@ declare const UpdatePostSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.obje
1719
1803
  cost_unit?: string | null | undefined;
1720
1804
  product_id?: string | null | undefined;
1721
1805
  price_id?: string | null | undefined;
1806
+ preview?: {
1807
+ type: "doc";
1808
+ content: any[];
1809
+ } | undefined;
1810
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1722
1811
  }>;
1723
- type Post = z.infer<typeof PostSchema>;
1724
- type CreatePost = z.infer<typeof CreatePostSchema>;
1725
- type ListPosts = z.infer<typeof ListPostsSchema>;
1726
- type ReadPost = z.infer<typeof ReadPostSchema>;
1727
- type ReadPosts = z.infer<typeof ReadPostsSchema>;
1728
- type UpdatePost = z.infer<typeof UpdatePostSchema>;
1729
- type Content = z.infer<typeof ContentSchema>;
1730
- type TipTap = z.infer<typeof TipTapSchema>;
1731
- 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, };
1812
+ export { TipTapSchema, ContentSchema, PostSchema, CreatePostSchema, ListPostsSchema, ReadPostSchema, ReadPostsSchema, UpdatePostSchema, };
1813
+ export type Post = z.infer<typeof PostSchema>;
1814
+ export type CreatePost = z.infer<typeof CreatePostSchema>;
1815
+ export type ListPosts = z.infer<typeof ListPostsSchema>;
1816
+ export type ReadPost = z.infer<typeof ReadPostSchema>;
1817
+ export type ReadPosts = z.infer<typeof ReadPostsSchema>;
1818
+ export type UpdatePost = z.infer<typeof UpdatePostSchema>;
1819
+ export type Content = z.infer<typeof ContentSchema>;
1820
+ export type TipTap = z.infer<typeof TipTapSchema>;