@ourofoundation/ouro-js 3.2.4 → 3.3.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-42EQ7ULD.cjs +2 -0
- package/dist/chunk-42EQ7ULD.cjs.map +1 -0
- package/dist/chunk-43KB23BA.cjs +2 -0
- package/dist/chunk-43KB23BA.cjs.map +1 -0
- package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
- package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
- package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
- package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
- package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
- package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
- package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
- package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
- package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
- package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
- package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
- package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
- package/dist/chunk-CIWFH5BJ.js +2 -0
- package/dist/chunk-CIWFH5BJ.js.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-FDKZIS34.js +2 -0
- package/dist/chunk-FDKZIS34.js.map +1 -0
- package/dist/chunk-G24BRDHO.cjs +2 -0
- package/dist/chunk-G24BRDHO.cjs.map +1 -0
- package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
- package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
- package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
- package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
- package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
- package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
- package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
- package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/chunk-NEINJFFK.cjs +2 -0
- package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
- package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
- package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
- package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
- package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
- package/dist/chunk-UY43EQTO.cjs +2 -0
- package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
- package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
- package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
- package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
- package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
- package/dist/chunk-WRHPQNEL.js +2 -0
- package/dist/chunk-WRHPQNEL.js.map +1 -0
- package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
- package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
- package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
- package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +84 -90
- package/dist/schema/assets.d.ts +84 -90
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +17 -28
- package/dist/schema/common.d.ts +17 -28
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -71
- package/dist/schema/conversations.d.ts +69 -71
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/events.cjs +2 -0
- package/dist/schema/events.cjs.map +1 -0
- package/dist/schema/events.d.cts +113 -0
- package/dist/schema/events.d.ts +113 -0
- package/dist/schema/events.js +2 -0
- package/dist/schema/events.js.map +1 -0
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -4
- package/dist/schema/notifications.d.ts +2 -4
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -137
- package/dist/schema/posts.d.ts +127 -137
- package/dist/schema/posts.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +124 -131
- package/dist/schema/services.d.ts +124 -131
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/schema/teams.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.d.cts +2 -2
- package/dist/utils/navigate.d.ts +2 -2
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/scripts/dump-events.ts +10 -0
- package/dist/chunk-3ZHWBPGA.cjs +0 -2
- package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
- package/dist/chunk-6AK3RVZR.cjs +0 -2
- package/dist/chunk-6AK3RVZR.cjs.map +0 -1
- package/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- package/dist/chunk-6TOGDJKP.cjs +0 -2
- package/dist/chunk-6TOGDJKP.cjs.map +0 -1
- package/dist/chunk-7ABFUHWW.js +0 -2
- package/dist/chunk-7ABFUHWW.js.map +0 -1
- package/dist/chunk-BU2S7UEL.js +0 -2
- package/dist/chunk-BU2S7UEL.js.map +0 -1
- package/dist/chunk-CVFVOARW.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
- package/dist/chunk-FNW6DDNP.cjs +0 -2
- package/dist/chunk-FNW6DDNP.cjs.map +0 -1
- package/dist/chunk-IW4MZW5P.cjs +0 -2
- package/dist/chunk-JPCZIGX2.js +0 -2
- package/dist/chunk-JPCZIGX2.js.map +0 -1
- package/dist/chunk-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
- package/dist/schema/blueprints.cjs +0 -2
- package/dist/schema/blueprints.cjs.map +0 -1
- package/dist/schema/blueprints.d.cts +0 -823
- package/dist/schema/blueprints.d.ts +0 -823
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/replications.cjs +0 -2
- package/dist/schema/replications.cjs.map +0 -1
- package/dist/schema/replications.d.cts +0 -827
- package/dist/schema/replications.d.ts +0 -827
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
package/dist/schema/common.d.ts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const AssetTypeSchema: z.ZodEnum<{
|
|
4
|
-
user: "user";
|
|
5
4
|
organization: "organization";
|
|
5
|
+
file: "file";
|
|
6
|
+
user: "user";
|
|
6
7
|
team: "team";
|
|
7
8
|
dataset: "dataset";
|
|
8
|
-
file: "file";
|
|
9
9
|
service: "service";
|
|
10
10
|
route: "route";
|
|
11
11
|
post: "post";
|
|
12
12
|
quest: "quest";
|
|
13
13
|
comment: "comment";
|
|
14
14
|
conversation: "conversation";
|
|
15
|
-
blueprint: "blueprint";
|
|
16
|
-
replication: "replication";
|
|
17
15
|
}>;
|
|
18
16
|
declare const VisibilitySchema: z.ZodEnum<{
|
|
19
|
-
organization: "organization";
|
|
20
17
|
public: "public";
|
|
21
18
|
private: "private";
|
|
19
|
+
organization: "organization";
|
|
22
20
|
monetized: "monetized";
|
|
23
21
|
inherit: "inherit";
|
|
24
22
|
}>;
|
|
@@ -44,19 +42,17 @@ declare const EmbeddingSchema: z.ZodObject<{
|
|
|
44
42
|
embedding: z.ZodArray<z.ZodNumber>;
|
|
45
43
|
content: z.ZodString;
|
|
46
44
|
asset_type: z.ZodEnum<{
|
|
47
|
-
user: "user";
|
|
48
45
|
organization: "organization";
|
|
46
|
+
file: "file";
|
|
47
|
+
user: "user";
|
|
49
48
|
team: "team";
|
|
50
49
|
dataset: "dataset";
|
|
51
|
-
file: "file";
|
|
52
50
|
service: "service";
|
|
53
51
|
route: "route";
|
|
54
52
|
post: "post";
|
|
55
53
|
quest: "quest";
|
|
56
54
|
comment: "comment";
|
|
57
55
|
conversation: "conversation";
|
|
58
|
-
blueprint: "blueprint";
|
|
59
|
-
replication: "replication";
|
|
60
56
|
}>;
|
|
61
57
|
asset_id: z.ZodString;
|
|
62
58
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -73,39 +69,36 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
73
69
|
action: "action";
|
|
74
70
|
component: "component";
|
|
75
71
|
link: "link";
|
|
72
|
+
completion: "completion";
|
|
76
73
|
}>;
|
|
77
74
|
action_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
78
75
|
source_id: z.ZodUUID;
|
|
79
76
|
target_id: z.ZodUUID;
|
|
80
77
|
source_asset_type: z.ZodEnum<{
|
|
81
|
-
user: "user";
|
|
82
78
|
organization: "organization";
|
|
79
|
+
file: "file";
|
|
80
|
+
user: "user";
|
|
83
81
|
team: "team";
|
|
84
82
|
dataset: "dataset";
|
|
85
|
-
file: "file";
|
|
86
83
|
service: "service";
|
|
87
84
|
route: "route";
|
|
88
85
|
post: "post";
|
|
89
86
|
quest: "quest";
|
|
90
87
|
comment: "comment";
|
|
91
88
|
conversation: "conversation";
|
|
92
|
-
blueprint: "blueprint";
|
|
93
|
-
replication: "replication";
|
|
94
89
|
}>;
|
|
95
90
|
target_asset_type: z.ZodEnum<{
|
|
96
|
-
user: "user";
|
|
97
91
|
organization: "organization";
|
|
92
|
+
file: "file";
|
|
93
|
+
user: "user";
|
|
98
94
|
team: "team";
|
|
99
95
|
dataset: "dataset";
|
|
100
|
-
file: "file";
|
|
101
96
|
service: "service";
|
|
102
97
|
route: "route";
|
|
103
98
|
post: "post";
|
|
104
99
|
quest: "quest";
|
|
105
100
|
comment: "comment";
|
|
106
101
|
conversation: "conversation";
|
|
107
|
-
blueprint: "blueprint";
|
|
108
|
-
replication: "replication";
|
|
109
102
|
}>;
|
|
110
103
|
created_at: z.ZodString;
|
|
111
104
|
last_updated: z.ZodString;
|
|
@@ -113,23 +106,21 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
113
106
|
declare const PurchaseAssetSchema: z.ZodObject<{
|
|
114
107
|
assetId: z.ZodUUID;
|
|
115
108
|
method: z.ZodEnum<{
|
|
116
|
-
checkout: "checkout";
|
|
117
109
|
api: "api";
|
|
110
|
+
checkout: "checkout";
|
|
118
111
|
}>;
|
|
119
112
|
assetType: z.ZodEnum<{
|
|
120
|
-
user: "user";
|
|
121
113
|
organization: "organization";
|
|
114
|
+
file: "file";
|
|
115
|
+
user: "user";
|
|
122
116
|
team: "team";
|
|
123
117
|
dataset: "dataset";
|
|
124
|
-
file: "file";
|
|
125
118
|
service: "service";
|
|
126
119
|
route: "route";
|
|
127
120
|
post: "post";
|
|
128
121
|
quest: "quest";
|
|
129
122
|
comment: "comment";
|
|
130
123
|
conversation: "conversation";
|
|
131
|
-
blueprint: "blueprint";
|
|
132
|
-
replication: "replication";
|
|
133
124
|
}>;
|
|
134
125
|
}, z.core.$strip>;
|
|
135
126
|
declare const PermissionSchema: z.ZodObject<{
|
|
@@ -146,19 +137,17 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
146
137
|
user_id: z.ZodNullable<z.ZodUUID>;
|
|
147
138
|
org_id: z.ZodNullable<z.ZodUUID>;
|
|
148
139
|
asset_type: z.ZodEnum<{
|
|
149
|
-
user: "user";
|
|
150
140
|
organization: "organization";
|
|
141
|
+
file: "file";
|
|
142
|
+
user: "user";
|
|
151
143
|
team: "team";
|
|
152
144
|
dataset: "dataset";
|
|
153
|
-
file: "file";
|
|
154
145
|
service: "service";
|
|
155
146
|
route: "route";
|
|
156
147
|
post: "post";
|
|
157
148
|
quest: "quest";
|
|
158
149
|
comment: "comment";
|
|
159
150
|
conversation: "conversation";
|
|
160
|
-
blueprint: "blueprint";
|
|
161
|
-
replication: "replication";
|
|
162
151
|
}>;
|
|
163
152
|
asset_id: z.ZodUUID;
|
|
164
153
|
created_at: z.ZodString;
|
|
@@ -166,14 +155,14 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
166
155
|
}, z.core.$strip>;
|
|
167
156
|
declare const StatusSchema: z.ZodEnum<{
|
|
168
157
|
success: "success";
|
|
158
|
+
error: "error";
|
|
169
159
|
queued: "queued";
|
|
170
160
|
"in-progress": "in-progress";
|
|
171
161
|
"timed-out": "timed-out";
|
|
172
|
-
error: "error";
|
|
173
162
|
}>;
|
|
174
163
|
declare const SourceSchema: z.ZodEnum<{
|
|
175
|
-
api: "api";
|
|
176
164
|
web: "web";
|
|
165
|
+
api: "api";
|
|
177
166
|
}>;
|
|
178
167
|
|
|
179
168
|
type Role = z.infer<typeof RoleSchema>;
|
package/dist/schema/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'../chunk-
|
|
1
|
+
export{a as AssetTypeSchema,g as ConnectionSchema,f as EmbeddingSchema,d as MonetizationSchema,i as PermissionSchema,e as PriceCurrencySchema,h as PurchaseAssetSchema,c as RoleSchema,k as SourceSchema,j as StatusSchema,b as VisibilitySchema}from'../chunk-WRHPQNEL.js';//# sourceMappingURL=common.js.map
|
|
2
2
|
//# sourceMappingURL=common.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkNEINJFFK_cjs=require('../chunk-NEINJFFK.cjs');require('../chunk-WUC5AUUJ.cjs'),require('../chunk-IP4OVRZB.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.a}});Object.defineProperty(exports,"CreateConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.b}});Object.defineProperty(exports,"MessageSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.d}});Object.defineProperty(exports,"UpdateConversationSchema",{enumerable:true,get:function(){return chunkNEINJFFK_cjs.c}});//# sourceMappingURL=conversations.cjs.map
|
|
2
2
|
//# sourceMappingURL=conversations.cjs.map
|
|
@@ -108,9 +108,9 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
108
108
|
none: "none";
|
|
109
109
|
}>>;
|
|
110
110
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
organization: "organization";
|
|
112
111
|
public: "public";
|
|
113
112
|
private: "private";
|
|
113
|
+
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
-
organization: "organization";
|
|
186
185
|
public: "public";
|
|
187
186
|
private: "private";
|
|
187
|
+
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -210,31 +210,29 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
210
210
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
211
211
|
state: z.ZodEnum<{
|
|
212
212
|
success: "success";
|
|
213
|
+
error: "error";
|
|
213
214
|
queued: "queued";
|
|
214
215
|
"in-progress": "in-progress";
|
|
215
216
|
"timed-out": "timed-out";
|
|
216
|
-
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
api: "api";
|
|
220
219
|
web: "web";
|
|
220
|
+
api: "api";
|
|
221
221
|
}>;
|
|
222
222
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
224
224
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
user: "user";
|
|
226
225
|
organization: "organization";
|
|
226
|
+
file: "file";
|
|
227
|
+
user: "user";
|
|
227
228
|
team: "team";
|
|
228
229
|
dataset: "dataset";
|
|
229
|
-
file: "file";
|
|
230
230
|
service: "service";
|
|
231
231
|
route: "route";
|
|
232
232
|
post: "post";
|
|
233
233
|
quest: "quest";
|
|
234
234
|
comment: "comment";
|
|
235
235
|
conversation: "conversation";
|
|
236
|
-
blueprint: "blueprint";
|
|
237
|
-
replication: "replication";
|
|
238
236
|
}>>;
|
|
239
237
|
metadata: z.ZodObject<{
|
|
240
238
|
members: z.ZodArray<z.ZodString>;
|
|
@@ -305,14 +303,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
305
303
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
304
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
307
305
|
success: "success";
|
|
306
|
+
error: "error";
|
|
308
307
|
queued: "queued";
|
|
309
308
|
"in-progress": "in-progress";
|
|
310
309
|
"timed-out": "timed-out";
|
|
311
|
-
error: "error";
|
|
312
310
|
}>>>;
|
|
313
311
|
source: z.ZodDefault<z.ZodEnum<{
|
|
314
|
-
api: "api";
|
|
315
312
|
web: "web";
|
|
313
|
+
api: "api";
|
|
316
314
|
}>>;
|
|
317
315
|
created_at: z.ZodDefault<z.ZodString>;
|
|
318
316
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -323,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
323
321
|
"pay-per-use": "pay-per-use";
|
|
324
322
|
}>>;
|
|
325
323
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
326
|
-
organization: "organization";
|
|
327
324
|
public: "public";
|
|
328
325
|
private: "private";
|
|
326
|
+
organization: "organization";
|
|
329
327
|
monetized: "monetized";
|
|
330
328
|
inherit: "inherit";
|
|
331
329
|
}>>;
|
|
@@ -348,13 +346,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
348
346
|
team_id: string | null;
|
|
349
347
|
org_id: string | null;
|
|
350
348
|
name: string;
|
|
351
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
352
|
-
source: "
|
|
349
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
350
|
+
source: "web" | "api";
|
|
353
351
|
created_at: string;
|
|
354
352
|
last_updated: string;
|
|
355
353
|
asset_type: "conversation";
|
|
356
354
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
357
|
-
visibility: "
|
|
355
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
358
356
|
metadata: {
|
|
359
357
|
members: string[];
|
|
360
358
|
doi_url?: string | null | undefined;
|
|
@@ -387,13 +385,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
387
385
|
team_id: string | null;
|
|
388
386
|
org_id: string | null;
|
|
389
387
|
name: string;
|
|
390
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
391
|
-
source: "
|
|
388
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
389
|
+
source: "web" | "api";
|
|
392
390
|
created_at: string;
|
|
393
391
|
last_updated: string;
|
|
394
392
|
asset_type: "conversation";
|
|
395
393
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
396
|
-
visibility: "
|
|
394
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
397
395
|
metadata: {
|
|
398
396
|
members: string[];
|
|
399
397
|
doi_url?: string | null | undefined;
|
|
@@ -423,40 +421,19 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
423
421
|
name_url_slug?: string | null | undefined;
|
|
424
422
|
}>>;
|
|
425
423
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
426
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
427
424
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
434
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
original: "original";
|
|
436
|
-
derivative: "derivative";
|
|
437
|
-
"third-party": "third-party";
|
|
438
|
-
}>>;
|
|
439
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
440
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
441
|
-
}, z.core.$strip>>;
|
|
442
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
443
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
444
|
-
name: z.ZodOptional<z.ZodString>;
|
|
425
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
426
|
+
web: "web";
|
|
427
|
+
api: "api";
|
|
428
|
+
}>>>;
|
|
429
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
445
430
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
446
|
-
organization: "organization";
|
|
447
431
|
public: "public";
|
|
448
432
|
private: "private";
|
|
433
|
+
organization: "organization";
|
|
449
434
|
monetized: "monetized";
|
|
450
435
|
inherit: "inherit";
|
|
451
436
|
}>>>;
|
|
452
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
454
|
-
text: z.ZodString;
|
|
455
|
-
}, z.core.$strip>>>>>;
|
|
456
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
457
|
-
api: "api";
|
|
458
|
-
web: "web";
|
|
459
|
-
}>>>;
|
|
460
437
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
461
438
|
none: "none";
|
|
462
439
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -464,11 +441,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
464
441
|
}>>>;
|
|
465
442
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
466
443
|
success: "success";
|
|
444
|
+
error: "error";
|
|
467
445
|
queued: "queued";
|
|
468
446
|
"in-progress": "in-progress";
|
|
469
447
|
"timed-out": "timed-out";
|
|
470
|
-
error: "error";
|
|
471
448
|
}>>>>;
|
|
449
|
+
name: z.ZodOptional<z.ZodString>;
|
|
450
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
451
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
452
|
+
text: z.ZodString;
|
|
453
|
+
}, z.core.$strip>>>>>;
|
|
454
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
472
455
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
473
456
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
474
457
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -486,31 +469,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
486
469
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
487
470
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
488
471
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
472
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
members: z.ZodArray<z.ZodString>;
|
|
474
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
475
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
original: "original";
|
|
480
|
+
derivative: "derivative";
|
|
481
|
+
"third-party": "third-party";
|
|
482
|
+
}>>;
|
|
483
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
484
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
+
}, z.core.$strip>>;
|
|
489
486
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
487
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
490
488
|
}, z.core.$strip>, z.ZodTransform<{
|
|
491
|
-
asset_type?: "conversation" | undefined;
|
|
492
489
|
parent?: Record<string, any> | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
github_url?: string | null | undefined;
|
|
499
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
500
|
-
source?: string | null | undefined;
|
|
501
|
-
reply_to_comment_id?: string | null | undefined;
|
|
502
|
-
} | undefined;
|
|
503
|
-
created_at?: string | undefined;
|
|
504
|
-
last_updated?: string | undefined;
|
|
490
|
+
source?: "web" | "api" | undefined;
|
|
491
|
+
asset_type?: "conversation" | undefined;
|
|
492
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
493
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
494
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
505
495
|
name?: string | undefined;
|
|
506
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
507
496
|
description?: {
|
|
508
497
|
json: Record<string, any>;
|
|
509
498
|
text: string;
|
|
510
499
|
} | null | undefined;
|
|
511
|
-
|
|
512
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
513
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
500
|
+
created_at?: string | undefined;
|
|
514
501
|
parent_id?: string | null | undefined;
|
|
515
502
|
license_id?: string | undefined;
|
|
516
503
|
name_url_slug?: string | null | undefined;
|
|
@@ -522,10 +509,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
522
509
|
stripe_product_id?: string | null | undefined;
|
|
523
510
|
stripe_price_id?: string | null | undefined;
|
|
524
511
|
stripe_meter_id?: string | null | undefined;
|
|
525
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
asset_type?: "conversation" | undefined;
|
|
528
|
-
parent?: Record<string, any> | undefined;
|
|
529
512
|
metadata?: {
|
|
530
513
|
members: string[];
|
|
531
514
|
doi_url?: string | null | undefined;
|
|
@@ -536,17 +519,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
536
519
|
source?: string | null | undefined;
|
|
537
520
|
reply_to_comment_id?: string | null | undefined;
|
|
538
521
|
} | undefined;
|
|
539
|
-
|
|
522
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
540
523
|
last_updated?: string | undefined;
|
|
524
|
+
}, {
|
|
525
|
+
parent?: Record<string, any> | undefined;
|
|
526
|
+
source?: "web" | "api" | undefined;
|
|
527
|
+
asset_type?: "conversation" | undefined;
|
|
528
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
529
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
530
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
541
531
|
name?: string | undefined;
|
|
542
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
543
532
|
description?: {
|
|
544
533
|
json: Record<string, any>;
|
|
545
534
|
text: string;
|
|
546
535
|
} | null | undefined;
|
|
547
|
-
|
|
548
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
549
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
536
|
+
created_at?: string | undefined;
|
|
550
537
|
parent_id?: string | null | undefined;
|
|
551
538
|
license_id?: string | undefined;
|
|
552
539
|
name_url_slug?: string | null | undefined;
|
|
@@ -558,7 +545,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
558
545
|
stripe_product_id?: string | null | undefined;
|
|
559
546
|
stripe_price_id?: string | null | undefined;
|
|
560
547
|
stripe_meter_id?: string | null | undefined;
|
|
548
|
+
metadata?: {
|
|
549
|
+
members: string[];
|
|
550
|
+
doi_url?: string | null | undefined;
|
|
551
|
+
external_url?: string | null | undefined;
|
|
552
|
+
paper_url?: string | null | undefined;
|
|
553
|
+
github_url?: string | null | undefined;
|
|
554
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
555
|
+
source?: string | null | undefined;
|
|
556
|
+
reply_to_comment_id?: string | null | undefined;
|
|
557
|
+
} | undefined;
|
|
561
558
|
preview?: Record<string, any>[] | null | undefined;
|
|
559
|
+
last_updated?: string | undefined;
|
|
562
560
|
}>>;
|
|
563
561
|
declare const MessageSchema: z.ZodObject<{
|
|
564
562
|
id: z.ZodUUID;
|