@ourofoundation/ouro-js 1.0.2 → 1.0.4

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.
@@ -40,7 +40,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
40
40
  org_id: z.ZodString;
41
41
  organization: z.ZodOptional<z.ZodObject<{
42
42
  id: z.ZodOptional<z.ZodString>;
43
- owner_id: z.ZodOptional<z.ZodString>;
44
43
  name: z.ZodOptional<z.ZodString>;
45
44
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
45
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -60,7 +59,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
60
59
  name?: string | undefined;
61
60
  size?: string | undefined;
62
61
  email?: string | null | undefined;
63
- owner_id?: string | undefined;
64
62
  avatar_path?: string | null | undefined;
65
63
  mission?: string | null | undefined;
66
64
  domain?: string | null | undefined;
@@ -73,7 +71,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
73
71
  name?: string | undefined;
74
72
  size?: string | undefined;
75
73
  email?: string | null | undefined;
76
- owner_id?: string | undefined;
77
74
  avatar_path?: string | null | undefined;
78
75
  mission?: string | null | undefined;
79
76
  domain?: string | null | undefined;
@@ -109,7 +106,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
109
106
  default_role?: "none" | "admin" | "read" | "write" | undefined;
110
107
  }>>;
111
108
  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"]>;
109
+ asset_type: z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
113
110
  name: z.ZodString;
114
111
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
112
  slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -124,72 +121,68 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
124
121
  price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
122
  metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
126
123
  preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
124
+ state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
127
125
  created_at: z.ZodString;
128
126
  last_updated: z.ZodString;
