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