@ourofoundation/ouro-js 3.5.8 → 3.7.0
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.
- package/dist/{chunk-6GPIZJ4T.cjs → chunk-57RRLX7P.cjs} +2 -2
- package/dist/{chunk-6GPIZJ4T.cjs.map → chunk-57RRLX7P.cjs.map} +1 -1
- package/dist/chunk-5EQ5LO7V.cjs +2 -0
- package/dist/chunk-5EQ5LO7V.cjs.map +1 -0
- package/dist/chunk-7EKD5NQB.js +2 -0
- package/dist/{chunk-IWOXGKK4.js.map → chunk-7EKD5NQB.js.map} +1 -1
- package/dist/{chunk-YKA3RUTN.cjs → chunk-AI2FA44G.cjs} +2 -2
- package/dist/{chunk-YKA3RUTN.cjs.map → chunk-AI2FA44G.cjs.map} +1 -1
- package/dist/chunk-AWBCE7ME.cjs +2 -0
- package/dist/chunk-AWBCE7ME.cjs.map +1 -0
- package/dist/chunk-DY5QSBE4.js +2 -0
- package/dist/chunk-DY5QSBE4.js.map +1 -0
- package/dist/{chunk-DBEBXFQI.cjs → chunk-HW6FGPTA.cjs} +2 -2
- package/dist/{chunk-DBEBXFQI.cjs.map → chunk-HW6FGPTA.cjs.map} +1 -1
- package/dist/{chunk-G3VMEPTP.js → chunk-ITF5WQQB.js} +2 -2
- package/dist/{chunk-G3VMEPTP.js.map → chunk-ITF5WQQB.js.map} +1 -1
- package/dist/{chunk-USO3MLKI.cjs → chunk-IVO3RQUN.cjs} +2 -2
- package/dist/chunk-IVO3RQUN.cjs.map +1 -0
- package/dist/chunk-JUELSRCY.js +2 -0
- package/dist/{chunk-4UE3XIYR.js.map → chunk-JUELSRCY.js.map} +1 -1
- package/dist/chunk-KHERHT26.cjs +2 -0
- package/dist/chunk-KHERHT26.cjs.map +1 -0
- package/dist/{chunk-F5CWCYOP.cjs → chunk-NTWSEN2H.cjs} +2 -2
- package/dist/{chunk-F5CWCYOP.cjs.map → chunk-NTWSEN2H.cjs.map} +1 -1
- package/dist/chunk-OU4JKY4M.js +2 -0
- package/dist/chunk-OU4JKY4M.js.map +1 -0
- package/dist/chunk-QBL6KIST.js +2 -0
- package/dist/{chunk-WNYOQITO.js.map → chunk-QBL6KIST.js.map} +1 -1
- package/dist/{chunk-6ZJQTECB.cjs → chunk-QNERXSMJ.cjs} +2 -2
- package/dist/{chunk-6ZJQTECB.cjs.map → chunk-QNERXSMJ.cjs.map} +1 -1
- package/dist/chunk-QSOXS57A.cjs +2 -0
- package/dist/chunk-QSOXS57A.cjs.map +1 -0
- package/dist/chunk-RD6EPK44.js +2 -0
- package/dist/{chunk-KCVE35IO.js.map → chunk-RD6EPK44.js.map} +1 -1
- package/dist/{chunk-FRMPLGE4.cjs → chunk-SY5IKIT6.cjs} +2 -2
- package/dist/{chunk-FRMPLGE4.cjs.map → chunk-SY5IKIT6.cjs.map} +1 -1
- package/dist/chunk-T3HVRQBB.js +2 -0
- package/dist/chunk-T3HVRQBB.js.map +1 -0
- package/dist/chunk-TGOXRPF5.js +2 -0
- package/dist/chunk-TGOXRPF5.js.map +1 -0
- package/dist/{chunk-TYOQ32UV.js → chunk-TMNFNVTZ.js} +2 -2
- package/dist/{chunk-TYOQ32UV.js.map → chunk-TMNFNVTZ.js.map} +1 -1
- package/dist/chunk-ZC2VDKSH.js +2 -0
- package/dist/chunk-ZC2VDKSH.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +175 -45
- package/dist/schema/assets.d.ts +175 -45
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +95 -27
- package/dist/schema/comments.d.ts +95 -27
- package/dist/schema/comments.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +163 -47
- package/dist/schema/conversations.d.ts +163 -47
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +230 -66
- package/dist/schema/datasets.d.ts +230 -66
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +230 -66
- package/dist/schema/files.d.ts +230 -66
- package/dist/schema/files.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +250 -74
- package/dist/schema/posts.d.ts +250 -74
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +164 -48
- package/dist/schema/quests.d.ts +164 -48
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +247 -71
- package/dist/schema/services.d.ts +247 -71
- package/dist/schema/services.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.js +1 -1
- package/dist/utils/files.cjs +2 -0
- package/dist/utils/files.cjs.map +1 -0
- package/dist/utils/files.d.cts +18 -0
- package/dist/utils/files.d.ts +18 -0
- package/dist/utils/files.js +2 -0
- package/dist/utils/files.js.map +1 -0
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-4UE3XIYR.js +0 -2
- package/dist/chunk-IWOXGKK4.js +0 -2
- package/dist/chunk-KCVE35IO.js +0 -2
- package/dist/chunk-LQOKGPEK.js +0 -2
- package/dist/chunk-LQOKGPEK.js.map +0 -1
- package/dist/chunk-MLTO7TMM.js +0 -2
- package/dist/chunk-MLTO7TMM.js.map +0 -1
- package/dist/chunk-NABNY2EN.js +0 -2
- package/dist/chunk-NABNY2EN.js.map +0 -1
- package/dist/chunk-ROMY5WNQ.cjs +0 -2
- package/dist/chunk-ROMY5WNQ.cjs.map +0 -1
- package/dist/chunk-SR5UZ4NP.js +0 -2
- package/dist/chunk-SR5UZ4NP.js.map +0 -1
- package/dist/chunk-TUZS3DKI.cjs +0 -2
- package/dist/chunk-TUZS3DKI.cjs.map +0 -1
- package/dist/chunk-USO3MLKI.cjs.map +0 -1
- package/dist/chunk-V73EW77Y.cjs +0 -2
- package/dist/chunk-V73EW77Y.cjs.map +0 -1
- package/dist/chunk-WNYOQITO.js +0 -2
package/dist/schema/assets.d.ts
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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,17 +279,37 @@ 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
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
originality: z.ZodEnum<{
|
|
282
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
|
+
}, z.core.$strip>>>;
|
|
285
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
286
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
248
287
|
original: "original";
|
|
249
288
|
derivative: "derivative";
|
|
250
289
|
"third-party": "third-party";
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
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>>;
|
|
254
313
|
}, z.core.$strip>>>;
|
|
255
314
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
256
315
|
state: z.ZodEnum<{
|
|
@@ -284,15 +343,6 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
284
343
|
}>>;
|
|
285
344
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
286
345
|
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
346
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
347
|
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
348
|
}, z.core.$strip>>>>;
|
|
@@ -321,6 +371,35 @@ declare const CreateAssetSchema: z.ZodObject<{
|
|
|
321
371
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
322
372
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
323
373
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
374
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
375
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
376
|
+
original: "original";
|
|
377
|
+
derivative: "derivative";
|
|
378
|
+
"third-party": "third-party";
|
|
379
|
+
}>>>;
|
|
380
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
385
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
388
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
389
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
}, z.core.$strip>>>;
|
|
394
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
395
|
+
IsSupplementTo: "IsSupplementTo";
|
|
396
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
397
|
+
References: "References";
|
|
398
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
399
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
400
|
+
}>>>;
|
|
401
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
}, z.core.$strip>>>>;
|
|
324
403
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
325
404
|
id: z.ZodDefault<z.ZodUUID>;
|
|
326
405
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -365,15 +444,6 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
365
444
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
366
445
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
367
446
|
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
447
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
448
|
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
449
|
}, z.core.$strip>>>>;
|
|
@@ -425,17 +495,41 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
425
495
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
426
496
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
427
497
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
498
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
499
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
500
|
+
original: "original";
|
|
501
|
+
derivative: "derivative";
|
|
502
|
+
"third-party": "third-party";
|
|
503
|
+
}>>>;
|
|
504
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
505
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
506
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
507
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
509
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
512
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
513
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
516
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
517
|
+
}, z.core.$strip>>>;
|
|
518
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
519
|
+
IsSupplementTo: "IsSupplementTo";
|
|
520
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
521
|
+
References: "References";
|
|
522
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
523
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
524
|
+
}>>>;
|
|
525
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
|
+
}, z.core.$strip>>>>;
|
|
428
527
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
429
528
|
}, z.core.$strip>, z.ZodTransform<{
|
|
430
529
|
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
431
530
|
org_id?: string | undefined;
|
|
432
531
|
parent?: Record<string, any> | undefined;
|
|
433
532
|
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
533
|
source?: string | null | undefined;
|
|
440
534
|
reply_to_comment_id?: string | null | undefined;
|
|
441
535
|
} | null | undefined;
|
|
@@ -462,17 +556,31 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
462
556
|
stripe_product_id?: string | null | undefined;
|
|
463
557
|
stripe_price_id?: string | null | undefined;
|
|
464
558
|
stripe_meter_id?: string | null | undefined;
|
|
559
|
+
attribution?: {
|
|
560
|
+
originality: "original" | "derivative" | "third-party";
|
|
561
|
+
external_url?: string | null | undefined;
|
|
562
|
+
github_url?: string | null | undefined;
|
|
563
|
+
paper_url?: string | null | undefined;
|
|
564
|
+
doi_url?: string | null | undefined;
|
|
565
|
+
citation?: {
|
|
566
|
+
doi?: string | null | undefined;
|
|
567
|
+
title?: string | null | undefined;
|
|
568
|
+
authors?: string[] | null | undefined;
|
|
569
|
+
year?: number | null | undefined;
|
|
570
|
+
venue?: string | null | undefined;
|
|
571
|
+
url?: string | null | undefined;
|
|
572
|
+
bibtex?: string | null | undefined;
|
|
573
|
+
source?: string | null | undefined;
|
|
574
|
+
} | null | undefined;
|
|
575
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
576
|
+
doi?: string | null | undefined;
|
|
577
|
+
} | null | undefined;
|
|
465
578
|
preview?: Record<string, any>[] | null | undefined;
|
|
466
579
|
}, {
|
|
467
580
|
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
468
581
|
org_id?: string | undefined;
|
|
469
582
|
parent?: Record<string, any> | undefined;
|
|
470
583
|
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
584
|
source?: string | null | undefined;
|
|
477
585
|
reply_to_comment_id?: string | null | undefined;
|
|
478
586
|
} | null | undefined;
|
|
@@ -499,12 +607,34 @@ declare const UpdateAssetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
499
607
|
stripe_product_id?: string | null | undefined;
|
|
500
608
|
stripe_price_id?: string | null | undefined;
|
|
501
609
|
stripe_meter_id?: string | null | undefined;
|
|
610
|
+
attribution?: {
|
|
611
|
+
originality: "original" | "derivative" | "third-party";
|
|
612
|
+
external_url?: string | null | undefined;
|
|
613
|
+
github_url?: string | null | undefined;
|
|
614
|
+
paper_url?: string | null | undefined;
|
|
615
|
+
doi_url?: string | null | undefined;
|
|
616
|
+
citation?: {
|
|
617
|
+
doi?: string | null | undefined;
|
|
618
|
+
title?: string | null | undefined;
|
|
619
|
+
authors?: string[] | null | undefined;
|
|
620
|
+
year?: number | null | undefined;
|
|
621
|
+
venue?: string | null | undefined;
|
|
622
|
+
url?: string | null | undefined;
|
|
623
|
+
bibtex?: string | null | undefined;
|
|
624
|
+
source?: string | null | undefined;
|
|
625
|
+
} | null | undefined;
|
|
626
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
627
|
+
doi?: string | null | undefined;
|
|
628
|
+
} | null | undefined;
|
|
502
629
|
preview?: Record<string, any>[] | null | undefined;
|
|
503
630
|
}>>;
|
|
504
631
|
|
|
505
632
|
type AssetMetadata = z.infer<typeof AssetMetadataSchema>;
|
|
633
|
+
type Attribution = z.infer<typeof AttributionSchema>;
|
|
634
|
+
type Citation = z.infer<typeof CitationSchema>;
|
|
635
|
+
type RelationType = z.infer<typeof RelationTypeSchema>;
|
|
506
636
|
type Asset = z.infer<typeof AssetSchema>;
|
|
507
637
|
type CreateAsset = z.infer<typeof CreateAssetSchema>;
|
|
508
638
|
type UpdateAsset = z.infer<typeof UpdateAssetSchema>;
|
|
509
639
|
|
|
510
|
-
export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type CreateAsset, CreateAssetSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };
|
|
640
|
+
export { type Asset, type AssetMetadata, AssetMetadataSchema, AssetSchema, type Attribution, AttributionSchema, type Citation, CitationSchema, type CreateAsset, CreateAssetSchema, type RelationType, RelationTypeSchema, type UpdateAsset, UpdateAssetSchema, normalizeAssetConfigForParsing };
|
package/dist/schema/assets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as AssetMetadataSchema,
|
|
1
|
+
export{b as AssetMetadataSchema,f as AssetSchema,e as AttributionSchema,d as CitationSchema,g as CreateAssetSchema,c as RelationTypeSchema,h as UpdateAssetSchema,a as normalizeAssetConfigForParsing}from'../chunk-TGOXRPF5.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
|
package/dist/schema/comments.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkSY5IKIT6_cjs=require('../chunk-SY5IKIT6.cjs');require('../chunk-5EQ5LO7V.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 chunkSY5IKIT6_cjs.a}});Object.defineProperty(exports,"CreateCommentSchema",{enumerable:true,get:function(){return chunkSY5IKIT6_cjs.b}});//# sourceMappingURL=comments.cjs.map
|
|
2
2
|
//# sourceMappingURL=comments.cjs.map
|
|
@@ -208,17 +208,37 @@ 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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
originality: z.ZodEnum<{
|
|
211
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
215
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
216
216
|
original: "original";
|
|
217
217
|
derivative: "derivative";
|
|
218
218
|
"third-party": "third-party";
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
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>>;
|
|
222
242
|
}, z.core.$strip>>>;
|
|
223
243
|
state: z.ZodEnum<{
|
|
224
244
|
success: "success";
|
|
@@ -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>>>>;
|
|
@@ -468,6 +479,35 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
468
479
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
480
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
470
481
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
482
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
483
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
484
|
+
original: "original";
|
|
485
|
+
derivative: "derivative";
|
|
486
|
+
"third-party": "third-party";
|
|
487
|
+
}>>>;
|
|
488
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
493
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
496
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
497
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
}, z.core.$strip>>>;
|
|
502
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
503
|
+
IsSupplementTo: "IsSupplementTo";
|
|
504
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
505
|
+
References: "References";
|
|
506
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
507
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
508
|
+
}>>>;
|
|
509
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
}, z.core.$strip>>>>;
|
|
471
511
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
472
512
|
type: z.ZodString;
|
|
473
513
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -583,11 +623,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
583
623
|
org_id?: string | undefined;
|
|
584
624
|
parent?: Record<string, any> | undefined;
|
|
585
625
|
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
626
|
source?: string | null | undefined;
|
|
592
627
|
reply_to_comment_id?: string | null | undefined;
|
|
593
628
|
} | null | undefined;
|
|
@@ -613,6 +648,25 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
613
648
|
stripe_product_id?: string | null | undefined;
|
|
614
649
|
stripe_price_id?: string | null | undefined;
|
|
615
650
|
stripe_meter_id?: string | null | undefined;
|
|
651
|
+
attribution?: {
|
|
652
|
+
originality: "original" | "derivative" | "third-party";
|
|
653
|
+
external_url?: string | null | undefined;
|
|
654
|
+
github_url?: string | null | undefined;
|
|
655
|
+
paper_url?: string | null | undefined;
|
|
656
|
+
doi_url?: string | null | undefined;
|
|
657
|
+
citation?: {
|
|
658
|
+
doi?: string | null | undefined;
|
|
659
|
+
title?: string | null | undefined;
|
|
660
|
+
authors?: string[] | null | undefined;
|
|
661
|
+
year?: number | null | undefined;
|
|
662
|
+
venue?: string | null | undefined;
|
|
663
|
+
url?: string | null | undefined;
|
|
664
|
+
bibtex?: string | null | undefined;
|
|
665
|
+
source?: string | null | undefined;
|
|
666
|
+
} | null | undefined;
|
|
667
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
668
|
+
doi?: string | null | undefined;
|
|
669
|
+
} | null | undefined;
|
|
616
670
|
preview?: {
|
|
617
671
|
type: string;
|
|
618
672
|
content: Record<string, any>[];
|
|
@@ -723,11 +777,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
723
777
|
org_id?: string | undefined;
|
|
724
778
|
parent?: Record<string, any> | undefined;
|
|
725
779
|
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
780
|
source?: string | null | undefined;
|
|
732
781
|
reply_to_comment_id?: string | null | undefined;
|
|
733
782
|
} | null | undefined;
|
|
@@ -753,6 +802,25 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
753
802
|
stripe_product_id?: string | null | undefined;
|
|
754
803
|
stripe_price_id?: string | null | undefined;
|
|
755
804
|
stripe_meter_id?: string | null | undefined;
|
|
805
|
+
attribution?: {
|
|
806
|
+
originality: "original" | "derivative" | "third-party";
|
|
807
|
+
external_url?: string | null | undefined;
|
|
808
|
+
github_url?: string | null | undefined;
|
|
809
|
+
paper_url?: string | null | undefined;
|
|
810
|
+
doi_url?: string | null | undefined;
|
|
811
|
+
citation?: {
|
|
812
|
+
doi?: string | null | undefined;
|
|
813
|
+
title?: string | null | undefined;
|
|
814
|
+
authors?: string[] | null | undefined;
|
|
815
|
+
year?: number | null | undefined;
|
|
816
|
+
venue?: string | null | undefined;
|
|
817
|
+
url?: string | null | undefined;
|
|
818
|
+
bibtex?: string | null | undefined;
|
|
819
|
+
source?: string | null | undefined;
|
|
820
|
+
} | null | undefined;
|
|
821
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
822
|
+
doi?: string | null | undefined;
|
|
823
|
+
} | null | undefined;
|
|
756
824
|
preview?: {
|
|
757
825
|
type: string;
|
|
758
826
|
content: Record<string, any>[];
|
|
@@ -208,17 +208,37 @@ 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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
originality: z.ZodEnum<{
|
|
211
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
215
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
216
216
|
original: "original";
|
|
217
217
|
derivative: "derivative";
|
|
218
218
|
"third-party": "third-party";
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
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>>;
|
|
222
242
|
}, z.core.$strip>>>;
|
|
223
243
|
state: z.ZodEnum<{
|
|
224
244
|
success: "success";
|
|
@@ -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>>>>;
|
|
@@ -468,6 +479,35 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
468
479
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
480
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
470
481
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
482
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
483
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
484
|
+
original: "original";
|
|
485
|
+
derivative: "derivative";
|
|
486
|
+
"third-party": "third-party";
|
|
487
|
+
}>>>;
|
|
488
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
493
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
496
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
497
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
}, z.core.$strip>>>;
|
|
502
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
503
|
+
IsSupplementTo: "IsSupplementTo";
|
|
504
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
505
|
+
References: "References";
|
|
506
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
507
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
508
|
+
}>>>;
|
|
509
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
}, z.core.$strip>>>>;
|
|
471
511
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
472
512
|
type: z.ZodString;
|
|
473
513
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -583,11 +623,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
583
623
|
org_id?: string | undefined;
|
|
584
624
|
parent?: Record<string, any> | undefined;
|
|
585
625
|
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
626
|
source?: string | null | undefined;
|
|
592
627
|
reply_to_comment_id?: string | null | undefined;
|
|
593
628
|
} | null | undefined;
|
|
@@ -613,6 +648,25 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
613
648
|
stripe_product_id?: string | null | undefined;
|
|
614
649
|
stripe_price_id?: string | null | undefined;
|
|
615
650
|
stripe_meter_id?: string | null | undefined;
|
|
651
|
+
attribution?: {
|
|
652
|
+
originality: "original" | "derivative" | "third-party";
|
|
653
|
+
external_url?: string | null | undefined;
|
|
654
|
+
github_url?: string | null | undefined;
|
|
655
|
+
paper_url?: string | null | undefined;
|
|
656
|
+
doi_url?: string | null | undefined;
|
|
657
|
+
citation?: {
|
|
658
|
+
doi?: string | null | undefined;
|
|
659
|
+
title?: string | null | undefined;
|
|
660
|
+
authors?: string[] | null | undefined;
|
|
661
|
+
year?: number | null | undefined;
|
|
662
|
+
venue?: string | null | undefined;
|
|
663
|
+
url?: string | null | undefined;
|
|
664
|
+
bibtex?: string | null | undefined;
|
|
665
|
+
source?: string | null | undefined;
|
|
666
|
+
} | null | undefined;
|
|
667
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
668
|
+
doi?: string | null | undefined;
|
|
669
|
+
} | null | undefined;
|
|
616
670
|
preview?: {
|
|
617
671
|
type: string;
|
|
618
672
|
content: Record<string, any>[];
|
|
@@ -723,11 +777,6 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
723
777
|
org_id?: string | undefined;
|
|
724
778
|
parent?: Record<string, any> | undefined;
|
|
725
779
|
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
780
|
source?: string | null | undefined;
|
|
732
781
|
reply_to_comment_id?: string | null | undefined;
|
|
733
782
|
} | null | undefined;
|
|
@@ -753,6 +802,25 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
753
802
|
stripe_product_id?: string | null | undefined;
|
|
754
803
|
stripe_price_id?: string | null | undefined;
|
|
755
804
|
stripe_meter_id?: string | null | undefined;
|
|
805
|
+
attribution?: {
|
|
806
|
+
originality: "original" | "derivative" | "third-party";
|
|
807
|
+
external_url?: string | null | undefined;
|
|
808
|
+
github_url?: string | null | undefined;
|
|
809
|
+
paper_url?: string | null | undefined;
|
|
810
|
+
doi_url?: string | null | undefined;
|
|
811
|
+
citation?: {
|
|
812
|
+
doi?: string | null | undefined;
|
|
813
|
+
title?: string | null | undefined;
|
|
814
|
+
authors?: string[] | null | undefined;
|
|
815
|
+
year?: number | null | undefined;
|
|
816
|
+
venue?: string | null | undefined;
|
|
817
|
+
url?: string | null | undefined;
|
|
818
|
+
bibtex?: string | null | undefined;
|
|
819
|
+
source?: string | null | undefined;
|
|
820
|
+
} | null | undefined;
|
|
821
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
822
|
+
doi?: string | null | undefined;
|
|
823
|
+
} | null | undefined;
|
|
756
824
|
preview?: {
|
|
757
825
|
type: string;
|
|
758
826
|
content: Record<string, any>[];
|