129
127
  }, {
130
- asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
131
- metadata: z.ZodObject<{
128
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
129
+ metadata: z.ZodObject<z.objectUtil.extendShape<{
132
130
  table_name: z.ZodString;
133
- schema: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
134
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ schema: z.ZodLiteral<"datasets">;
132
+ columns: z.ZodArray<z.ZodString, "many">;
133
+ }, {
135
134
  type: z.ZodOptional<z.ZodString>;
136
135
  size: z.ZodOptional<z.ZodNumber>;
137
- width: z.ZodOptional<z.ZodNumber>;
138
- height: z.ZodOptional<z.ZodNumber>;
139
136
  path: z.ZodOptional<z.ZodString>;
140
- fullPath: z.ZodOptional<z.ZodString>;
141
137
  name: z.ZodOptional<z.ZodString>;
142
138
  id: z.ZodOptional<z.ZodString>;
143
- }, "strip", z.ZodTypeAny, {
144
- schema: string;
139
+ bucket: z.ZodOptional<z.ZodEnum<["public-files", "files"]>>;
140
+ }>, "strip", z.ZodTypeAny, {
141
+ columns: string[];
142
+ schema: "datasets";
145
143
  table_name: string;
146
144
  type?: string | undefined;
147
145
  id?: string | undefined;
148
- height?: number | undefined;
149
- width?: number | undefined;
150
146
  name?: string | undefined;
151
- columns?: string[] | undefined;
152
147
  path?: string | undefined;
153
148
  size?: number | undefined;
154
- fullPath?: string | undefined;
149
+ bucket?: "public-files" | "files" | undefined;
155
150
  }, {
151
+ columns: string[];
152
+ schema: "datasets";
156
153
  table_name: string;
157
154
  type?: string | undefined;
158
155
  id?: string | undefined;
159
- height?: number | undefined;
160
- width?: number | undefined;
161
156
  name?: string | undefined;
162
- columns?: string[] | undefined;
163
157
  path?: string | undefined;
164
158
  size?: number | undefined;
165
- schema?: string | undefined;
166
- fullPath?: string | undefined;
159
+ bucket?: "public-files" | "files" | undefined;
167
160
  }>;
168
- preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
161
+ preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
169
162
  }>, "strip", z.ZodTypeAny, {
170
163
  id: string;
171
164
  name: string;
172
165
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
173
166
  metadata: {
174
- schema: string;
167
+ columns: string[];
168
+ schema: "datasets";
175
169
  table_name: string;
176
170
  type?: string | undefined;
177
171
  id?: string | undefined;
178
- height?: number | undefined;
179
- width?: number | undefined;
180
172
  name?: string | undefined;
181
- columns?: string[] | undefined;
182
173
  path?: string | undefined;
183
174
  size?: number | undefined;
184
- fullPath?: string | undefined;
175
+ bucket?: "public-files" | "files" | undefined;
185
176
  };
186
177
  user_id: string;
187
178
  org_id: string;
188
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
179
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
189
180
  created_at: string;
190
181
  last_updated: string;
191
182
  team_id: string;
192
183
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
184
+ preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
185
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
193
186
  description?: string | null | undefined;
194
187
  user?: {
195
188
  id?: string | undefined;
@@ -207,7 +200,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
207
200
  name?: string | undefined;
208
201
  size?: string | undefined;
209
202
  email?: string | null | undefined;
210
- owner_id?: string | undefined;
211
203
  avatar_path?: string | null | undefined;
212
204
  mission?: string | null | undefined;
213
205
  domain?: string | null | undefined;
@@ -234,31 +226,30 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
234
226
  cost_unit?: string | null | undefined;
235
227
  product_id?: string | null | undefined;
236
228
  price_id?: string | null | undefined;
237
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
238
229
  }, {
239
230
  id: string;
240
231
  name: string;
241
232
  visibility: "inherit" | "private" | "public" | "organization" | "monetized";
242
233
  metadata: {
234
+ columns: string[];
235
+ schema: "datasets";
243
236
  table_name: string;
244
237
  type?: string | undefined;
245
238
  id?: string | undefined;
246
- height?: number | undefined;
247
- width?: number | undefined;
248
239
  name?: string | undefined;
249
- columns?: string[] | undefined;
250
240
  path?: string | undefined;
251
241
  size?: number | undefined;
252
- schema?: string | undefined;
253
- fullPath?: string | undefined;
242
+ bucket?: "public-files" | "files" | undefined;
254
243
  };
255
244
  user_id: string;
256
245
  org_id: string;
257
- asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
246
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
258
247
  created_at: string;
259
248
  last_updated: string;
260
249
  team_id: string;
261
250
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
251
+ preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
252
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
262
253
  description?: string | null | undefined;
263
254
  user?: {
264
255
  id?: string | undefined;
@@ -276,7 +267,6 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
276
267
  name?: string | undefined;
277
268
  size?: string | undefined;
278
269
  email?: string | null | undefined;
279
- owner_id?: string | undefined;
280
270
  avatar_path?: string | null | undefined;
281
271
  mission?: string | null | undefined;
282
272
  domain?: string | null | undefined;
@@ -303,9 +293,8 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
303
293
  cost_unit?: string | null | undefined;
304
294
  product_id?: string | null | undefined;
305
295
  price_id?: string | null | undefined;
306
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
307
296
  }>;
308
- declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
297
+ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
309
298
  id: z.ZodOptional<z.ZodString>;
310
299
  user_id: z.ZodOptional<z.ZodString>;
311
300
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -346,7 +335,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
346
335
  org_id: z.ZodOptional<z.ZodString>;
347
336
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
348
337
  id: z.ZodOptional<z.ZodString>;
349
- owner_id: z.ZodOptional<z.ZodString>;
350
338
  name: z.ZodOptional<z.ZodString>;
351
339
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
352
340
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -366,7 +354,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
366
354
  name?: string | undefined;
367
355
  size?: string | undefined;
368
356
  email?: string | null | undefined;
369
- owner_id?: string | undefined;
370
357
  avatar_path?: string | null | undefined;
371
358
  mission?: string | null | undefined;
372
359
  domain?: string | null | undefined;
@@ -379,7 +366,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
379
366
  name?: string | undefined;
380
367
  size?: string | undefined;
381
368
  email?: string | null | undefined;
382
- owner_id?: string | undefined;
383
369
  avatar_path?: string | null | undefined;
384
370
  mission?: string | null | undefined;
385
371
  domain?: string | null | undefined;
@@ -415,7 +401,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
415
401
  default_role?: "none" | "admin" | "read" | "write" | undefined;
416
402
  }>>>;
417
403
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
418
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
404
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
419
405
  name: z.ZodOptional<z.ZodString>;
420
406
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
421
407
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -430,6 +416,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
430
416
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
431
417
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
432
418
  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">>>>;
419
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
433
420
  created_at: z.ZodOptional<z.ZodString>;
434
421
  last_updated: z.ZodOptional<z.ZodString>;
435
422
  }, "user_id">, {
@@ -437,71 +424,63 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
437
424
  team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
438
425
  org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
439
426
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
440
- metadata: z.ZodObject<z.objectUtil.extendShape<Omit<{
427
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
428
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
429
+ }>, {
430
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
431
+ metadata: z.ZodObject<z.objectUtil.extendShape<{
441
432
  table_name: z.ZodString;
442
- schema: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
443
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
444
- type: z.ZodOptional<z.ZodString>;
445
- size: z.ZodOptional<z.ZodNumber>;
446
- width: z.ZodOptional<z.ZodNumber>;
447
- height: z.ZodOptional<z.ZodNumber>;
448
- path: z.ZodOptional<z.ZodString>;
449
- fullPath: z.ZodOptional<z.ZodString>;
450
- name: z.ZodOptional<z.ZodString>;
451
- id: z.ZodOptional<z.ZodString>;
452
- }, "schema">, {
433
+ schema: z.ZodLiteral<"datasets">;
434
+ columns: z.ZodArray<z.ZodString, "many">;
435
+ }, {
453
436
  type: z.ZodString;
437
+ size: z.ZodNumber;
454
438
  path: z.ZodString;
455
439
  name: z.ZodString;
456
- size: z.ZodNumber;
457
- width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
458
- height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
459
- table_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
460
- bucket: z.ZodNullable<z.ZodOptional<z.ZodString>>;
440
+ id: z.ZodString;
441
+ bucket: z.ZodEnum<["public-files", "files"]>;
461
442
  }>, "strip", z.ZodTypeAny, {
462
443
  type: string;
444
+ id: string;
463
445
  name: string;
446
+ columns: string[];
464
447
  path: string;
465
448
  size: number;
466
- id?: string | undefined;
467
- height?: number | null | undefined;
468
- width?: number | null | undefined;
469
- columns?: string[] | undefined;
470
- table_name?: string | null | undefined;
471
- fullPath?: string | undefined;
472
- bucket?: string | null | undefined;
449
+ schema: "datasets";
450
+ table_name: string;
451
+ bucket: "public-files" | "files";
473
452
  }, {
474
453
  type: string;
454
+ id: string;
475
455
  name: string;
456
+ columns: string[];
476
457
  path: string;
477
458
  size: number;
478
- id?: string | undefined;
479
- height?: number | null | undefined;
480
- width?: number | null | undefined;
481
- columns?: string[] | undefined;
482
- table_name?: string | null | undefined;
483
- fullPath?: string | undefined;
484
- bucket?: string | null | undefined;
459
+ schema: "datasets";
460
+ table_name: string;
461
+ bucket: "public-files" | "files";
485
462
  }>;
463
+ preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
486
464
  }>, "strip", z.ZodTypeAny, {
487
465
  id: string;
466
+ state: "error" | "in-progress" | "success" | "queued";
467
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
488
468
  metadata: {
489
469
  type: string;
470
+ id: string;
490
471
  name: string;
472
+ columns: string[];
491
473
  path: string;
492
474
  size: number;
493
- id?: string | undefined;
494
- height?: number | null | undefined;
495
- width?: number | null | undefined;
496
- columns?: string[] | undefined;
497
- table_name?: string | null | undefined;
498
- fullPath?: string | undefined;
499
- bucket?: string | null | undefined;
475
+ schema: "datasets";
476
+ table_name: string;
477
+ bucket: "public-files" | "files";
500
478
  };
501
479
  org_id: string | null;
480
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
502
481
  team_id: string | null;
482
+ preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
503
483
  name?: string | undefined;
504
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
505
484
  description?: string | null | undefined;
506
485
  user?: {
507
486
  id?: string | undefined;
@@ -519,7 +498,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
519
498
  name?: string | undefined;
520
499
  size?: string | undefined;
521
500
  email?: string | null | undefined;
522
- owner_id?: string | undefined;
523
501
  avatar_path?: string | null | undefined;
524
502
  mission?: string | null | undefined;
525
503
  domain?: string | null | undefined;
@@ -528,6 +506,8 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
528
506
  }[] | null | undefined;
529
507
  base_role?: "none" | "admin" | "read" | "write" | undefined;
530
508
  } | undefined;
509
+ created_at?: string | undefined;
510
+ last_updated?: string | undefined;
531
511
  team?: {
532
512
  id?: string | undefined;
533
513
  name?: string | undefined;
@@ -537,9 +517,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
537
517
  created_at?: string | undefined;
538
518
  default_role?: "none" | "admin" | "read" | "write" | undefined;
539
519
  } | undefined;
540
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
541
- created_at?: string | undefined;
542
- last_updated?: string | undefined;
543
520
  parent_id?: string | null | undefined;
544
521
  name_url_slug?: string | null | undefined;
545
522
  slug?: string | null | undefined;
@@ -550,22 +527,22 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
550
527
  cost_unit?: string | null | undefined;
551
528
  product_id?: string | null | undefined;
552
529
  price_id?: string | null | undefined;
553
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
554
530
  }, {
555
531
  metadata: {
556
532
  type: string;
533
+ id: string;
557
534
  name: string;
535
+ columns: string[];
558
536
  path: string;
559
537
  size: number;
560
- id?: string | undefined;
561
- height?: number | null | undefined;
562
- width?: number | null | undefined;
563
- columns?: string[] | undefined;
564
- table_name?: string | null | undefined;
565
- fullPath?: string | undefined;
566
- bucket?: string | null | undefined;
538
+ schema: "datasets";
539
+ table_name: string;
540
+ bucket: "public-files" | "files";
567
541
  };
542
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
543
+ preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
568
544
  id?: string | undefined;
545
+ state?: "error" | "in-progress" | "success" | "queued" | undefined;
569
546
  name?: string | undefined;
570
547
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
571
548
  description?: string | null | undefined;
@@ -585,7 +562,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
585
562
  name?: string | undefined;
586
563
  size?: string | undefined;
587
564
  email?: string | null | undefined;
588
- owner_id?: string | undefined;
589
565
  avatar_path?: string | null | undefined;
590
566
  mission?: string | null | undefined;
591
567
  domain?: string | null | undefined;
@@ -594,6 +570,10 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
594
570
  }[] | null | undefined;
595
571
  base_role?: "none" | "admin" | "read" | "write" | undefined;
596
572
  } | undefined;
