@ourofoundation/ouro-js 1.1.1 → 1.1.3
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 +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -81
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +111 -100
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -95
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +105 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +91 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +149 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +218 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +201 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +326 -298
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -81
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +125 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +99 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +13 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
|
@@ -15,6 +15,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15
15
|
}, {
|
|
16
16
|
value: string;
|
|
17
17
|
}>, "many">>>;
|
|
18
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
18
19
|
last_active: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
id?: string | undefined;
|
|
@@ -25,6 +26,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
25
26
|
}[] | undefined;
|
|
26
27
|
username?: string | null | undefined;
|
|
27
28
|
bio?: string | null | undefined;
|
|
29
|
+
post_id?: string | null | undefined;
|
|
28
30
|
last_active?: string | undefined;
|
|
29
31
|
}, {
|
|
30
32
|
id?: string | undefined;
|
|
@@ -35,6 +37,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
35
37
|
}[] | undefined;
|
|
36
38
|
username?: string | null | undefined;
|
|
37
39
|
bio?: string | null | undefined;
|
|
40
|
+
post_id?: string | null | undefined;
|
|
38
41
|
last_active?: string | undefined;
|
|
39
42
|
}>>;
|
|
40
43
|
org_id: z.ZodString;
|
|
@@ -57,27 +60,27 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
57
60
|
}, "strip", z.ZodTypeAny, {
|
|
58
61
|
id?: string | undefined;
|
|
59
62
|
name?: string | undefined;
|
|
60
|
-
size?: string | undefined;
|
|
61
|
-
email?: string | null | undefined;
|
|
62
63
|
avatar_path?: string | null | undefined;
|
|
63
64
|
mission?: string | null | undefined;
|
|
65
|
+
size?: string | undefined;
|
|
66
|
+
email?: string | null | undefined;
|
|
64
67
|
domain?: string | null | undefined;
|
|
65
68
|
urls?: {
|
|
66
69
|
value: string;
|
|
67
70
|
}[] | null | undefined;
|
|
68
|
-
base_role?: "
|
|
71
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
69
72
|
}, {
|
|
70
73
|
id?: string | undefined;
|
|
71
74
|
name?: string | undefined;
|
|
72
|
-
size?: string | undefined;
|
|
73
|
-
email?: string | null | undefined;
|
|
74
75
|
avatar_path?: string | null | undefined;
|
|
75
76
|
mission?: string | null | undefined;
|
|
77
|
+
size?: string | undefined;
|
|
78
|
+
email?: string | null | undefined;
|
|
76
79
|
domain?: string | null | undefined;
|
|
77
80
|
urls?: {
|
|
78
81
|
value: string;
|
|
79
82
|
}[] | null | undefined;
|
|
80
|
-
base_role?: "
|
|
83
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
81
84
|
}>>;
|
|
82
85
|
team_id: z.ZodString;
|
|
83
86
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,20 +93,20 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
93
|
created_at: z.ZodOptional<z.ZodString>;
|
|
91
94
|
}, "strip", z.ZodTypeAny, {
|
|
92
95
|
id?: string | undefined;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
95
|
-
description?: string | null | undefined;
|
|
96
96
|
org_id?: string | undefined;
|
|
97
97
|
created_at?: string | undefined;
|
|
98
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id?: string | undefined;
|
|
101
98
|
name?: string | undefined;
|
|
102
|
-
visibility?: "
|
|
99
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
103
100
|
description?: string | null | undefined;
|
|
101
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
id?: string | undefined;
|
|
104
104
|
org_id?: string | undefined;
|
|
105
105
|
created_at?: string | undefined;
|
|
106
|
-
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
108
|
+
description?: string | null | undefined;
|
|
109
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
107
110
|
}>>;
|
|
108
111
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
112
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -136,21 +139,18 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
136
139
|
asset_type: z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
|
|
137
140
|
}>, "strip", z.ZodTypeAny, {
|
|
138
141
|
id: string;
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
user_id: string;
|
|
143
|
+
org_id: string;
|
|
144
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
141
145
|
metadata: {
|
|
142
146
|
members: string[];
|
|
143
147
|
};
|
|
144
|
-
user_id: string;
|
|
145
|
-
org_id: string;
|
|
146
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
147
148
|
created_at: string;
|
|
148
149
|
last_updated: string;
|
|
150
|
+
name: string;
|
|
149
151
|
team_id: string;
|
|
152
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
150
153
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
151
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
152
|
-
description?: string | null | undefined;
|
|
153
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
154
154
|
user?: {
|
|
155
155
|
id?: string | undefined;
|
|
156
156
|
user_id?: string | undefined;
|
|
@@ -160,31 +160,34 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
160
160
|
}[] | undefined;
|
|
161
161
|
username?: string | null | undefined;
|
|
162
162
|
bio?: string | null | undefined;
|
|
163
|
+
post_id?: string | null | undefined;
|
|
163
164
|
last_active?: string | undefined;
|
|
164
165
|
} | undefined;
|
|
165
166
|
organization?: {
|
|
166
167
|
id?: string | undefined;
|
|
167
168
|
name?: string | undefined;
|
|
168
|
-
size?: string | undefined;
|
|
169
|
-
email?: string | null | undefined;
|
|
170
169
|
avatar_path?: string | null | undefined;
|
|
171
170
|
mission?: string | null | undefined;
|
|
171
|
+
size?: string | undefined;
|
|
172
|
+
email?: string | null | undefined;
|
|
172
173
|
domain?: string | null | undefined;
|
|
173
174
|
urls?: {
|
|
174
175
|
value: string;
|
|
175
176
|
}[] | null | undefined;
|
|
176
|
-
base_role?: "
|
|
177
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
177
178
|
} | undefined;
|
|
178
179
|
team?: {
|
|
179
180
|
id?: string | undefined;
|
|
180
|
-
name?: string | undefined;
|
|
181
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
182
|
-
description?: string | null | undefined;
|
|
183
181
|
org_id?: string | undefined;
|
|
184
182
|
created_at?: string | undefined;
|
|
185
|
-
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
185
|
+
description?: string | null | undefined;
|
|
186
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
186
187
|
} | undefined;
|
|
188
|
+
description?: string | null | undefined;
|
|
187
189
|
parent_id?: string | null | undefined;
|
|
190
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
188
191
|
name_url_slug?: string | null | undefined;
|
|
189
192
|
slug?: string | null | undefined;
|
|
190
193
|
price?: number | null | undefined;
|
|
@@ -194,22 +197,20 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
194
197
|
product_id?: string | null | undefined;
|
|
195
198
|
price_id?: string | null | undefined;
|
|
196
199
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
200
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
197
201
|
}, {
|
|
198
202
|
id: string;
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
user_id: string;
|
|
204
|
+
org_id: string;
|
|
201
205
|
metadata: {
|
|
202
206
|
members: string[];
|
|
203
207
|
};
|
|
204
|
-
user_id: string;
|
|
205
|
-
org_id: string;
|
|
206
208
|
created_at: string;
|
|
207
209
|
last_updated: string;
|
|
210
|
+
name: string;
|
|
208
211
|
team_id: string;
|
|
212
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
209
213
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
210
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
211
|
-
description?: string | null | undefined;
|
|
212
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
213
214
|
user?: {
|
|
214
215
|
id?: string | undefined;
|
|
215
216
|
user_id?: string | undefined;
|
|
@@ -219,32 +220,35 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
219
220
|
}[] | undefined;
|
|
220
221
|
username?: string | null | undefined;
|
|
221
222
|
bio?: string | null | undefined;
|
|
223
|
+
post_id?: string | null | undefined;
|
|
222
224
|
last_active?: string | undefined;
|
|
223
225
|
} | undefined;
|
|
224
226
|
organization?: {
|
|
225
227
|
id?: string | undefined;
|
|
226
228
|
name?: string | undefined;
|
|
227
|
-
size?: string | undefined;
|
|
228
|
-
email?: string | null | undefined;
|
|
229
229
|
avatar_path?: string | null | undefined;
|
|
230
230
|
mission?: string | null | undefined;
|
|
231
|
+
size?: string | undefined;
|
|
232
|
+
email?: string | null | undefined;
|
|
231
233
|
domain?: string | null | undefined;
|
|
232
234
|
urls?: {
|
|
233
235
|
value: string;
|
|
234
236
|
}[] | null | undefined;
|
|
235
|
-
base_role?: "
|
|
237
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
236
238
|
} | undefined;
|
|
237
239
|
team?: {
|
|
238
240
|
id?: string | undefined;
|
|
239
|
-
name?: string | undefined;
|
|
240
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
241
|
-
description?: string | null | undefined;
|
|
242
241
|
org_id?: string | undefined;
|
|
243
242
|
created_at?: string | undefined;
|
|
244
|
-
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
245
|
+
description?: string | null | undefined;
|
|
246
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
245
247
|
} | undefined;
|
|
246
|
-
asset_type?: "
|
|
248
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
249
|
+
description?: string | null | undefined;
|
|
247
250
|
parent_id?: string | null | undefined;
|
|
251
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
248
252
|
name_url_slug?: string | null | undefined;
|
|
249
253
|
slug?: string | null | undefined;
|
|
250
254
|
price?: number | null | undefined;
|
|
@@ -254,6 +258,7 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
254
258
|
product_id?: string | null | undefined;
|
|
255
259
|
price_id?: string | null | undefined;
|
|
256
260
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
261
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
257
262
|
}>;
|
|
258
263
|
declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
|
|
259
264
|
id: z.ZodString;
|
|
@@ -271,6 +276,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
271
276
|
}, {
|
|
272
277
|
value: string;
|
|
273
278
|
}>, "many">>>;
|
|
279
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
274
280
|
last_active: z.ZodOptional<z.ZodString>;
|
|
275
281
|
}, "strip", z.ZodTypeAny, {
|
|
276
282
|
id?: string | undefined;
|
|
@@ -281,6 +287,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
281
287
|
}[] | undefined;
|
|
282
288
|
username?: string | null | undefined;
|
|
283
289
|
bio?: string | null | undefined;
|
|
290
|
+
post_id?: string | null | undefined;
|
|
284
291
|
last_active?: string | undefined;
|
|
285
292
|
}, {
|
|
286
293
|
id?: string | undefined;
|
|
@@ -291,6 +298,7 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
291
298
|
}[] | undefined;
|
|
292
299
|
username?: string | null | undefined;
|
|
293
300
|
bio?: string | null | undefined;
|
|
301
|
+
post_id?: string | null | undefined;
|
|
294
302
|
last_active?: string | undefined;
|
|
295
303
|
}>>;
|
|
296
304
|
org_id: z.ZodString;
|
|
@@ -313,27 +321,27 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
313
321
|
}, "strip", z.ZodTypeAny, {
|
|
314
322
|
id?: string | undefined;
|
|
315
323
|
name?: string | undefined;
|
|
316
|
-
size?: string | undefined;
|
|
317
|
-
email?: string | null | undefined;
|
|
318
324
|
avatar_path?: string | null | undefined;
|
|
319
325
|
mission?: string | null | undefined;
|
|
326
|
+
size?: string | undefined;
|
|
327
|
+
email?: string | null | undefined;
|
|
320
328
|
domain?: string | null | undefined;
|
|
321
329
|
urls?: {
|
|
322
330
|
value: string;
|
|
323
331
|
}[] | null | undefined;
|
|
324
|
-
base_role?: "
|
|
332
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
325
333
|
}, {
|
|
326
334
|
id?: string | undefined;
|
|
327
335
|
name?: string | undefined;
|
|
328
|
-
size?: string | undefined;
|
|
329
|
-
email?: string | null | undefined;
|
|
330
336
|
avatar_path?: string | null | undefined;
|
|
331
337
|
mission?: string | null | undefined;
|
|
338
|
+
size?: string | undefined;
|
|
339
|
+
email?: string | null | undefined;
|
|
332
340
|
domain?: string | null | undefined;
|
|
333
341
|
urls?: {
|
|
334
342
|
value: string;
|
|
335
343
|
}[] | null | undefined;
|
|
336
|
-
base_role?: "
|
|
344
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
337
345
|
}>>;
|
|
338
346
|
team_id: z.ZodString;
|
|
339
347
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -346,20 +354,20 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
346
354
|
created_at: z.ZodOptional<z.ZodString>;
|
|
347
355
|
}, "strip", z.ZodTypeAny, {
|
|
348
356
|
id?: string | undefined;
|
|
349
|
-
name?: string | undefined;
|
|
350
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
351
|
-
description?: string | null | undefined;
|
|
352
357
|
org_id?: string | undefined;
|
|
353
358
|
created_at?: string | undefined;
|
|
354
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
355
|
-
}, {
|
|
356
|
-
id?: string | undefined;
|
|
357
359
|
name?: string | undefined;
|
|
358
|
-
visibility?: "
|
|
360
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
359
361
|
description?: string | null | undefined;
|
|
362
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
363
|
+
}, {
|
|
364
|
+
id?: string | undefined;
|
|
360
365
|
org_id?: string | undefined;
|
|
361
366
|
created_at?: string | undefined;
|
|
362
|
-
|
|
367
|
+
name?: string | undefined;
|
|
368
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
369
|
+
description?: string | null | undefined;
|
|
370
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
363
371
|
}>>;
|
|
364
372
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
365
373
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -398,18 +406,15 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
398
406
|
visibility: z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
|
|
399
407
|
}>, "strip", z.ZodTypeAny, {
|
|
400
408
|
id: string;
|
|
401
|
-
|
|
402
|
-
|
|
409
|
+
org_id: string;
|
|
410
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
403
411
|
metadata: {
|
|
404
412
|
members: string[];
|
|
405
413
|
};
|
|
406
|
-
|
|
407
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
414
|
+
name: string;
|
|
408
415
|
team_id: string;
|
|
416
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
409
417
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
410
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
411
|
-
description?: string | null | undefined;
|
|
412
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
413
418
|
user?: {
|
|
414
419
|
id?: string | undefined;
|
|
415
420
|
user_id?: string | undefined;
|
|
@@ -419,31 +424,34 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
419
424
|
}[] | undefined;
|
|
420
425
|
username?: string | null | undefined;
|
|
421
426
|
bio?: string | null | undefined;
|
|
427
|
+
post_id?: string | null | undefined;
|
|
422
428
|
last_active?: string | undefined;
|
|
423
429
|
} | undefined;
|
|
424
430
|
organization?: {
|
|
425
431
|
id?: string | undefined;
|
|
426
432
|
name?: string | undefined;
|
|
427
|
-
size?: string | undefined;
|
|
428
|
-
email?: string | null | undefined;
|
|
429
433
|
avatar_path?: string | null | undefined;
|
|
430
434
|
mission?: string | null | undefined;
|
|
435
|
+
size?: string | undefined;
|
|
436
|
+
email?: string | null | undefined;
|
|
431
437
|
domain?: string | null | undefined;
|
|
432
438
|
urls?: {
|
|
433
439
|
value: string;
|
|
434
440
|
}[] | null | undefined;
|
|
435
|
-
base_role?: "
|
|
441
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
436
442
|
} | undefined;
|
|
437
443
|
team?: {
|
|
438
444
|
id?: string | undefined;
|
|
439
|
-
name?: string | undefined;
|
|
440
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
441
|
-
description?: string | null | undefined;
|
|
442
445
|
org_id?: string | undefined;
|
|
443
446
|
created_at?: string | undefined;
|
|
444
|
-
|
|
447
|
+
name?: string | undefined;
|
|
448
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
449
|
+
description?: string | null | undefined;
|
|
450
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
445
451
|
} | undefined;
|
|
452
|
+
description?: string | null | undefined;
|
|
446
453
|
parent_id?: string | null | undefined;
|
|
454
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
447
455
|
name_url_slug?: string | null | undefined;
|
|
448
456
|
slug?: string | null | undefined;
|
|
449
457
|
price?: number | null | undefined;
|
|
@@ -453,16 +461,12 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
453
461
|
product_id?: string | null | undefined;
|
|
454
462
|
price_id?: string | null | undefined;
|
|
455
463
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
464
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
456
465
|
}, {
|
|
457
|
-
name: string;
|
|
458
466
|
metadata: {
|
|
459
467
|
members: string[];
|
|
460
468
|
};
|
|
461
|
-
|
|
462
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
463
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
464
|
-
description?: string | null | undefined;
|
|
465
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
469
|
+
name: string;
|
|
466
470
|
user?: {
|
|
467
471
|
id?: string | undefined;
|
|
468
472
|
user_id?: string | undefined;
|
|
@@ -472,34 +476,39 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
472
476
|
}[] | undefined;
|
|
473
477
|
username?: string | null | undefined;
|
|
474
478
|
bio?: string | null | undefined;
|
|
479
|
+
post_id?: string | null | undefined;
|
|
475
480
|
last_active?: string | undefined;
|
|
476
481
|
} | undefined;
|
|
477
482
|
organization?: {
|
|
478
483
|
id?: string | undefined;
|
|
479
484
|
name?: string | undefined;
|
|
480
|
-
size?: string | undefined;
|
|
481
|
-
email?: string | null | undefined;
|
|
482
485
|
avatar_path?: string | null | undefined;
|
|
483
486
|
mission?: string | null | undefined;
|
|
487
|
+
size?: string | undefined;
|
|
488
|
+
email?: string | null | undefined;
|
|
484
489
|
domain?: string | null | undefined;
|
|
485
490
|
urls?: {
|
|
486
491
|
value: string;
|
|
487
492
|
}[] | null | undefined;
|
|
488
|
-
base_role?: "
|
|
493
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
489
494
|
} | undefined;
|
|
490
495
|
team?: {
|
|
491
496
|
id?: string | undefined;
|
|
492
|
-
name?: string | undefined;
|
|
493
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
494
|
-
description?: string | null | undefined;
|
|
495
497
|
org_id?: string | undefined;
|
|
496
498
|
created_at?: string | undefined;
|
|
497
|
-
|
|
499
|
+
name?: string | undefined;
|
|
500
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
501
|
+
description?: string | null | undefined;
|
|
502
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
498
503
|
} | undefined;
|
|
504
|
+
id?: string | undefined;
|
|
499
505
|
org_id?: string | undefined;
|
|
500
|
-
asset_type?: "
|
|
506
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
501
507
|
team_id?: string | undefined;
|
|
508
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
509
|
+
description?: string | null | undefined;
|
|
502
510
|
parent_id?: string | null | undefined;
|
|
511
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
503
512
|
name_url_slug?: string | null | undefined;
|
|
504
513
|
slug?: string | null | undefined;
|
|
505
514
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -510,20 +519,9 @@ declare const CreateConversationSchema: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
510
519
|
product_id?: string | null | undefined;
|
|
511
520
|
price_id?: string | null | undefined;
|
|
512
521
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
522
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
513
523
|
}>;
|
|
514
524
|
declare const UpdateConversationSchema: z.ZodObject<{
|
|
515
|
-
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
516
|
-
name: z.ZodOptional<z.ZodString>;
|
|
517
|
-
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
518
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
519
|
-
members: z.ZodArray<z.ZodString, "many">;
|
|
520
|
-
}, "strip", z.ZodTypeAny, {
|
|
521
|
-
members: string[];
|
|
522
|
-
}, {
|
|
523
|
-
members: string[];
|
|
524
|
-
}>>;
|
|
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">>>>;
|
|
527
525
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
528
526
|
id: z.ZodOptional<z.ZodString>;
|
|
529
527
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -543,30 +541,41 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
543
541
|
}, "strip", z.ZodTypeAny, {
|
|
544
542
|
id?: string | undefined;
|
|
545
543
|
name?: string | undefined;
|
|
546
|
-
size?: string | undefined;
|
|
547
|
-
email?: string | null | undefined;
|
|
548
544
|
avatar_path?: string | null | undefined;
|
|
549
545
|
mission?: string | null | undefined;
|
|
546
|
+
size?: string | undefined;
|
|
547
|
+
email?: string | null | undefined;
|
|
550
548
|
domain?: string | null | undefined;
|
|
551
549
|
urls?: {
|
|
552
550
|
value: string;
|
|
553
551
|
}[] | null | undefined;
|
|
554
|
-
base_role?: "
|
|
552
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
555
553
|
}, {
|
|
556
554
|
id?: string | undefined;
|
|
557
555
|
name?: string | undefined;
|
|
558
|
-
size?: string | undefined;
|
|
559
|
-
email?: string | null | undefined;
|
|
560
556
|
avatar_path?: string | null | undefined;
|
|
561
557
|
mission?: string | null | undefined;
|
|
558
|
+
size?: string | undefined;
|
|
559
|
+
email?: string | null | undefined;
|
|
562
560
|
domain?: string | null | undefined;
|
|
563
561
|
urls?: {
|
|
564
562
|
value: string;
|
|
565
563
|
}[] | null | undefined;
|
|
566
|
-
base_role?: "
|
|
564
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
567
565
|
}>>>;
|
|
568
566
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>>;
|
|
567
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
members: z.ZodArray<z.ZodString, "many">;
|
|
569
|
+
}, "strip", z.ZodTypeAny, {
|
|
570
|
+
members: string[];
|
|
571
|
+
}, {
|
|
572
|
+
members: string[];
|
|
573
|
+
}>>;
|
|
574
|
+
name: z.ZodOptional<z.ZodString>;
|
|
575
|
+
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
|
|
576
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
569
577
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
578
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
570
579
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
571
580
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
572
581
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>>;
|
|
@@ -577,30 +586,30 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
577
586
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
578
587
|
price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
579
588
|
preview: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>>;
|
|
589
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
580
590
|
}, "strip", z.ZodTypeAny, {
|
|
581
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
582
|
-
name?: string | undefined;
|
|
583
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
584
|
-
metadata?: {
|
|
585
|
-
members: string[];
|
|
586
|
-
} | undefined;
|
|
587
|
-
description?: string | null | undefined;
|
|
588
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
589
591
|
organization?: {
|
|
590
592
|
id?: string | undefined;
|
|
591
593
|
name?: string | undefined;
|
|
592
|
-
size?: string | undefined;
|
|
593
|
-
email?: string | null | undefined;
|
|
594
594
|
avatar_path?: string | null | undefined;
|
|
595
595
|
mission?: string | null | undefined;
|
|
596
|
+
size?: string | undefined;
|
|
597
|
+
email?: string | null | undefined;
|
|
596
598
|
domain?: string | null | undefined;
|
|
597
599
|
urls?: {
|
|
598
600
|
value: string;
|
|
599
601
|
}[] | null | undefined;
|
|
600
|
-
base_role?: "
|
|
602
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
605
|
+
metadata?: {
|
|
606
|
+
members: string[];
|
|
601
607
|
} | undefined;
|
|
602
|
-
|
|
608
|
+
name?: string | undefined;
|
|
609
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
610
|
+
description?: string | null | undefined;
|
|
603
611
|
parent_id?: string | null | undefined;
|
|
612
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
604
613
|
name_url_slug?: string | null | undefined;
|
|
605
614
|
slug?: string | null | undefined;
|
|
606
615
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -611,30 +620,30 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
611
620
|
product_id?: string | null | undefined;
|
|
612
621
|
price_id?: string | null | undefined;
|
|
613
622
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
623
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
614
624
|
}, {
|
|
615
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
616
|
-
name?: string | undefined;
|
|
617
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
618
|
-
metadata?: {
|
|
619
|
-
members: string[];
|
|
620
|
-
} | undefined;
|
|
621
|
-
description?: string | null | undefined;
|
|
622
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
623
625
|
organization?: {
|
|
624
626
|
id?: string | undefined;
|
|
625
627
|
name?: string | undefined;
|
|
626
|
-
size?: string | undefined;
|
|
627
|
-
email?: string | null | undefined;
|
|
628
628
|
avatar_path?: string | null | undefined;
|
|
629
629
|
mission?: string | null | undefined;
|
|
630
|
+
size?: string | undefined;
|
|
631
|
+
email?: string | null | undefined;
|
|
630
632
|
domain?: string | null | undefined;
|
|
631
633
|
urls?: {
|
|
632
634
|
value: string;
|
|
633
635
|
}[] | null | undefined;
|
|
634
|
-
base_role?: "
|
|
636
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
635
637
|
} | undefined;
|
|
636
|
-
asset_type?: "
|
|
638
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
639
|
+
metadata?: {
|
|
640
|
+
members: string[];
|
|
641
|
+
} | undefined;
|
|
642
|
+
name?: string | undefined;
|
|
643
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
644
|
+
description?: string | null | undefined;
|
|
637
645
|
parent_id?: string | null | undefined;
|
|
646
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
638
647
|
name_url_slug?: string | null | undefined;
|
|
639
648
|
slug?: string | null | undefined;
|
|
640
649
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -645,6 +654,7 @@ declare const UpdateConversationSchema: z.ZodObject<{
|
|
|
645
654
|
product_id?: string | null | undefined;
|
|
646
655
|
price_id?: string | null | undefined;
|
|
647
656
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
657
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
648
658
|
}>;
|
|
649
659
|
declare const MessageSchema: z.ZodObject<{
|
|
650
660
|
id: z.ZodString;
|
|
@@ -667,33 +677,33 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
667
677
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
668
678
|
}, "strip", z.ZodTypeAny, {
|
|
669
679
|
id: string;
|
|
680
|
+
user_id: string;
|
|
681
|
+
created_at: string;
|
|
682
|
+
last_updated: string;
|
|
670
683
|
text: string;
|
|
671
684
|
json: {
|
|
672
685
|
type: "doc";
|
|
673
686
|
content: any[];
|
|
674
687
|
};
|
|
675
|
-
user_id: string;
|
|
676
|
-
created_at: string;
|
|
677
|
-
last_updated: string;
|
|
678
688
|
conversation_id: string;
|
|
679
689
|
viewers: string[];
|
|
680
690
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
681
691
|
}, {
|
|
682
692
|
id: string;
|
|
693
|
+
user_id: string;
|
|
694
|
+
created_at: string;
|
|
695
|
+
last_updated: string;
|
|
683
696
|
text: string;
|
|
684
697
|
json: {
|
|
685
698
|
type: "doc";
|
|
686
699
|
content: any[];
|
|
687
700
|
};
|
|
688
|
-
user_id: string;
|
|
689
|
-
created_at: string;
|
|
690
|
-
last_updated: string;
|
|
691
701
|
conversation_id: string;
|
|
692
702
|
viewers: string[];
|
|
693
703
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
694
704
|
}>;
|
|
695
|
-
|
|
696
|
-
type
|
|
697
|
-
type
|
|
698
|
-
type
|
|
699
|
-
export
|
|
705
|
+
export { MessageSchema, UpdateConversationSchema, CreateConversationSchema, ConversationSchema, };
|
|
706
|
+
export type Conversation = z.infer<typeof ConversationSchema>;
|
|
707
|
+
export type CreateConversation = z.infer<typeof CreateConversationSchema>;
|
|
708
|
+
export type UpdateConversation = z.infer<typeof UpdateConversationSchema>;
|
|
709
|
+
export type Message = z.infer<typeof MessageSchema>;
|