@ourofoundation/ouro-js 1.0.5 → 1.0.7
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 -2
- package/dist/index.js +2 -2
- package/dist/schema/assets.d.ts +14 -79
- package/dist/schema/assets.js +16 -0
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +15 -15
- package/dist/schema/comments.d.ts +14 -14
- package/dist/schema/comments.js +2 -3
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +13 -13
- package/dist/schema/common.js +3 -3
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +39 -18
- package/dist/schema/datasets.d.ts +49 -179
- package/dist/schema/datasets.js +5 -5
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +37 -167
- package/dist/schema/files.js +5 -5
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/notifications.d.ts +7 -7
- package/dist/schema/posts.d.ts +673 -301
- package/dist/schema/posts.js +21 -42
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +15 -15
- package/package.json +3 -2
|
@@ -106,7 +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
|
-
asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
109
|
+
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
110
110
|
name: z.ZodString;
|
|
111
111
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
112
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -132,7 +132,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
132
132
|
}, {
|
|
133
133
|
members: string[];
|
|
134
134
|
}>;
|
|
135
|
-
asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
135
|
+
asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
136
136
|
}>, "strip", z.ZodTypeAny, {
|
|
137
137
|
id: string;
|
|
138
138
|
name: string;
|
|
@@ -142,7 +142,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
142
142
|
};
|
|
143
143
|
user_id: string;
|
|
144
144
|
org_id: string;
|
|
145
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
145
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
146
146
|
created_at: string;
|
|
147
147
|
last_updated: string;
|
|
148
148
|
team_id: string;
|
|
@@ -231,7 +231,6 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
231
231
|
}[] | null | undefined;
|
|
232
232
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
233
233
|
} | undefined;
|
|
234
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
235
234
|
team?: {
|
|
236
235
|
id?: string | undefined;
|
|
237
236
|
name?: string | undefined;
|
|
@@ -241,6 +240,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
241
240
|
created_at?: string | undefined;
|
|
242
241
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
243
242
|
} | undefined;
|
|
243
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
244
244
|
parent_id?: string | null | undefined;
|
|
245
245
|
name_url_slug?: string | null | undefined;
|
|
246
246
|
slug?: string | null | undefined;
|
|
@@ -359,7 +359,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
359
359
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
360
360
|
}>>;
|
|
361
361
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
362
|
-
asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
362
|
+
asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
|
|
363
363
|
name: z.ZodString;
|
|
364
364
|
name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
365
365
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -385,7 +385,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
385
385
|
}, {
|
|
386
386
|
members: string[];
|
|
387
387
|
}>;
|
|
388
|
-
asset_type: z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
388
|
+
asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
389
389
|
}>, "user_id" | "org_id" | "created_at" | "last_updated" | "team_id">, {
|
|
390
390
|
id: z.ZodDefault<z.ZodString>;
|
|
391
391
|
org_id: z.ZodDefault<z.ZodString>;
|
|
@@ -400,7 +400,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
400
400
|
members: string[];
|
|
401
401
|
};
|
|
402
402
|
org_id: string;
|
|
403
|
-
asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
403
|
+
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
404
404
|
team_id: string;
|
|
405
405
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
406
406
|
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
@@ -481,9 +481,6 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
481
481
|
}[] | null | undefined;
|
|
482
482
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
483
483
|
} | 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
484
|
team?: {
|
|
488
485
|
id?: string | undefined;
|
|
489
486
|
name?: string | undefined;
|
|
@@ -493,6 +490,9 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
493
490
|
created_at?: string | undefined;
|
|
494
491
|
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
495
492
|
} | undefined;
|
|
493
|
+
org_id?: string | undefined;
|
|
494
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
495
|
+
team_id?: string | undefined;
|
|
496
496
|
parent_id?: string | null | undefined;
|
|
497
497
|
name_url_slug?: string | null | undefined;
|
|
498
498
|
slug?: string | null | undefined;
|
|
@@ -558,7 +558,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
558
558
|
}[] | null | undefined;
|
|
559
559
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
560
560
|
}>>>;
|
|
561
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
|
|
561
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
|
|
562
562
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
563
563
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
564
564
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -591,7 +591,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
591
591
|
}[] | null | undefined;
|
|
592
592
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
593
593
|
} | undefined;
|
|
594
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
594
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
595
595
|
parent_id?: string | null | undefined;
|
|
596
596
|
name_url_slug?: string | null | undefined;
|
|
597
597
|
slug?: string | null | undefined;
|
|
@@ -624,7 +624,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
624
624
|
}[] | null | undefined;
|
|
625
625
|
base_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
626
626
|
} | undefined;
|
|
627
|
-
asset_type?: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
627
|
+
asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
628
628
|
parent_id?: string | null | undefined;
|
|
629
629
|
name_url_slug?: string | null | undefined;
|
|
630
630
|
slug?: string | null | undefined;
|
|
@@ -646,13 +646,28 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
646
646
|
viewers: z.ZodArray<z.ZodString, "many">;
|
|
647
647
|
json: z.ZodObject<{
|
|
648
648
|
type: z.ZodLiteral<"doc">;
|
|
649
|
-
content: z.ZodArray<z.ZodObject<{
|
|
649
|
+
content: z.ZodArray<z.ZodObject<{
|
|
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">;
|
|
650
659
|
}, "strip", z.ZodTypeAny, {
|
|
651
660
|
type: "doc";
|
|
652
|
-
content: z.objectOutputType<{
|
|
661
|
+
content: z.objectOutputType<{
|
|
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">[];
|
|
653
665
|
}, {
|
|
654
666
|
type: "doc";
|
|
655
|
-
content: z.objectInputType<{
|
|
667
|
+
content: z.objectInputType<{
|
|
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">[];
|
|
656
671
|
}>;
|
|
657
672
|
text: z.ZodString;
|
|
658
673
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -661,7 +676,10 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
661
676
|
text: string;
|
|
662
677
|
json: {
|
|
663
678
|
type: "doc";
|
|
664
|
-
content: z.objectOutputType<{
|
|
679
|
+
content: z.objectOutputType<{
|
|
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">[];
|
|
665
683
|
};
|
|
666
684
|
user_id: string;
|
|
667
685
|
created_at: string;
|
|
@@ -674,7 +692,10 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
674
692
|
text: string;
|
|
675
693
|
json: {
|
|
676
694
|
type: "doc";
|
|
677
|
-
content: z.objectInputType<{
|
|
695
|
+
content: z.objectInputType<{
|
|
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">[];
|
|
678
699
|
};
|
|
679
700
|
user_id: string;
|
|
680
701
|
created_at: string;
|