573
+ org_id?: string | null | undefined;
574
+ created_at?: string | undefined;
575
+ last_updated?: string | undefined;
576
+ team_id?: string | null | undefined;
597
577
  team?: {
598
578
  id?: string | undefined;
599
579
  name?: string | undefined;
@@ -603,11 +583,6 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
603
583
  created_at?: string | undefined;
604
584
  default_role?: "none" | "admin" | "read" | "write" | undefined;
605
585
  } | undefined;
606
- org_id?: string | null | undefined;
607
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
608
- created_at?: string | undefined;
609
- last_updated?: string | undefined;
610
- team_id?: string | null | undefined;
611
586
  parent_id?: string | null | undefined;
612
587
  name_url_slug?: string | null | undefined;
613
588
  slug?: string | null | undefined;
@@ -618,9 +593,8 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
618
593
  cost_unit?: string | null | undefined;
619
594
  product_id?: string | null | undefined;
620
595
  price_id?: string | null | undefined;
621
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
622
596
  }>;
623
- declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
597
+ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
624
598
  id: z.ZodOptional<z.ZodString>;
625
599
  user_id: z.ZodOptional<z.ZodString>;
626
600
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -661,7 +635,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
661
635
  org_id: z.ZodOptional<z.ZodString>;
662
636
  organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
