@ourofoundation/ouro-js 3.5.2 → 3.5.3

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 (41) hide show
  1. package/dist/chunk-73DHYPGU.cjs +2 -0
  2. package/dist/chunk-73DHYPGU.cjs.map +1 -0
  3. package/dist/chunk-XLJBQ7BU.js +2 -0
  4. package/dist/chunk-XLJBQ7BU.js.map +1 -0
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/schema/assets.d.cts +84 -84
  10. package/dist/schema/assets.d.ts +84 -84
  11. package/dist/schema/comments.d.cts +136 -136
  12. package/dist/schema/comments.d.ts +136 -136
  13. package/dist/schema/common.d.cts +16 -16
  14. package/dist/schema/common.d.ts +16 -16
  15. package/dist/schema/conversations.d.cts +69 -69
  16. package/dist/schema/conversations.d.ts +69 -69
  17. package/dist/schema/datasets.cjs +1 -1
  18. package/dist/schema/datasets.d.cts +186 -140
  19. package/dist/schema/datasets.d.ts +186 -140
  20. package/dist/schema/datasets.js +1 -1
  21. package/dist/schema/files.d.cts +100 -100
  22. package/dist/schema/files.d.ts +100 -100
  23. package/dist/schema/notifications.d.cts +2 -2
  24. package/dist/schema/notifications.d.ts +2 -2
  25. package/dist/schema/organizations.d.cts +1 -1
  26. package/dist/schema/organizations.d.ts +1 -1
  27. package/dist/schema/posts.d.cts +127 -127
  28. package/dist/schema/posts.d.ts +127 -127
  29. package/dist/schema/quests.d.cts +177 -177
  30. package/dist/schema/quests.d.ts +177 -177
  31. package/dist/schema/services.d.cts +127 -127
  32. package/dist/schema/services.d.ts +127 -127
  33. package/dist/schema/teams.d.cts +18 -18
  34. package/dist/schema/teams.d.ts +18 -18
  35. package/dist/utils/quest-submission.d.cts +7 -7
  36. package/dist/utils/quest-submission.d.ts +7 -7
  37. package/package.json +1 -1
  38. package/dist/chunk-3UWDQLTN.js +0 -2
  39. package/dist/chunk-3UWDQLTN.js.map +0 -1
  40. package/dist/chunk-OBWPO2QT.cjs +0 -2
  41. package/dist/chunk-OBWPO2QT.cjs.map +0 -1
@@ -119,9 +119,9 @@ declare const PostSchema: z.ZodObject<{
119
119
  none: "none";
120
120
  }>>;
121
121
  visibility: z.ZodOptional<z.ZodEnum<{
122
+ organization: "organization";
122
123
  public: "public";
123
124
  private: "private";
124
- organization: "organization";
125
125
  monetized: "monetized";
126
126
  inherit: "inherit";
127
127
  }>>;
@@ -192,9 +192,9 @@ declare const PostSchema: z.ZodObject<{
192
192
  text: z.ZodString;
193
193
  }, z.core.$strip>>>;
194
194
  visibility: z.ZodEnum<{
195
+ organization: "organization";
195
196
  public: "public";
196
197
  private: "private";
197
- organization: "organization";
198
198
  monetized: "monetized";
199
199
  inherit: "inherit";
200
200
  }>;
