@ourofoundation/ouro-js 3.7.8 → 3.8.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-66AAHP6X.cjs → chunk-23FTPTDP.cjs} +2 -2
- package/dist/{chunk-66AAHP6X.cjs.map → chunk-23FTPTDP.cjs.map} +1 -1
- package/dist/chunk-33C7IDRP.js +2 -0
- package/dist/chunk-33C7IDRP.js.map +1 -0
- package/dist/{chunk-4NAPVNIX.js → chunk-3UE4H5TR.js} +2 -2
- package/dist/{chunk-4NAPVNIX.js.map → chunk-3UE4H5TR.js.map} +1 -1
- package/dist/{chunk-3OUJXTJZ.js → chunk-5CKFMTWZ.js} +2 -2
- package/dist/{chunk-3OUJXTJZ.js.map → chunk-5CKFMTWZ.js.map} +1 -1
- package/dist/{chunk-Z66O3S3W.cjs → chunk-5SC4M4E3.cjs} +2 -2
- package/dist/{chunk-Z66O3S3W.cjs.map → chunk-5SC4M4E3.cjs.map} +1 -1
- package/dist/{chunk-KHUEMWG2.js → chunk-6OO4SOWL.js} +2 -2
- package/dist/{chunk-KHUEMWG2.js.map → chunk-6OO4SOWL.js.map} +1 -1
- package/dist/{chunk-7YG2YDXN.cjs → chunk-7R5EIIIR.cjs} +2 -2
- package/dist/{chunk-7YG2YDXN.cjs.map → chunk-7R5EIIIR.cjs.map} +1 -1
- package/dist/chunk-APZA6MIM.js +2 -0
- package/dist/chunk-APZA6MIM.js.map +1 -0
- package/dist/chunk-AUDVUOLX.js +2 -0
- package/dist/chunk-AUDVUOLX.js.map +1 -0
- package/dist/{chunk-ZRJUBEIK.cjs → chunk-BELCP7OL.cjs} +2 -2
- package/dist/{chunk-ZRJUBEIK.cjs.map → chunk-BELCP7OL.cjs.map} +1 -1
- package/dist/{chunk-CW4TV3DY.js → chunk-CXMEZGVG.js} +2 -2
- package/dist/{chunk-CW4TV3DY.js.map → chunk-CXMEZGVG.js.map} +1 -1
- package/dist/{chunk-42WKTHH5.js → chunk-EIB2YGN3.js} +2 -2
- package/dist/{chunk-42WKTHH5.js.map → chunk-EIB2YGN3.js.map} +1 -1
- package/dist/{chunk-EMDUI7HF.js → chunk-GT7CSIDN.js} +2 -2
- package/dist/{chunk-EMDUI7HF.js.map → chunk-GT7CSIDN.js.map} +1 -1
- package/dist/{chunk-PB4XG5WM.js → chunk-GX6RCMZR.js} +2 -2
- package/dist/{chunk-PB4XG5WM.js.map → chunk-GX6RCMZR.js.map} +1 -1
- package/dist/{chunk-W3N744QV.js → chunk-KMENBGAB.js} +2 -2
- package/dist/{chunk-W3N744QV.js.map → chunk-KMENBGAB.js.map} +1 -1
- package/dist/{chunk-UDTRH3OQ.cjs → chunk-M2ZH6MMH.cjs} +2 -2
- package/dist/{chunk-UDTRH3OQ.cjs.map → chunk-M2ZH6MMH.cjs.map} +1 -1
- package/dist/{chunk-YTIUJ72Q.js → chunk-M5ZLLARC.js} +2 -2
- package/dist/{chunk-YTIUJ72Q.js.map → chunk-M5ZLLARC.js.map} +1 -1
- package/dist/{chunk-3RFYEL3A.cjs → chunk-N3HC2ASR.cjs} +2 -2
- package/dist/{chunk-3RFYEL3A.cjs.map → chunk-N3HC2ASR.cjs.map} +1 -1
- package/dist/chunk-NVKZLT3M.cjs +2 -0
- package/dist/chunk-NVKZLT3M.cjs.map +1 -0
- package/dist/{chunk-QWD7POET.cjs → chunk-O6RFWCC4.cjs} +2 -2
- package/dist/{chunk-QWD7POET.cjs.map → chunk-O6RFWCC4.cjs.map} +1 -1
- package/dist/{chunk-3C7PGJ33.js → chunk-QUBJLDJY.js} +2 -2
- package/dist/{chunk-3C7PGJ33.js.map → chunk-QUBJLDJY.js.map} +1 -1
- package/dist/chunk-RNBIB6S7.cjs +2 -0
- package/dist/chunk-RNBIB6S7.cjs.map +1 -0
- package/dist/{chunk-FJTFM3ML.cjs → chunk-RQUVICCB.cjs} +2 -2
- package/dist/{chunk-FJTFM3ML.cjs.map → chunk-RQUVICCB.cjs.map} +1 -1
- package/dist/chunk-RRDGLT3N.cjs +2 -0
- package/dist/{chunk-LD5G6GFH.cjs.map → chunk-RRDGLT3N.cjs.map} +1 -1
- package/dist/chunk-SZWAE35B.cjs +2 -0
- package/dist/chunk-SZWAE35B.cjs.map +1 -0
- package/dist/chunk-U5JVCESS.js +2 -0
- package/dist/chunk-U5JVCESS.js.map +1 -0
- package/dist/{chunk-B3OK6NNR.cjs → chunk-W4V643O5.cjs} +2 -2
- package/dist/{chunk-B3OK6NNR.cjs.map → chunk-W4V643O5.cjs.map} +1 -1
- package/dist/chunk-YFEGRZXL.cjs +2 -0
- package/dist/chunk-YFEGRZXL.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/schema/asset-filters.cjs +1 -1
- package/dist/schema/asset-filters.d.cts +7 -7
- package/dist/schema/asset-filters.d.ts +7 -7
- package/dist/schema/asset-filters.js +1 -1
- 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 +59 -59
- package/dist/schema/comments.d.ts +59 -59
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +10 -9
- package/dist/schema/common.d.ts +10 -9
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +77 -58
- package/dist/schema/conversations.d.ts +77 -58
- 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 +154 -89
- package/dist/schema/files.d.ts +154 -89
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +106 -106
- package/dist/schema/notifications.d.ts +106 -106
- 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 +91 -91
- package/dist/schema/posts.d.ts +91 -91
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +192 -131
- package/dist/schema/quests.d.ts +192 -131
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +132 -132
- package/dist/schema/services.d.ts +132 -132
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +15 -15
- package/dist/schema/teams.d.ts +15 -15
- package/dist/schema/teams.js +1 -1
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +4 -4
- package/dist/utils/quest-submission.d.ts +4 -4
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +2 -2
- package/tests/files.test.mjs +42 -0
- package/dist/chunk-3BZRQYRC.js +0 -2
- package/dist/chunk-3BZRQYRC.js.map +0 -1
- package/dist/chunk-ASLHRT77.js +0 -2
- package/dist/chunk-ASLHRT77.js.map +0 -1
- package/dist/chunk-LD5G6GFH.cjs +0 -2
- package/dist/chunk-MNECKGIP.cjs +0 -2
- package/dist/chunk-MNECKGIP.cjs.map +0 -1
- package/dist/chunk-UVVPXYJA.cjs +0 -2
- package/dist/chunk-UVVPXYJA.cjs.map +0 -1
- package/dist/chunk-W6AKVS4L.cjs +0 -2
- package/dist/chunk-W6AKVS4L.cjs.map +0 -1
- package/dist/chunk-W6MBAIKZ.cjs +0 -2
- package/dist/chunk-W6MBAIKZ.cjs.map +0 -1
- package/dist/chunk-XVN3DFMT.js +0 -2
- package/dist/chunk-XVN3DFMT.js.map +0 -1
- package/dist/chunk-Y6TOO6ET.js +0 -2
- package/dist/chunk-Y6TOO6ET.js.map +0 -1
package/dist/schema/posts.d.ts
CHANGED
|
@@ -252,14 +252,14 @@ declare const PostSchema: z.ZodObject<{
|
|
|
252
252
|
}, z.core.$strip>;
|
|
253
253
|
state: z.ZodEnum<{
|
|
254
254
|
success: "success";
|
|
255
|
-
error: "error";
|
|
256
255
|
queued: "queued";
|
|
257
256
|
"in-progress": "in-progress";
|
|
258
257
|
"timed-out": "timed-out";
|
|
258
|
+
error: "error";
|
|
259
259
|
}>;
|
|
260
260
|
source: z.ZodEnum<{
|
|
261
|
-
web: "web";
|
|
262
261
|
api: "api";
|
|
262
|
+
web: "web";
|
|
263
263
|
}>;
|
|
264
264
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
265
265
|
created_at: z.ZodString;
|
|
@@ -267,10 +267,10 @@ declare const PostSchema: z.ZodObject<{
|
|
|
267
267
|
name: z.ZodNullable<z.ZodString>;
|
|
268
268
|
asset_type: z.ZodEnum<{
|
|
269
269
|
user: "user";
|
|
270
|
-
file: "file";
|
|
271
270
|
organization: "organization";
|
|
272
271
|
team: "team";
|
|
273
272
|
dataset: "dataset";
|
|
273
|
+
file: "file";
|
|
274
274
|
service: "service";
|
|
275
275
|
route: "route";
|
|
276
276
|
post: "post";
|
|
@@ -295,16 +295,20 @@ declare const PostSchema: z.ZodObject<{
|
|
|
295
295
|
}, z.core.$strip>>;
|
|
296
296
|
}, z.core.$strip>;
|
|
297
297
|
declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
298
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
299
|
-
none: "none";
|
|
300
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
301
|
-
"pay-per-use": "pay-per-use";
|
|
302
|
-
}>>;
|
|
303
298
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
299
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
300
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>>>>;
|
|
304
303
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
305
304
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
306
305
|
text: z.ZodString;
|
|
307
306
|
}, z.core.$strip>>>>;
|
|
307
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
308
|
+
none: "none";
|
|
309
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
310
|
+
"pay-per-use": "pay-per-use";
|
|
311
|
+
}>>;
|
|
308
312
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
309
313
|
license_id: z.ZodOptional<z.ZodString>;
|
|
310
314
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -321,24 +325,20 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
321
325
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
322
326
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
323
327
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
324
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
325
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
-
}, z.core.$strip>>>>;
|
|
328
328
|
id: z.ZodDefault<z.ZodUUID>;
|
|
329
329
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
330
330
|
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
331
331
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
332
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
333
333
|
success: "success";
|
|
334
|
-
error: "error";
|
|
335
334
|
queued: "queued";
|
|
336
335
|
"in-progress": "in-progress";
|
|
337
336
|
"timed-out": "timed-out";
|
|
337
|
+
error: "error";
|
|
338
338
|
}>>>;
|
|
339
339
|
source: z.ZodDefault<z.ZodEnum<{
|
|
340
|
-
web: "web";
|
|
341
340
|
api: "api";
|
|
341
|
+
web: "web";
|
|
342
342
|
}>>;
|
|
343
343
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
344
344
|
organization: "organization";
|
|
@@ -424,8 +424,8 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
424
424
|
id: string;
|
|
425
425
|
team_id: string | null;
|
|
426
426
|
org_id: string | null;
|
|
427
|
-
state: "success" | "
|
|
428
|
-
source: "
|
|
427
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
428
|
+
source: "api" | "web";
|
|
429
429
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
430
430
|
attribution: {
|
|
431
431
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -454,12 +454,16 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
454
454
|
type: "doc";
|
|
455
455
|
content: any[];
|
|
456
456
|
};
|
|
457
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
458
457
|
parent?: Record<string, any> | undefined;
|
|
458
|
+
metadata?: {
|
|
459
|
+
source?: string | null | undefined;
|
|
460
|
+
reply_to_comment_id?: string | null | undefined;
|
|
461
|
+
} | null | undefined;
|
|
459
462
|
description?: {
|
|
460
463
|
json: Record<string, any>;
|
|
461
464
|
text: string;
|
|
462
465
|
} | null | undefined;
|
|
466
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
463
467
|
parent_id?: string | null | undefined;
|
|
464
468
|
license_id?: string | undefined;
|
|
465
469
|
price?: number | null | undefined;
|
|
@@ -470,17 +474,13 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
470
474
|
stripe_product_id?: string | null | undefined;
|
|
471
475
|
stripe_price_id?: string | null | undefined;
|
|
472
476
|
stripe_meter_id?: string | null | undefined;
|
|
473
|
-
metadata?: {
|
|
474
|
-
source?: string | null | undefined;
|
|
475
|
-
reply_to_comment_id?: string | null | undefined;
|
|
476
|
-
} | null | undefined;
|
|
477
477
|
name_url_slug?: string | null | undefined;
|
|
478
478
|
}, {
|
|
479
479
|
id: string;
|
|
480
480
|
team_id: string | null;
|
|
481
481
|
org_id: string | null;
|
|
482
|
-
state: "success" | "
|
|
483
|
-
source: "
|
|
482
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
483
|
+
source: "api" | "web";
|
|
484
484
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
485
485
|
attribution: {
|
|
486
486
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -509,12 +509,16 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
509
509
|
type: "doc";
|
|
510
510
|
content: any[];
|
|
511
511
|
};
|
|
512
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
513
512
|
parent?: Record<string, any> | undefined;
|
|
513
|
+
metadata?: {
|
|
514
|
+
source?: string | null | undefined;
|
|
515
|
+
reply_to_comment_id?: string | null | undefined;
|
|
516
|
+
} | null | undefined;
|
|
514
517
|
description?: {
|
|
515
518
|
json: Record<string, any>;
|
|
516
519
|
text: string;
|
|
517
520
|
} | null | undefined;
|
|
521
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
518
522
|
parent_id?: string | null | undefined;
|
|
519
523
|
license_id?: string | undefined;
|
|
520
524
|
price?: number | null | undefined;
|
|
@@ -525,10 +529,6 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
525
529
|
stripe_product_id?: string | null | undefined;
|
|
526
530
|
stripe_price_id?: string | null | undefined;
|
|
527
531
|
stripe_meter_id?: string | null | undefined;
|
|
528
|
-
metadata?: {
|
|
529
|
-
source?: string | null | undefined;
|
|
530
|
-
reply_to_comment_id?: string | null | undefined;
|
|
531
|
-
} | null | undefined;
|
|
532
532
|
name_url_slug?: string | null | undefined;
|
|
533
533
|
}>>;
|
|
534
534
|
declare const ReadPostSchema: z.ZodObject<{
|
|
@@ -772,14 +772,14 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
772
772
|
}, z.core.$strip>;
|
|
773
773
|
state: z.ZodEnum<{
|
|
774
774
|
success: "success";
|
|
775
|
-
error: "error";
|
|
776
775
|
queued: "queued";
|
|
777
776
|
"in-progress": "in-progress";
|
|
778
777
|
"timed-out": "timed-out";
|
|
778
|
+
error: "error";
|
|
779
779
|
}>;
|
|
780
780
|
source: z.ZodEnum<{
|
|
781
|
-
web: "web";
|
|
782
781
|
api: "api";
|
|
782
|
+
web: "web";
|
|
783
783
|
}>;
|
|
784
784
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
785
785
|
created_at: z.ZodString;
|
|
@@ -787,10 +787,10 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
787
787
|
name: z.ZodNullable<z.ZodString>;
|
|
788
788
|
asset_type: z.ZodEnum<{
|
|
789
789
|
user: "user";
|
|
790
|
-
file: "file";
|
|
791
790
|
organization: "organization";
|
|
792
791
|
team: "team";
|
|
793
792
|
dataset: "dataset";
|
|
793
|
+
file: "file";
|
|
794
794
|
service: "service";
|
|
795
795
|
route: "route";
|
|
796
796
|
post: "post";
|
|
@@ -996,10 +996,10 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
996
996
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
997
997
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
998
998
|
user: "user";
|
|
999
|
-
file: "file";
|
|
1000
999
|
organization: "organization";
|
|
1001
1000
|
team: "team";
|
|
1002
1001
|
dataset: "dataset";
|
|
1002
|
+
file: "file";
|
|
1003
1003
|
service: "service";
|
|
1004
1004
|
route: "route";
|
|
1005
1005
|
post: "post";
|
|
@@ -1076,14 +1076,14 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
1076
1076
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
1077
1077
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1078
1078
|
success: "success";
|
|
1079
|
-
error: "error";
|
|
1080
1079
|
queued: "queued";
|
|
1081
1080
|
"in-progress": "in-progress";
|
|
1082
1081
|
"timed-out": "timed-out";
|
|
1082
|
+
error: "error";
|
|
1083
1083
|
}>>;
|
|
1084
1084
|
source: z.ZodOptional<z.ZodEnum<{
|
|
1085
|
-
web: "web";
|
|
1086
1085
|
api: "api";
|
|
1086
|
+
web: "web";
|
|
1087
1087
|
}>>;
|
|
1088
1088
|
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
1089
1089
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1364,14 +1364,14 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1364
1364
|
}, z.core.$strip>;
|
|
1365
1365
|
state: z.ZodEnum<{
|
|
1366
1366
|
success: "success";
|
|
1367
|
-
error: "error";
|
|
1368
1367
|
queued: "queued";
|
|
1369
1368
|
"in-progress": "in-progress";
|
|
1370
1369
|
"timed-out": "timed-out";
|
|
1370
|
+
error: "error";
|
|
1371
1371
|
}>;
|
|
1372
1372
|
source: z.ZodEnum<{
|
|
1373
|
-
web: "web";
|
|
1374
1373
|
api: "api";
|
|
1374
|
+
web: "web";
|
|
1375
1375
|
}>;
|
|
1376
1376
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1377
1377
|
created_at: z.ZodString;
|
|
@@ -1379,10 +1379,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1379
1379
|
name: z.ZodNullable<z.ZodString>;
|
|
1380
1380
|
asset_type: z.ZodEnum<{
|
|
1381
1381
|
user: "user";
|
|
1382
|
-
file: "file";
|
|
1383
1382
|
organization: "organization";
|
|
1384
1383
|
team: "team";
|
|
1385
1384
|
dataset: "dataset";
|
|
1385
|
+
file: "file";
|
|
1386
1386
|
service: "service";
|
|
1387
1387
|
route: "route";
|
|
1388
1388
|
post: "post";
|
|
@@ -1588,10 +1588,10 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1588
1588
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1589
1589
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1590
1590
|
user: "user";
|
|
1591
|
-
file: "file";
|
|
1592
1591
|
organization: "organization";
|
|
1593
1592
|
team: "team";
|
|
1594
1593
|
dataset: "dataset";
|
|
1594
|
+
file: "file";
|
|
1595
1595
|
service: "service";
|
|
1596
1596
|
route: "route";
|
|
1597
1597
|
post: "post";
|
|
@@ -1668,14 +1668,14 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1668
1668
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
1669
1669
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1670
1670
|
success: "success";
|
|
1671
|
-
error: "error";
|
|
1672
1671
|
queued: "queued";
|
|
1673
1672
|
"in-progress": "in-progress";
|
|
1674
1673
|
"timed-out": "timed-out";
|
|
1674
|
+
error: "error";
|
|
1675
1675
|
}>>;
|
|
1676
1676
|
source: z.ZodOptional<z.ZodEnum<{
|
|
1677
|
-
web: "web";
|
|
1678
1677
|
api: "api";
|
|
1678
|
+
web: "web";
|
|
1679
1679
|
}>>;
|
|
1680
1680
|
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
1681
1681
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1956,14 +1956,14 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1956
1956
|
}, z.core.$strip>;
|
|
1957
1957
|
state: z.ZodEnum<{
|
|
1958
1958
|
success: "success";
|
|
1959
|
-
error: "error";
|
|
1960
1959
|
queued: "queued";
|
|
1961
1960
|
"in-progress": "in-progress";
|
|
1962
1961
|
"timed-out": "timed-out";
|
|
1962
|
+
error: "error";
|
|
1963
1963
|
}>;
|
|
1964
1964
|
source: z.ZodEnum<{
|
|
1965
|
-
web: "web";
|
|
1966
1965
|
api: "api";
|
|
1966
|
+
web: "web";
|
|
1967
1967
|
}>;
|
|
1968
1968
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1969
1969
|
created_at: z.ZodString;
|
|
@@ -1971,10 +1971,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1971
1971
|
name: z.ZodNullable<z.ZodString>;
|
|
1972
1972
|
asset_type: z.ZodEnum<{
|
|
1973
1973
|
user: "user";
|
|
1974
|
-
file: "file";
|
|
1975
1974
|
organization: "organization";
|
|
1976
1975
|
team: "team";
|
|
1977
1976
|
dataset: "dataset";
|
|
1977
|
+
file: "file";
|
|
1978
1978
|
service: "service";
|
|
1979
1979
|
route: "route";
|
|
1980
1980
|
post: "post";
|
|
@@ -2001,10 +2001,10 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
2001
2001
|
declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
2002
2002
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
2003
2003
|
user: "user";
|
|
2004
|
-
file: "file";
|
|
2005
2004
|
organization: "organization";
|
|
2006
2005
|
team: "team";
|
|
2007
2006
|
dataset: "dataset";
|
|
2007
|
+
file: "file";
|
|
2008
2008
|
service: "service";
|
|
2009
2009
|
route: "route";
|
|
2010
2010
|
post: "post";
|
|
@@ -2012,6 +2012,14 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2012
2012
|
comment: "comment";
|
|
2013
2013
|
conversation: "conversation";
|
|
2014
2014
|
}>>;
|
|
2015
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
2016
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2017
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2018
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2019
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2020
|
+
}, z.core.$strip>>;
|
|
2021
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2022
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
2015
2023
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
2016
2024
|
organization: "organization";
|
|
2017
2025
|
public: "public";
|
|
@@ -2019,6 +2027,14 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2019
2027
|
monetized: "monetized";
|
|
2020
2028
|
inherit: "inherit";
|
|
2021
2029
|
}>>;
|
|
2030
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2031
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2032
|
+
text: z.ZodString;
|
|
2033
|
+
}, z.core.$strip>>>>;
|
|
2034
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
2035
|
+
api: "api";
|
|
2036
|
+
web: "web";
|
|
2037
|
+
}>>;
|
|
2022
2038
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
2023
2039
|
none: "none";
|
|
2024
2040
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -2055,23 +2071,11 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2055
2071
|
}, z.core.$strip>>;
|
|
2056
2072
|
state: z.ZodOptional<z.ZodEnum<{
|
|
2057
2073
|
success: "success";
|
|
2058
|
-
error: "error";
|
|
2059
2074
|
queued: "queued";
|
|
2060
2075
|
"in-progress": "in-progress";
|
|
2061
2076
|
"timed-out": "timed-out";
|
|
2077
|
+
error: "error";
|
|
2062
2078
|
}>>;
|
|
2063
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
2064
|
-
web: "web";
|
|
2065
|
-
api: "api";
|
|
2066
|
-
}>>;
|
|
2067
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2068
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2069
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
2070
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
2071
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2072
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2073
|
-
text: z.ZodString;
|
|
2074
|
-
}, z.core.$strip>>>>;
|
|
2075
2079
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
2076
2080
|
license_id: z.ZodOptional<z.ZodString>;
|
|
2077
2081
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -2090,10 +2094,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2090
2094
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2091
2095
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2092
2096
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2093
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
2094
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2095
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2096
|
-
}, z.core.$strip>>;
|
|
2097
2097
|
preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
2098
2098
|
type: z.ZodLiteral<"doc">;
|
|
2099
2099
|
content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -2101,8 +2101,21 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2101
2101
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
2102
2102
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2103
2103
|
last_updated: string;
|
|
2104
|
-
asset_type?: "user" | "
|
|
2104
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
2105
|
+
org_id?: string | undefined;
|
|
2106
|
+
parent?: Record<string, any> | undefined;
|
|
2107
|
+
metadata?: {
|
|
2108
|
+
source?: string | null | undefined;
|
|
2109
|
+
reply_to_comment_id?: string | null | undefined;
|
|
2110
|
+
} | undefined;
|
|
2111
|
+
name?: string | null | undefined;
|
|
2112
|
+
team_id?: string | undefined;
|
|
2105
2113
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
2114
|
+
description?: {
|
|
2115
|
+
json: Record<string, any>;
|
|
2116
|
+
text: string;
|
|
2117
|
+
} | null | undefined;
|
|
2118
|
+
source?: "api" | "web" | undefined;
|
|
2106
2119
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
2107
2120
|
attribution?: {
|
|
2108
2121
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -2123,16 +2136,7 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2123
2136
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
2124
2137
|
doi?: string | null | undefined;
|
|
2125
2138
|
} | undefined;
|
|
2126
|
-
state?: "success" | "
|
|
2127
|
-
source?: "web" | "api" | undefined;
|
|
2128
|
-
parent?: Record<string, any> | undefined;
|
|
2129
|
-
name?: string | null | undefined;
|
|
2130
|
-
org_id?: string | undefined;
|
|
2131
|
-
team_id?: string | undefined;
|
|
2132
|
-
description?: {
|
|
2133
|
-
json: Record<string, any>;
|
|
2134
|
-
text: string;
|
|
2135
|
-
} | null | undefined;
|
|
2139
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
2136
2140
|
parent_id?: string | null | undefined;
|
|
2137
2141
|
license_id?: string | undefined;
|
|
2138
2142
|
license?: Record<string, any> | undefined;
|
|
@@ -2145,18 +2149,27 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2145
2149
|
stripe_product_id?: string | null | undefined;
|
|
2146
2150
|
stripe_price_id?: string | null | undefined;
|
|
2147
2151
|
stripe_meter_id?: string | null | undefined;
|
|
2148
|
-
metadata?: {
|
|
2149
|
-
source?: string | null | undefined;
|
|
2150
|
-
reply_to_comment_id?: string | null | undefined;
|
|
2151
|
-
} | undefined;
|
|
2152
2152
|
preview?: {
|
|
2153
2153
|
type: "doc";
|
|
2154
2154
|
content: any[];
|
|
2155
2155
|
} | undefined;
|
|
2156
2156
|
}, {
|
|
2157
2157
|
last_updated: string;
|
|
2158
|
-
asset_type?: "user" | "
|
|
2158
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
2159
|
+
org_id?: string | undefined;
|
|
2160
|
+
parent?: Record<string, any> | undefined;
|
|
2161
|
+
metadata?: {
|
|
2162
|
+
source?: string | null | undefined;
|
|
2163
|
+
reply_to_comment_id?: string | null | undefined;
|
|
2164
|
+
} | undefined;
|
|
2165
|
+
name?: string | null | undefined;
|
|
2166
|
+
team_id?: string | undefined;
|
|
2159
2167
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
2168
|
+
description?: {
|
|
2169
|
+
json: Record<string, any>;
|
|
2170
|
+
text: string;
|
|
2171
|
+
} | null | undefined;
|
|
2172
|
+
source?: "api" | "web" | undefined;
|
|
2160
2173
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
2161
2174
|
attribution?: {
|
|
2162
2175
|
originality: "original" | "derivative" | "third-party";
|
|
@@ -2177,16 +2190,7 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2177
2190
|
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
2178
2191
|
doi?: string | null | undefined;
|
|
2179
2192
|
} | undefined;
|
|
2180
|
-
state?: "success" | "
|
|
2181
|
-
source?: "web" | "api" | undefined;
|
|
2182
|
-
parent?: Record<string, any> | undefined;
|
|
2183
|
-
name?: string | null | undefined;
|
|
2184
|
-
org_id?: string | undefined;
|
|
2185
|
-
team_id?: string | undefined;
|
|
2186
|
-
description?: {
|
|
2187
|
-
json: Record<string, any>;
|
|
2188
|
-
text: string;
|
|
2189
|
-
} | null | undefined;
|
|
2193
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
2190
2194
|
parent_id?: string | null | undefined;
|
|
2191
2195
|
license_id?: string | undefined;
|
|
2192
2196
|
license?: Record<string, any> | undefined;
|
|
@@ -2199,10 +2203,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2199
2203
|
stripe_product_id?: string | null | undefined;
|
|
2200
2204
|
stripe_price_id?: string | null | undefined;
|
|
2201
2205
|
stripe_meter_id?: string | null | undefined;
|
|
2202
|
-
metadata?: {
|
|
2203
|
-
source?: string | null | undefined;
|
|
2204
|
-
reply_to_comment_id?: string | null | undefined;
|
|
2205
|
-
} | undefined;
|
|
2206
2206
|
preview?: {
|
|
2207
2207
|
type: "doc";
|
|
2208
2208
|
content: any[];
|
package/dist/schema/posts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'../chunk-
|
|
1
|
+
export{b as ContentSchema,d as CreatePostSchema,g as ListPostsSchema,c as PostSchema,e as ReadPostSchema,f as ReadPostsSchema,a as TipTapSchema,h as UpdatePostSchema}from'../chunk-6OO4SOWL.js';import'../chunk-GX6RCMZR.js';import'../chunk-M5ZLLARC.js';import'../chunk-EIB2YGN3.js';import'../chunk-G6GCUGMM.js';import'../chunk-33C7IDRP.js';import'../chunk-DUBPWSCA.js';import'../chunk-42ADEGDM.js';//# sourceMappingURL=posts.js.map
|
|
2
2
|
//# sourceMappingURL=posts.js.map
|
package/dist/schema/quests.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkNVKZLT3M_cjs=require('../chunk-NVKZLT3M.cjs'),chunkM2ZH6MMH_cjs=require('../chunk-M2ZH6MMH.cjs');require('../chunk-W4V643O5.cjs'),require('../chunk-KHERHT26.cjs'),require('../chunk-7R5EIIIR.cjs'),require('../chunk-RRDGLT3N.cjs'),require('../chunk-BELCP7OL.cjs'),require('../chunk-L6SVUDFH.cjs'),require('../chunk-YFEGRZXL.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"CreateEntrySchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.q}});Object.defineProperty(exports,"CreateQuestItemObjectSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.j}});Object.defineProperty(exports,"CreateQuestItemSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.k}});Object.defineProperty(exports,"CreateQuestSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.m}});Object.defineProperty(exports,"EntryEvalStatusSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.e}});Object.defineProperty(exports,"EntrySchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.p}});Object.defineProperty(exports,"EntryStatusSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.f}});Object.defineProperty(exports,"LeaderboardOrderSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.g}});Object.defineProperty(exports,"QuestItemBaseSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.h}});Object.defineProperty(exports,"QuestItemSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.i}});Object.defineProperty(exports,"QuestItemStatusSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.c}});Object.defineProperty(exports,"QuestSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.l}});Object.defineProperty(exports,"QuestStatusSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.b}});Object.defineProperty(exports,"QuestTypeSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.a}});Object.defineProperty(exports,"ReviewEntrySchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.r}});Object.defineProperty(exports,"RewardCurrencySchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.d}});Object.defineProperty(exports,"UpdateQuestItemSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.o}});Object.defineProperty(exports,"UpdateQuestSchema",{enumerable:true,get:function(){return chunkNVKZLT3M_cjs.n}});Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkM2ZH6MMH_cjs.c}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkM2ZH6MMH_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkM2ZH6MMH_cjs.d}});//# sourceMappingURL=quests.cjs.map
|
|
2
2
|
//# sourceMappingURL=quests.cjs.map
|