663
637
  id: z.ZodOptional<z.ZodString>;
664
- owner_id: z.ZodOptional<z.ZodString>;
665
638
  name: z.ZodOptional<z.ZodString>;
666
639
  avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
667
640
  mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -681,7 +654,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
681
654
  name?: string | undefined;
682
655
  size?: string | undefined;
683
656
  email?: string | null | undefined;
684
- owner_id?: string | undefined;
685
657
  avatar_path?: string | null | undefined;
686
658
  mission?: string | null | undefined;
687
659
  domain?: string | null | undefined;
@@ -694,7 +666,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
694
666
  name?: string | undefined;
695
667
  size?: string | undefined;
696
668
  email?: string | null | undefined;
697
- owner_id?: string | undefined;
698
669
  avatar_path?: string | null | undefined;
699
670
  mission?: string | null | undefined;
700
671
  domain?: string | null | undefined;
@@ -730,7 +701,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
730
701
  default_role?: "none" | "admin" | "read" | "write" | undefined;
731
702
  }>>>;
732
703
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
733
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
704
+ asset_type: z.ZodOptional<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
734
705
  name: z.ZodOptional<z.ZodString>;
735
706
  name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
736
707
  slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -745,20 +716,46 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
745
716
  price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
746
717
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
747
718
  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">>>>;
