@ourofoundation/ouro-js 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +13 -7
- package/dist/schema/assets.js +2 -0
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +21 -15
- package/dist/schema/comments.d.ts +15 -9
- package/dist/schema/common.d.ts +34 -13
- package/dist/schema/common.js +10 -3
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +27 -39
- package/dist/schema/datasets.d.ts +24 -12
- package/dist/schema/files.d.ts +25 -13
- package/dist/schema/notifications.d.ts +7 -7
- package/dist/schema/posts.d.ts +114 -524
- package/dist/schema/posts.js +15 -7
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +21 -15
- 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 +1 -1
|
@@ -106,7 +106,8 @@ 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
|
-
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
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>>;
|
|
112
113
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -132,7 +133,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
132
133
|
}, {
|
|
133
134
|
members: string[];
|
|
134
135
|
}>;
|
|
135
|
-
asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
136
|
+
asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
136
137
|
}>, "strip", z.ZodTypeAny, {
|
|
137
138
|
id: string;
|
|
138
139
|
name: string;
|
|
@@ -142,13 +143,14 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
142
143
|
};
|
|
143
144
|
user_id: string;
|
|
144
145
|
org_id: string;
|
|
145
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
146
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
146
147
|
created_at: string;
|
|
147
148
|
last_updated: string;
|
|
148
149
|
team_id: string;
|
|
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;
|
|
@@ -231,7 +234,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
231
234
|
}[] | null | undefined;
|
|
232
235
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
233
236
|
} | undefined;
|
|
234
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
235
237
|
team?: {
|
|
236
238
|
id?: string | undefined;
|
|
237
239
|
name?: string | undefined;
|
|
@@ -241,6 +243,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
241
243
|
created_at?: string | undefined;
|
|
242
244
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
243
245
|
} | undefined;
|
|
246
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
244
247
|
parent_id?: string | null | undefined;
|
|
245
248
|
name_url_slug?: string | null | undefined;
|
|
246
249
|
slug?: string | null | undefined;
|
|
@@ -359,7 +362,8 @@ 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>>;
|
|
362
|
-
|
|
365
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
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>>;
|
|
365
369
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -385,7 +389,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
385
389
|
}, {
|
|
386
390
|
members: string[];
|
|
387
391
|
}>;
|
|
388
|
-
asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
392
|
+
asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
389
393
|
}>, "user_id" | "org_id" | "created_at" | "last_updated" | "team_id">, {
|
|
390
394
|
id: z.ZodDefault<z.ZodString>;
|
|
391
395
|
org_id: z.ZodDefault<z.ZodString>;
|
|
@@ -400,11 +404,12 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
400
404
|
members: string[];
|
|
401
405
|
};
|
|
402
406
|
org_id: string;
|
|
403
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
407
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
404
408
|
team_id: string;
|
|
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;
|
|
@@ -481,9 +487,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
481
487
|
}[] | null | undefined;
|
|
482
488
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
483
489
|
} | undefined;
|
|
484
|
-
org_id?: string | undefined;
|
|
485
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
486
|
-
team_id?: string | undefined;
|
|
487
490
|
team?: {
|
|
488
491
|
id?: string | undefined;
|
|
489
492
|
name?: string | undefined;
|
|
@@ -493,6 +496,9 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
493
496
|
created_at?: string | undefined;
|
|
494
497
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
495
498
|
} | undefined;
|
|
499
|
+
org_id?: string | undefined;
|
|
500
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
501
|
+
team_id?: string | undefined;
|
|
496
502
|
parent_id?: string | null | undefined;
|
|
497
503
|
name_url_slug?: string | null | undefined;
|
|
498
504
|
slug?: string | null | 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>;
|
|
@@ -558,7 +565,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
558
565
|
}[] | null | undefined;
|
|
559
566
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
560
567
|
}>>>;
|
|
561
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
|
|
568
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
|
|
562
569
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
563
570
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
564
571
|
slug: z.ZodOptional<z.ZodNullable<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;
|
|
@@ -591,7 +599,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
591
599
|
}[] | null | undefined;
|
|
592
600
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
593
601
|
} | undefined;
|
|
594
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
602
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
595
603
|
parent_id?: string | null | undefined;
|
|
596
604
|
name_url_slug?: string | null | undefined;
|
|
597
605
|
slug?: string | null | 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;
|
|
@@ -624,7 +633,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
624
633
|
}[] | null | undefined;
|
|
625
634
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
626
635
|
} | undefined;
|
|
627
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
636
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
628
637
|
parent_id?: string | null | undefined;
|
|
629
638
|
name_url_slug?: string | null | undefined;
|
|
630
639
|
slug?: string | null | 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,7 +106,8 @@ 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
|
-
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
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>>;
|
|
112
113
|
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;
|
|
@@ -274,7 +277,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
274
277
|
}[] | null | undefined;
|
|
275
278
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
276
279
|
} | undefined;
|
|
277
|
-
asset_type?: "dataset" | undefined;
|
|
278
280
|
team?: {
|
|
279
281
|
id?: string | undefined;
|
|
280
282
|
name?: string | undefined;
|
|
@@ -284,6 +286,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
284
286
|
created_at?: string | undefined;
|
|
285
287
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
286
288
|
} | undefined;
|
|
289
|
+
asset_type?: "dataset" | undefined;
|
|
287
290
|
parent_id?: string | null | undefined;
|
|
288
291
|
name_url_slug?: string | null | undefined;
|
|
289
292
|
slug?: string | null | undefined;
|
|
@@ -401,7 +404,8 @@ 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>>>;
|
|
404
|
-
|
|
407
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
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>>>;
|
|
407
411
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -419,7 +423,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
419
423
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
420
424
|
created_at: z.ZodOptional<z.ZodString>;
|
|
421
425
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
422
|
-
}, "user" | "organization" | "
|
|
426
|
+
}, "user" | "organization" | "team" | "user_id" | "slug">, {
|
|
423
427
|
id: z.ZodDefault<z.ZodString>;
|
|
424
428
|
team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
425
429
|
org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<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,7 +642,8 @@ 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>>>;
|
|
639
|
-
|
|
645
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
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>>>;
|
|
642
649
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -654,7 +661,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
654
661
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
655
662
|
created_at: z.ZodOptional<z.ZodString>;
|
|
656
663
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
657
|
-
}, "user" | "organization" | "
|
|
664
|
+
}, "user" | "organization" | "team" | "user_id" | "slug">, {
|
|
658
665
|
id: z.ZodDefault<z.ZodString>;
|
|
659
666
|
team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
660
667
|
org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<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;
|
|
@@ -934,8 +945,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
934
945
|
}[] | null | undefined;
|
|
935
946
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
936
947
|
} | undefined;
|
|
937
|
-
org_id?: string | undefined;
|
|
938
|
-
team_id?: string | undefined;
|
|
939
948
|
team?: {
|
|
940
949
|
id?: string | undefined;
|
|
941
950
|
name?: string | undefined;
|
|
@@ -945,6 +954,8 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
945
954
|
created_at?: string | undefined;
|
|
946
955
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
947
956
|
} | undefined;
|
|
957
|
+
org_id?: string | undefined;
|
|
958
|
+
team_id?: string | undefined;
|
|
948
959
|
parent_id?: string | null | undefined;
|
|
949
960
|
name_url_slug?: string | null | undefined;
|
|
950
961
|
slug?: string | null | 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;
|
|
@@ -996,10 +1008,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
996
1008
|
}[] | null | undefined;
|
|
997
1009
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
998
1010
|
} | undefined;
|
|
999
|
-
org_id?: string | undefined;
|
|
1000
|
-
asset_type?: "dataset" | undefined;
|
|
1001
|
-
last_updated?: string | undefined;
|
|
1002
|
-
team_id?: string | undefined;
|
|
1003
1011
|
team?: {
|
|
1004
1012
|
id?: string | undefined;
|
|
1005
1013
|
name?: string | undefined;
|
|
@@ -1009,6 +1017,10 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1009
1017
|
created_at?: string | undefined;
|
|
1010
1018
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
1011
1019
|
} | undefined;
|
|
1020
|
+
org_id?: string | undefined;
|
|
1021
|
+
asset_type?: "dataset" | undefined;
|
|
1022
|
+
last_updated?: string | undefined;
|
|
1023
|
+
team_id?: string | undefined;
|
|
1012
1024
|
parent_id?: string | null | undefined;
|
|
1013
1025
|
name_url_slug?: string | null | undefined;
|
|
1014
1026
|
slug?: string | null | undefined;
|
package/dist/schema/files.d.ts
CHANGED
|
@@ -106,7 +106,8 @@ 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
|
-
|
|
109
|
+
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
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>>;
|
|
112
113
|
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;
|
|
@@ -266,7 +269,6 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
266
269
|
}[] | null | undefined;
|
|
267
270
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
268
271
|
} | undefined;
|
|
269
|
-
asset_type?: "file" | undefined;
|
|
270
272
|
team?: {
|
|
271
273
|
id?: string | undefined;
|
|
272
274
|
name?: string | undefined;
|
|
@@ -276,6 +278,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
276
278
|
created_at?: string | undefined;
|
|
277
279
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
278
280
|
} | undefined;
|
|
281
|
+
asset_type?: "file" | undefined;
|
|
279
282
|
parent_id?: string | null | undefined;
|
|
280
283
|
name_url_slug?: string | null | undefined;
|
|
281
284
|
slug?: string | null | undefined;
|
|
@@ -394,7 +397,8 @@ 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>>>;
|
|
397
|
-
|
|
400
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
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>>>;
|
|
400
404
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -412,7 +416,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
412
416
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
413
417
|
created_at: z.ZodOptional<z.ZodString>;
|
|
414
418
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
415
|
-
}, "user" | "organization" | "
|
|
419
|
+
}, "user" | "organization" | "team" | "user_id" | "slug">, {
|
|
416
420
|
id: z.ZodDefault<z.ZodString>;
|
|
417
421
|
team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
418
422
|
org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<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,7 +628,8 @@ 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>>>;
|
|
625
|
-
|
|
631
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
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>>>;
|
|
628
635
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -640,7 +647,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
640
647
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
641
648
|
created_at: z.ZodOptional<z.ZodString>;
|
|
642
649
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
643
|
-
}, "user" | "organization" | "
|
|
650
|
+
}, "user" | "organization" | "team" | "user_id" | "slug">, {
|
|
644
651
|
id: z.ZodDefault<z.ZodString>;
|
|
645
652
|
team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
646
653
|
org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<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;
|
|
@@ -903,9 +914,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
903
914
|
}[] | null | undefined;
|
|
904
915
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
905
916
|
} | undefined;
|
|
906
|
-
org_id?: string | undefined;
|
|
907
|
-
asset_type?: "file" | undefined;
|
|
908
|
-
team_id?: string | undefined;
|
|
909
917
|
team?: {
|
|
910
918
|
id?: string | undefined;
|
|
911
919
|
name?: string | undefined;
|
|
@@ -915,6 +923,9 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
915
923
|
created_at?: string | undefined;
|
|
916
924
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
917
925
|
} | undefined;
|
|
926
|
+
org_id?: string | undefined;
|
|
927
|
+
asset_type?: "file" | undefined;
|
|
928
|
+
team_id?: string | undefined;
|
|
918
929
|
parent_id?: string | null | undefined;
|
|
919
930
|
name_url_slug?: string | null | undefined;
|
|
920
931
|
slug?: string | null | 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;
|
|
@@ -965,10 +977,6 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
965
977
|
}[] | null | undefined;
|
|
966
978
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
967
979
|
} | undefined;
|
|
968
|
-
org_id?: string | undefined;
|
|
969
|
-
asset_type?: "file" | undefined;
|
|
970
|
-
last_updated?: string | undefined;
|
|
971
|
-
team_id?: string | undefined;
|
|
972
980
|
team?: {
|
|
973
981
|
id?: string | undefined;
|
|
974
982
|
name?: string | undefined;
|
|
@@ -978,6 +986,10 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
978
986
|
created_at?: string | undefined;
|
|
979
987
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
980
988
|
} | undefined;
|
|
989
|
+
org_id?: string | undefined;
|
|
990
|
+
asset_type?: "file" | undefined;
|
|
991
|
+
last_updated?: string | undefined;
|
|
992
|
+
team_id?: string | undefined;
|
|
981
993
|
parent_id?: string | null | undefined;
|
|
982
994
|
name_url_slug?: string | null | undefined;
|
|
983
995
|
slug?: string | null | undefined;
|
|
@@ -10,13 +10,13 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
10
10
|
text: z.ZodOptional<z.ZodString>;
|
|
11
11
|
asset: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
assetId: z.ZodString;
|
|
13
|
-
assetType: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
13
|
+
assetType: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
assetId: string;
|
|
16
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
16
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
17
17
|
}, {
|
|
18
18
|
assetId: string;
|
|
19
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
19
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
20
20
|
}>>;
|
|
21
21
|
mention: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
22
22
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -34,7 +34,7 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
34
34
|
mention?: {} | undefined;
|
|
35
35
|
asset?: {
|
|
36
36
|
assetId: string;
|
|
37
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
37
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
38
38
|
} | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
text?: string | undefined;
|
|
@@ -44,7 +44,7 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
44
44
|
mention?: {} | undefined;
|
|
45
45
|
asset?: {
|
|
46
46
|
assetId: string;
|
|
47
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
47
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
48
48
|
} | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
viewed: z.ZodBoolean;
|
|
@@ -61,7 +61,7 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
61
61
|
mention?: {} | undefined;
|
|
62
62
|
asset?: {
|
|
63
63
|
assetId: string;
|
|
64
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
64
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
65
65
|
} | undefined;
|
|
66
66
|
};
|
|
67
67
|
org_id: string;
|
|
@@ -82,7 +82,7 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
82
82
|
mention?: {} | undefined;
|
|
83
83
|
asset?: {
|
|
84
84
|
assetId: string;
|
|
85
|
-
assetType: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
85
|
+
assetType: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
86
86
|
} | undefined;
|
|
87
87
|
};
|
|
88
88
|
org_id: string;
|