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