@@ -219,25 +219,25 @@ declare const PostSchema: z.ZodObject<{
219
219
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
220
  state: z.ZodEnum<{
221
221
  success: "success";
222
- error: "error";
223
222
  queued: "queued";
224
223
  "in-progress": "in-progress";
225
224
  "timed-out": "timed-out";
225
+ error: "error";
226
226
  }>;
227
227
  source: z.ZodEnum<{
228
- web: "web";
229
228
  api: "api";
229
+ web: "web";
230
230
  }>;
231
231
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
232
232
  created_at: z.ZodString;
233
233
  last_updated: z.ZodString;
234
234
  name: z.ZodNullable<z.ZodString>;
235
235
  asset_type: z.ZodEnum<{
236
- organization: "organization";
237
- file: "file";
238
236
  user: "user";
237
+ organization: "organization";
239
238
  team: "team";
240
239
  dataset: "dataset";
240
+ file: "file";
241
241
  service: "service";
242
242
  route: "route";
243
243
  post: "post";
@@ -272,15 +272,28 @@ declare const PostSchema: z.ZodObject<{
272
272
  }, z.core.$strip>;
273
273
  declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
274
274
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
275
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
276
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
+ originality: z.ZodEnum<{
281
+ original: "original";
282
+ derivative: "derivative";
283
+ "third-party": "third-party";
284
+ }>;
285
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ }, z.core.$strip>>>>;
288
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
289
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
290
+ text: z.ZodString;
291
+ }, z.core.$strip>>>>;
275
292
  monetization: z.ZodOptional<z.ZodEnum<{
276
293
  none: "none";
277
294
  "pay-to-unlock": "pay-to-unlock";
278
295
  "pay-per-use": "pay-per-use";
279
296
  }>>;
280
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
282
- text: z.ZodString;
283
- }, z.core.$strip>>>>;
284
297
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
285
298
  license_id: z.ZodOptional<z.ZodString>;
286
299
  price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -297,38 +310,25 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
297
310
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
298
311
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
299
312
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
300
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
301
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
- originality: z.ZodEnum<{
306
- original: "original";
307
- derivative: "derivative";
308
- "third-party": "third-party";
309
- }>;
310
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
- }, z.core.$strip>>>>;
313
313
  id: z.ZodDefault<z.ZodUUID>;
314
314
  team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
315
315
  org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
316
316
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
317
  state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
318
318
  success: "success";
319
- error: "error";
320
319
  queued: "queued";
321
320
  "in-progress": "in-progress";
322
321
  "timed-out": "timed-out";
322
+ error: "error";
323
323
  }>>>;
324
324
  source: z.ZodDefault<z.ZodEnum<{
325
- web: "web";
326
325
  api: "api";
326
+ web: "web";
327
327
  }>>;
328
328
  visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
329
+ organization: "organization";
329
330
  public: "public";
330
331
  private: "private";
331
- organization: "organization";
332
332
  monetized: "monetized";
333
333
  inherit: "inherit";
334
334
  }>>>;
@@ -344,9 +344,9 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
344
344
  id: string;
345
345
  team_id: string | null;
346
346
  org_id: string | null;
347
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
348
- source: "web" | "api";
349
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
347
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
348
+ source: "api" | "web";
349
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
350
350
  created_at: string;
351
351
  last_updated: string;
352
352
  asset_type: "post";
@@ -356,11 +356,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
356
356
  content: any[];
357
357
  };
358
358
  parent?: Record<string, any> | undefined;
359
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
359
+ metadata?: {
360
+ originality: "original" | "derivative" | "third-party";
361
+ doi_url?: string | null | undefined;
362
+ external_url?: string | null | undefined;
363
+ paper_url?: string | null | undefined;
364
+ github_url?: string | null | undefined;
365
+ source?: string | null | undefined;
366
+ reply_to_comment_id?: string | null | undefined;
367
+ } | null | undefined;
360
368
  description?: {
361
369
  json: Record<string, any>;
362
370
  text: string;
363
371
  } | null | undefined;
372
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
364
373
  parent_id?: string | null | undefined;
365
374
  license_id?: string | undefined;
366
375
  price?: number | null | undefined;
@@ -371,23 +380,14 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
371
380
  stripe_product_id?: string | null | undefined;
372
381
  stripe_price_id?: string | null | undefined;
373
382
  stripe_meter_id?: string | null | undefined;
