@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
|
@@ -8,11 +8,11 @@ import { z } from 'zod';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const DatasetAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
10
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
11
|
-
user: "user";
|
|
12
11
|
organization: "organization";
|
|
12
|
+
file: "file";
|
|
13
|
+
user: "user";
|
|
13
14
|
team: "team";
|
|
14
15
|
dataset: "dataset";
|
|
15
|
-
file: "file";
|
|
16
16
|
service: "service";
|
|
17
17
|
route: "route";
|
|
18
18
|
post: "post";
|
|
@@ -38,11 +38,11 @@ declare const EnrichedDatasetSchemaFieldSchema: z.ZodObject<{
|
|
|
38
38
|
foreign_column_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
semantic_type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"asset_ref">>>;
|
|
40
40
|
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
-
user: "user";
|
|
42
41
|
organization: "organization";
|
|
42
|
+
file: "file";
|
|
43
|
+
user: "user";
|
|
43
44
|
team: "team";
|
|
44
45
|
dataset: "dataset";
|
|
45
|
-
file: "file";
|
|
46
46
|
service: "service";
|
|
47
47
|
route: "route";
|
|
48
48
|
post: "post";
|
|
@@ -59,11 +59,11 @@ declare const EnrichedDatasetSchemaFieldSchema: z.ZodObject<{
|
|
|
59
59
|
declare const ResolvedAssetRefSchema: z.ZodObject<{
|
|
60
60
|
asset_id: z.ZodUUID;
|
|
61
61
|
asset_type: z.ZodEnum<{
|
|
62
|
-
user: "user";
|
|
63
62
|
organization: "organization";
|
|
63
|
+
file: "file";
|
|
64
|
+
user: "user";
|
|
64
65
|
team: "team";
|
|
65
66
|
dataset: "dataset";
|
|
66
|
-
file: "file";
|
|
67
67
|
service: "service";
|
|
68
68
|
route: "route";
|
|
69
69
|
post: "post";
|
|
@@ -78,11 +78,11 @@ declare const ResolvedAssetRefSchema: z.ZodObject<{
|
|
|
78
78
|
declare const ResolvedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79
79
|
asset_id: z.ZodUUID;
|
|
80
80
|
asset_type: z.ZodEnum<{
|
|
81
|
-
user: "user";
|
|
82
81
|
organization: "organization";
|
|
82
|
+
file: "file";
|
|
83
|
+
user: "user";
|
|
83
84
|
team: "team";
|
|
84
85
|
dataset: "dataset";
|
|
85
|
-
file: "file";
|
|
86
86
|
service: "service";
|
|
87
87
|
route: "route";
|
|
88
88
|
post: "post";
|
|
@@ -201,9 +201,9 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
201
201
|
none: "none";
|
|
202
202
|
}>>;
|
|
203
203
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
204
|
-
organization: "organization";
|
|
205
204
|
public: "public";
|
|
206
205
|
private: "private";
|
|
206
|
+
organization: "organization";
|
|
207
207
|
monetized: "monetized";
|
|
208
208
|
inherit: "inherit";
|
|
209
209
|
}>>;
|
|
@@ -275,9 +275,9 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
275
275
|
text: z.ZodString;
|
|
276
276
|
}, z.core.$strip>>>;
|
|
277
277
|
visibility: z.ZodEnum<{
|
|
278
|
-
organization: "organization";
|
|
279
278
|
public: "public";
|
|
280
279
|
private: "private";
|
|
280
|
+
organization: "organization";
|
|
281
281
|
monetized: "monetized";
|
|
282
282
|
inherit: "inherit";
|
|
283
283
|
}>;
|
|
@@ -302,14 +302,14 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
302
302
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
303
|
state: z.ZodEnum<{
|
|
304
304
|
success: "success";
|
|
305
|
+
error: "error";
|
|
305
306
|
queued: "queued";
|
|
306
307
|
"in-progress": "in-progress";
|
|
307
308
|
"timed-out": "timed-out";
|
|
308
|
-
error: "error";
|
|
309
309
|
}>;
|
|
310
310
|
source: z.ZodEnum<{
|
|
311
|
-
api: "api";
|
|
312
311
|
web: "web";
|
|
312
|
+
api: "api";
|
|
313
313
|
}>;
|
|
314
314
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
315
315
|
created_at: z.ZodString;
|
|
@@ -321,11 +321,11 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
321
321
|
columns: z.ZodArray<z.ZodString>;
|
|
322
322
|
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
323
323
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
324
|
-
user: "user";
|
|
325
324
|
organization: "organization";
|
|
325
|
+
file: "file";
|
|
326
|
+
user: "user";
|
|
326
327
|
team: "team";
|
|
327
328
|
dataset: "dataset";
|
|
328
|
-
file: "file";
|
|
329
329
|
service: "service";
|
|
330
330
|
route: "route";
|
|
331
331
|
post: "post";
|
|
@@ -360,15 +360,15 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
360
360
|
}, z.core.$strip>;
|
|
361
361
|
declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
362
362
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
363
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
364
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
365
|
-
text: z.ZodString;
|
|
366
|
-
}, z.core.$strip>>>>;
|
|
367
363
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
368
364
|
none: "none";
|
|
369
365
|
"pay-to-unlock": "pay-to-unlock";
|
|
370
366
|
"pay-per-use": "pay-per-use";
|
|
371
367
|
}>>;
|
|
368
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
369
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
370
|
+
text: z.ZodString;
|
|
371
|
+
}, z.core.$strip>>>>;
|
|
372
372
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
373
373
|
license_id: z.ZodOptional<z.ZodString>;
|
|
374
374
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -392,19 +392,19 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
392
392
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
393
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
394
394
|
success: "success";
|
|
395
|
+
error: "error";
|
|
395
396
|
queued: "queued";
|
|
396
397
|
"in-progress": "in-progress";
|
|
397
398
|
"timed-out": "timed-out";
|
|
398
|
-
error: "error";
|
|
399
399
|
}>>>;
|
|
400
400
|
source: z.ZodDefault<z.ZodEnum<{
|
|
401
|
-
api: "api";
|
|
402
401
|
web: "web";
|
|
402
|
+
api: "api";
|
|
403
403
|
}>>;
|
|
404
404
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
405
|
-
organization: "organization";
|
|
406
405
|
public: "public";
|
|
407
406
|
private: "private";
|
|
407
|
+
organization: "organization";
|
|
408
408
|
monetized: "monetized";
|
|
409
409
|
inherit: "inherit";
|
|
410
410
|
}>>>;
|
|
@@ -417,11 +417,11 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
417
417
|
columns: z.ZodArray<z.ZodString>;
|
|
418
418
|
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
419
419
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
420
|
-
user: "user";
|
|
421
420
|
organization: "organization";
|
|
421
|
+
file: "file";
|
|
422
|
+
user: "user";
|
|
422
423
|
team: "team";
|
|
423
424
|
dataset: "dataset";
|
|
424
|
-
file: "file";
|
|
425
425
|
service: "service";
|
|
426
426
|
route: "route";
|
|
427
427
|
post: "post";
|
|
@@ -458,9 +458,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
458
458
|
team_id: string | null;
|
|
459
459
|
org_id: string | null;
|
|
460
460
|
name: string;
|
|
461
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
462
|
-
source: "
|
|
463
|
-
visibility: "
|
|
461
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
462
|
+
source: "web" | "api";
|
|
463
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
464
464
|
created_at: string;
|
|
465
465
|
last_updated: string;
|
|
466
466
|
asset_type: "dataset";
|
|
@@ -476,7 +476,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
476
476
|
id: string;
|
|
477
477
|
bucket: "public-files" | "files";
|
|
478
478
|
asset_refs?: Record<string, {
|
|
479
|
-
asset_type?: "
|
|
479
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
480
480
|
}> | null | undefined;
|
|
481
481
|
doi_url?: string | null | undefined;
|
|
482
482
|
external_url?: string | null | undefined;
|
|
@@ -488,11 +488,11 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
488
488
|
};
|
|
489
489
|
preview: Record<string, any>[];
|
|
490
490
|
parent?: Record<string, any> | undefined;
|
|
491
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
491
492
|
description?: {
|
|
492
493
|
json: Record<string, any>;
|
|
493
494
|
text: string;
|
|
494
495
|
} | null | undefined;
|
|
495
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
496
496
|
parent_id?: string | null | undefined;
|
|
497
497
|
license_id?: string | undefined;
|
|
498
498
|
price?: number | null | undefined;
|
|
@@ -509,9 +509,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
509
509
|
team_id: string | null;
|
|
510
510
|
org_id: string | null;
|
|
511
511
|
name: string;
|
|
512
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
513
|
-
source: "
|
|
514
|
-
visibility: "
|
|
512
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
513
|
+
source: "web" | "api";
|
|
514
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
515
515
|
created_at: string;
|
|
516
516
|
last_updated: string;
|
|
517
517
|
asset_type: "dataset";
|
|
@@ -527,7 +527,7 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
527
527
|
id: string;
|
|
528
528
|
bucket: "public-files" | "files";
|
|
529
529
|
asset_refs?: Record<string, {
|
|
530
|
-
asset_type?: "
|
|
530
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
531
531
|
}> | null | undefined;
|
|
532
532
|
doi_url?: string | null | undefined;
|
|
533
533
|
external_url?: string | null | undefined;
|
|
@@ -539,11 +539,11 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
539
539
|
};
|
|
540
540
|
preview: Record<string, any>[];
|
|
541
541
|
parent?: Record<string, any> | undefined;
|
|
542
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
542
543
|
description?: {
|
|
543
544
|
json: Record<string, any>;
|
|
544
545
|
text: string;
|
|
545
546
|
} | null | undefined;
|
|
546
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
547
547
|
parent_id?: string | null | undefined;
|
|
548
548
|
license_id?: string | undefined;
|
|
549
549
|
price?: number | null | undefined;
|
|
@@ -558,15 +558,15 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
558
558
|
}>>;
|
|
559
559
|
declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
560
560
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
561
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
562
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
563
|
-
text: z.ZodString;
|
|
564
|
-
}, z.core.$strip>>>>;
|
|
565
561
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
566
562
|
none: "none";
|
|
567
563
|
"pay-to-unlock": "pay-to-unlock";
|
|
568
564
|
"pay-per-use": "pay-per-use";
|
|
569
565
|
}>>;
|
|
566
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
567
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
568
|
+
text: z.ZodString;
|
|
569
|
+
}, z.core.$strip>>>>;
|
|
570
570
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
571
571
|
license_id: z.ZodOptional<z.ZodString>;
|
|
572
572
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -590,19 +590,19 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
590
590
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
591
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
592
592
|
success: "success";
|
|
593
|
+
error: "error";
|
|
593
594
|
queued: "queued";
|
|
594
595
|
"in-progress": "in-progress";
|
|
595
596
|
"timed-out": "timed-out";
|
|
596
|
-
error: "error";
|
|
597
597
|
}>>>;
|
|
598
598
|
source: z.ZodDefault<z.ZodEnum<{
|
|
599
|
-
api: "api";
|
|
600
599
|
web: "web";
|
|
600
|
+
api: "api";
|
|
601
601
|
}>>;
|
|
602
602
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
603
|
-
organization: "organization";
|
|
604
603
|
public: "public";
|
|
605
604
|
private: "private";
|
|
605
|
+
organization: "organization";
|
|
606
606
|
monetized: "monetized";
|
|
607
607
|
inherit: "inherit";
|
|
608
608
|
}>>>;
|
|
@@ -615,11 +615,11 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
615
615
|
columns: z.ZodArray<z.ZodString>;
|
|
616
616
|
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
617
617
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
618
|
-
user: "user";
|
|
619
618
|
organization: "organization";
|
|
619
|
+
file: "file";
|
|
620
|
+
user: "user";
|
|
620
621
|
team: "team";
|
|
621
622
|
dataset: "dataset";
|
|
622
|
-
file: "file";
|
|
623
623
|
service: "service";
|
|
624
624
|
route: "route";
|
|
625
625
|
post: "post";
|
|
@@ -646,9 +646,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
646
646
|
team_id: string | null;
|
|
647
647
|
org_id: string | null;
|
|
648
648
|
name: string;
|
|
649
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
650
|
-
source: "
|
|
651
|
-
visibility: "
|
|
649
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
650
|
+
source: "web" | "api";
|
|
651
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
652
652
|
created_at: string;
|
|
653
653
|
last_updated: string;
|
|
654
654
|
asset_type: "dataset";
|
|
@@ -657,7 +657,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
657
|
schema: "datasets";
|
|
658
658
|
columns: string[];
|
|
659
659
|
asset_refs?: Record<string, {
|
|
660
|
-
asset_type?: "
|
|
660
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
661
661
|
}> | null | undefined;
|
|
662
662
|
doi_url?: string | null | undefined;
|
|
663
663
|
external_url?: string | null | undefined;
|
|
@@ -669,11 +669,11 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
669
669
|
};
|
|
670
670
|
preview: Record<string, any>[];
|
|
671
671
|
parent?: Record<string, any> | undefined;
|
|
672
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
672
673
|
description?: {
|
|
673
674
|
json: Record<string, any>;
|
|
674
675
|
text: string;
|
|
675
676
|
} | null | undefined;
|
|
676
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
677
677
|
parent_id?: string | null | undefined;
|
|
678
678
|
license_id?: string | undefined;
|
|
679
679
|
price?: number | null | undefined;
|
|
@@ -690,9 +690,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
690
690
|
team_id: string | null;
|
|
691
691
|
org_id: string | null;
|
|
692
692
|
name: string;
|
|
693
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
694
|
-
source: "
|
|
695
|
-
visibility: "
|
|
693
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
694
|
+
source: "web" | "api";
|
|
695
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
696
696
|
created_at: string;
|
|
697
697
|
last_updated: string;
|
|
698
698
|
asset_type: "dataset";
|
|
@@ -701,7 +701,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
701
701
|
schema: "datasets";
|
|
702
702
|
columns: string[];
|
|
703
703
|
asset_refs?: Record<string, {
|
|
704
|
-
asset_type?: "
|
|
704
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
705
705
|
}> | null | undefined;
|
|
706
706
|
doi_url?: string | null | undefined;
|
|
707
707
|
external_url?: string | null | undefined;
|
|
@@ -713,11 +713,11 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
713
713
|
};
|
|
714
714
|
preview: Record<string, any>[];
|
|
715
715
|
parent?: Record<string, any> | undefined;
|
|
716
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
716
717
|
description?: {
|
|
717
718
|
json: Record<string, any>;
|
|
718
719
|
text: string;
|
|
719
720
|
} | null | undefined;
|
|
720
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
721
721
|
parent_id?: string | null | undefined;
|
|
722
722
|
license_id?: string | undefined;
|
|
723
723
|
price?: number | null | undefined;
|
|
@@ -731,19 +731,66 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
731
731
|
name_url_slug?: string | null | undefined;
|
|
732
732
|
}>>;
|
|
733
733
|
declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
734
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
735
734
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
735
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
736
|
+
web: "web";
|
|
737
|
+
api: "api";
|
|
738
|
+
}>>;
|
|
739
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
740
|
+
public: "public";
|
|
741
|
+
private: "private";
|
|
742
|
+
organization: "organization";
|
|
743
|
+
monetized: "monetized";
|
|
744
|
+
inherit: "inherit";
|
|
745
|
+
}>>;
|
|
746
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
747
|
+
none: "none";
|
|
748
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
749
|
+
"pay-per-use": "pay-per-use";
|
|
750
|
+
}>>;
|
|
751
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
752
|
+
success: "success";
|
|
753
|
+
error: "error";
|
|
754
|
+
queued: "queued";
|
|
755
|
+
"in-progress": "in-progress";
|
|
756
|
+
"timed-out": "timed-out";
|
|
757
|
+
}>>;
|
|
758
|
+
name: z.ZodOptional<z.ZodString>;
|
|
759
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
760
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
761
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
762
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
763
|
+
text: z.ZodString;
|
|
764
|
+
}, z.core.$strip>>>>;
|
|
765
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
766
|
+
license_id: z.ZodOptional<z.ZodString>;
|
|
767
|
+
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
768
|
+
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
769
|
+
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
770
|
+
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
771
|
+
cost_accounting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
772
|
+
fixed: "fixed";
|
|
773
|
+
variable: "variable";
|
|
774
|
+
}>>>>;
|
|
775
|
+
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
776
|
+
price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
777
|
+
usd: "usd";
|
|
778
|
+
btc: "btc";
|
|
779
|
+
}>>>;
|
|
780
|
+
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
781
|
+
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
782
|
+
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
736
783
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
737
784
|
table_name: z.ZodString;
|
|
738
785
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
739
786
|
columns: z.ZodArray<z.ZodString>;
|
|
740
787
|
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
741
788
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
742
|
-
user: "user";
|
|
743
789
|
organization: "organization";
|
|
790
|
+
file: "file";
|
|
791
|
+
user: "user";
|
|
744
792
|
team: "team";
|
|
745
793
|
dataset: "dataset";
|
|
746
|
-
file: "file";
|
|
747
794
|
service: "service";
|
|
748
795
|
route: "route";
|
|
749
796
|
post: "post";
|
|
@@ -774,67 +821,42 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
774
821
|
files: "files";
|
|
775
822
|
}>>;
|
|
776
823
|
}, z.core.$strip>>;
|
|
777
|
-
name: z.ZodOptional<z.ZodString>;
|
|
778
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
779
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
780
|
-
organization: "organization";
|
|
781
|
-
public: "public";
|
|
782
|
-
private: "private";
|
|
783
|
-
monetized: "monetized";
|
|
784
|
-
inherit: "inherit";
|
|
785
|
-
}>>;
|
|
786
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
787
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
788
|
-
text: z.ZodString;
|
|
789
|
-
}, z.core.$strip>>>>;
|
|
790
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
791
|
-
api: "api";
|
|
792
|
-
web: "web";
|
|
793
|
-
}>>;
|
|
794
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
795
|
-
none: "none";
|
|
796
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
797
|
-
"pay-per-use": "pay-per-use";
|
|
798
|
-
}>>;
|
|
799
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
800
|
-
success: "success";
|
|
801
|
-
queued: "queued";
|
|
802
|
-
"in-progress": "in-progress";
|
|
803
|
-
"timed-out": "timed-out";
|
|
804
|
-
error: "error";
|
|
805
|
-
}>>;
|
|
806
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
807
|
-
license_id: z.ZodOptional<z.ZodString>;
|
|
808
|
-
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
809
|
-
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
810
|
-
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
811
|
-
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
812
|
-
cost_accounting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
813
|
-
fixed: "fixed";
|
|
814
|
-
variable: "variable";
|
|
815
|
-
}>>>>;
|
|
816
|
-
cost_unit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
817
|
-
price_currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
818
|
-
usd: "usd";
|
|
819
|
-
btc: "btc";
|
|
820
|
-
}>>>;
|
|
821
|
-
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
822
|
-
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
823
|
-
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
824
824
|
preview: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
825
825
|
asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
|
|
826
826
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
827
827
|
}, z.core.$strip>, z.ZodTransform<{
|
|
828
828
|
asset_type: "dataset";
|
|
829
829
|
last_updated: string;
|
|
830
|
-
org_id?: string | undefined;
|
|
831
830
|
parent?: Record<string, any> | undefined;
|
|
831
|
+
source?: "web" | "api" | undefined;
|
|
832
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
833
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
834
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
835
|
+
name?: string | undefined;
|
|
836
|
+
org_id?: string | undefined;
|
|
837
|
+
team_id?: string | undefined;
|
|
838
|
+
description?: {
|
|
839
|
+
json: Record<string, any>;
|
|
840
|
+
text: string;
|
|
841
|
+
} | null | undefined;
|
|
842
|
+
parent_id?: string | null | undefined;
|
|
843
|
+
license_id?: string | undefined;
|
|
844
|
+
license?: Record<string, any> | undefined;
|
|
845
|
+
name_url_slug?: string | null | undefined;
|
|
846
|
+
price?: number | null | undefined;
|
|
847
|
+
unit_cost?: number | null | undefined;
|
|
848
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
849
|
+
cost_unit?: string | null | undefined;
|
|
850
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
851
|
+
stripe_product_id?: string | null | undefined;
|
|
852
|
+
stripe_price_id?: string | null | undefined;
|
|
853
|
+
stripe_meter_id?: string | null | undefined;
|
|
832
854
|
metadata?: {
|
|
833
855
|
table_name: string;
|
|
834
856
|
schema: "datasets";
|
|
835
857
|
columns: string[];
|
|
836
858
|
asset_refs?: Record<string, {
|
|
837
|
-
asset_type?: "
|
|
859
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
838
860
|
}> | null | undefined;
|
|
839
861
|
doi_url?: string | null | undefined;
|
|
840
862
|
external_url?: string | null | undefined;
|
|
@@ -851,16 +873,22 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
851
873
|
id?: string | undefined;
|
|
852
874
|
bucket?: "public-files" | "files" | undefined;
|
|
853
875
|
} | undefined;
|
|
876
|
+
preview?: Record<string, any>[] | undefined;
|
|
877
|
+
}, {
|
|
878
|
+
asset_type: "dataset";
|
|
879
|
+
last_updated: string;
|
|
880
|
+
parent?: Record<string, any> | undefined;
|
|
881
|
+
source?: "web" | "api" | undefined;
|
|
882
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
883
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
884
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
854
885
|
name?: string | undefined;
|
|
886
|
+
org_id?: string | undefined;
|
|
855
887
|
team_id?: string | undefined;
|
|
856
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
857
888
|
description?: {
|
|
858
889
|
json: Record<string, any>;
|
|
859
890
|
text: string;
|
|
860
891
|
} | null | undefined;
|
|
861
|
-
source?: "api" | "web" | undefined;
|
|
862
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
863
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
864
892
|
parent_id?: string | null | undefined;
|
|
865
893
|
license_id?: string | undefined;
|
|
866
894
|
license?: Record<string, any> | undefined;
|
|
@@ -873,18 +901,12 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
873
901
|
stripe_product_id?: string | null | undefined;
|
|
874
902
|
stripe_price_id?: string | null | undefined;
|
|
875
903
|
stripe_meter_id?: string | null | undefined;
|
|
876
|
-
preview?: Record<string, any>[] | undefined;
|
|
877
|
-
}, {
|
|
878
|
-
asset_type: "dataset";
|
|
879
|
-
last_updated: string;
|
|
880
|
-
org_id?: string | undefined;
|
|
881
|
-
parent?: Record<string, any> | undefined;
|
|
882
904
|
metadata?: {
|
|
883
905
|
table_name: string;
|
|
884
906
|
schema: "datasets";
|
|
885
907
|
columns: string[];
|
|
886
908
|
asset_refs?: Record<string, {
|
|
887
|
-
asset_type?: "
|
|
909
|
+
asset_type?: "organization" | "file" | "user" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
888
910
|
}> | null | undefined;
|
|
889
911
|
doi_url?: string | null | undefined;
|
|
890
912
|
external_url?: string | null | undefined;
|
|
@@ -901,28 +923,6 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
901
923
|
id?: string | undefined;
|
|
902
924
|
bucket?: "public-files" | "files" | undefined;
|
|
903
925
|
} | undefined;
|
|
904
|
-
name?: string | undefined;
|
|
905
|
-
team_id?: string | undefined;
|
|
906
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
907
|
-
description?: {
|
|
908
|
-
json: Record<string, any>;
|
|
909
|
-
text: string;
|
|
910
|
-
} | null | undefined;
|
|
911
|
-
source?: "api" | "web" | undefined;
|
|
912
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
913
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
914
|
-
parent_id?: string | null | undefined;
|
|
915
|
-
license_id?: string | undefined;
|
|
916
|
-
license?: Record<string, any> | undefined;
|
|
917
|
-
name_url_slug?: string | null | undefined;
|
|
918
|
-
price?: number | null | undefined;
|
|
919
|
-
unit_cost?: number | null | undefined;
|
|
920
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
921
|
-
cost_unit?: string | null | undefined;
|
|
922
|
-
price_currency?: "usd" | "btc" | undefined;
|
|
923
|
-
stripe_product_id?: string | null | undefined;
|
|
924
|
-
stripe_price_id?: string | null | undefined;
|
|
925
|
-
stripe_meter_id?: string | null | undefined;
|
|
926
926
|
preview?: Record<string, any>[] | undefined;
|
|
927
927
|
}>>;
|
|
928
928
|
|