719
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
748
720
  created_at: z.ZodOptional<z.ZodString>;
749
721
  last_updated: z.ZodOptional<z.ZodString>;
750
- }, never>, {
722
+ }, "user_id">, {
751
723
  id: z.ZodDefault<z.ZodString>;
752
- team_id: z.ZodDefault<z.ZodString>;
753
- org_id: z.ZodDefault<z.ZodString>;
724
+ team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
725
+ org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
754
726
  name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
727
+ state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
728
+ visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
729
+ }>, {
730
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
731
+ metadata: z.ZodObject<{
732
+ table_name: z.ZodString;
733
+ schema: z.ZodLiteral<"datasets">;
734
+ columns: z.ZodArray<z.ZodString, "many">;
735
+ }, "strip", z.ZodTypeAny, {
736
+ columns: string[];
737
+ schema: "datasets";
738
+ table_name: string;
739
+ }, {
740
+ columns: string[];
741
+ schema: "datasets";
742
+ table_name: string;
743
+ }>;
744
+ preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
755
745
  }>, "strip", z.ZodTypeAny, {
756
746
  id: string;
757
- org_id: string;
758
- team_id: string;
747
+ state: "error" | "in-progress" | "success" | "queued";
748
+ visibility: "inherit" | "private" | "public" | "organization" | "monetized";
749
+ metadata: {
750
+ columns: string[];
751
+ schema: "datasets";
752
+ table_name: string;
753
+ };
754
+ org_id: string | null;
755
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
756
+ team_id: string | null;
757
+ preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
759
758
  name?: string | undefined;
760
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
761
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
762
759
  description?: string | null | undefined;
763
760
  user?: {
764
761
  id?: string | undefined;
@@ -776,7 +773,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
776
773
  name?: string | undefined;
777
774
  size?: string | undefined;
778
775
  email?: string | null | undefined;
779
- owner_id?: string | undefined;
780
776
  avatar_path?: string | null | undefined;
781
777
  mission?: string | null | undefined;
782
778
  domain?: string | null | undefined;
@@ -785,6 +781,8 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
785
781
  }[] | null | undefined;
786
782
  base_role?: "none" | "admin" | "read" | "write" | undefined;
787
783
  } | undefined;
784
+ created_at?: string | undefined;
785
+ last_updated?: string | undefined;
788
786
  team?: {
789
787
  id?: string | undefined;
790
788
  name?: string | undefined;
@@ -794,10 +792,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
794
792
  created_at?: string | undefined;
795
793
  default_role?: "none" | "admin" | "read" | "write" | undefined;
796
794
  } | undefined;
797
- user_id?: string | undefined;
798
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
799
- created_at?: string | undefined;
800
- last_updated?: string | undefined;
801
795
  parent_id?: string | null | undefined;
802
796
  name_url_slug?: string | null | undefined;
803
797
  slug?: string | null | undefined;
@@ -808,12 +802,18 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
808
802
  cost_unit?: string | null | undefined;
809
803
  product_id?: string | null | undefined;
810
804
  price_id?: string | null | undefined;
811
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
812
805
  }, {
806
+ metadata: {
807
+ columns: string[];
808
+ schema: "datasets";
809
+ table_name: string;
810
+ };
811
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
812
+ preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
813
813
  id?: string | undefined;
814
+ state?: "error" | "in-progress" | "success" | "queued" | undefined;
814
815
  name?: string | undefined;
815
816
  visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
816
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
817
817
  description?: string | null | undefined;
818
818
  user?: {
819
819
  id?: string | undefined;
@@ -831,7 +831,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
831
831
  name?: string | undefined;
832
832
  size?: string | undefined;
833
833
  email?: string | null | undefined;
834
- owner_id?: string | undefined;
835
834
  avatar_path?: string | null | undefined;
836
835
  mission?: string | null | undefined;
837
836
  domain?: string | null | undefined;
@@ -840,6 +839,10 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
840
839
  }[] | null | undefined;
841
840
  base_role?: "none" | "admin" | "read" | "write" | undefined;
842
841
  } | undefined;
