@ourofoundation/ouro-js 1.0.7 → 1.1.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/index.d.ts +3 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +177 -1
- package/dist/schema/assets.js +15 -1
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +6 -0
- package/dist/schema/comments.d.ts +6 -0
- package/dist/schema/common.d.ts +21 -0
- package/dist/schema/common.js +7 -0
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +14 -26
- package/dist/schema/datasets.d.ts +12 -0
- package/dist/schema/files.d.ts +12 -0
- package/dist/schema/posts.d.ts +223 -544
- package/dist/schema/posts.js +22 -9
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +6 -0
- package/dist/utils/air/index.d.ts +13 -0
- package/dist/utils/air/index.js +51 -0
- package/dist/utils/air/index.js.map +1 -0
- package/dist/utils/navigate.js +4 -15
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +2 -3
|
@@ -106,6 +106,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
106
106
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
109
110
|
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
110
111
|
name: z.ZodString;
|
|
111
112
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -149,6 +150,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
149
150
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
150
151
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
151
152
|
description?: string | null | undefined;
|
|
153
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
152
154
|
user?: {
|
|
153
155
|
id?: string | undefined;
|
|
154
156
|
user_id?: string | undefined;
|
|
@@ -207,6 +209,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
207
209
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
208
210
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
209
211
|
description?: string | null | undefined;
|
|
212
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
210
213
|
user?: {
|
|
211
214
|
id?: string | undefined;
|
|
212
215
|
user_id?: string | undefined;
|
|
@@ -359,6 +362,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
359
362
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
360
363
|
}>>;
|
|
361
364
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
365
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
362
366
|
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
363
367
|
name: z.ZodString;
|
|
364
368
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -405,6 +409,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
405
409
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
406
410
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
407
411
|
description?: string | null | undefined;
|
|
412
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
408
413
|
user?: {
|
|
409
414
|
id?: string | undefined;
|
|
410
415
|
user_id?: string | undefined;
|
|
@@ -457,6 +462,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
457
462
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
458
463
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
459
464
|
description?: string | null | undefined;
|
|
465
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
460
466
|
user?: {
|
|
461
467
|
id?: string | undefined;
|
|
462
468
|
user_id?: string | undefined;
|
|
@@ -517,6 +523,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
517
523
|
members: string[];
|
|
518
524
|
}>>;
|
|
519
525
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
526
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
520
527
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
521
528
|
id: z.ZodOptional<z.ZodString>;
|
|
522
529
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -578,6 +585,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
578
585
|
members: string[];
|
|
579
586
|
} | undefined;
|
|
580
587
|
description?: string | null | undefined;
|
|
588
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
581
589
|
organization?: {
|
|
582
590
|
id?: string | undefined;
|
|
583
591
|
name?: string | undefined;
|
|
@@ -611,6 +619,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
611
619
|
members: string[];
|
|
612
620
|
} | undefined;
|
|
613
621
|
description?: string | null | undefined;
|
|
622
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
614
623
|
organization?: {
|
|
615
624
|
id?: string | undefined;
|
|
616
625
|
name?: string | undefined;
|
|
@@ -646,28 +655,13 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
646
655
|
viewers: z.ZodArray<z.ZodString, "many">;
|
|
647
656
|
json: z.ZodObject<{
|
|
648
657
|
type: z.ZodLiteral<"doc">;
|
|
649
|
-
content: z.ZodArray<z.
|
|
650
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
651
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
652
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
653
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
654
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
655
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
656
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
657
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
658
|
-
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
658
|
+
content: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
659
659
|
}, "strip", z.ZodTypeAny, {
|
|
660
660
|
type: "doc";
|
|
661
|
-
content:
|
|
662
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
663
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
664
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
661
|
+
content: any[];
|
|
665
662
|
}, {
|
|
666
663
|
type: "doc";
|
|
667
|
-
content:
|
|
668
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
669
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
670
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
664
|
+
content: any[];
|
|
671
665
|
}>;
|
|
672
666
|
text: z.ZodString;
|
|
673
667
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -676,10 +670,7 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
676
670
|
text: string;
|
|
677
671
|
json: {
|
|
678
672
|
type: "doc";
|
|
679
|
-
content:
|
|
680
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
681
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
682
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
673
|
+
content: any[];
|
|
683
674
|
};
|
|
684
675
|
user_id: string;
|
|
685
676
|
created_at: string;
|
|
@@ -692,10 +683,7 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
692
683
|
text: string;
|
|
693
684
|
json: {
|
|
694
685
|
type: "doc";
|
|
695
|
-
content:
|
|
696
|
-
content: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
697
|
-
attrs: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
698
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
686
|
+
content: any[];
|
|
699
687
|
};
|
|
700
688
|
user_id: string;
|
|
701
689
|
created_at: string;
|
|
@@ -106,6 +106,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
106
106
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
109
110
|
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
110
111
|
name: z.ZodString;
|
|
111
112
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -184,6 +185,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
184
185
|
preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
185
186
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
186
187
|
description?: string | null | undefined;
|
|
188
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
187
189
|
user?: {
|
|
188
190
|
id?: string | undefined;
|
|
189
191
|
user_id?: string | undefined;
|
|
@@ -250,6 +252,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
250
252
|
preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
251
253
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
252
254
|
description?: string | null | undefined;
|
|
255
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
253
256
|
user?: {
|
|
254
257
|
id?: string | undefined;
|
|
255
258
|
user_id?: string | undefined;
|
|
@@ -401,6 +404,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
401
404
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
402
405
|
}>>>;
|
|
403
406
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
407
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
404
408
|
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
405
409
|
name: z.ZodOptional<z.ZodString>;
|
|
406
410
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -487,6 +491,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
487
491
|
team_id: string | null;
|
|
488
492
|
preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
489
493
|
description?: string | null | undefined;
|
|
494
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
490
495
|
parent_id?: string | null | undefined;
|
|
491
496
|
name_url_slug?: string | null | undefined;
|
|
492
497
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -514,6 +519,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
514
519
|
state?: "error" | "in-progress" | "success" | "queued" | undefined;
|
|
515
520
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
516
521
|
description?: string | null | undefined;
|
|
522
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
517
523
|
org_id?: string | null | undefined;
|
|
518
524
|
asset_type?: "dataset" | undefined;
|
|
519
525
|
created_at?: string | undefined;
|
|
@@ -636,6 +642,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
636
642
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
637
643
|
}>>>;
|
|
638
644
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
645
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
639
646
|
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
640
647
|
name: z.ZodOptional<z.ZodString>;
|
|
641
648
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -697,6 +704,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
697
704
|
team_id: string | null;
|
|
698
705
|
preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
699
706
|
description?: string | null | undefined;
|
|
707
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
700
708
|
parent_id?: string | null | undefined;
|
|
701
709
|
name_url_slug?: string | null | undefined;
|
|
702
710
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -718,6 +726,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
718
726
|
state?: "error" | "in-progress" | "success" | "queued" | undefined;
|
|
719
727
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
720
728
|
description?: string | null | undefined;
|
|
729
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
721
730
|
org_id?: string | null | undefined;
|
|
722
731
|
asset_type?: "dataset" | undefined;
|
|
723
732
|
created_at?: string | undefined;
|
|
@@ -840,6 +849,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
840
849
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
841
850
|
}>>>;
|
|
842
851
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
852
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
843
853
|
name: z.ZodOptional<z.ZodString>;
|
|
844
854
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
845
855
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -910,6 +920,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
910
920
|
bucket?: "public-files" | "files" | undefined;
|
|
911
921
|
} | undefined;
|
|
912
922
|
description?: string | null | undefined;
|
|
923
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
913
924
|
user?: {
|
|
914
925
|
id?: string | undefined;
|
|
915
926
|
user_id?: string | undefined;
|
|
@@ -972,6 +983,7 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
972
983
|
bucket?: "public-files" | "files" | undefined;
|
|
973
984
|
} | undefined;
|
|
974
985
|
description?: string | null | undefined;
|
|
986
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
975
987
|
user?: {
|
|
976
988
|
id?: string | undefined;
|
|
977
989
|
user_id?: string | undefined;
|
package/dist/schema/files.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
106
106
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
109
110
|
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
110
111
|
name: z.ZodString;
|
|
111
112
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -177,6 +178,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
177
178
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
178
179
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
179
180
|
description?: string | null | undefined;
|
|
181
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
180
182
|
user?: {
|
|
181
183
|
id?: string | undefined;
|
|
182
184
|
user_id?: string | undefined;
|
|
@@ -242,6 +244,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
242
244
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
243
245
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
244
246
|
description?: string | null | undefined;
|
|
247
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
245
248
|
user?: {
|
|
246
249
|
id?: string | undefined;
|
|
247
250
|
user_id?: string | undefined;
|
|
@@ -394,6 +397,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
394
397
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
395
398
|
}>>>;
|
|
396
399
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
400
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
397
401
|
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
398
402
|
name: z.ZodOptional<z.ZodString>;
|
|
399
403
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -474,6 +478,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
474
478
|
last_updated: string;
|
|
475
479
|
team_id: string | null;
|
|
476
480
|
description?: string | null | undefined;
|
|
481
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
477
482
|
parent_id?: string | null | undefined;
|
|
478
483
|
name_url_slug?: string | null | undefined;
|
|
479
484
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -500,6 +505,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
500
505
|
state?: "success" | undefined;
|
|
501
506
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
502
507
|
description?: string | null | undefined;
|
|
508
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
503
509
|
org_id?: string | null | undefined;
|
|
504
510
|
asset_type?: "file" | undefined;
|
|
505
511
|
created_at?: string | undefined;
|
|
@@ -622,6 +628,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
622
628
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
623
629
|
}>>>;
|
|
624
630
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
631
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
625
632
|
asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
626
633
|
name: z.ZodOptional<z.ZodString>;
|
|
627
634
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -674,6 +681,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
674
681
|
last_updated: string;
|
|
675
682
|
team_id: string | null;
|
|
676
683
|
description?: string | null | undefined;
|
|
684
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
677
685
|
parent_id?: string | null | undefined;
|
|
678
686
|
name_url_slug?: string | null | undefined;
|
|
679
687
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -693,6 +701,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
693
701
|
state?: "in-progress" | undefined;
|
|
694
702
|
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
695
703
|
description?: string | null | undefined;
|
|
704
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
696
705
|
org_id?: string | null | undefined;
|
|
697
706
|
asset_type?: "file" | undefined;
|
|
698
707
|
created_at?: string | undefined;
|
|
@@ -816,6 +825,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
816
825
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
817
826
|
}>>>;
|
|
818
827
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
828
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
819
829
|
name: z.ZodOptional<z.ZodString>;
|
|
820
830
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
821
831
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -879,6 +889,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
879
889
|
width?: number | undefined;
|
|
880
890
|
} | undefined;
|
|
881
891
|
description?: string | null | undefined;
|
|
892
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
882
893
|
user?: {
|
|
883
894
|
id?: string | undefined;
|
|
884
895
|
user_id?: string | undefined;
|
|
@@ -941,6 +952,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
941
952
|
width?: number | undefined;
|
|
942
953
|
} | undefined;
|
|
943
954
|
description?: string | null | undefined;
|
|
955
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
944
956
|
user?: {
|
|
945
957
|
id?: string | undefined;
|
|
946
958
|
user_id?: string | undefined;
|