@ourofoundation/ouro-js 3.6.0 → 3.7.1

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 (100) hide show
  1. package/dist/chunk-2BABFO5H.js +2 -0
  2. package/dist/chunk-2BABFO5H.js.map +1 -0
  3. package/dist/{chunk-DBEBXFQI.cjs → chunk-2KXX5JF6.cjs} +2 -2
  4. package/dist/{chunk-DBEBXFQI.cjs.map → chunk-2KXX5JF6.cjs.map} +1 -1
  5. package/dist/chunk-G5V2WTN5.cjs +2 -0
  6. package/dist/chunk-G5V2WTN5.cjs.map +1 -0
  7. package/dist/{chunk-WNYOQITO.js → chunk-IL3WA4D7.js} +2 -2
  8. package/dist/{chunk-WNYOQITO.js.map → chunk-IL3WA4D7.js.map} +1 -1
  9. package/dist/chunk-KHERHT26.cjs +2 -0
  10. package/dist/chunk-KHERHT26.cjs.map +1 -0
  11. package/dist/{chunk-IWOXGKK4.js → chunk-LYP7DPZ3.js} +2 -2
  12. package/dist/{chunk-IWOXGKK4.js.map → chunk-LYP7DPZ3.js.map} +1 -1
  13. package/dist/chunk-N74Y47X7.js +2 -0
  14. package/dist/chunk-N74Y47X7.js.map +1 -0
  15. package/dist/{chunk-IBRRR3T2.cjs → chunk-O5CY3JW3.cjs} +2 -2
  16. package/dist/{chunk-IBRRR3T2.cjs.map → chunk-O5CY3JW3.cjs.map} +1 -1
  17. package/dist/chunk-OBXAWON7.js +2 -0
  18. package/dist/{chunk-4UE3XIYR.js.map → chunk-OBXAWON7.js.map} +1 -1
  19. package/dist/chunk-OU4JKY4M.js +2 -0
  20. package/dist/chunk-OU4JKY4M.js.map +1 -0
  21. package/dist/chunk-OWS6VJJ2.js +2 -0
  22. package/dist/{chunk-NGN2PI7X.js.map → chunk-OWS6VJJ2.js.map} +1 -1
  23. package/dist/{chunk-F5CWCYOP.cjs → chunk-PN763DHR.cjs} +2 -2
  24. package/dist/{chunk-F5CWCYOP.cjs.map → chunk-PN763DHR.cjs.map} +1 -1
  25. package/dist/chunk-PPZZKUF6.cjs +2 -0
  26. package/dist/chunk-PPZZKUF6.cjs.map +1 -0
  27. package/dist/chunk-QJG6O5OT.cjs +2 -0
  28. package/dist/chunk-QJG6O5OT.cjs.map +1 -0
  29. package/dist/chunk-R7YOQNVS.js +2 -0
  30. package/dist/chunk-R7YOQNVS.js.map +1 -0
  31. package/dist/{chunk-TYOQ32UV.js → chunk-S5VZHGMV.js} +2 -2
  32. package/dist/{chunk-TYOQ32UV.js.map → chunk-S5VZHGMV.js.map} +1 -1
  33. package/dist/{chunk-6ZJQTECB.cjs → chunk-VPYKCTVU.cjs} +2 -2
  34. package/dist/{chunk-6ZJQTECB.cjs.map → chunk-VPYKCTVU.cjs.map} +1 -1
  35. package/dist/{chunk-YKA3RUTN.cjs → chunk-Y6EN5F74.cjs} +2 -2
  36. package/dist/{chunk-YKA3RUTN.cjs.map → chunk-Y6EN5F74.cjs.map} +1 -1
  37. package/dist/{chunk-6GPIZJ4T.cjs → chunk-YCK6Y3BF.cjs} +2 -2
  38. package/dist/{chunk-6GPIZJ4T.cjs.map → chunk-YCK6Y3BF.cjs.map} +1 -1
  39. package/dist/chunk-YXVAFJZH.js +2 -0
  40. package/dist/{chunk-KCVE35IO.js.map → chunk-YXVAFJZH.js.map} +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.cts +2 -1
  43. package/dist/index.d.ts +2 -1
  44. package/dist/index.js +1 -1
  45. package/dist/schema/assets.cjs +1 -1
  46. package/dist/schema/assets.d.cts +215 -46
  47. package/dist/schema/assets.d.ts +215 -46
  48. package/dist/schema/assets.js +1 -1
  49. package/dist/schema/comments.cjs +1 -1
  50. package/dist/schema/comments.d.cts +132 -28
  51. package/dist/schema/comments.d.ts +132 -28
  52. package/dist/schema/comments.js +1 -1
  53. package/dist/schema/conversations.cjs +1 -1
  54. package/dist/schema/conversations.d.cts +235 -47
  55. package/dist/schema/conversations.d.ts +235 -47
  56. package/dist/schema/conversations.js +1 -1
  57. package/dist/schema/datasets.cjs +1 -1
  58. package/dist/schema/datasets.d.cts +302 -66
  59. package/dist/schema/datasets.d.ts +302 -66
  60. package/dist/schema/datasets.js +1 -1
  61. package/dist/schema/files.cjs +1 -1
  62. package/dist/schema/files.d.cts +302 -66
  63. package/dist/schema/files.d.ts +302 -66
  64. package/dist/schema/files.js +1 -1
  65. package/dist/schema/posts.cjs +1 -1
  66. package/dist/schema/posts.d.cts +286 -74
  67. package/dist/schema/posts.d.ts +286 -74
  68. package/dist/schema/posts.js +1 -1
  69. package/dist/schema/quests.cjs +1 -1
  70. package/dist/schema/quests.d.cts +199 -47
  71. package/dist/schema/quests.d.ts +199 -47
  72. package/dist/schema/quests.js +1 -1
  73. package/dist/schema/services.cjs +1 -1
  74. package/dist/schema/services.d.cts +286 -74
  75. package/dist/schema/services.d.ts +286 -74
  76. package/dist/schema/services.js +1 -1
  77. package/dist/utils/files.cjs +2 -0
  78. package/dist/utils/files.cjs.map +1 -0
  79. package/dist/utils/files.d.cts +18 -0
  80. package/dist/utils/files.d.ts +18 -0
  81. package/dist/utils/files.js +2 -0
  82. package/dist/utils/files.js.map +1 -0
  83. package/dist/utils/quest-submission.cjs +1 -1
  84. package/dist/utils/quest-submission.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/chunk-4UE3XIYR.js +0 -2
  87. package/dist/chunk-FRMPLGE4.cjs +0 -2
  88. package/dist/chunk-FRMPLGE4.cjs.map +0 -1
  89. package/dist/chunk-G3VMEPTP.js +0 -2
  90. package/dist/chunk-G3VMEPTP.js.map +0 -1
  91. package/dist/chunk-KCVE35IO.js +0 -2
  92. package/dist/chunk-MLTO7TMM.js +0 -2
  93. package/dist/chunk-MLTO7TMM.js.map +0 -1
  94. package/dist/chunk-NGN2PI7X.js +0 -2
  95. package/dist/chunk-ROMY5WNQ.cjs +0 -2
  96. package/dist/chunk-ROMY5WNQ.cjs.map +0 -1
  97. package/dist/chunk-SR5UZ4NP.js +0 -2
  98. package/dist/chunk-SR5UZ4NP.js.map +0 -1
  99. package/dist/chunk-V73EW77Y.cjs +0 -2
  100. package/dist/chunk-V73EW77Y.cjs.map +0 -1
