@ourofoundation/ouro-js 3.4.0 → 3.5.1
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-3UWDQLTN.js +2 -0
- package/dist/chunk-3UWDQLTN.js.map +1 -0
- package/dist/chunk-6FG474SV.cjs +2 -0
- package/dist/chunk-6FG474SV.cjs.map +1 -0
- package/dist/{chunk-BQ5WODME.cjs → chunk-6XQFD2Z2.cjs} +2 -2
- package/dist/{chunk-BQ5WODME.cjs.map → chunk-6XQFD2Z2.cjs.map} +1 -1
- package/dist/chunk-DC6TYS3A.cjs +2 -0
- package/dist/chunk-DC6TYS3A.cjs.map +1 -0
- package/dist/chunk-EK5P7FST.js +2 -0
- package/dist/chunk-EK5P7FST.js.map +1 -0
- package/dist/{chunk-QT3A4ULM.cjs → chunk-FRMPLGE4.cjs} +2 -2
- package/dist/{chunk-QT3A4ULM.cjs.map → chunk-FRMPLGE4.cjs.map} +1 -1
- package/dist/{chunk-6YF2RSXS.js → chunk-G3VMEPTP.js} +2 -2
- package/dist/{chunk-6YF2RSXS.js.map → chunk-G3VMEPTP.js.map} +1 -1
- package/dist/chunk-HN7Y7VMJ.cjs +2 -0
- package/dist/chunk-HN7Y7VMJ.cjs.map +1 -0
- package/dist/chunk-M2JJPDBW.js +2 -0
- package/dist/chunk-M2JJPDBW.js.map +1 -0
- package/dist/chunk-NJQ5YWYJ.cjs +2 -0
- package/dist/{chunk-NEINJFFK.cjs.map → chunk-NJQ5YWYJ.cjs.map} +1 -1
- package/dist/chunk-OBWPO2QT.cjs +2 -0
- package/dist/chunk-OBWPO2QT.cjs.map +1 -0
- package/dist/chunk-OFDJA6ZW.cjs +2 -0
- package/dist/chunk-OFDJA6ZW.cjs.map +1 -0
- package/dist/chunk-OS542EYD.js +2 -0
- package/dist/chunk-OS542EYD.js.map +1 -0
- package/dist/{chunk-IP4OVRZB.cjs → chunk-ROMY5WNQ.cjs} +2 -2
- package/dist/chunk-ROMY5WNQ.cjs.map +1 -0
- package/dist/chunk-SR5UZ4NP.js +2 -0
- package/dist/chunk-SR5UZ4NP.js.map +1 -0
- package/dist/{chunk-B4225TEG.js → chunk-VJJLRHOX.js} +2 -2
- package/dist/{chunk-B4225TEG.js.map → chunk-VJJLRHOX.js.map} +1 -1
- package/dist/chunk-W5UCZ73B.js +2 -0
- package/dist/chunk-W5UCZ73B.js.map +1 -0
- package/dist/{chunk-BFBGVGNF.js → chunk-XQQVHVWP.js} +2 -2
- package/dist/{chunk-BFBGVGNF.js.map → chunk-XQQVHVWP.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +1 -0
- package/dist/schema/assets.d.ts +1 -0
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +4 -0
- package/dist/schema/comments.d.ts +4 -0
- package/dist/schema/comments.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +1 -0
- package/dist/schema/conversations.d.ts +1 -0
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +177 -1
- package/dist/schema/datasets.d.ts +177 -1
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +4 -0
- package/dist/schema/files.d.ts +4 -0
- package/dist/schema/files.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +7 -2
- package/dist/schema/posts.d.ts +7 -2
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +410 -29
- package/dist/schema/quests.d.ts +410 -29
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +124 -5
- package/dist/schema/services.d.ts +124 -5
- package/dist/schema/services.js +1 -1
- package/dist/utils/quest-submission.cjs +2 -0
- package/dist/utils/quest-submission.cjs.map +1 -0
- package/dist/utils/quest-submission.d.cts +134 -0
- package/dist/utils/quest-submission.d.ts +134 -0
- package/dist/utils/quest-submission.js +2 -0
- package/dist/utils/quest-submission.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-36UOEIZN.js +0 -2
- package/dist/chunk-36UOEIZN.js.map +0 -1
- package/dist/chunk-4KDHR4VP.js +0 -2
- package/dist/chunk-4KDHR4VP.js.map +0 -1
- package/dist/chunk-G2MXCB7Q.js +0 -2
- package/dist/chunk-G2MXCB7Q.js.map +0 -1
- package/dist/chunk-IP4OVRZB.cjs.map +0 -1
- package/dist/chunk-IU7AKVYI.cjs +0 -2
- package/dist/chunk-IU7AKVYI.cjs.map +0 -1
- package/dist/chunk-MH4A7XAY.cjs +0 -2
- package/dist/chunk-MH4A7XAY.cjs.map +0 -1
- package/dist/chunk-NEINJFFK.cjs +0 -2
- package/dist/chunk-NRZCTFCQ.cjs +0 -2
- package/dist/chunk-NRZCTFCQ.cjs.map +0 -1
- package/dist/chunk-U3F23ASS.js +0 -2
- package/dist/chunk-U3F23ASS.js.map +0 -1
- package/dist/chunk-WUC5AUUJ.cjs +0 -2
- package/dist/chunk-WUC5AUUJ.cjs.map +0 -1
- package/dist/chunk-Y6AKG4FJ.js +0 -2
- package/dist/chunk-Y6AKG4FJ.js.map +0 -1
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Per-column asset reference declarations.
|
|
5
|
+
*
|
|
6
|
+
* A column becomes an asset reference when the backend adds a real Postgres FK
|
|
7
|
+
* to public.assets(id). The optional asset_type refines validation/display.
|
|
8
|
+
*/
|
|
9
|
+
declare const DatasetAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
user: "user";
|
|
12
|
+
organization: "organization";
|
|
13
|
+
team: "team";
|
|
14
|
+
dataset: "dataset";
|
|
15
|
+
file: "file";
|
|
16
|
+
service: "service";
|
|
17
|
+
route: "route";
|
|
18
|
+
post: "post";
|
|
19
|
+
quest: "quest";
|
|
20
|
+
comment: "comment";
|
|
21
|
+
conversation: "conversation";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
/**
|
|
25
|
+
* A single column from GET /datasets/:id/schema, enriched server-side.
|
|
26
|
+
*
|
|
27
|
+
* The FK fields come straight from get_table_schema. `semantic_type` is pure
|
|
28
|
+
* inference: "asset_ref" when the column has an FK to public.assets. The
|
|
29
|
+
* optional `asset_type` is the declared target-type hint from
|
|
30
|
+
* metadata.asset_refs (display + soft validation only).
|
|
31
|
+
*/
|
|
32
|
+
declare const EnrichedDatasetSchemaFieldSchema: z.ZodObject<{
|
|
33
|
+
column_name: z.ZodString;
|
|
34
|
+
data_type: z.ZodString;
|
|
35
|
+
fk_constraint_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
foreign_table_schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
foreign_table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
foreign_column_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
semantic_type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"asset_ref">>>;
|
|
40
|
+
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
+
user: "user";
|
|
42
|
+
organization: "organization";
|
|
43
|
+
team: "team";
|
|
44
|
+
dataset: "dataset";
|
|
45
|
+
file: "file";
|
|
46
|
+
service: "service";
|
|
47
|
+
route: "route";
|
|
48
|
+
post: "post";
|
|
49
|
+
quest: "quest";
|
|
50
|
+
comment: "comment";
|
|
51
|
+
conversation: "conversation";
|
|
52
|
+
}>>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
/**
|
|
55
|
+
* A resolved asset reference returned in the `resolved_asset_refs` sidecar of
|
|
56
|
+
* GET /datasets/:id/data?resolve_asset_refs=true. Reuses the platform-wide
|
|
57
|
+
* { asset_id, asset_type } vocabulary (see KeyedAssetRefsSchema).
|
|
58
|
+
*/
|
|
59
|
+
declare const ResolvedAssetRefSchema: z.ZodObject<{
|
|
60
|
+
asset_id: z.ZodUUID;
|
|
61
|
+
asset_type: z.ZodEnum<{
|
|
62
|
+
user: "user";
|
|
63
|
+
organization: "organization";
|
|
64
|
+
team: "team";
|
|
65
|
+
dataset: "dataset";
|
|
66
|
+
file: "file";
|
|
67
|
+
service: "service";
|
|
68
|
+
route: "route";
|
|
69
|
+
post: "post";
|
|
70
|
+
quest: "quest";
|
|
71
|
+
comment: "comment";
|
|
72
|
+
conversation: "conversation";
|
|
73
|
+
}>;
|
|
74
|
+
name: z.ZodNullable<z.ZodString>;
|
|
75
|
+
web_url: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** column -> (referenced uuid -> resolved asset). */
|
|
78
|
+
declare const ResolvedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79
|
+
asset_id: z.ZodUUID;
|
|
80
|
+
asset_type: z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
organization: "organization";
|
|
83
|
+
team: "team";
|
|
84
|
+
dataset: "dataset";
|
|
85
|
+
file: "file";
|
|
86
|
+
service: "service";
|
|
87
|
+
route: "route";
|
|
88
|
+
post: "post";
|
|
89
|
+
quest: "quest";
|
|
90
|
+
comment: "comment";
|
|
91
|
+
conversation: "conversation";
|
|
92
|
+
}>;
|
|
93
|
+
name: z.ZodNullable<z.ZodString>;
|
|
94
|
+
web_url: z.ZodNullable<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
3
96
|
declare const DatasetSchema: z.ZodObject<{
|
|
4
97
|
id: z.ZodUUID;
|
|
5
98
|
user_id: z.ZodUUID;
|
|
@@ -218,6 +311,7 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
218
311
|
api: "api";
|
|
219
312
|
web: "web";
|
|
220
313
|
}>;
|
|
314
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
221
315
|
created_at: z.ZodString;
|
|
222
316
|
last_updated: z.ZodString;
|
|
223
317
|
asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
|
|
@@ -225,6 +319,21 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
225
319
|
table_name: z.ZodString;
|
|
226
320
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
227
321
|
columns: z.ZodArray<z.ZodString>;
|
|
322
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
323
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
user: "user";
|
|
325
|
+
organization: "organization";
|
|
326
|
+
team: "team";
|
|
327
|
+
dataset: "dataset";
|
|
328
|
+
file: "file";
|
|
329
|
+
service: "service";
|
|
330
|
+
route: "route";
|
|
331
|
+
post: "post";
|
|
332
|
+
quest: "quest";
|
|
333
|
+
comment: "comment";
|
|
334
|
+
conversation: "conversation";
|
|
335
|
+
}>>;
|
|
336
|
+
}, z.core.$strip>>>>;
|
|
228
337
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
229
338
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
230
339
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -306,6 +415,21 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
306
415
|
table_name: z.ZodString;
|
|
307
416
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
308
417
|
columns: z.ZodArray<z.ZodString>;
|
|
418
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
419
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
420
|
+
user: "user";
|
|
421
|
+
organization: "organization";
|
|
422
|
+
team: "team";
|
|
423
|
+
dataset: "dataset";
|
|
424
|
+
file: "file";
|
|
425
|
+
service: "service";
|
|
426
|
+
route: "route";
|
|
427
|
+
post: "post";
|
|
428
|
+
quest: "quest";
|
|
429
|
+
comment: "comment";
|
|
430
|
+
conversation: "conversation";
|
|
431
|
+
}>>;
|
|
432
|
+
}, z.core.$strip>>>>;
|
|
309
433
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
310
434
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
311
435
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -351,6 +475,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
351
475
|
name: string;
|
|
352
476
|
id: string;
|
|
353
477
|
bucket: "public-files" | "files";
|
|
478
|
+
asset_refs?: Record<string, {
|
|
479
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
480
|
+
}> | null | undefined;
|
|
354
481
|
doi_url?: string | null | undefined;
|
|
355
482
|
external_url?: string | null | undefined;
|
|
356
483
|
paper_url?: string | null | undefined;
|
|
@@ -399,6 +526,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
399
526
|
name: string;
|
|
400
527
|
id: string;
|
|
401
528
|
bucket: "public-files" | "files";
|
|
529
|
+
asset_refs?: Record<string, {
|
|
530
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
531
|
+
}> | null | undefined;
|
|
402
532
|
doi_url?: string | null | undefined;
|
|
403
533
|
external_url?: string | null | undefined;
|
|
404
534
|
paper_url?: string | null | undefined;
|
|
@@ -483,6 +613,21 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
483
613
|
table_name: z.ZodString;
|
|
484
614
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
485
615
|
columns: z.ZodArray<z.ZodString>;
|
|
616
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
617
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
user: "user";
|
|
619
|
+
organization: "organization";
|
|
620
|
+
team: "team";
|
|
621
|
+
dataset: "dataset";
|
|
622
|
+
file: "file";
|
|
623
|
+
service: "service";
|
|
624
|
+
route: "route";
|
|
625
|
+
post: "post";
|
|
626
|
+
quest: "quest";
|
|
627
|
+
comment: "comment";
|
|
628
|
+
conversation: "conversation";
|
|
629
|
+
}>>;
|
|
630
|
+
}, z.core.$strip>>>>;
|
|
486
631
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
487
632
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
488
633
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -511,6 +656,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
511
656
|
table_name: string;
|
|
512
657
|
schema: "datasets";
|
|
513
658
|
columns: string[];
|
|
659
|
+
asset_refs?: Record<string, {
|
|
660
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
661
|
+
}> | null | undefined;
|
|
514
662
|
doi_url?: string | null | undefined;
|
|
515
663
|
external_url?: string | null | undefined;
|
|
516
664
|
paper_url?: string | null | undefined;
|
|
@@ -552,6 +700,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
552
700
|
table_name: string;
|
|
553
701
|
schema: "datasets";
|
|
554
702
|
columns: string[];
|
|
703
|
+
asset_refs?: Record<string, {
|
|
704
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
705
|
+
}> | null | undefined;
|
|
555
706
|
doi_url?: string | null | undefined;
|
|
556
707
|
external_url?: string | null | undefined;
|
|
557
708
|
paper_url?: string | null | undefined;
|
|
@@ -586,6 +737,21 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
586
737
|
table_name: z.ZodString;
|
|
587
738
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
588
739
|
columns: z.ZodArray<z.ZodString>;
|
|
740
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
741
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
742
|
+
user: "user";
|
|
743
|
+
organization: "organization";
|
|
744
|
+
team: "team";
|
|
745
|
+
dataset: "dataset";
|
|
746
|
+
file: "file";
|
|
747
|
+
service: "service";
|
|
748
|
+
route: "route";
|
|
749
|
+
post: "post";
|
|
750
|
+
quest: "quest";
|
|
751
|
+
comment: "comment";
|
|
752
|
+
conversation: "conversation";
|
|
753
|
+
}>>;
|
|
754
|
+
}, z.core.$strip>>>>;
|
|
589
755
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
590
756
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
591
757
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -667,6 +833,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
667
833
|
table_name: string;
|
|
668
834
|
schema: "datasets";
|
|
669
835
|
columns: string[];
|
|
836
|
+
asset_refs?: Record<string, {
|
|
837
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
838
|
+
}> | null | undefined;
|
|
670
839
|
doi_url?: string | null | undefined;
|
|
671
840
|
external_url?: string | null | undefined;
|
|
672
841
|
paper_url?: string | null | undefined;
|
|
@@ -714,6 +883,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
714
883
|
table_name: string;
|
|
715
884
|
schema: "datasets";
|
|
716
885
|
columns: string[];
|
|
886
|
+
asset_refs?: Record<string, {
|
|
887
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
888
|
+
}> | null | undefined;
|
|
717
889
|
doi_url?: string | null | undefined;
|
|
718
890
|
external_url?: string | null | undefined;
|
|
719
891
|
paper_url?: string | null | undefined;
|
|
@@ -758,5 +930,9 @@ type Dataset = z.infer<typeof DatasetSchema>;
|
|
|
758
930
|
type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;
|
|
759
931
|
type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;
|
|
760
932
|
type UpdateDataset = z.infer<typeof updateDatasetSchema>;
|
|
933
|
+
type DatasetAssetRefs = z.infer<typeof DatasetAssetRefsSchema>;
|
|
934
|
+
type EnrichedDatasetSchemaField = z.infer<typeof EnrichedDatasetSchemaFieldSchema>;
|
|
935
|
+
type ResolvedAssetRef = z.infer<typeof ResolvedAssetRefSchema>;
|
|
936
|
+
type ResolvedAssetRefs = z.infer<typeof ResolvedAssetRefsSchema>;
|
|
761
937
|
|
|
762
|
-
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type Dataset, DatasetSchema, type UpdateDataset, updateDatasetSchema };
|
|
938
|
+
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type Dataset, type DatasetAssetRefs, DatasetAssetRefsSchema, DatasetSchema, type EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, type ResolvedAssetRef, ResolvedAssetRefSchema, type ResolvedAssetRefs, ResolvedAssetRefsSchema, type UpdateDataset, updateDatasetSchema };
|
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Per-column asset reference declarations.
|
|
5
|
+
*
|
|
6
|
+
* A column becomes an asset reference when the backend adds a real Postgres FK
|
|
7
|
+
* to public.assets(id). The optional asset_type refines validation/display.
|
|
8
|
+
*/
|
|
9
|
+
declare const DatasetAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
user: "user";
|
|
12
|
+
organization: "organization";
|
|
13
|
+
team: "team";
|
|
14
|
+
dataset: "dataset";
|
|
15
|
+
file: "file";
|
|
16
|
+
service: "service";
|
|
17
|
+
route: "route";
|
|
18
|
+
post: "post";
|
|
19
|
+
quest: "quest";
|
|
20
|
+
comment: "comment";
|
|
21
|
+
conversation: "conversation";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
/**
|
|
25
|
+
* A single column from GET /datasets/:id/schema, enriched server-side.
|
|
26
|
+
*
|
|
27
|
+
* The FK fields come straight from get_table_schema. `semantic_type` is pure
|
|
28
|
+
* inference: "asset_ref" when the column has an FK to public.assets. The
|
|
29
|
+
* optional `asset_type` is the declared target-type hint from
|
|
30
|
+
* metadata.asset_refs (display + soft validation only).
|
|
31
|
+
*/
|
|
32
|
+
declare const EnrichedDatasetSchemaFieldSchema: z.ZodObject<{
|
|
33
|
+
column_name: z.ZodString;
|
|
34
|
+
data_type: z.ZodString;
|
|
35
|
+
fk_constraint_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
foreign_table_schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
foreign_table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
foreign_column_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
semantic_type: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"asset_ref">>>;
|
|
40
|
+
asset_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
+
user: "user";
|
|
42
|
+
organization: "organization";
|
|
43
|
+
team: "team";
|
|
44
|
+
dataset: "dataset";
|
|
45
|
+
file: "file";
|
|
46
|
+
service: "service";
|
|
47
|
+
route: "route";
|
|
48
|
+
post: "post";
|
|
49
|
+
quest: "quest";
|
|
50
|
+
comment: "comment";
|
|
51
|
+
conversation: "conversation";
|
|
52
|
+
}>>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
/**
|
|
55
|
+
* A resolved asset reference returned in the `resolved_asset_refs` sidecar of
|
|
56
|
+
* GET /datasets/:id/data?resolve_asset_refs=true. Reuses the platform-wide
|
|
57
|
+
* { asset_id, asset_type } vocabulary (see KeyedAssetRefsSchema).
|
|
58
|
+
*/
|
|
59
|
+
declare const ResolvedAssetRefSchema: z.ZodObject<{
|
|
60
|
+
asset_id: z.ZodUUID;
|
|
61
|
+
asset_type: z.ZodEnum<{
|
|
62
|
+
user: "user";
|
|
63
|
+
organization: "organization";
|
|
64
|
+
team: "team";
|
|
65
|
+
dataset: "dataset";
|
|
66
|
+
file: "file";
|
|
67
|
+
service: "service";
|
|
68
|
+
route: "route";
|
|
69
|
+
post: "post";
|
|
70
|
+
quest: "quest";
|
|
71
|
+
comment: "comment";
|
|
72
|
+
conversation: "conversation";
|
|
73
|
+
}>;
|
|
74
|
+
name: z.ZodNullable<z.ZodString>;
|
|
75
|
+
web_url: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** column -> (referenced uuid -> resolved asset). */
|
|
78
|
+
declare const ResolvedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79
|
+
asset_id: z.ZodUUID;
|
|
80
|
+
asset_type: z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
organization: "organization";
|
|
83
|
+
team: "team";
|
|
84
|
+
dataset: "dataset";
|
|
85
|
+
file: "file";
|
|
86
|
+
service: "service";
|
|
87
|
+
route: "route";
|
|
88
|
+
post: "post";
|
|
89
|
+
quest: "quest";
|
|
90
|
+
comment: "comment";
|
|
91
|
+
conversation: "conversation";
|
|
92
|
+
}>;
|
|
93
|
+
name: z.ZodNullable<z.ZodString>;
|
|
94
|
+
web_url: z.ZodNullable<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
3
96
|
declare const DatasetSchema: z.ZodObject<{
|
|
4
97
|
id: z.ZodUUID;
|
|
5
98
|
user_id: z.ZodUUID;
|
|
@@ -218,6 +311,7 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
218
311
|
api: "api";
|
|
219
312
|
web: "web";
|
|
220
313
|
}>;
|
|
314
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
221
315
|
created_at: z.ZodString;
|
|
222
316
|
last_updated: z.ZodString;
|
|
223
317
|
asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
|
|
@@ -225,6 +319,21 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
225
319
|
table_name: z.ZodString;
|
|
226
320
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
227
321
|
columns: z.ZodArray<z.ZodString>;
|
|
322
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
323
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
user: "user";
|
|
325
|
+
organization: "organization";
|
|
326
|
+
team: "team";
|
|
327
|
+
dataset: "dataset";
|
|
328
|
+
file: "file";
|
|
329
|
+
service: "service";
|
|
330
|
+
route: "route";
|
|
331
|
+
post: "post";
|
|
332
|
+
quest: "quest";
|
|
333
|
+
comment: "comment";
|
|
334
|
+
conversation: "conversation";
|
|
335
|
+
}>>;
|
|
336
|
+
}, z.core.$strip>>>>;
|
|
228
337
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
229
338
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
230
339
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -306,6 +415,21 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
306
415
|
table_name: z.ZodString;
|
|
307
416
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
308
417
|
columns: z.ZodArray<z.ZodString>;
|
|
418
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
419
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
420
|
+
user: "user";
|
|
421
|
+
organization: "organization";
|
|
422
|
+
team: "team";
|
|
423
|
+
dataset: "dataset";
|
|
424
|
+
file: "file";
|
|
425
|
+
service: "service";
|
|
426
|
+
route: "route";
|
|
427
|
+
post: "post";
|
|
428
|
+
quest: "quest";
|
|
429
|
+
comment: "comment";
|
|
430
|
+
conversation: "conversation";
|
|
431
|
+
}>>;
|
|
432
|
+
}, z.core.$strip>>>>;
|
|
309
433
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
310
434
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
311
435
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -351,6 +475,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
351
475
|
name: string;
|
|
352
476
|
id: string;
|
|
353
477
|
bucket: "public-files" | "files";
|
|
478
|
+
asset_refs?: Record<string, {
|
|
479
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
480
|
+
}> | null | undefined;
|
|
354
481
|
doi_url?: string | null | undefined;
|
|
355
482
|
external_url?: string | null | undefined;
|
|
356
483
|
paper_url?: string | null | undefined;
|
|
@@ -399,6 +526,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
399
526
|
name: string;
|
|
400
527
|
id: string;
|
|
401
528
|
bucket: "public-files" | "files";
|
|
529
|
+
asset_refs?: Record<string, {
|
|
530
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
531
|
+
}> | null | undefined;
|
|
402
532
|
doi_url?: string | null | undefined;
|
|
403
533
|
external_url?: string | null | undefined;
|
|
404
534
|
paper_url?: string | null | undefined;
|
|
@@ -483,6 +613,21 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
483
613
|
table_name: z.ZodString;
|
|
484
614
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
485
615
|
columns: z.ZodArray<z.ZodString>;
|
|
616
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
617
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
user: "user";
|
|
619
|
+
organization: "organization";
|
|
620
|
+
team: "team";
|
|
621
|
+
dataset: "dataset";
|
|
622
|
+
file: "file";
|
|
623
|
+
service: "service";
|
|
624
|
+
route: "route";
|
|
625
|
+
post: "post";
|
|
626
|
+
quest: "quest";
|
|
627
|
+
comment: "comment";
|
|
628
|
+
conversation: "conversation";
|
|
629
|
+
}>>;
|
|
630
|
+
}, z.core.$strip>>>>;
|
|
486
631
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
487
632
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
488
633
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -511,6 +656,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
511
656
|
table_name: string;
|
|
512
657
|
schema: "datasets";
|
|
513
658
|
columns: string[];
|
|
659
|
+
asset_refs?: Record<string, {
|
|
660
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
661
|
+
}> | null | undefined;
|
|
514
662
|
doi_url?: string | null | undefined;
|
|
515
663
|
external_url?: string | null | undefined;
|
|
516
664
|
paper_url?: string | null | undefined;
|
|
@@ -552,6 +700,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
552
700
|
table_name: string;
|
|
553
701
|
schema: "datasets";
|
|
554
702
|
columns: string[];
|
|
703
|
+
asset_refs?: Record<string, {
|
|
704
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
705
|
+
}> | null | undefined;
|
|
555
706
|
doi_url?: string | null | undefined;
|
|
556
707
|
external_url?: string | null | undefined;
|
|
557
708
|
paper_url?: string | null | undefined;
|
|
@@ -586,6 +737,21 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
586
737
|
table_name: z.ZodString;
|
|
587
738
|
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
588
739
|
columns: z.ZodArray<z.ZodString>;
|
|
740
|
+
asset_refs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
741
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
742
|
+
user: "user";
|
|
743
|
+
organization: "organization";
|
|
744
|
+
team: "team";
|
|
745
|
+
dataset: "dataset";
|
|
746
|
+
file: "file";
|
|
747
|
+
service: "service";
|
|
748
|
+
route: "route";
|
|
749
|
+
post: "post";
|
|
750
|
+
quest: "quest";
|
|
751
|
+
comment: "comment";
|
|
752
|
+
conversation: "conversation";
|
|
753
|
+
}>>;
|
|
754
|
+
}, z.core.$strip>>>>;
|
|
589
755
|
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
590
756
|
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
591
757
|
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -667,6 +833,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
667
833
|
table_name: string;
|
|
668
834
|
schema: "datasets";
|
|
669
835
|
columns: string[];
|
|
836
|
+
asset_refs?: Record<string, {
|
|
837
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
838
|
+
}> | null | undefined;
|
|
670
839
|
doi_url?: string | null | undefined;
|
|
671
840
|
external_url?: string | null | undefined;
|
|
672
841
|
paper_url?: string | null | undefined;
|
|
@@ -714,6 +883,9 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
714
883
|
table_name: string;
|
|
715
884
|
schema: "datasets";
|
|
716
885
|
columns: string[];
|
|
886
|
+
asset_refs?: Record<string, {
|
|
887
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | undefined;
|
|
888
|
+
}> | null | undefined;
|
|
717
889
|
doi_url?: string | null | undefined;
|
|
718
890
|
external_url?: string | null | undefined;
|
|
719
891
|
paper_url?: string | null | undefined;
|
|
@@ -758,5 +930,9 @@ type Dataset = z.infer<typeof DatasetSchema>;
|
|
|
758
930
|
type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;
|
|
759
931
|
type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;
|
|
760
932
|
type UpdateDataset = z.infer<typeof updateDatasetSchema>;
|
|
933
|
+
type DatasetAssetRefs = z.infer<typeof DatasetAssetRefsSchema>;
|
|
934
|
+
type EnrichedDatasetSchemaField = z.infer<typeof EnrichedDatasetSchemaFieldSchema>;
|
|
935
|
+
type ResolvedAssetRef = z.infer<typeof ResolvedAssetRefSchema>;
|
|
936
|
+
type ResolvedAssetRefs = z.infer<typeof ResolvedAssetRefsSchema>;
|
|
761
937
|
|
|
762
|
-
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type Dataset, DatasetSchema, type UpdateDataset, updateDatasetSchema };
|
|
938
|
+
export { CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, type CreateFromFileDataset, type CreateFromSchemaDataset, type Dataset, type DatasetAssetRefs, DatasetAssetRefsSchema, DatasetSchema, type EnrichedDatasetSchemaField, EnrichedDatasetSchemaFieldSchema, type ResolvedAssetRef, ResolvedAssetRefSchema, type ResolvedAssetRefs, ResolvedAssetRefsSchema, type UpdateDataset, updateDatasetSchema };
|
package/dist/schema/datasets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f as CreateDatasetFromFileSchema,g as CreateDatasetFromSchemaSchema,a as DatasetAssetRefsSchema,e as DatasetSchema,b as EnrichedDatasetSchemaFieldSchema,c as ResolvedAssetRefSchema,d as ResolvedAssetRefsSchema,h as updateDatasetSchema}from'../chunk-3UWDQLTN.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=datasets.js.map
|
|
2
2
|
//# sourceMappingURL=datasets.js.map
|
package/dist/schema/files.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6XQFD2Z2_cjs=require('../chunk-6XQFD2Z2.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,"CreateFileSchema",{enumerable:true,get:function(){return chunk6XQFD2Z2_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunk6XQFD2Z2_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunk6XQFD2Z2_cjs.c}});//# sourceMappingURL=files.cjs.map
|
|
2
2
|
//# sourceMappingURL=files.cjs.map
|
package/dist/schema/files.d.cts
CHANGED
|
@@ -219,6 +219,7 @@ declare const FileSchema: z.ZodObject<{
|
|
|
219
219
|
api: "api";
|
|
220
220
|
web: "web";
|
|
221
221
|
}>;
|
|
222
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
223
|
created_at: z.ZodString;
|
|
223
224
|
last_updated: z.ZodString;
|
|
224
225
|
asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
|
|
@@ -633,6 +634,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
633
634
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
634
635
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
635
636
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
637
|
+
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
636
638
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
637
639
|
}, z.core.$strip>, z.ZodTransform<{
|
|
638
640
|
last_updated: string;
|
|
@@ -680,6 +682,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
680
682
|
stripe_price_id?: string | null | undefined;
|
|
681
683
|
stripe_meter_id?: string | null | undefined;
|
|
682
684
|
preview?: Record<string, any>[] | null | undefined;
|
|
685
|
+
is_pinned_in_team?: boolean | undefined;
|
|
683
686
|
}, {
|
|
684
687
|
last_updated: string;
|
|
685
688
|
asset_type?: "file" | undefined;
|
|
@@ -726,6 +729,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
726
729
|
stripe_price_id?: string | null | undefined;
|
|
727
730
|
stripe_meter_id?: string | null | undefined;
|
|
728
731
|
preview?: Record<string, any>[] | null | undefined;
|
|
732
|
+
is_pinned_in_team?: boolean | undefined;
|
|
729
733
|
}>>;
|
|
730
734
|
|
|
731
735
|
type File = z.infer<typeof FileSchema>;
|
package/dist/schema/files.d.ts
CHANGED
|
@@ -219,6 +219,7 @@ declare const FileSchema: z.ZodObject<{
|
|
|
219
219
|
api: "api";
|
|
220
220
|
web: "web";
|
|
221
221
|
}>;
|
|
222
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
223
|
created_at: z.ZodString;
|
|
223
224
|
last_updated: z.ZodString;
|
|
224
225
|
asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
|
|
@@ -633,6 +634,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
633
634
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
634
635
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
635
636
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
637
|
+
is_pinned_in_team: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
636
638
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
637
639
|
}, z.core.$strip>, z.ZodTransform<{
|
|
638
640
|
last_updated: string;
|
|
@@ -680,6 +682,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
680
682
|
stripe_price_id?: string | null | undefined;
|
|
681
683
|
stripe_meter_id?: string | null | undefined;
|
|
682
684
|
preview?: Record<string, any>[] | null | undefined;
|
|
685
|
+
is_pinned_in_team?: boolean | undefined;
|
|
683
686
|
}, {
|
|
684
687
|
last_updated: string;
|
|
685
688
|
asset_type?: "file" | undefined;
|
|
@@ -726,6 +729,7 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
726
729
|
stripe_price_id?: string | null | undefined;
|
|
727
730
|
stripe_meter_id?: string | null | undefined;
|
|
728
731
|
preview?: Record<string, any>[] | null | undefined;
|
|
732
|
+
is_pinned_in_team?: boolean | undefined;
|
|
729
733
|
}>>;
|
|
730
734
|
|
|
731
735
|
type File = z.infer<typeof FileSchema>;
|
package/dist/schema/files.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-
|
|
1
|
+
export{b as CreateFileSchema,a as FileSchema,c as updateFileSchema}from'../chunk-VJJLRHOX.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=files.js.map
|
|
2
2
|
//# sourceMappingURL=files.js.map
|
package/dist/schema/posts.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkDC6TYS3A_cjs=require('../chunk-DC6TYS3A.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,"ContentSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.b}});Object.defineProperty(exports,"CreatePostSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.d}});Object.defineProperty(exports,"ListPostsSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.g}});Object.defineProperty(exports,"PostSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.c}});Object.defineProperty(exports,"ReadPostSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.e}});Object.defineProperty(exports,"ReadPostsSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.f}});Object.defineProperty(exports,"TipTapSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.a}});Object.defineProperty(exports,"UpdatePostSchema",{enumerable:true,get:function(){return chunkDC6TYS3A_cjs.h}});//# sourceMappingURL=posts.cjs.map
|
|
2
2
|
//# sourceMappingURL=posts.cjs.map
|