842
+ org_id?: string | null | undefined;
843
+ created_at?: string | undefined;
844
+ last_updated?: string | undefined;
845
+ team_id?: string | null | undefined;
843
846
  team?: {
844
847
  id?: string | undefined;
845
848
  name?: string | undefined;
@@ -849,12 +852,6 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
849
852
  created_at?: string | undefined;
850
853
  default_role?: "none" | "admin" | "read" | "write" | undefined;
851
854
  } | undefined;
852
- user_id?: string | undefined;
853
- org_id?: string | undefined;
854
- asset_type?: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
855
- created_at?: string | undefined;
856
- last_updated?: string | undefined;
857
- team_id?: string | undefined;
858
855
  parent_id?: string | null | undefined;
859
856
  name_url_slug?: string | null | undefined;
860
857
  slug?: string | null | undefined;
@@ -865,51 +862,294 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
865
862
  cost_unit?: string | null | undefined;
866
863
  product_id?: string | null | undefined;
867
864
  price_id?: string | null | undefined;
868
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
869
865
  }>;
870
- declare const updateDatasetSchema: z.ZodObject<{
871
- team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
- visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
876
- monetization: z.ZodOptional<z.ZodNullable<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>>;
877
- price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
878
- metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
879
- table_name: z.ZodString;
880
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
881
- table_name: z.ZodString;
882
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
866
+ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
867
+ id: z.ZodOptional<z.ZodString>;
868
+ user_id: z.ZodOptional<z.ZodString>;
869
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
870
+ id: z.ZodOptional<z.ZodString>;
871
+ user_id: z.ZodOptional<z.ZodString>;
872
+ username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
873
+ avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
874
+ bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
875
+ urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
876
+ value: z.ZodString;
877
+ }, "strip", z.ZodTypeAny, {
878
+ value: string;
879
+ }, {
880
+ value: string;
881
+ }>, "many">>>;
882
+ last_active: z.ZodOptional<z.ZodString>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ id?: string | undefined;
885
+ user_id?: string | undefined;
886
+ avatar_path?: string | null | undefined;
887
+ urls?: {
888
+ value: string;
889
+ }[] | undefined;
890
+ username?: string | null | undefined;
891
+ bio?: string | null | undefined;
892
+ last_active?: string | undefined;
893
+ }, {
894
+ id?: string | undefined;
895
+ user_id?: string | undefined;
896
+ avatar_path?: string | null | undefined;
897
+ urls?: {
898
+ value: string;
899
+ }[] | undefined;
900
+ username?: string | null | undefined;
901
+ bio?: string | null | undefined;
902
+ last_active?: string | undefined;
903
+ }>>>;
904
+ org_id: z.ZodOptional<z.ZodString>;
905
+ organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
906
+ id: z.ZodOptional<z.ZodString>;
907
+ name: z.ZodOptional<z.ZodString>;
908
+ avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
909
+ mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
910
+ size: z.ZodOptional<z.ZodString>;
911
+ email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
912
+ domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
913
+ urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
914
+ value: z.ZodString;
915
+ }, "strip", z.ZodTypeAny, {
916
+ value: string;
917
+ }, {
918
+ value: string;
919
+ }>, "many">>>>;
920
+ base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ id?: string | undefined;
923
+ name?: string | undefined;
924
+ size?: string | undefined;
925
+ email?: string | null | undefined;
926
+ avatar_path?: string | null | undefined;
927
+ mission?: string | null | undefined;
928
+ domain?: string | null | undefined;
929
+ urls?: {
930
+ value: string;
931
+ }[] | null | undefined;
932
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
933
+ }, {
934
+ id?: string | undefined;
935
+ name?: string | undefined;
936
+ size?: string | undefined;
937
+ email?: string | null | undefined;
938
+ avatar_path?: string | null | undefined;
939
+ mission?: string | null | undefined;
940
+ domain?: string | null | undefined;
941
+ urls?: {
942
+ value: string;
943
+ }[] | null | undefined;
944
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
945
+ }>>>;
946
+ team_id: z.ZodOptional<z.ZodString>;
947
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
948
+ id: z.ZodOptional<z.ZodString>;
949
+ org_id: z.ZodOptional<z.ZodString>;
950
+ name: z.ZodOptional<z.ZodString>;
951
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
952
+ default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
953
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
954
+ created_at: z.ZodOptional<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ id?: string | undefined;
957
+ name?: string | undefined;
958
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
959
+ description?: string | null | undefined;
960
+ org_id?: string | undefined;
961
+ created_at?: string | undefined;
962
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
963
+ }, {
964
+ id?: string | undefined;
965
+ name?: string | undefined;
966
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
967
+ description?: string | null | undefined;
968
+ org_id?: string | undefined;
969
+ created_at?: string | undefined;
970
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
971
+ }>>>;
972
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
973
+ name: z.ZodOptional<z.ZodString>;
974
+ name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
975
+ slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
976
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
977
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
978
+ monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
979
+ price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
980
+ unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
981
+ cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
982
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
983
+ product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
984
+ price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
985
+ state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
986
+ created_at: z.ZodOptional<z.ZodString>;
987
+ last_updated: z.ZodOptional<z.ZodString>;
988
+ asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
989
+ metadata: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
883
990
  table_name: z.ZodString;