374
- metadata?: {
375
- originality: "original" | "derivative" | "third-party";
376
- doi_url?: string | null | undefined;
377
- external_url?: string | null | undefined;
378
- paper_url?: string | null | undefined;
379
- github_url?: string | null | undefined;
380
- source?: string | null | undefined;
381
- reply_to_comment_id?: string | null | undefined;
382
- } | null | undefined;
383
383
  name_url_slug?: string | null | undefined;
384
384
  }, {
385
385
  id: string;
386
386
  team_id: string | null;
387
387
  org_id: string | null;
388
- state: "success" | "error" | "queued" | "in-progress" | "timed-out";
389
- source: "web" | "api";
390
- visibility: "public" | "private" | "organization" | "monetized" | "inherit";
388
+ state: "success" | "queued" | "in-progress" | "timed-out" | "error";
389
+ source: "api" | "web";
390
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
391
391
  created_at: string;
392
392
  last_updated: string;
393
393
  asset_type: "post";
@@ -397,11 +397,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
397
397
  content: any[];
398
398
  };
399
399
  parent?: Record<string, any> | undefined;
400
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
400
+ metadata?: {
401
+ originality: "original" | "derivative" | "third-party";
402
+ doi_url?: string | null | undefined;
403
+ external_url?: string | null | undefined;
404
+ paper_url?: string | null | undefined;
405
+ github_url?: string | null | undefined;
406
+ source?: string | null | undefined;
407
+ reply_to_comment_id?: string | null | undefined;
408
+ } | null | undefined;
401
409
  description?: {
402
410
  json: Record<string, any>;
403
411
  text: string;
404
412
  } | null | undefined;
413
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
405
414
  parent_id?: string | null | undefined;
406
415
  license_id?: string | undefined;
407
416
  price?: number | null | undefined;
@@ -412,15 +421,6 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
412
421
  stripe_product_id?: string | null | undefined;
413
422
  stripe_price_id?: string | null | undefined;
414
423
  stripe_meter_id?: string | null | undefined;
415
- metadata?: {
416
- originality: "original" | "derivative" | "third-party";
417
- doi_url?: string | null | undefined;
418
- external_url?: string | null | undefined;
419
- paper_url?: string | null | undefined;
420
- github_url?: string | null | undefined;
421
- source?: string | null | undefined;
422
- reply_to_comment_id?: string | null | undefined;
423
- } | null | undefined;
424
424
  name_url_slug?: string | null | undefined;
425
425
  }>>;