@@ -6,18 +6,57 @@ type AssetConfigInput = {
6
6
  visibility?: z.infer<typeof VisibilitySchema> | null;
7
7
  };
8
8
  declare const normalizeAssetConfigForParsing: <T extends AssetConfigInput>(input: T) => T;
9
+ /** Type-specific / incidental metadata only (not attribution). */
9
10
  declare const AssetMetadataSchema: z.ZodObject<{
10
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- originality: z.ZodEnum<{
11
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ declare const RelationTypeSchema: z.ZodEnum<{
15
+ IsSupplementTo: "IsSupplementTo";
16
+ IsDerivedFrom: "IsDerivedFrom";
17
+ References: "References";
18
+ IsVariantFormOf: "IsVariantFormOf";
19
+ IsIdenticalTo: "IsIdenticalTo";
20
+ }>;
21
+ declare const CitationSchema: z.ZodObject<{
22
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
25
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$strip>;
31
+ /** Provenance, related-work citation, and (later) this asset's minted DOI. */
32
+ declare const AttributionSchema: z.ZodObject<{
33
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15
34
  original: "original";
16
35
  derivative: "derivative";
17
36
  "third-party": "third-party";
18
- }>;
19
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }>>>;
38
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
46
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, z.core.$strip>>>;
52
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
53
+ IsSupplementTo: "IsSupplementTo";
54
+ IsDerivedFrom: "IsDerivedFrom";
55
+ References: "References";
56
+ IsVariantFormOf: "IsVariantFormOf";
57
+ IsIdenticalTo: "IsIdenticalTo";
58
+ }>>>;
59
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
60
  }, z.core.$strip>;