884
- }, z.ZodTypeAny, "passthrough">>>>;
885
- preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
991
+ schema: z.ZodLiteral<"datasets">;
992
+ columns: z.ZodArray<z.ZodString, "many">;
993
+ }, {
994
+ type: z.ZodOptional<z.ZodString>;
995
+ size: z.ZodOptional<z.ZodNumber>;
996
+ path: z.ZodOptional<z.ZodString>;
997
+ name: z.ZodOptional<z.ZodString>;
998
+ id: z.ZodOptional<z.ZodString>;
999
+ bucket: z.ZodOptional<z.ZodEnum<["public-files", "files"]>>;
1000
+ }>, "strip", z.ZodTypeAny, {
1001
+ columns: string[];
1002
+ schema: "datasets";
1003
+ table_name: string;
1004
+ type?: string | undefined;
1005
+ id?: string | undefined;
1006
+ name?: string | undefined;
1007
+ path?: string | undefined;
1008
+ size?: number | undefined;
1009
+ bucket?: "public-files" | "files" | undefined;
1010
+ }, {
1011
+ columns: string[];
1012
+ schema: "datasets";
1013
+ table_name: string;
1014
+ type?: string | undefined;
1015
+ id?: string | undefined;
1016
+ name?: string | undefined;
1017
+ path?: string | undefined;
1018
+ size?: number | undefined;
1019
+ bucket?: "public-files" | "files" | undefined;
1020
+ }>>;
1021
+ preview: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
1022
+ }, "id" | "user_id" | "created_at" | "last_updated">, {
1023
+ asset_type: z.ZodEffects<z.ZodEnum<["dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
886
1024
  last_updated: z.ZodDefault<z.ZodString>;
887
- }, "strip", z.ZodTypeAny, {
1025
+ }>, "strip", z.ZodTypeAny, {
1026
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
888
1027
  last_updated: string;
889
- name?: string | null | undefined;
890
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
891
- metadata?: z.objectOutputType<{
892
- table_name: z.ZodString;
893
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1028
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1029
+ name?: string | undefined;
1030
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1031
+ metadata?: {
1032
+ columns: string[];
1033
+ schema: "datasets";
1034
+ table_name: string;
1035
+ type?: string | undefined;
1036
+ id?: string | undefined;
1037
+ name?: string | undefined;
1038
+ path?: string | undefined;
1039
+ size?: number | undefined;
1040
+ bucket?: "public-files" | "files" | undefined;
1041
+ } | undefined;
894
1042
  description?: string | null | undefined;
895
- team_id?: string | null | undefined;
1043
+ user?: {
1044
+ id?: string | undefined;
1045
+ user_id?: string | undefined;
1046
+ avatar_path?: string | null | undefined;
1047
+ urls?: {
1048
+ value: string;
1049
+ }[] | undefined;
1050
+ username?: string | null | undefined;
1051
+ bio?: string | null | undefined;
1052
+ last_active?: string | undefined;
1053
+ } | undefined;
1054
+ organization?: {
1055
+ id?: string | undefined;
1056
+ name?: string | undefined;
1057
+ size?: string | undefined;
1058
+ email?: string | null | undefined;
1059
+ avatar_path?: string | null | undefined;
1060
+ mission?: string | null | undefined;
1061
+ domain?: string | null | undefined;
1062
+ urls?: {
1063
+ value: string;
1064
+ }[] | null | undefined;
1065
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1066
+ } | undefined;
1067
+ org_id?: string | undefined;
1068
+ team_id?: string | undefined;
1069
+ team?: {
1070
+ id?: string | undefined;
1071
+ name?: string | undefined;
1072
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1073
+ description?: string | null | undefined;
1074
+ org_id?: string | undefined;
1075
+ created_at?: string | undefined;
1076
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1077
+ } | undefined;
1078
+ parent_id?: string | null | undefined;
896
1079
  name_url_slug?: string | null | undefined;
897
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | null | undefined;
1080
+ slug?: string | null | undefined;
1081
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
898
1082
  price?: number | null | undefined;
899
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1083
+ unit_cost?: number | null | undefined;
1084
+ cost_accounting?: "fixed" | "variable" | null | undefined;
1085
+ cost_unit?: string | null | undefined;
1086
+ product_id?: string | null | undefined;
1087
+ price_id?: string | null | undefined;
1088
+ preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
900
1089
  }, {
901
- name?: string | null | undefined;
902
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
903
- metadata?: z.objectInputType<{
904
- table_name: z.ZodString;
905
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1090
+ asset_type: "file" | "dataset" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
1091
+ state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
1092
+ name?: string | undefined;
1093
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1094
+ metadata?: {
1095
+ columns: string[];
1096
+ schema: "datasets";
1097
+ table_name: string;
1098
+ type?: string | undefined;
1099
+ id?: string | undefined;
1100
+ name?: string | undefined;
1101
+ path?: string | undefined;
1102
+ size?: number | undefined;
1103
+ bucket?: "public-files" | "files" | undefined;
1104
+ } | undefined;
906
1105
  description?: string | null | undefined;
1106
+ user?: {
1107
+ id?: string | undefined;
1108
+ user_id?: string | undefined;
1109
+ avatar_path?: string | null | undefined;
1110
+ urls?: {
1111
+ value: string;
1112
+ }[] | undefined;
1113
+ username?: string | null | undefined;
1114
+ bio?: string | null | undefined;
1115
+ last_active?: string | undefined;
1116
+ } | undefined;
1117
+ organization?: {
1118
+ id?: string | undefined;
1119
+ name?: string | undefined;
1120
+ size?: string | undefined;
1121
+ email?: string | null | undefined;
1122
+ avatar_path?: string | null | undefined;
1123
+ mission?: string | null | undefined;
1124
+ domain?: string | null | undefined;
1125
+ urls?: {
1126
+ value: string;
1127
+ }[] | null | undefined;
1128
+ base_role?: "none" | "admin" | "read" | "write" | undefined;
1129
+ } | undefined;
1130
+ org_id?: string | undefined;
907
1131
  last_updated?: string | undefined;
908
- team_id?: string | null | undefined;
1132
+ team_id?: string | undefined;
1133
+ team?: {
1134
+ id?: string | undefined;
1135
+ name?: string | undefined;
1136
+ visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1137
+ description?: string | null | undefined;
1138
+ org_id?: string | undefined;
1139
+ created_at?: string | undefined;
1140
+ default_role?: "none" | "admin" | "read" | "write" | undefined;
1141
+ } | undefined;
1142
+ parent_id?: string | null | undefined;
909
1143
  name_url_slug?: string | null | undefined;
910
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | null | undefined;
1144
+ slug?: string | null | undefined;
1145
+ monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
911
1146
  price?: number | null | undefined;
912
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1147
+ unit_cost?: number | null | undefined;
1148
+ cost_accounting?: "fixed" | "variable" | null | undefined;
1149
+ cost_unit?: string | null | undefined;
1150
+ product_id?: string | null | undefined;
1151
+ price_id?: string | null | undefined;
1152
+ preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
913
1153
  }>;
914
1154
  type Dataset = z.infer<typeof DatasetSchema>;
915
1155
  type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;