426
426
  declare const ReadPostSchema: z.ZodObject<{
@@ -531,9 +531,9 @@ declare const ReadPostSchema: z.ZodObject<{
531
531
  none: "none";
532
532
  }>>;
533
533
  visibility: z.ZodOptional<z.ZodEnum<{
534
+ organization: "organization";
534
535
  public: "public";
535
536
  private: "private";
536
- organization: "organization";
537
537
  monetized: "monetized";
538
538
  inherit: "inherit";
539
539
  }>>;
@@ -604,9 +604,9 @@ declare const ReadPostSchema: z.ZodObject<{
604
604
  text: z.ZodString;
605
605
  }, z.core.$strip>>>;
606
606
  visibility: z.ZodEnum<{
607
+ organization: "organization";
607
608
  public: "public";
608
609
  private: "private";
609
- organization: "organization";
610
610
  monetized: "monetized";
611
611
  inherit: "inherit";
612
612
  }>;
@@ -631,25 +631,25 @@ declare const ReadPostSchema: z.ZodObject<{
631
631
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
632
  state: z.ZodEnum<{
633
633
  success: "success";
634
- error: "error";
635
634
  queued: "queued";
636
635
  "in-progress": "in-progress";
637
636
  "timed-out": "timed-out";
637
+ error: "error";
638
638
  }>;
639
639
  source: z.ZodEnum<{
640
- web: "web";
641
640
  api: "api";
641
+ web: "web";
642
642
  }>;
643
643
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
644
644
  created_at: z.ZodString;
645
645
  last_updated: z.ZodString;
646
646
  name: z.ZodNullable<z.ZodString>;
647
647
  asset_type: z.ZodEnum<{
648
- organization: "organization";
649
- file: "file";
650
648
  user: "user";
649
+ organization: "organization";
651
650
  team: "team";
652
651
  dataset: "dataset";
652
+ file: "file";
653
653
  service: "service";
654
654
  route: "route";
655
655
  post: "post";
@@ -793,9 +793,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
793
793
  none: "none";
794
794
  }>>;
795
795
  visibility: z.ZodOptional<z.ZodEnum<{
796
+ organization: "organization";
796
797
  public: "public";
797
798
  private: "private";
798
- organization: "organization";
799
799
  monetized: "monetized";
800
800
  inherit: "inherit";
801
801
  }>>;
@@ -866,9 +866,9 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
866
866
  text: z.ZodString;
867
867
  }, z.core.$strip>>>;
868
868
  visibility: z.ZodEnum<{
869
+ organization: "organization";
869
870
  public: "public";
870
871
  private: "private";
871
- organization: "organization";
872
872
  monetized: "monetized";
873
873
  inherit: "inherit";
874
874
  }>;
@@ -893,25 +893,25 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
893
893
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
894
  state: z.ZodEnum<{
895
895
  success: "success";
896
- error: "error";
897
896
  queued: "queued";
898
897
  "in-progress": "in-progress";
899
898
  "timed-out": "timed-out";
899
+ error: "error";
900
900
  }>;
901
901
  source: z.ZodEnum<{
902
- web: "web";
903
902
  api: "api";
903
+ web: "web";
904
904
  }>;
905
905
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
906
906
  created_at: z.ZodString;
907
907
  last_updated: z.ZodString;
908
908
  name: z.ZodNullable<z.ZodString>;
909
909
  asset_type: z.ZodEnum<{
910
- organization: "organization";
911
- file: "file";
912
910
  user: "user";
911
+ organization: "organization";
913
912
  team: "team";
914
913
  dataset: "dataset";
914
+ file: "file";
915
915
  service: "service";
916
916
  route: "route";
917
917
  post: "post";
@@ -1055,9 +1055,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1055
1055
  none: "none";
1056
1056
  }>>;
1057
1057
  visibility: z.ZodOptional<z.ZodEnum<{
1058
+ organization: "organization";
1058
1059
  public: "public";
1059
1060
  private: "private";
1060
- organization: "organization";
1061
1061
  monetized: "monetized";
1062
1062
  inherit: "inherit";
1063
1063
  }>>;
@@ -1128,9 +1128,9 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1128
1128
  text: z.ZodString;
1129
1129
  }, z.core.$strip>>>;
1130
1130
  visibility: z.ZodEnum<{
1131
+ organization: "organization";
1131
1132
  public: "public";
1132
1133
  private: "private";
1133
- organization: "organization";
1134
1134
  monetized: "monetized";
1135
1135
  inherit: "inherit";
1136
1136
  }>;
@@ -1155,25 +1155,25 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1155
1155
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1156
1156
  state: z.ZodEnum<{
1157
1157
  success: "success";
1158
- error: "error";
1159
1158
  queued: "queued";
1160
1159
  "in-progress": "in-progress";
1161
1160
  "timed-out": "timed-out";
1161
+ error: "error";
1162
1162
  }>;
1163
1163
  source: z.ZodEnum<{
1164
- web: "web";
1165
1164
  api: "api";
1165
+ web: "web";
1166
1166
  }>;
1167
1167
  is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1168
1168
  created_at: z.ZodString;
1169
1169
  last_updated: z.ZodString;
1170
1170
  name: z.ZodNullable<z.ZodString>;