22
61
  declare const AssetSchema: z.ZodObject<{
23
62
  id: z.ZodUUID;
@@ -240,18 +279,38 @@ declare const AssetSchema: z.ZodObject<{
240
279
  stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
280
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
281
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
- originality: z.ZodEnum<{
248
- original: "original";
249
- derivative: "derivative";
250
- "third-party": "third-party";
251
- }>;
252
282
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
283
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
284
  }, z.core.$strip>>>;
285
+ attribution: z.ZodObject<{
286
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
287
+ original: "original";
288
+ derivative: "derivative";
289
+ "third-party": "third-party";
290
+ }>>>;
291
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
299
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
300
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ }, z.core.$strip>>>;
305
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
306
+ IsSupplementTo: "IsSupplementTo";
307
+ IsDerivedFrom: "IsDerivedFrom";
308
+ References: "References";
309
+ IsVariantFormOf: "IsVariantFormOf";
310
+ IsIdenticalTo: "IsIdenticalTo";
311
+ }>>>;
312
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ }, z.core.$strip>;
255
314
  preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
256
315
  state: z.ZodEnum<{
257
316
  success: "success";
@@ -268,6 +327,9 @@ declare const AssetSchema: z.ZodObject<{
268
327
  created_at: z.ZodString;
269
328
  last_updated: z.ZodString;
270
329
  }, z.core.$strip>;
330
+ declare const DEFAULT_ATTRIBUTION: {
331
+ originality: "original";
332
+ };
271
333
  declare const CreateAssetSchema: z.ZodObject<{
272
334
  asset_type: z.ZodOptional<z.ZodEnum<{
273
335
  user: "user";
@@ -284,15 +346,6 @@ declare const CreateAssetSchema: z.ZodObject<{
284
346
  }>>;
285
347
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
286
348
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
287
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
- originality: z.ZodEnum<{
292
- original: "original";
293
- derivative: "derivative";
294
- "third-party": "third-party";
295
- }>;
296
349
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
350
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
351
  }, z.core.$strip>>>>;
@@ -345,6 +398,71 @@ declare const CreateAssetSchema: z.ZodObject<{
345
398
  monetized: "monetized";
346
399
  inherit: "inherit";
347
400
  }>>>;
401
+ attribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
402
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
403
+ original: "original";
404
+ derivative: "derivative";
405
+ "third-party": "third-party";
406
+ }>>>;
407
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
412
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
415
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
416
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
419
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ }, z.core.$strip>>>;
421
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
422
+ IsSupplementTo: "IsSupplementTo";
423
+ IsDerivedFrom: "IsDerivedFrom";
424
+ References: "References";
425
+ IsVariantFormOf: "IsVariantFormOf";
426
+ IsIdenticalTo: "IsIdenticalTo";
427
+ }>>>;
428
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ }, z.core.$strip>>>, z.ZodTransform<{
430
+ originality: "original" | "derivative" | "third-party";
431
+ external_url?: string | null | undefined;
432
+ github_url?: string | null | undefined;
433
+ paper_url?: string | null | undefined;
434
+ doi_url?: string | null | undefined;
435
+ citation?: {
436
+ doi?: string | null | undefined;
437
+ title?: string | null | undefined;
438
+ authors?: string[] | null | undefined;
439
+ year?: number | null | undefined;
440
+ venue?: string | null | undefined;
441
+ url?: string | null | undefined;
442
+ bibtex?: string | null | undefined;
443
+ source?: string | null | undefined;
444
+ } | null | undefined;
445
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
446
+ doi?: string | null | undefined;
447
+ }, {
448
+ originality: "original" | "derivative" | "third-party";
449
+ external_url?: string | null | undefined;
450
+ github_url?: string | null | undefined;
451
+ paper_url?: string | null | undefined;
452
+ doi_url?: string | null | undefined;
453
+ citation?: {
454
+ doi?: string | null | undefined;
455
+ title?: string | null | undefined;
456
+ authors?: string[] | null | undefined;
457
+ year?: number | null | undefined;
458
+ venue?: string | null | undefined;
459
+ url?: string | null | undefined;
460
+ bibtex?: string | null | undefined;
461
+ source?: string | null | undefined;
462
+ } | null | undefined;
463
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
464
+ doi?: string | null | undefined;
465
+ } | null | undefined>>;
348
466
  created_at: z.ZodDefault<z.ZodString>;
