@ourofoundation/ouro-js 3.7.3 → 3.7.8
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-WRHPQNEL.js → chunk-3BZRQYRC.js} +2 -2
- package/dist/chunk-3BZRQYRC.js.map +1 -0
- package/dist/{chunk-F7W5ETUD.js → chunk-3C7PGJ33.js} +2 -2
- package/dist/{chunk-F7W5ETUD.js.map → chunk-3C7PGJ33.js.map} +1 -1
- package/dist/{chunk-ODFKZL7T.js → chunk-3OUJXTJZ.js} +2 -2
- package/dist/{chunk-ODFKZL7T.js.map → chunk-3OUJXTJZ.js.map} +1 -1
- package/dist/chunk-3RFYEL3A.cjs +2 -0
- package/dist/chunk-3RFYEL3A.cjs.map +1 -0
- package/dist/chunk-42ADEGDM.js +2 -0
- package/dist/chunk-42ADEGDM.js.map +1 -0
- package/dist/{chunk-4IMLVBKS.js → chunk-42WKTHH5.js} +2 -2
- package/dist/{chunk-4IMLVBKS.js.map → chunk-42WKTHH5.js.map} +1 -1
- package/dist/chunk-4NAPVNIX.js +2 -0
- package/dist/chunk-4NAPVNIX.js.map +1 -0
- package/dist/chunk-66AAHP6X.cjs +2 -0
- package/dist/chunk-66AAHP6X.cjs.map +1 -0
- package/dist/{chunk-Q6VQANTI.cjs → chunk-7YG2YDXN.cjs} +2 -2
- package/dist/{chunk-Q6VQANTI.cjs.map → chunk-7YG2YDXN.cjs.map} +1 -1
- package/dist/{chunk-4BJJ7VCS.js → chunk-ASLHRT77.js} +2 -2
- package/dist/{chunk-4BJJ7VCS.js.map → chunk-ASLHRT77.js.map} +1 -1
- package/dist/chunk-B3OK6NNR.cjs +2 -0
- package/dist/chunk-B3OK6NNR.cjs.map +1 -0
- package/dist/chunk-CRUIBV5F.js +2 -0
- package/dist/chunk-CRUIBV5F.js.map +1 -0
- package/dist/chunk-CW4TV3DY.js +2 -0
- package/dist/chunk-CW4TV3DY.js.map +1 -0
- package/dist/chunk-EMDUI7HF.js +2 -0
- package/dist/chunk-EMDUI7HF.js.map +1 -0
- package/dist/chunk-EVQAA7RQ.cjs +2 -0
- package/dist/chunk-EVQAA7RQ.cjs.map +1 -0
- package/dist/chunk-FJTFM3ML.cjs +2 -0
- package/dist/chunk-FJTFM3ML.cjs.map +1 -0
- package/dist/chunk-JRBBNFFI.cjs +2 -0
- package/dist/chunk-JRBBNFFI.cjs.map +1 -0
- package/dist/chunk-KHUEMWG2.js +2 -0
- package/dist/chunk-KHUEMWG2.js.map +1 -0
- package/dist/chunk-LD5G6GFH.cjs +2 -0
- package/dist/chunk-LD5G6GFH.cjs.map +1 -0
- package/dist/chunk-LGJ2LLH6.js +2 -0
- package/dist/chunk-LGJ2LLH6.js.map +1 -0
- package/dist/{chunk-43KB23BA.cjs → chunk-MNECKGIP.cjs} +2 -2
- package/dist/chunk-MNECKGIP.cjs.map +1 -0
- package/dist/chunk-NAISOUTE.cjs +2 -0
- package/dist/chunk-NAISOUTE.cjs.map +1 -0
- package/dist/{chunk-PE7JS2HJ.js → chunk-PB4XG5WM.js} +2 -2
- package/dist/{chunk-PE7JS2HJ.js.map → chunk-PB4XG5WM.js.map} +1 -1
- package/dist/{chunk-SAREC2M2.cjs → chunk-QWD7POET.cjs} +2 -2
- package/dist/{chunk-SAREC2M2.cjs.map → chunk-QWD7POET.cjs.map} +1 -1
- package/dist/{chunk-FPZA5343.cjs → chunk-UDTRH3OQ.cjs} +2 -2
- package/dist/{chunk-FPZA5343.cjs.map → chunk-UDTRH3OQ.cjs.map} +1 -1
- package/dist/chunk-UVVPXYJA.cjs +2 -0
- package/dist/chunk-UVVPXYJA.cjs.map +1 -0
- package/dist/chunk-W3N744QV.js +2 -0
- package/dist/chunk-W3N744QV.js.map +1 -0
- package/dist/chunk-W6AKVS4L.cjs +2 -0
- package/dist/chunk-W6AKVS4L.cjs.map +1 -0
- package/dist/{chunk-RJX57RHG.cjs → chunk-W6MBAIKZ.cjs} +2 -2
- package/dist/{chunk-RJX57RHG.cjs.map → chunk-W6MBAIKZ.cjs.map} +1 -1
- package/dist/chunk-XVN3DFMT.js +2 -0
- package/dist/chunk-XVN3DFMT.js.map +1 -0
- package/dist/chunk-Y6TOO6ET.js +2 -0
- package/dist/chunk-Y6TOO6ET.js.map +1 -0
- package/dist/chunk-YTIUJ72Q.js +2 -0
- package/dist/chunk-YTIUJ72Q.js.map +1 -0
- package/dist/chunk-Z66O3S3W.cjs +2 -0
- package/dist/chunk-Z66O3S3W.cjs.map +1 -0
- package/dist/{chunk-R736Q46O.cjs → chunk-ZRJUBEIK.cjs} +2 -2
- package/dist/{chunk-R736Q46O.cjs.map → chunk-ZRJUBEIK.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +1 -1
- package/dist/schema/asset-filters.cjs +2 -0
- package/dist/schema/asset-filters.cjs.map +1 -0
- package/dist/schema/asset-filters.d.cts +145 -0
- package/dist/schema/asset-filters.d.ts +145 -0
- package/dist/schema/asset-filters.js +2 -0
- package/dist/schema/asset-filters.js.map +1 -0
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +63 -63
- package/dist/schema/assets.d.ts +63 -63
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +654 -55
- package/dist/schema/comments.d.ts +654 -55
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +18 -10
- package/dist/schema/common.d.ts +18 -10
- package/dist/schema/common.js +1 -1
- package/dist/schema/content-refs.cjs +2 -0
- package/dist/schema/content-refs.cjs.map +1 -0
- package/dist/schema/content-refs.d.cts +18 -0
- package/dist/schema/content-refs.d.ts +18 -0
- package/dist/schema/content-refs.js +2 -0
- package/dist/schema/content-refs.js.map +1 -0
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +360 -54
- package/dist/schema/conversations.d.ts +360 -54
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +88 -88
- package/dist/schema/files.d.ts +88 -88
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +3417 -41
- package/dist/schema/notifications.d.ts +3417 -41
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +697 -85
- package/dist/schema/posts.d.ts +697 -85
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +278 -289
- package/dist/schema/quests.d.ts +278 -289
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +2197 -118
- package/dist/schema/services.d.ts +2197 -118
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +29 -15
- package/dist/schema/teams.d.ts +29 -15
- package/dist/schema/teams.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.d.cts +13 -1
- package/dist/utils/air/index.d.ts +13 -1
- package/dist/utils/air/index.js +1 -1
- package/dist/utils/asset-filters.cjs +2 -0
- package/dist/utils/asset-filters.cjs.map +1 -0
- package/dist/utils/asset-filters.d.cts +15 -0
- package/dist/utils/asset-filters.d.ts +15 -0
- package/dist/utils/asset-filters.js +2 -0
- package/dist/utils/asset-filters.js.map +1 -0
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +6 -6
- package/dist/utils/quest-submission.d.ts +6 -6
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2EXUO67W.cjs +0 -2
- package/dist/chunk-2EXUO67W.cjs.map +0 -1
- package/dist/chunk-43KB23BA.cjs.map +0 -1
- package/dist/chunk-4K6R6FZD.cjs +0 -2
- package/dist/chunk-4K6R6FZD.cjs.map +0 -1
- package/dist/chunk-AWBCE7ME.cjs +0 -2
- package/dist/chunk-AWBCE7ME.cjs.map +0 -1
- package/dist/chunk-E4ZLYXHD.cjs +0 -2
- package/dist/chunk-E4ZLYXHD.cjs.map +0 -1
- package/dist/chunk-G5YNDO2B.cjs +0 -2
- package/dist/chunk-G5YNDO2B.cjs.map +0 -1
- package/dist/chunk-GSUGFBTH.js +0 -2
- package/dist/chunk-GSUGFBTH.js.map +0 -1
- package/dist/chunk-GTFGYJSD.js +0 -2
- package/dist/chunk-GTFGYJSD.js.map +0 -1
- package/dist/chunk-HBCNAVZP.js +0 -2
- package/dist/chunk-HBCNAVZP.js.map +0 -1
- package/dist/chunk-J2BGBOOC.cjs +0 -2
- package/dist/chunk-J2BGBOOC.cjs.map +0 -1
- package/dist/chunk-JISPX5A6.js +0 -2
- package/dist/chunk-JISPX5A6.js.map +0 -1
- package/dist/chunk-P7N5DY3B.cjs +0 -2
- package/dist/chunk-P7N5DY3B.cjs.map +0 -1
- package/dist/chunk-PAACMXYE.cjs +0 -2
- package/dist/chunk-PAACMXYE.cjs.map +0 -1
- package/dist/chunk-T3HVRQBB.js +0 -2
- package/dist/chunk-T3HVRQBB.js.map +0 -1
- package/dist/chunk-WFGZLHG2.js +0 -2
- package/dist/chunk-WFGZLHG2.js.map +0 -1
- package/dist/chunk-WRHPQNEL.js.map +0 -1
- package/dist/chunk-YSWB7HAZ.js +0 -2
- package/dist/chunk-YSWB7HAZ.js.map +0 -1
- package/dist/chunk-ZNN4S4KJ.js +0 -2
- package/dist/chunk-ZNN4S4KJ.js.map +0 -1
package/dist/schema/files.d.cts
CHANGED
|
@@ -243,14 +243,14 @@ declare const FileSchema: z.ZodObject<{
|
|
|
243
243
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
244
244
|
state: z.ZodEnum<{
|
|
245
245
|
success: "success";
|
|
246
|
+
error: "error";
|
|
246
247
|
queued: "queued";
|
|
247
248
|
"in-progress": "in-progress";
|
|
248
249
|
"timed-out": "timed-out";
|
|
249
|
-
error: "error";
|
|
250
250
|
}>;
|
|
251
251
|
source: z.ZodEnum<{
|
|
252
|
-
api: "api";
|
|
253
252
|
web: "web";
|
|
253
|
+
api: "api";
|
|
254
254
|
}>;
|
|
255
255
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
256
256
|
created_at: z.ZodString;
|
|
@@ -274,16 +274,16 @@ declare const FileSchema: z.ZodObject<{
|
|
|
274
274
|
}, z.core.$strip>;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
278
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
279
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
280
|
-
text: z.ZodString;
|
|
281
|
-
}, z.core.$strip>>>>;
|
|
282
277
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
283
278
|
none: "none";
|
|
284
279
|
"pay-to-unlock": "pay-to-unlock";
|
|
285
280
|
"pay-per-use": "pay-per-use";
|
|
286
281
|
}>>;
|
|
282
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
283
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
284
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
285
|
+
text: z.ZodString;
|
|
286
|
+
}, z.core.$strip>>>>;
|
|
287
287
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
288
288
|
license_id: z.ZodOptional<z.ZodString>;
|
|
289
289
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -307,8 +307,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
307
307
|
name: z.ZodString;
|
|
308
308
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
309
|
source: z.ZodDefault<z.ZodEnum<{
|
|
310
|
-
api: "api";
|
|
311
310
|
web: "web";
|
|
311
|
+
api: "api";
|
|
312
312
|
}>>;
|
|
313
313
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
314
314
|
organization: "organization";
|
|
@@ -403,16 +403,16 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
403
403
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
404
404
|
}, z.core.$strip>;
|
|
405
405
|
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
407
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
408
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
409
|
-
text: z.ZodString;
|
|
410
|
-
}, z.core.$strip>>>>;
|
|
411
406
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
412
407
|
none: "none";
|
|
413
408
|
"pay-to-unlock": "pay-to-unlock";
|
|
414
409
|
"pay-per-use": "pay-per-use";
|
|
415
410
|
}>>;
|
|
411
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
412
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
413
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
414
|
+
text: z.ZodString;
|
|
415
|
+
}, z.core.$strip>>>>;
|
|
416
416
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
417
417
|
license_id: z.ZodOptional<z.ZodString>;
|
|
418
418
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -436,8 +436,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
436
|
name: z.ZodString;
|
|
437
437
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
438
|
source: z.ZodDefault<z.ZodEnum<{
|
|
439
|
-
api: "api";
|
|
440
439
|
web: "web";
|
|
440
|
+
api: "api";
|
|
441
441
|
}>>;
|
|
442
442
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
443
443
|
organization: "organization";
|
|
@@ -525,7 +525,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
525
525
|
team_id: string | null;
|
|
526
526
|
org_id: string | null;
|
|
527
527
|
name: string;
|
|
528
|
-
source: "
|
|
528
|
+
source: "web" | "api";
|
|
529
529
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
530
530
|
attribution: {
|
|
531
531
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -563,12 +563,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
563
563
|
source?: string | null | undefined;
|
|
564
564
|
reply_to_comment_id?: string | null | undefined;
|
|
565
565
|
};
|
|
566
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
566
567
|
parent?: Record<string, any> | undefined;
|
|
567
568
|
description?: {
|
|
568
569
|
json: Record<string, any>;
|
|
569
570
|
text: string;
|
|
570
571
|
} | null | undefined;
|
|
571
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
572
572
|
parent_id?: string | null | undefined;
|
|
573
573
|
license_id?: string | undefined;
|
|
574
574
|
price?: number | null | undefined;
|
|
@@ -586,7 +586,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
586
586
|
team_id: string | null;
|
|
587
587
|
org_id: string | null;
|
|
588
588
|
name: string;
|
|
589
|
-
source: "
|
|
589
|
+
source: "web" | "api";
|
|
590
590
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
591
591
|
attribution: {
|
|
592
592
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -616,12 +616,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
616
616
|
source?: string | null | undefined;
|
|
617
617
|
reply_to_comment_id?: string | null | undefined;
|
|
618
618
|
};
|
|
619
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
619
620
|
parent?: Record<string, any> | undefined;
|
|
620
621
|
description?: {
|
|
621
622
|
json: Record<string, any>;
|
|
622
623
|
text: string;
|
|
623
624
|
} | null | undefined;
|
|
624
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
625
625
|
parent_id?: string | null | undefined;
|
|
626
626
|
license_id?: string | undefined;
|
|
627
627
|
price?: number | null | undefined;
|
|
@@ -639,7 +639,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
639
639
|
team_id: string | null;
|
|
640
640
|
org_id: string | null;
|
|
641
641
|
name: string;
|
|
642
|
-
source: "
|
|
642
|
+
source: "web" | "api";
|
|
643
643
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
644
644
|
attribution: {
|
|
645
645
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -677,12 +677,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
677
677
|
source?: string | null | undefined;
|
|
678
678
|
reply_to_comment_id?: string | null | undefined;
|
|
679
679
|
};
|
|
680
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
680
681
|
parent?: Record<string, any> | undefined;
|
|
681
682
|
description?: {
|
|
682
683
|
json: Record<string, any>;
|
|
683
684
|
text: string;
|
|
684
685
|
} | null | undefined;
|
|
685
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
686
686
|
parent_id?: string | null | undefined;
|
|
687
687
|
license_id?: string | undefined;
|
|
688
688
|
price?: number | null | undefined;
|
|
@@ -700,7 +700,7 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
700
700
|
team_id: string | null;
|
|
701
701
|
org_id: string | null;
|
|
702
702
|
name: string;
|
|
703
|
-
source: "
|
|
703
|
+
source: "web" | "api";
|
|
704
704
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
705
705
|
attribution: {
|
|
706
706
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -730,12 +730,12 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
730
730
|
source?: string | null | undefined;
|
|
731
731
|
reply_to_comment_id?: string | null | undefined;
|
|
732
732
|
};
|
|
733
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
733
734
|
parent?: Record<string, any> | undefined;
|
|
734
735
|
description?: {
|
|
735
736
|
json: Record<string, any>;
|
|
736
737
|
text: string;
|
|
737
738
|
} | null | undefined;
|
|
738
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
739
739
|
parent_id?: string | null | undefined;
|
|
740
740
|
license_id?: string | undefined;
|
|
741
741
|
price?: number | null | undefined;
|
|
@@ -751,26 +751,6 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
751
751
|
}>>;
|
|
752
752
|
declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
753
753
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
|
|
754
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
755
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
756
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
757
|
-
id: z.ZodUUID;
|
|
758
|
-
path: z.ZodString;
|
|
759
|
-
bucket: z.ZodEnum<{
|
|
760
|
-
"public-files": "public-files";
|
|
761
|
-
files: "files";
|
|
762
|
-
}>;
|
|
763
|
-
name: z.ZodString;
|
|
764
|
-
type: z.ZodString;
|
|
765
|
-
extension: z.ZodString;
|
|
766
|
-
size: z.ZodNumber;
|
|
767
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
768
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
769
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
770
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
771
|
-
}, z.core.$strip>>;
|
|
772
|
-
name: z.ZodOptional<z.ZodString>;
|
|
773
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
774
754
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
775
755
|
organization: "organization";
|
|
776
756
|
public: "public";
|
|
@@ -778,14 +758,6 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
778
758
|
monetized: "monetized";
|
|
779
759
|
inherit: "inherit";
|
|
780
760
|
}>>;
|
|
781
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
782
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
783
|
-
text: z.ZodString;
|
|
784
|
-
}, z.core.$strip>>>>;
|
|
785
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
786
|
-
api: "api";
|
|
787
|
-
web: "web";
|
|
788
|
-
}>>;
|
|
789
761
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
790
762
|
none: "none";
|
|
791
763
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -822,11 +794,23 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
822
794
|
}, z.core.$strip>>;
|
|
823
795
|
state: z.ZodOptional<z.ZodEnum<{
|
|
824
796
|
success: "success";
|
|
797
|
+
error: "error";
|
|
825
798
|
queued: "queued";
|
|
826
799
|
"in-progress": "in-progress";
|
|
827
800
|
"timed-out": "timed-out";
|
|
828
|
-
error: "error";
|
|
829
801
|
}>>;
|
|
802
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
803
|
+
web: "web";
|
|
804
|
+
api: "api";
|
|
805
|
+
}>>;
|
|
806
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
807
|
+
name: z.ZodOptional<z.ZodString>;
|
|
808
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
809
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
810
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
811
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
812
|
+
text: z.ZodString;
|
|
813
|
+
}, z.core.$strip>>>>;
|
|
830
814
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
831
815
|
license_id: z.ZodOptional<z.ZodString>;
|
|
832
816
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -845,34 +829,28 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
845
829
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
846
830
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
847
831
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
832
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
id: z.ZodUUID;
|
|
834
|
+
path: z.ZodString;
|
|
835
|
+
bucket: z.ZodEnum<{
|
|
836
|
+
"public-files": "public-files";
|
|
837
|
+
files: "files";
|
|
838
|
+
}>;
|
|
839
|
+
name: z.ZodString;
|
|
840
|
+
type: z.ZodString;
|
|
841
|
+
extension: z.ZodString;
|
|
842
|
+
size: z.ZodNumber;
|
|
843
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
844
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
845
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
846
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
847
|
+
}, z.core.$strip>>;
|
|
848
848
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
849
849
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
850
850
|
}, z.core.$strip>, z.ZodTransform<{
|
|
851
851
|
last_updated: string;
|
|
852
852
|
asset_type?: "file" | undefined;
|
|
853
|
-
org_id?: string | undefined;
|
|
854
|
-
parent?: Record<string, any> | undefined;
|
|
855
|
-
metadata?: {
|
|
856
|
-
id: string;
|
|
857
|
-
path: string;
|
|
858
|
-
bucket: "public-files" | "files";
|
|
859
|
-
name: string;
|
|
860
|
-
type: string;
|
|
861
|
-
extension: string;
|
|
862
|
-
size: number;
|
|
863
|
-
width?: number | undefined;
|
|
864
|
-
height?: number | undefined;
|
|
865
|
-
source?: string | null | undefined;
|
|
866
|
-
reply_to_comment_id?: string | null | undefined;
|
|
867
|
-
} | undefined;
|
|
868
|
-
name?: string | undefined;
|
|
869
|
-
team_id?: string | undefined;
|
|
870
853
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
871
|
-
description?: {
|
|
872
|
-
json: Record<string, any>;
|
|
873
|
-
text: string;
|
|
874
|
-
} | null | undefined;
|
|
875
|
-
source?: "api" | "web" | undefined;
|
|
876
854
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
877
855
|
attribution?: {
|
|
878
856
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -893,7 +871,16 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
893
871
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
894
872
|
doi?: string | null | undefined;
|
|
895
873
|
} | undefined;
|
|
896
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
874
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
875
|
+
source?: "web" | "api" | undefined;
|
|
876
|
+
parent?: Record<string, any> | undefined;
|
|
877
|
+
name?: string | undefined;
|
|
878
|
+
org_id?: string | undefined;
|
|
879
|
+
team_id?: string | undefined;
|
|
880
|
+
description?: {
|
|
881
|
+
json: Record<string, any>;
|
|
882
|
+
text: string;
|
|
883
|
+
} | null | undefined;
|
|
897
884
|
parent_id?: string | null | undefined;
|
|
898
885
|
license_id?: string | undefined;
|
|
899
886
|
license?: Record<string, any> | undefined;
|
|
@@ -906,12 +893,6 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
906
893
|
stripe_product_id?: string | null | undefined;
|
|
907
894
|
stripe_price_id?: string | null | undefined;
|
|
908
895
|
stripe_meter_id?: string | null | undefined;
|
|
909
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
910
|
-
}, {
|
|
911
|
-
last_updated: string;
|
|
912
|
-
asset_type?: "file" | undefined;
|
|
913
|
-
org_id?: string | undefined;
|
|
914
|
-
parent?: Record<string, any> | undefined;
|
|
915
896
|
metadata?: {
|
|
916
897
|
id: string;
|
|
917
898
|
path: string;
|
|
@@ -925,14 +906,11 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
925
906
|
source?: string | null | undefined;
|
|
926
907
|
reply_to_comment_id?: string | null | undefined;
|
|
927
908
|
} | undefined;
|
|
928
|
-
|
|
929
|
-
|
|
909
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
910
|
+
}, {
|
|
911
|
+
last_updated: string;
|
|
912
|
+
asset_type?: "file" | undefined;
|
|
930
913
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
931
|
-
description?: {
|
|
932
|
-
json: Record<string, any>;
|
|
933
|
-
text: string;
|
|
934
|
-
} | null | undefined;
|
|
935
|
-
source?: "api" | "web" | undefined;
|
|
936
914
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
937
915
|
attribution?: {
|
|
938
916
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -953,7 +931,16 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
953
931
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
954
932
|
doi?: string | null | undefined;
|
|
955
933
|
} | undefined;
|
|
956
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
934
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
935
|
+
source?: "web" | "api" | undefined;
|
|
936
|
+
parent?: Record<string, any> | undefined;
|
|
937
|
+
name?: string | undefined;
|
|
938
|
+
org_id?: string | undefined;
|
|
939
|
+
team_id?: string | undefined;
|
|
940
|
+
description?: {
|
|
941
|
+
json: Record<string, any>;
|
|
942
|
+
text: string;
|
|
943
|
+
} | null | undefined;
|
|
957
944
|
parent_id?: string | null | undefined;
|
|
958
945
|
license_id?: string | undefined;
|
|
959
946
|
license?: Record<string, any> | undefined;
|
|
@@ -966,6 +953,19 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
966
953
|
stripe_product_id?: string | null | undefined;
|
|
967
954
|
stripe_price_id?: string | null | undefined;
|
|
968
955
|
stripe_meter_id?: string | null | undefined;
|
|
956
|
+
metadata?: {
|
|
957
|
+
id: string;
|
|
958
|
+
path: string;
|
|
959
|
+
bucket: "public-files" | "files";
|
|
960
|
+
name: string;
|
|
961
|
+
type: string;
|
|
962
|
+
extension: string;
|
|
963
|
+
size: number;
|
|
964
|
+
width?: number | undefined;
|
|
965
|
+
height?: number | undefined;
|
|
966
|
+
source?: string | null | undefined;
|
|
967
|
+
reply_to_comment_id?: string | null | undefined;
|
|
968
|
+
} | undefined;
|
|
969
969
|
preview?: Record<string, any>[] | null | undefined;
|
|
970
970
|
}>>;
|
|
971
971
|
|