1171
1171
  asset_type: z.ZodEnum<{
1172
- organization: "organization";
1173
- file: "file";
1174
1172
  user: "user";
1173
+ organization: "organization";
1175
1174
  team: "team";
1176
1175
  dataset: "dataset";
1176
+ file: "file";
1177
1177
  service: "service";
1178
1178
  route: "route";
1179
1179
  post: "post";
@@ -1207,17 +1207,12 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
1207
1207
  }, z.core.$strip>>;
1208
1208
  }, z.core.$strip>>;
1209
1209
  declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1210
- parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1211
- source: z.ZodOptional<z.ZodEnum<{
1212
- web: "web";
1213
- api: "api";
1214
- }>>;
1215
1210
  asset_type: z.ZodOptional<z.ZodEnum<{
1216
- organization: "organization";
1217
- file: "file";
1218
1211
  user: "user";
1212
+ organization: "organization";
1219
1213
  team: "team";
1220
1214
  dataset: "dataset";
1215
+ file: "file";
1221
1216
  service: "service";
1222
1217
  route: "route";
1223
1218
  post: "post";
@@ -1225,13 +1220,38 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1225
1220
  comment: "comment";
1226
1221
  conversation: "conversation";
1227
1222
  }>>;
1223
+ org_id: z.ZodOptional<z.ZodUUID>;
1224
+ parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1225
+ metadata: z.ZodOptional<z.ZodObject<{
1226
+ doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1227
+ external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1228
+ paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1229
+ github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1230
+ originality: z.ZodOptional<z.ZodEnum<{
1231
+ original: "original";
1232
+ derivative: "derivative";
1233
+ "third-party": "third-party";
1234
+ }>>;
1235
+ source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1236
+ reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1237
+ }, z.core.$strip>>;
1238
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1239
+ team_id: z.ZodOptional<z.ZodUUID>;
1228
1240
  visibility: z.ZodOptional<z.ZodEnum<{
1241
+ organization: "organization";
1229
1242
  public: "public";
1230
1243
  private: "private";
1231
- organization: "organization";
1232
1244
  monetized: "monetized";
1233
1245
  inherit: "inherit";
1234
1246
  }>>;
1247
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1248
+ json: z.ZodRecord<z.ZodString, z.ZodAny>;
1249
+ text: z.ZodString;
1250
+ }, z.core.$strip>>>>;
1251
+ source: z.ZodOptional<z.ZodEnum<{
1252
+ api: "api";
1253
+ web: "web";
1254
+ }>>;
1235
1255
  monetization: z.ZodOptional<z.ZodEnum<{
1236
1256
  none: "none";
1237
1257
  "pay-to-unlock": "pay-to-unlock";
@@ -1239,18 +1259,11 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1239
1259
  }>>;
1240
1260
  state: z.ZodOptional<z.ZodEnum<{
1241
1261
  success: "success";
1242
- error: "error";
1243
1262
  queued: "queued";
1244
1263
  "in-progress": "in-progress";
1245
1264
  "timed-out": "timed-out";
1265
+ error: "error";
1246
1266
  }>>;
1247
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1248
- org_id: z.ZodOptional<z.ZodUUID>;
1249
- team_id: z.ZodOptional<z.ZodUUID>;
1250
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1251
- json: z.ZodRecord<z.ZodString, z.ZodAny>;
1252
- text: z.ZodString;
1253
- }, z.core.$strip>>>>;
1254
1267
  parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
1255
1268
  license_id: z.ZodOptional<z.ZodString>;
1256
1269
  license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -1269,19 +1282,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1269
1282
  stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1270
1283
  stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1271
1284
  stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1272
- metadata: z.ZodOptional<z.ZodObject<{
1273
- doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1274
- external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1275
- paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1276
- github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1277
- originality: z.ZodOptional<z.ZodEnum<{
1278
- original: "original";
1279
- derivative: "derivative";
1280
- "third-party": "third-party";
1281
- }>>;
1282
- source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1283
- reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1284
- }, z.core.$strip>>;
1285
1285
  preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1286
1286
  type: z.ZodLiteral<"doc">;