349
467
  last_updated: z.ZodDefault<z.ZodString>;
350
468
  }, z.core.$strip>;
@@ -365,15 +483,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
365
483
  org_id: z.ZodOptional<z.ZodUUID>;
366
484
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
367
485
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
368
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
- originality: z.ZodEnum<{
373
- original: "original";
374
- derivative: "derivative";
375
- "third-party": "third-party";
376
- }>;
377
486
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
487
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
488
  }, z.core.$strip>>>>;
@@ -400,6 +509,35 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
400
509
  "pay-to-unlock": "pay-to-unlock";
401
510
  "pay-per-use": "pay-per-use";
402
511
  }>>;
512
+ attribution: z.ZodOptional<z.ZodObject<{
513
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
514
+ original: "original";
515
+ derivative: "derivative";
516
+ "third-party": "third-party";
517
+ }>>>;
518
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
522
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
523
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
526
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
527
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
529
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
530
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ }, z.core.$strip>>>;
532
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
533
+ IsSupplementTo: "IsSupplementTo";
534
+ IsDerivedFrom: "IsDerivedFrom";
535
+ References: "References";
536
+ IsVariantFormOf: "IsVariantFormOf";
537
+ IsIdenticalTo: "IsIdenticalTo";
538
+ }>>>;
539
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ }, z.core.$strip>>;
403
541
  state: z.ZodOptional<z.ZodEnum<{
404
542
  success: "success";
405
543
  queued: "queued";
@@ -431,11 +569,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
431
569
  org_id?: string | undefined;
432
570
  parent?: Record<string, any> | undefined;
433
571
  metadata?: {
434
- originality: "original" | "derivative" | "third-party";
435
- doi_url?: string | null | undefined;
436
- external_url?: string | null | undefined;
437
- paper_url?: string | null | undefined;
438
- github_url?: string | null | undefined;
439
572
  source?: string | null | undefined;
440
573
  reply_to_comment_id?: string | null | undefined;
441
574
  } | null | undefined;
@@ -449,6 +582,25 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
449
582
  } | null | undefined;
450
583
  source?: "api" | "web" | undefined;
451
584
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
585
+ attribution?: {
586
+ originality: "original" | "derivative" | "third-party";
587
+ external_url?: string | null | undefined;
588
+ github_url?: string | null | undefined;
589
+ paper_url?: string | null | undefined;
590
+ doi_url?: string | null | undefined;
591
+ citation?: {
592
+ doi?: string | null | undefined;
593
+ title?: string | null | undefined;
594
+ authors?: string[] | null | undefined;
595
+ year?: number | null | undefined;
596
+ venue?: string | null | undefined;
597
+ url?: string | null | undefined;
598
+ bibtex?: string | null | undefined;
599
+ source?: string | null | undefined;
600
+ } | null | undefined;
601
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
602
+ doi?: string | null | undefined;
603
+ } | undefined;
452
604
  state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
453
605
  parent_id?: string | null | undefined;
454
606
  license_id?: string | undefined;
@@ -468,11 +620,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
468
620
  org_id?: string | undefined;
469
621
  parent?: Record<string, any> | undefined;
470
622
  metadata?: {
471
- originality: "original" | "derivative" | "third-party";
472
- doi_url?: string | null | undefined;
473
- external_url?: string | null | undefined;
474
- paper_url?: string | null | undefined;
475
- github_url?: string | null | undefined;
476
623
  source?: string | null | undefined;
477
624
  reply_to_comment_id?: string | null | undefined;
478
625
  } | null | undefined;
@@ -486,6 +633,25 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
486
633
  } | null | undefined;
487
634
  source?: "api" | "web" | undefined;
488
635
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
636
+ attribution?: {
637
+ originality: "original" | "derivative" | "third-party";
638
+ external_url?: string | null | undefined;
639
+ github_url?: string | null | undefined;
640
+ paper_url?: string | null | undefined;
641
+ doi_url?: string | null | undefined;
642
+ citation?: {
643
+ doi?: string | null | undefined;
644
+ title?: string | null | undefined;
645
+ authors?: string[] | null | undefined;
646
+ year?: number | null | undefined;
647
+ venue?: string | null | undefined;
648
+ url?: string | null | undefined;
649
+ bibtex?: string | null | undefined;
650
+ source?: string | null | undefined;
651
+ } | null | undefined;
652
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
653
+ doi?: string | null | undefined;
654
+ } | undefined;
489
655
  state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
