@ourofoundation/ouro-js 3.0.5 → 3.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/chunk-25FGGQFY.cjs +2 -0
- package/dist/chunk-25FGGQFY.cjs.map +1 -0
- package/dist/chunk-332F74RS.js +2 -0
- package/dist/chunk-332F74RS.js.map +1 -0
- package/dist/{chunk-FPRFE54S.cjs → chunk-4KUHOXA5.cjs} +2 -2
- package/dist/{chunk-FPRFE54S.cjs.map → chunk-4KUHOXA5.cjs.map} +1 -1
- package/dist/chunk-63BUDJ7V.js +2 -0
- package/dist/chunk-63BUDJ7V.js.map +1 -0
- package/dist/chunk-6RGIIOOP.js +2 -0
- package/dist/chunk-6RGIIOOP.js.map +1 -0
- package/dist/chunk-6UH4ZK6D.cjs +2 -0
- package/dist/chunk-6UH4ZK6D.cjs.map +1 -0
- package/dist/chunk-6XNV6B6L.cjs +2 -0
- package/dist/chunk-6XNV6B6L.cjs.map +1 -0
- package/dist/chunk-7HF5VHUN.cjs +2 -0
- package/dist/chunk-7HF5VHUN.cjs.map +1 -0
- package/dist/chunk-B7NJYI4N.cjs +2 -0
- package/dist/{chunk-IIKZ5DYT.cjs.map → chunk-B7NJYI4N.cjs.map} +1 -1
- package/dist/chunk-BDFRHJD4.js +2 -0
- package/dist/chunk-BDFRHJD4.js.map +1 -0
- package/dist/chunk-BULBWSNF.js +2 -0
- package/dist/chunk-BULBWSNF.js.map +1 -0
- package/dist/chunk-CBWCC3NJ.js +2 -0
- package/dist/chunk-CBWCC3NJ.js.map +1 -0
- package/dist/chunk-D4SCLCSO.cjs +2 -0
- package/dist/chunk-D4SCLCSO.cjs.map +1 -0
- package/dist/chunk-DAN33Z3Q.cjs +2 -0
- package/dist/chunk-DAN33Z3Q.cjs.map +1 -0
- package/dist/chunk-DHQJ2FCF.cjs +2 -0
- package/dist/chunk-DHQJ2FCF.cjs.map +1 -0
- package/dist/chunk-DUBPWSCA.js +2 -0
- package/dist/chunk-DUBPWSCA.js.map +1 -0
- package/dist/{chunk-NUGG4SK2.js → chunk-FS5P754F.js} +2 -2
- package/dist/{chunk-NUGG4SK2.js.map → chunk-FS5P754F.js.map} +1 -1
- package/dist/chunk-ICU37YVV.js +2 -0
- package/dist/chunk-ICU37YVV.js.map +1 -0
- package/dist/chunk-J2SVE52E.js +2 -0
- package/dist/chunk-J2SVE52E.js.map +1 -0
- package/dist/chunk-JANLRWLU.cjs +2 -0
- package/dist/chunk-JANLRWLU.cjs.map +1 -0
- package/dist/chunk-JNBXFB5P.cjs +2 -0
- package/dist/chunk-JNBXFB5P.cjs.map +1 -0
- package/dist/chunk-LDAPPQXR.js +2 -0
- package/dist/chunk-LDAPPQXR.js.map +1 -0
- package/dist/chunk-MAHNRYUV.cjs +2 -0
- package/dist/chunk-MAHNRYUV.cjs.map +1 -0
- package/dist/chunk-MQYRINJ5.cjs +2 -0
- package/dist/chunk-MQYRINJ5.cjs.map +1 -0
- package/dist/chunk-OD7M3RFZ.cjs +2 -0
- package/dist/chunk-OD7M3RFZ.cjs.map +1 -0
- package/dist/chunk-P4VD5SVM.cjs +2 -0
- package/dist/chunk-P4VD5SVM.cjs.map +1 -0
- package/dist/chunk-PX6OZKCX.cjs +2 -0
- package/dist/chunk-PX6OZKCX.cjs.map +1 -0
- package/dist/chunk-QZ3AAXO5.js +2 -0
- package/dist/chunk-QZ3AAXO5.js.map +1 -0
- package/dist/chunk-S5TPBKS6.js +2 -0
- package/dist/{chunk-T3J5Y445.js.map → chunk-S5TPBKS6.js.map} +1 -1
- package/dist/chunk-T4BUMCXS.cjs +2 -0
- package/dist/chunk-T4BUMCXS.cjs.map +1 -0
- package/dist/chunk-VBRZ227O.js +2 -0
- package/dist/chunk-VBRZ227O.js.map +1 -0
- package/dist/chunk-WE6CXCEQ.js +2 -0
- package/dist/chunk-WE6CXCEQ.js.map +1 -0
- package/dist/chunk-XJH3EC3E.js +2 -0
- package/dist/chunk-XJH3EC3E.js.map +1 -0
- package/dist/chunk-XPQVPGJX.js +2 -0
- package/dist/chunk-XPQVPGJX.js.map +1 -0
- package/dist/chunk-Z2GTDYQ6.cjs +2 -0
- package/dist/chunk-Z2GTDYQ6.cjs.map +1 -0
- package/dist/chunk-ZQAXMMR2.js +2 -0
- package/dist/chunk-ZQAXMMR2.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +193 -75
- package/dist/schema/assets.d.ts +193 -75
- package/dist/schema/assets.js +1 -1
- package/dist/schema/blueprints.cjs +1 -1
- package/dist/schema/blueprints.d.cts +408 -42
- package/dist/schema/blueprints.d.ts +408 -42
- package/dist/schema/blueprints.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +429 -81
- package/dist/schema/comments.d.ts +429 -81
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +26 -26
- package/dist/schema/common.d.ts +26 -26
- package/dist/schema/common.js +1 -1
- package/dist/schema/constants.cjs +2 -0
- package/dist/schema/constants.cjs.map +1 -0
- package/dist/schema/constants.d.cts +5 -0
- package/dist/schema/constants.d.ts +5 -0
- package/dist/schema/constants.js +2 -0
- package/dist/schema/constants.js.map +1 -0
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +257 -63
- package/dist/schema/conversations.d.ts +257 -63
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +388 -82
- package/dist/schema/datasets.d.ts +388 -82
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +378 -80
- package/dist/schema/files.d.ts +378 -80
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +31 -4
- package/dist/schema/organizations.d.ts +31 -4
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +444 -126
- package/dist/schema/posts.d.ts +444 -126
- package/dist/schema/posts.js +1 -1
- package/dist/schema/reactions.cjs +1 -1
- package/dist/schema/reactions.d.cts +3 -3
- package/dist/schema/reactions.d.ts +3 -3
- package/dist/schema/reactions.js +1 -1
- package/dist/schema/replications.cjs +1 -1
- package/dist/schema/replications.d.cts +410 -42
- package/dist/schema/replications.d.ts +410 -42
- package/dist/schema/replications.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +471 -137
- package/dist/schema/services.d.ts +471 -137
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +143 -36
- package/dist/schema/teams.d.ts +143 -36
- package/dist/schema/teams.js +1 -1
- package/dist/schema/users.cjs +1 -1
- package/dist/schema/users.d.cts +25 -7
- package/dist/schema/users.d.ts +25 -7
- package/dist/schema/users.js +1 -1
- package/dist/utils/air/index.cjs +1 -1
- package/dist/utils/air/index.d.cts +2 -2
- package/dist/utils/air/index.d.ts +2 -2
- package/dist/utils/air/index.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/tsup.config.ts +16 -16
- package/dist/chunk-2TOV7G54.js +0 -2
- package/dist/chunk-2TOV7G54.js.map +0 -1
- package/dist/chunk-3RRKHJ3K.cjs +0 -2
- package/dist/chunk-3RRKHJ3K.cjs.map +0 -1
- package/dist/chunk-4RN4XNPV.cjs +0 -2
- package/dist/chunk-4RN4XNPV.cjs.map +0 -1
- package/dist/chunk-6GWDL7RE.cjs +0 -2
- package/dist/chunk-6GWDL7RE.cjs.map +0 -1
- package/dist/chunk-6Q25VZKZ.cjs +0 -2
- package/dist/chunk-6Q25VZKZ.cjs.map +0 -1
- package/dist/chunk-ARSGP6GA.js +0 -2
- package/dist/chunk-ARSGP6GA.js.map +0 -1
- package/dist/chunk-B776YSQ2.cjs +0 -2
- package/dist/chunk-B776YSQ2.cjs.map +0 -1
- package/dist/chunk-C3EY5Q7D.cjs +0 -2
- package/dist/chunk-C3EY5Q7D.cjs.map +0 -1
- package/dist/chunk-C3JUA7VU.js +0 -2
- package/dist/chunk-C3JUA7VU.js.map +0 -1
- package/dist/chunk-C7P6EZ4K.js +0 -2
- package/dist/chunk-C7P6EZ4K.js.map +0 -1
- package/dist/chunk-CEANOLSH.js +0 -2
- package/dist/chunk-CEANOLSH.js.map +0 -1
- package/dist/chunk-D2H3DN4E.cjs +0 -2
- package/dist/chunk-D2H3DN4E.cjs.map +0 -1
- package/dist/chunk-E3BVDCVN.cjs +0 -2
- package/dist/chunk-E3BVDCVN.cjs.map +0 -1
- package/dist/chunk-ENCQWA5V.js +0 -2
- package/dist/chunk-ENCQWA5V.js.map +0 -1
- package/dist/chunk-FWDYNPNC.cjs +0 -2
- package/dist/chunk-FWDYNPNC.cjs.map +0 -1
- package/dist/chunk-HT4JPC5P.js +0 -2
- package/dist/chunk-HT4JPC5P.js.map +0 -1
- package/dist/chunk-HVX2JPYI.js +0 -2
- package/dist/chunk-HVX2JPYI.js.map +0 -1
- package/dist/chunk-IF4N6V66.cjs +0 -2
- package/dist/chunk-IF4N6V66.cjs.map +0 -1
- package/dist/chunk-IIKZ5DYT.cjs +0 -2
- package/dist/chunk-JAAPYGR3.js +0 -2
- package/dist/chunk-JAAPYGR3.js.map +0 -1
- package/dist/chunk-JYZE6VG5.js +0 -2
- package/dist/chunk-JYZE6VG5.js.map +0 -1
- package/dist/chunk-LWSF5AHU.js +0 -2
- package/dist/chunk-LWSF5AHU.js.map +0 -1
- package/dist/chunk-MRSFHKNV.js +0 -2
- package/dist/chunk-MRSFHKNV.js.map +0 -1
- package/dist/chunk-N5ADIAWW.cjs +0 -2
- package/dist/chunk-N5ADIAWW.cjs.map +0 -1
- package/dist/chunk-PDLAKYCI.cjs +0 -2
- package/dist/chunk-PDLAKYCI.cjs.map +0 -1
- package/dist/chunk-QTPX6PU3.cjs +0 -2
- package/dist/chunk-QTPX6PU3.cjs.map +0 -1
- package/dist/chunk-RPUL3U2U.js +0 -2
- package/dist/chunk-RPUL3U2U.js.map +0 -1
- package/dist/chunk-T3J5Y445.js +0 -2
- package/dist/chunk-TNDFH7NB.js +0 -2
- package/dist/chunk-TNDFH7NB.js.map +0 -1
- package/dist/chunk-UEV6JSU5.cjs +0 -2
- package/dist/chunk-UEV6JSU5.cjs.map +0 -1
- package/dist/chunk-V4FDUFIL.cjs +0 -2
- package/dist/chunk-V4FDUFIL.cjs.map +0 -1
- package/dist/chunk-VOX7A2FD.js +0 -2
- package/dist/chunk-VOX7A2FD.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const ConversationSchema: z.ZodObject<{
|
|
4
|
-
id: z.
|
|
5
|
-
user_id: z.
|
|
4
|
+
id: z.ZodUUID;
|
|
5
|
+
user_id: z.ZodUUID;
|
|
6
6
|
user: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
id: z.ZodOptional<z.ZodUUID>;
|
|
8
8
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -13,15 +13,19 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
13
13
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
14
|
value: z.ZodString;
|
|
15
15
|
}, z.core.$strip>>>>;
|
|
16
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
17
|
-
|
|
16
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
17
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
base: "base";
|
|
19
|
+
agent: "agent";
|
|
20
|
+
verified: "verified";
|
|
21
|
+
}>>;
|
|
18
22
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
19
23
|
free: "free";
|
|
20
24
|
gold: "gold";
|
|
21
25
|
}>>;
|
|
22
26
|
last_active: z.ZodOptional<z.ZodString>;
|
|
23
27
|
}, z.core.$strip>>;
|
|
24
|
-
org_id: z.
|
|
28
|
+
org_id: z.ZodUUID;
|
|
25
29
|
organization: z.ZodOptional<z.ZodObject<{
|
|
26
30
|
id: z.ZodOptional<z.ZodUUID>;
|
|
27
31
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -41,12 +45,23 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
41
45
|
none: "none";
|
|
42
46
|
}>>>;
|
|
43
47
|
allow_external_members: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
48
|
+
allow_external_public_team_creation: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
44
49
|
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
50
|
+
actor_type_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
any: "any";
|
|
52
|
+
verified_only: "verified_only";
|
|
53
|
+
agents_only: "agents_only";
|
|
54
|
+
}>>>>;
|
|
55
|
+
source_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
any: "any";
|
|
57
|
+
web_only: "web_only";
|
|
58
|
+
api_only: "api_only";
|
|
59
|
+
}>>>>;
|
|
45
60
|
}, z.core.$strip>>;
|
|
46
|
-
team_id: z.
|
|
61
|
+
team_id: z.ZodUUID;
|
|
47
62
|
team: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
id: z.ZodOptional<z.
|
|
49
|
-
org_id: z.ZodOptional<z.
|
|
63
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
64
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
50
65
|
organization: z.ZodOptional<z.ZodObject<{
|
|
51
66
|
id: z.ZodUUID;
|
|
52
67
|
name: z.ZodString;
|
|
@@ -66,7 +81,18 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
66
81
|
none: "none";
|
|
67
82
|
}>>;
|
|
68
83
|
allow_external_members: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
84
|
+
allow_external_public_team_creation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
85
|
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
actor_type_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
any: "any";
|
|
88
|
+
verified_only: "verified_only";
|
|
89
|
+
agents_only: "agents_only";
|
|
90
|
+
}>>>;
|
|
91
|
+
source_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
any: "any";
|
|
93
|
+
web_only: "web_only";
|
|
94
|
+
api_only: "api_only";
|
|
95
|
+
}>>>;
|
|
70
96
|
}, z.core.$strip>>;
|
|
71
97
|
name: z.ZodOptional<z.ZodString>;
|
|
72
98
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -80,14 +106,24 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
80
106
|
none: "none";
|
|
81
107
|
}>>;
|
|
82
108
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
83
|
-
organization: "organization";
|
|
84
109
|
public: "public";
|
|
85
110
|
private: "private";
|
|
111
|
+
organization: "organization";
|
|
86
112
|
monetized: "monetized";
|
|
87
113
|
inherit: "inherit";
|
|
88
114
|
}>>;
|
|
115
|
+
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
116
|
+
any: "any";
|
|
117
|
+
verified_only: "verified_only";
|
|
118
|
+
agents_only: "agents_only";
|
|
119
|
+
}>>>>;
|
|
120
|
+
source_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
121
|
+
any: "any";
|
|
122
|
+
web_only: "web_only";
|
|
123
|
+
api_only: "api_only";
|
|
124
|
+
}>>>>;
|
|
89
125
|
userMembership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
90
|
-
user_id: z.
|
|
126
|
+
user_id: z.ZodUUID;
|
|
91
127
|
role: z.ZodEnum<{
|
|
92
128
|
admin: "admin";
|
|
93
129
|
read: "read";
|
|
@@ -97,7 +133,7 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
97
133
|
}, z.core.$strip>>>>;
|
|
98
134
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
99
135
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
-
user_id: z.
|
|
136
|
+
user_id: z.ZodUUID;
|
|
101
137
|
role: z.ZodEnum<{
|
|
102
138
|
admin: "admin";
|
|
103
139
|
read: "read";
|
|
@@ -115,8 +151,12 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
115
151
|
urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
152
|
value: z.ZodString;
|
|
117
153
|
}, z.core.$strip>>>>;
|
|
118
|
-
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
119
|
-
|
|
154
|
+
post_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
155
|
+
actor_type: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
base: "base";
|
|
157
|
+
agent: "agent";
|
|
158
|
+
verified: "verified";
|
|
159
|
+
}>>;
|
|
120
160
|
plan_type: z.ZodOptional<z.ZodEnum<{
|
|
121
161
|
free: "free";
|
|
122
162
|
gold: "gold";
|
|
@@ -126,7 +166,7 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
126
166
|
}, z.core.$strip>>>;
|
|
127
167
|
created_at: z.ZodOptional<z.ZodString>;
|
|
128
168
|
}, z.core.$strip>>;
|
|
129
|
-
parent_id: z.ZodOptional<z.ZodNullable<z.
|
|
169
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
130
170
|
parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
131
171
|
license_id: z.ZodString;
|
|
132
172
|
license: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -138,9 +178,9 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
138
178
|
text: z.ZodString;
|
|
139
179
|
}, z.core.$strip>>>;
|
|
140
180
|
visibility: z.ZodEnum<{
|
|
141
|
-
organization: "organization";
|
|
142
181
|
public: "public";
|
|
143
182
|
private: "private";
|
|
183
|
+
organization: "organization";
|
|
144
184
|
monetized: "monetized";
|
|
145
185
|
inherit: "inherit";
|
|
146
186
|
}>;
|
|
@@ -171,17 +211,17 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
171
211
|
"in-progress": "in-progress";
|
|
172
212
|
}>;
|
|
173
213
|
source: z.ZodEnum<{
|
|
174
|
-
api: "api";
|
|
175
214
|
web: "web";
|
|
215
|
+
api: "api";
|
|
176
216
|
}>;
|
|
177
217
|
created_at: z.ZodString;
|
|
178
218
|
last_updated: z.ZodString;
|
|
179
219
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
180
|
-
user: "user";
|
|
181
220
|
organization: "organization";
|
|
221
|
+
file: "file";
|
|
222
|
+
user: "user";
|
|
182
223
|
team: "team";
|
|
183
224
|
dataset: "dataset";
|
|
184
|
-
file: "file";
|
|
185
225
|
service: "service";
|
|
186
226
|
route: "route";
|
|
187
227
|
post: "post";
|
|
@@ -214,8 +254,12 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
214
254
|
urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
255
|
value: z.ZodString;
|
|
216
256
|
}, z.core.$strip>>>;
|
|
217
|
-
post_id: z.ZodOptional<z.ZodNullable<z.
|
|
218
|
-
|
|
257
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
258
|
+
actor_type: z.ZodEnum<{
|
|
259
|
+
base: "base";
|
|
260
|
+
agent: "agent";
|
|
261
|
+
verified: "verified";
|
|
262
|
+
}>;
|
|
219
263
|
plan_type: z.ZodEnum<{
|
|
220
264
|
free: "free";
|
|
221
265
|
gold: "gold";
|
|
@@ -223,13 +267,13 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
223
267
|
last_active: z.ZodString;
|
|
224
268
|
}, z.core.$strip>>>>;
|
|
225
269
|
}, z.core.$strip>;
|
|
226
|
-
declare const CreateConversationSchema: z.ZodObject<{
|
|
270
|
+
declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
227
271
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
228
272
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
229
273
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
230
274
|
text: z.ZodString;
|
|
231
275
|
}, z.core.$strip>>>>;
|
|
232
|
-
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
276
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
233
277
|
license_id: z.ZodOptional<z.ZodString>;
|
|
234
278
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
235
279
|
unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -246,9 +290,9 @@ declare const CreateConversationSchema: z.ZodObject<{
|
|
|
246
290
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
247
291
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
248
292
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
249
|
-
id: z.ZodDefault<z.
|
|
250
|
-
team_id: z.ZodDefault<z.ZodNullable<z.
|
|
251
|
-
org_id: z.ZodDefault<z.ZodNullable<z.
|
|
293
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
294
|
+
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
295
|
+
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
252
296
|
name: z.ZodString;
|
|
253
297
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
298
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
@@ -258,8 +302,8 @@ declare const CreateConversationSchema: z.ZodObject<{
|
|
|
258
302
|
"in-progress": "in-progress";
|
|
259
303
|
}>>>;
|
|
260
304
|
source: z.ZodDefault<z.ZodEnum<{
|
|
261
|
-
api: "api";
|
|
262
305
|
web: "web";
|
|
306
|
+
api: "api";
|
|
263
307
|
}>>;
|
|
264
308
|
created_at: z.ZodDefault<z.ZodString>;
|
|
265
309
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -270,9 +314,9 @@ declare const CreateConversationSchema: z.ZodObject<{
|
|
|
270
314
|
"pay-per-use": "pay-per-use";
|
|
271
315
|
}>>;
|
|
272
316
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
273
|
-
organization: "organization";
|
|
274
317
|
public: "public";
|
|
275
318
|
private: "private";
|
|
319
|
+
organization: "organization";
|
|
276
320
|
monetized: "monetized";
|
|
277
321
|
inherit: "inherit";
|
|
278
322
|
}>>;
|
|
@@ -289,41 +333,97 @@ declare const CreateConversationSchema: z.ZodObject<{
|
|
|
289
333
|
}>>;
|
|
290
334
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
291
335
|
}, z.core.$strip>;
|
|
292
|
-
}, z.core.$strip
|
|
293
|
-
|
|
294
|
-
|
|
336
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
337
|
+
id: string;
|
|
338
|
+
team_id: string | null;
|
|
339
|
+
org_id: string | null;
|
|
340
|
+
name: string;
|
|
341
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
342
|
+
source: "web" | "api";
|
|
343
|
+
created_at: string;
|
|
344
|
+
last_updated: string;
|
|
345
|
+
asset_type: "conversation";
|
|
346
|
+
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
347
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
348
|
+
metadata: {
|
|
349
|
+
members: string[];
|
|
350
|
+
doi_url?: string | null | undefined;
|
|
351
|
+
external_url?: string | null | undefined;
|
|
352
|
+
paper_url?: string | null | undefined;
|
|
353
|
+
github_url?: string | null | undefined;
|
|
354
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
355
|
+
source?: string | null | undefined;
|
|
356
|
+
};
|
|
357
|
+
parent?: Record<string, any> | undefined;
|
|
358
|
+
description?: {
|
|
359
|
+
json: Record<string, any>;
|
|
360
|
+
text: string;
|
|
361
|
+
} | null | undefined;
|
|
362
|
+
parent_id?: string | null | undefined;
|
|
363
|
+
license_id?: string | undefined;
|
|
364
|
+
price?: number | null | undefined;
|
|
365
|
+
unit_cost?: number | null | undefined;
|
|
366
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
367
|
+
cost_unit?: string | null | undefined;
|
|
368
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
369
|
+
stripe_product_id?: string | null | undefined;
|
|
370
|
+
stripe_price_id?: string | null | undefined;
|
|
371
|
+
stripe_meter_id?: string | null | undefined;
|
|
372
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
373
|
+
name_url_slug?: string | null | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
id: string;
|
|
376
|
+
team_id: string | null;
|
|
377
|
+
org_id: string | null;
|
|
378
|
+
name: string;
|
|
379
|
+
state: "success" | "error" | "queued" | "in-progress";
|
|
380
|
+
source: "web" | "api";
|
|
381
|
+
created_at: string;
|
|
382
|
+
last_updated: string;
|
|
383
|
+
asset_type: "conversation";
|
|
384
|
+
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
385
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
386
|
+
metadata: {
|
|
387
|
+
members: string[];
|
|
388
|
+
doi_url?: string | null | undefined;
|
|
389
|
+
external_url?: string | null | undefined;
|
|
390
|
+
paper_url?: string | null | undefined;
|
|
391
|
+
github_url?: string | null | undefined;
|
|
392
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
393
|
+
source?: string | null | undefined;
|
|
394
|
+
};
|
|
395
|
+
parent?: Record<string, any> | undefined;
|
|
396
|
+
description?: {
|
|
397
|
+
json: Record<string, any>;
|
|
398
|
+
text: string;
|
|
399
|
+
} | null | undefined;
|
|
400
|
+
parent_id?: string | null | undefined;
|
|
401
|
+
license_id?: string | undefined;
|
|
402
|
+
price?: number | null | undefined;
|
|
403
|
+
unit_cost?: number | null | undefined;
|
|
404
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
405
|
+
cost_unit?: string | null | undefined;
|
|
406
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
407
|
+
stripe_product_id?: string | null | undefined;
|
|
408
|
+
stripe_price_id?: string | null | undefined;
|
|
409
|
+
stripe_meter_id?: string | null | undefined;
|
|
410
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
411
|
+
name_url_slug?: string | null | undefined;
|
|
412
|
+
}>>;
|
|
413
|
+
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
295
414
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
302
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
303
|
-
original: "original";
|
|
304
|
-
derivative: "derivative";
|
|
305
|
-
"third-party": "third-party";
|
|
306
|
-
}>>;
|
|
307
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
308
|
-
}, z.core.$strip>>;
|
|
309
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
310
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
311
|
-
name: z.ZodOptional<z.ZodString>;
|
|
415
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
416
|
+
web: "web";
|
|
417
|
+
api: "api";
|
|
418
|
+
}>>>;
|
|
419
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
312
420
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
313
|
-
organization: "organization";
|
|
314
421
|
public: "public";
|
|
315
422
|
private: "private";
|
|
423
|
+
organization: "organization";
|
|
316
424
|
monetized: "monetized";
|
|
317
425
|
inherit: "inherit";
|
|
318
426
|
}>>>;
|
|
319
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
320
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
321
|
-
text: z.ZodString;
|
|
322
|
-
}, z.core.$strip>>>>>;
|
|
323
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
324
|
-
api: "api";
|
|
325
|
-
web: "web";
|
|
326
|
-
}>>>;
|
|
327
427
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
328
428
|
none: "none";
|
|
329
429
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -335,7 +435,13 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
335
435
|
queued: "queued";
|
|
336
436
|
"in-progress": "in-progress";
|
|
337
437
|
}>>>>;
|
|
338
|
-
|
|
438
|
+
name: z.ZodOptional<z.ZodString>;
|
|
439
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
440
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
441
|
+
text: z.ZodString;
|
|
442
|
+
}, z.core.$strip>>>>>;
|
|
443
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
444
|
+
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
339
445
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
340
446
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
341
447
|
price: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
|
|
@@ -352,12 +458,96 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
352
458
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
353
459
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
354
460
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
461
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
members: z.ZodArray<z.ZodString>;
|
|
463
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
464
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
465
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
466
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
467
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
original: "original";
|
|
469
|
+
derivative: "derivative";
|
|
470
|
+
"third-party": "third-party";
|
|
471
|
+
}>>;
|
|
472
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
355
474
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
356
|
-
|
|
475
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
476
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
477
|
+
parent?: Record<string, any> | undefined;
|
|
478
|
+
source?: "web" | "api" | undefined;
|
|
479
|
+
asset_type?: "conversation" | undefined;
|
|
480
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
481
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
482
|
+
state?: "success" | "error" | "queued" | "in-progress" | undefined;
|
|
483
|
+
name?: string | undefined;
|
|
484
|
+
description?: {
|
|
485
|
+
json: Record<string, any>;
|
|
486
|
+
text: string;
|
|
487
|
+
} | null | undefined;
|
|
488
|
+
created_at?: string | undefined;
|
|
489
|
+
parent_id?: string | null | undefined;
|
|
490
|
+
license_id?: string | undefined;
|
|
491
|
+
name_url_slug?: string | null | undefined;
|
|
492
|
+
price?: number | null | undefined;
|
|
493
|
+
unit_cost?: number | null | undefined;
|
|
494
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
495
|
+
cost_unit?: string | null | undefined;
|
|
496
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
497
|
+
stripe_product_id?: string | null | undefined;
|
|
498
|
+
stripe_price_id?: string | null | undefined;
|
|
499
|
+
stripe_meter_id?: string | null | undefined;
|
|
500
|
+
metadata?: {
|
|
501
|
+
members: string[];
|
|
502
|
+
doi_url?: string | null | undefined;
|
|
503
|
+
external_url?: string | null | undefined;
|
|
504
|
+
paper_url?: string | null | undefined;
|
|
505
|
+
github_url?: string | null | undefined;
|
|
506
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
507
|
+
source?: string | null | undefined;
|
|
508
|
+
} | undefined;
|
|
509
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
510
|
+
last_updated?: string | undefined;
|
|
511
|
+
}, {
|
|
512
|
+
parent?: Record<string, any> | undefined;
|
|
513
|
+
source?: "web" | "api" | undefined;
|
|
514
|
+
asset_type?: "conversation" | undefined;
|
|
515
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
516
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
517
|
+
state?: "success" | "error" | "queued" | "in-progress" | undefined;
|
|
518
|
+
name?: string | undefined;
|
|
519
|
+
description?: {
|
|
520
|
+
json: Record<string, any>;
|
|
521
|
+
text: string;
|
|
522
|
+
} | null | undefined;
|
|
523
|
+
created_at?: string | undefined;
|
|
524
|
+
parent_id?: string | null | undefined;
|
|
525
|
+
license_id?: string | undefined;
|
|
526
|
+
name_url_slug?: string | null | undefined;
|
|
527
|
+
price?: number | null | undefined;
|
|
528
|
+
unit_cost?: number | null | undefined;
|
|
529
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
530
|
+
cost_unit?: string | null | undefined;
|
|
531
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
532
|
+
stripe_product_id?: string | null | undefined;
|
|
533
|
+
stripe_price_id?: string | null | undefined;
|
|
534
|
+
stripe_meter_id?: string | null | undefined;
|
|
535
|
+
metadata?: {
|
|
536
|
+
members: string[];
|
|
537
|
+
doi_url?: string | null | undefined;
|
|
538
|
+
external_url?: string | null | undefined;
|
|
539
|
+
paper_url?: string | null | undefined;
|
|
540
|
+
github_url?: string | null | undefined;
|
|
541
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
542
|
+
source?: string | null | undefined;
|
|
543
|
+
} | undefined;
|
|
544
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
545
|
+
last_updated?: string | undefined;
|
|
546
|
+
}>>;
|
|
357
547
|
declare const MessageSchema: z.ZodObject<{
|
|
358
|
-
id: z.
|
|
359
|
-
conversation_id: z.
|
|
360
|
-
user_id: z.
|
|
548
|
+
id: z.ZodUUID;
|
|
549
|
+
conversation_id: z.ZodUUID;
|
|
550
|
+
user_id: z.ZodUUID;
|
|
361
551
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
362
552
|
id: z.ZodUUID;
|
|
363
553
|
user_id: z.ZodUUID;
|
|
@@ -368,8 +558,12 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
368
558
|
urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
559
|
value: z.ZodString;
|
|
370
560
|
}, z.core.$strip>>>;
|
|
371
|
-
post_id: z.ZodOptional<z.ZodNullable<z.
|
|
372
|
-
|
|
561
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
562
|
+
actor_type: z.ZodEnum<{
|
|
563
|
+
base: "base";
|
|
564
|
+
agent: "agent";
|
|
565
|
+
verified: "verified";
|
|
566
|
+
}>;
|
|
373
567
|
plan_type: z.ZodEnum<{
|
|
374
568
|
free: "free";
|
|
375
569
|
gold: "gold";
|
|
@@ -378,7 +572,7 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
378
572
|
}, z.core.$strip>>>;
|
|
379
573
|
created_at: z.ZodString;
|
|
380
574
|
last_updated: z.ZodString;
|
|
381
|
-
viewers: z.ZodArray<z.
|
|
575
|
+
viewers: z.ZodArray<z.ZodUUID>;
|
|
382
576
|
json: z.ZodObject<{
|
|
383
577
|
type: z.ZodLiteral<"doc">;
|
|
384
578
|
content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-
|
|
1
|
+
export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-XPQVPGJX.js';import'../chunk-ICU37YVV.js';import'../chunk-XJH3EC3E.js';import'../chunk-QZ3AAXO5.js';import'../chunk-63BUDJ7V.js';import'../chunk-ZQAXMMR2.js';import'../chunk-CBWCC3NJ.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=conversations.js.map
|
|
2
2
|
//# sourceMappingURL=conversations.js.map
|
package/dist/schema/datasets.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkDAN33Z3Q_cjs=require('../chunk-DAN33Z3Q.cjs');require('../chunk-25FGGQFY.cjs'),require('../chunk-6XNV6B6L.cjs'),require('../chunk-6UH4ZK6D.cjs'),require('../chunk-JNBXFB5P.cjs'),require('../chunk-MAHNRYUV.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkDAN33Z3Q_cjs.b}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkDAN33Z3Q_cjs.c}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkDAN33Z3Q_cjs.a}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkDAN33Z3Q_cjs.d}});//# sourceMappingURL=datasets.cjs.map
|
|
2
2
|
//# sourceMappingURL=datasets.cjs.map
|