1287
1287
  content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
@@ -1289,19 +1289,28 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1289
1289
  last_updated: z.ZodDefault<z.ZodString>;
1290
1290
  }, z.core.$strip>, z.ZodTransform<{
1291
1291
  last_updated: string;
1292
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1293
+ org_id?: string | undefined;
1292
1294
  parent?: Record<string, any> | undefined;
1293
- source?: "web" | "api" | undefined;
1294
- asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1295
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1296
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1297
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1295
+ metadata?: {
1296
+ doi_url?: string | null | undefined;
1297
+ external_url?: string | null | undefined;
1298
+ paper_url?: string | null | undefined;
1299
+ github_url?: string | null | undefined;
1300
+ originality?: "original" | "derivative" | "third-party" | undefined;
1301
+ source?: string | null | undefined;
1302
+ reply_to_comment_id?: string | null | undefined;
1303
+ } | undefined;
1298
1304
  name?: string | null | undefined;
1299
- org_id?: string | undefined;
1300
1305
  team_id?: string | undefined;
1306
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1301
1307
  description?: {
1302
1308
  json: Record<string, any>;
1303
1309
  text: string;
1304
1310
  } | null | undefined;
1311
+ source?: "api" | "web" | undefined;
1312
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1313
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1305
1314
  parent_id?: string | null | undefined;
1306
1315
  license_id?: string | undefined;
1307
1316
  license?: Record<string, any> | undefined;
@@ -1314,6 +1323,15 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1314
1323
  stripe_product_id?: string | null | undefined;
1315
1324
  stripe_price_id?: string | null | undefined;
1316
1325
  stripe_meter_id?: string | null | undefined;
1326
+ preview?: {
1327
+ type: "doc";
1328
+ content: any[];
1329
+ } | undefined;
1330
+ }, {
1331
+ last_updated: string;
1332
+ asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1333
+ org_id?: string | undefined;
1334
+ parent?: Record<string, any> | undefined;
1317
1335
  metadata?: {
1318
1336
  doi_url?: string | null | undefined;
1319
1337
  external_url?: string | null | undefined;
@@ -1323,25 +1341,16 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1323
1341
  source?: string | null | undefined;
1324
1342
  reply_to_comment_id?: string | null | undefined;
1325
1343
  } | undefined;
1326
- preview?: {
1327
- type: "doc";
1328
- content: any[];
1329
- } | undefined;
1330
- }, {
1331
- last_updated: string;
1332
- parent?: Record<string, any> | undefined;
1333
- source?: "web" | "api" | undefined;
1334
- asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
1335
- visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
1336
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1337
- state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
1338
1344
  name?: string | null | undefined;
1339
- org_id?: string | undefined;
1340
1345
  team_id?: string | undefined;
1346
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1341
1347
  description?: {
1342
1348
  json: Record<string, any>;
1343
1349
  text: string;
1344
1350
  } | null | undefined;
1351
+ source?: "api" | "web" | undefined;
1352
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1353
+ state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
1345
1354
  parent_id?: string | null | undefined;
1346
1355
  license_id?: string | undefined;
1347
1356
  license?: Record<string, any> | undefined;
@@ -1354,15 +1363,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
1354
1363
  stripe_product_id?: string | null | undefined;
1355
1364
  stripe_price_id?: string | null | undefined;
1356
1365
  stripe_meter_id?: string | null | undefined;
1357
- metadata?: {
1358
- doi_url?: string | null | undefined;
1359
- external_url?: string | null | undefined;
1360
- paper_url?: string | null | undefined;
1361
- github_url?: string | null | undefined;
1362
- originality?: "original" | "derivative" | "third-party" | undefined;
1363
- source?: string | null | undefined;
1364
- reply_to_comment_id?: string | null | undefined;
1365
- } | undefined;
1366
1366
  preview?: {
1367
1367
  type: "doc";
1368
1368
  content: any[];