490
656
  parent_id?: string | null | undefined;
491
657
  license_id?: string | undefined;
@@ -503,8 +669,11 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
503
669
  }>>;
504
670
 
505
671
  type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
672
+ type Attribution = z.infer<typeof AttributionSchema>;
673
+ type Citation = z.infer<typeof CitationSchema>;
674
+ type RelationType = z.infer<typeof RelationTypeSchema>;
506
675
  type Asset = z.infer<typeof AssetSchema>;
507
676
  type CreateAsset = z.infer<typeof CreateAssetSchema>;
508
677
  type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
509
678
 
510
- export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type CreateAsset, CreateAssetSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };
679
+ export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type Attribution, AttributionSchema, type Citation, CitationSchema, type CreateAsset, CreateAssetSchema, DEFAULT_ATTRIBUTION, type RelationType, RelationTypeSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };
@@ -1,2 +1,2 @@
1
- export{b as AssetMetadataSchema,c as AssetSchema,d as CreateAssetSchema,e as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'../chunk-SR5UZ4NP.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=assets.js.map
1
+ export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,h as CreateAssetSchema,g as DEFAULT_ATTRIBUTION,c as RelationTypeSchema,i as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'../chunk-2BABFO5H.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=assets.js.map
2
2
  //# sourceMappingURL=assets.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkFRMPLGE4_cjs=require('../chunk-FRMPLGE4.cjs');require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkFRMPLGE4_cjs.b}});//# sourceMappingURL=comments.cjs.map
1
+ 'use strict';var chunkQJG6O5OT_cjs=require('../chunk-QJG6O5OT.cjs');require('../chunk-PPZZKUF6.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CommentSchema",{enumerable:true,get:function(){return chunkQJG6O5OT_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkQJG6O5OT_cjs.b}});//# sourceMappingURL=comments.cjs.map
2
2
  //# sourceMappingURL=comments.cjs.map
@@ -208,18 +208,38 @@ declare const CommentSchema: z.ZodObject<{
208
208
  stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
209
  stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
210
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
211
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
- originality: z.ZodEnum<{
216
- original: "original";
217
- derivative: "derivative";
218
- "third-party": "third-party";
219
- }>;
220
211
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
212
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
213
  }, z.core.$strip>>>;
214
+ attribution: z.ZodObject<{
215
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
216
+ original: "original";
217
+ derivative: "derivative";
218
+ "third-party": "third-party";
219
+ }>>>;
220
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
225
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
228
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ }, z.core.$strip>>>;
234
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
235
+ IsSupplementTo: "IsSupplementTo";
236
+ IsDerivedFrom: "IsDerivedFrom";
237
+ References: "References";
238
+ IsVariantFormOf: "IsVariantFormOf";
239
+ IsIdenticalTo: "IsIdenticalTo";
240
+ }>>>;
241
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ }, z.core.$strip>;
223
243
  state: z.ZodEnum<{
224
244
  success: "success";
225
245
  queued: "queued";
@@ -409,15 +429,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
409
429
  org_id: z.ZodOptional<z.ZodUUID>;
410
430
  parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
411
431
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
412
- doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
- external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
- paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
- github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
- originality: z.ZodEnum<{
417
- original: "original";
418
- derivative: "derivative";
419
- "third-party": "third-party";
420
- }>;
421
432
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
433
  reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
434
  }, z.core.$strip>>>>;
@@ -476,12 +487,96 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
476
487
  asset_type: z.ZodDefault<z.ZodLiteral<"comment">>;
477
488
  id: z.ZodDefault<z.ZodString>;
478
489
  name: z.ZodDefault<z.ZodString>;
490
+ attribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
492
+ original: "original";
493
+ derivative: "derivative";
494
+ "third-party": "third-party";
495
+ }>>>;
496
+ external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
+ citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
501
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
504
+ year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
505
+ venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
+ bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ }, z.core.$strip>>>;
510
+ relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
511
+ IsSupplementTo: "IsSupplementTo";
512
+ IsDerivedFrom: "IsDerivedFrom";
513
+ References: "References";
514
+ IsVariantFormOf: "IsVariantFormOf";
515
+ IsIdenticalTo: "IsIdenticalTo";
516
+ }>>>;
517
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ }, z.core.$strip>>>, z.ZodTransform<{
519
+ originality: "original" | "derivative" | "third-party";
520
+ external_url?: string | null | undefined;
521
+ github_url?: string | null | undefined;
522
+ paper_url?: string | null | undefined;
523
+ doi_url?: string | null | undefined;
524
+ citation?: {
525
+ doi?: string | null | undefined;
526
+ title?: string | null | undefined;
527
+ authors?: string[] | null | undefined;
528
+ year?: number | null | undefined;
529
+ venue?: string | null | undefined;
530
+ url?: string | null | undefined;
531
+ bibtex?: string | null | undefined;
532
+ source?: string | null | undefined;
533
+ } | null | undefined;
534
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
535
+ doi?: string | null | undefined;
536
+ }, {
537
+ originality: "original" | "derivative" | "third-party";
538
+ external_url?: string | null | undefined;
539
+ github_url?: string | null | undefined;
540
+ paper_url?: string | null | undefined;
541
+ doi_url?: string | null | undefined;
542
+ citation?: {
543
+ doi?: string | null | undefined;
544
+ title?: string | null | undefined;
545
+ authors?: string[] | null | undefined;
546
+ year?: number | null | undefined;
547
+ venue?: string | null | undefined;
548
+ url?: string | null | undefined;
549
+ bibtex?: string | null | undefined;
550
+ source?: string | null | undefined;
551
+ } | null | undefined;
552
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
553
+ doi?: string | null | undefined;
554
+ } | null | undefined>>;
479
555
  created_at: z.ZodDefault<z.ZodString>;
480
556
  last_updated: z.ZodDefault<z.ZodString>;
481
557
  }, z.core.$strip>, z.ZodTransform<{
482
558
  asset_type: "comment";
483
559
  id: string;
484
560
  name: string;
561
+ attribution: {
562
+ originality: "original" | "derivative" | "third-party";
563
+ external_url?: string | null | undefined;
564
+ github_url?: string | null | undefined;
565
+ paper_url?: string | null | undefined;
566
+ doi_url?: string | null | undefined;
567
+ citation?: {
568
+ doi?: string | null | undefined;
569
+ title?: string | null | undefined;
570
+ authors?: string[] | null | undefined;
571
+ year?: number | null | undefined;
572
+ venue?: string | null | undefined;
573
+ url?: string | null | undefined;
574
+ bibtex?: string | null | undefined;
575
+ source?: string | null | undefined;
576
+ } | null | undefined;
577
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
578
+ doi?: string | null | undefined;
579
+ };
485
580
  created_at: string;
486
581
  last_updated: string;
487
582
  user?: {
@@ -583,11 +678,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
583
678
  org_id?: string | undefined;
584
679
  parent?: Record<string, any> | undefined;
585
680
  metadata?: {
586
- originality: "original" | "derivative" | "third-party";
587
- doi_url?: string | null | undefined;
588
- external_url?: string | null | undefined;
589
- paper_url?: string | null | undefined;
590
- github_url?: string | null | undefined;
591
681
  source?: string | null | undefined;
592
682
  reply_to_comment_id?: string | null | undefined;
593
683
  } | null | undefined;
@@ -622,6 +712,25 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
622
712
  asset_type: "comment";
623
713
  id: string;
624
714
  name: string;
715
+ attribution: {
716
+ originality: "original" | "derivative" | "third-party";
717
+ external_url?: string | null | undefined;
718
+ github_url?: string | null | undefined;
719
+ paper_url?: string | null | undefined;
720
+ doi_url?: string | null | undefined;
721
+ citation?: {
722
+ doi?: string | null | undefined;
723
+ title?: string | null | undefined;
724
+ authors?: string[] | null | undefined;
725
+ year?: number | null | undefined;
726
+ venue?: string | null | undefined;
727
+ url?: string | null | undefined;
728
+ bibtex?: string | null | undefined;
729
+ source?: string | null | undefined;
730
+ } | null | undefined;
731
+ relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
732
+ doi?: string | null | undefined;
733
+ };
625
734
  created_at: string;
626
735
  last_updated: string;
627
736
  user?: {
@@ -723,11 +832,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
723
832
  org_id?: string | undefined;
724
833
  parent?: Record<string, any> | undefined;
725
834
  metadata?: {
726
- originality: "original" | "derivative" | "third-party";
727
- doi_url?: string | null | undefined;
728
- external_url?: string | null | undefined;
729
- paper_url?: string | null | undefined;
730
- github_url?: string | null | undefined;
731
835
  source?: string | null | undefined;
732
836
  reply_to_comment_id?: string | null | undefined;
733
837
  } | null | undefined;