@ourofoundation/ouro-js 1.1.0 → 1.1.2

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.
Files changed (96) hide show
  1. package/dist/index.d.ts +18 -19
  2. package/dist/index.esm.js +2 -0
  3. package/dist/index.esm.js.map +1 -0
  4. package/dist/index.js +2 -80
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema/assets.d.ts +240 -70
  7. package/dist/schema/assets.esm.js +2 -0
  8. package/dist/schema/assets.esm.js.map +1 -0
  9. package/dist/schema/assets.js +2 -83
  10. package/dist/schema/assets.js.map +1 -1
  11. package/dist/schema/blueprints.d.ts +95 -95
  12. package/dist/schema/blueprints.esm.js +2 -0
  13. package/dist/schema/blueprints.esm.js.map +1 -0
  14. package/dist/schema/blueprints.js +2 -38
  15. package/dist/schema/blueprints.js.map +1 -1
  16. package/dist/schema/comments.d.ts +81 -81
  17. package/dist/schema/comments.esm.js +2 -0
  18. package/dist/schema/comments.esm.js.map +1 -0
  19. package/dist/schema/comments.js +2 -32
  20. package/dist/schema/comments.js.map +1 -1
  21. package/dist/schema/common.d.ts +32 -32
  22. package/dist/schema/common.esm.js +2 -0
  23. package/dist/schema/common.esm.js.map +1 -0
  24. package/dist/schema/common.js +2 -87
  25. package/dist/schema/common.js.map +1 -1
  26. package/dist/schema/conversations.d.ts +139 -139
  27. package/dist/schema/conversations.esm.js +2 -0
  28. package/dist/schema/conversations.esm.js.map +1 -0
  29. package/dist/schema/conversations.js +2 -54
  30. package/dist/schema/conversations.js.map +1 -1
  31. package/dist/schema/datasets.d.ts +202 -202
  32. package/dist/schema/datasets.esm.js +2 -0
  33. package/dist/schema/datasets.esm.js.map +1 -0
  34. package/dist/schema/datasets.js +2 -49
  35. package/dist/schema/datasets.js.map +1 -1
  36. package/dist/schema/files.d.ts +185 -185
  37. package/dist/schema/files.esm.js +2 -0
  38. package/dist/schema/files.esm.js.map +1 -0
  39. package/dist/schema/files.js +2 -50
  40. package/dist/schema/files.js.map +1 -1
  41. package/dist/schema/index.d.ts +14 -80
  42. package/dist/schema/notifications.d.ts +22 -22
  43. package/dist/schema/notifications.esm.js +2 -0
  44. package/dist/schema/notifications.esm.js.map +1 -0
  45. package/dist/schema/notifications.js +2 -46
  46. package/dist/schema/notifications.js.map +1 -1
  47. package/dist/schema/organizations.d.ts +11 -11
  48. package/dist/schema/organizations.esm.js +2 -0
  49. package/dist/schema/organizations.esm.js.map +1 -0
  50. package/dist/schema/organizations.js +2 -33
  51. package/dist/schema/organizations.js.map +1 -1
  52. package/dist/schema/posts.d.ts +390 -301
  53. package/dist/schema/posts.esm.js +2 -0
  54. package/dist/schema/posts.esm.js.map +1 -0
  55. package/dist/schema/posts.js +2 -76
  56. package/dist/schema/posts.js.map +1 -1
  57. package/dist/schema/replications.d.ts +115 -115
  58. package/dist/schema/replications.esm.js +2 -0
  59. package/dist/schema/replications.esm.js.map +1 -0
  60. package/dist/schema/replications.js +2 -42
  61. package/dist/schema/replications.js.map +1 -1
  62. package/dist/schema/services.d.ts +14 -14
  63. package/dist/schema/services.esm.js +2 -0
  64. package/dist/schema/services.esm.js.map +1 -0
  65. package/dist/schema/services.js +2 -39
  66. package/dist/schema/services.js.map +1 -1
  67. package/dist/schema/teams.d.ts +85 -85
  68. package/dist/schema/teams.esm.js +2 -0
  69. package/dist/schema/teams.esm.js.map +1 -0
  70. package/dist/schema/teams.js +2 -57
  71. package/dist/schema/teams.js.map +1 -1
  72. package/dist/schema/users.d.ts +4 -4
  73. package/dist/schema/users.esm.js +2 -0
  74. package/dist/schema/users.esm.js.map +1 -0
  75. package/dist/schema/users.js +2 -35
  76. package/dist/schema/users.js.map +1 -1
  77. package/dist/types/index.d.ts +14 -0
  78. package/dist/utils/air/index.d.ts +1 -1
  79. package/dist/utils/air/index.esm.js +2 -0
  80. package/dist/utils/air/index.esm.js.map +1 -0
  81. package/dist/utils/air/index.js +2 -51
  82. package/dist/utils/air/index.js.map +1 -1
  83. package/dist/utils/air/markdown-parser.esm.js +2 -0
  84. package/dist/utils/air/markdown-parser.esm.js.map +1 -0
  85. package/dist/utils/air/markdown-parser.js +2 -118
  86. package/dist/utils/air/markdown-parser.js.map +1 -1
  87. package/dist/utils/dataset.esm.js +2 -0
  88. package/dist/utils/dataset.esm.js.map +1 -0
  89. package/dist/utils/dataset.js +2 -19
  90. package/dist/utils/dataset.js.map +1 -1
  91. package/dist/utils/navigate.esm.js +2 -0
  92. package/dist/utils/navigate.esm.js.map +1 -0
  93. package/dist/utils/navigate.js +2 -56
  94. package/dist/utils/navigate.js.map +1 -1
  95. package/package.json +21 -4
  96. package/rollup.config.js +52 -0
@@ -57,27 +57,27 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  id?: string | undefined;
59
59
  name?: string | undefined;
60
- size?: string | undefined;
61
- email?: string | null | undefined;
62
60
  avatar_path?: string | null | undefined;
63
61
  mission?: string | null | undefined;
62
+ size?: string | undefined;
63
+ email?: string | null | undefined;
64
64
  domain?: string | null | undefined;
65
65
  urls?: {
66
66
  value: string;
67
67
  }[] | null | undefined;
68
- base_role?: "none" | "admin" | "read" | "write" | undefined;
68
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
69
69
  }, {
70
70
  id?: string | undefined;
71
71
  name?: string | undefined;
72
- size?: string | undefined;
73
- email?: string | null | undefined;
74
72
  avatar_path?: string | null | undefined;
75
73
  mission?: string | null | undefined;
74
+ size?: string | undefined;
75
+ email?: string | null | undefined;
76
76
  domain?: string | null | undefined;
77
77
  urls?: {
78
78
  value: string;
79
79
  }[] | null | undefined;
80
- base_role?: "none" | "admin" | "read" | "write" | undefined;
80
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
81
81
  }>>;
82
82
  team_id: z.ZodString;
83
83
  team: z.ZodOptional<z.ZodObject<{
@@ -90,20 +90,20 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
90
90
  created_at: z.ZodOptional<z.ZodString>;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  id?: string | undefined;
93
- name?: string | undefined;
94
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
95
- description?: string | null | undefined;
96
93
  org_id?: string | undefined;
97
94
  created_at?: string | undefined;
98
- default_role?: "none" | "admin" | "read" | "write" | undefined;
99
- }, {
100
- id?: string | undefined;
101
95
  name?: string | undefined;
102
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
96
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
103
97
  description?: string | null | undefined;
98
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
99
+ }, {
100
+ id?: string | undefined;
104
101
  org_id?: string | undefined;
105
102
  created_at?: string | undefined;
106
- default_role?: "none" | "admin" | "read" | "write" | undefined;
103
+ name?: string | undefined;
104
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
105
+ description?: string | null | undefined;
106
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
107
107
  }>>;
108
108
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
109
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -139,53 +139,50 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
139
139
  id: z.ZodOptional<z.ZodString>;
140
140
  bucket: z.ZodOptional<z.ZodEnum<["public-files", "files"]>>;
141
141
  }>, "strip", z.ZodTypeAny, {
142
- columns: string[];
143
- schema: "datasets";
144
142
  table_name: string;
145
- type?: string | undefined;
143
+ schema: "datasets";
144
+ columns: string[];
146
145
  id?: string | undefined;
147
- name?: string | undefined;
148
146
  path?: string | undefined;
147
+ type?: string | undefined;
148
+ name?: string | undefined;
149
149
  size?: number | undefined;
150
150
  bucket?: "public-files" | "files" | undefined;
151
151
  }, {
152
- columns: string[];
153
152
  table_name: string;
154
- type?: string | undefined;
153
+ columns: string[];
155
154
  id?: string | undefined;
156
- name?: string | undefined;
157
155
  path?: string | undefined;
156
+ type?: string | undefined;
157
+ name?: string | undefined;
158
158
  size?: number | undefined;
159
- schema?: "datasets" | undefined;
160
159
  bucket?: "public-files" | "files" | undefined;
160
+ schema?: "datasets" | undefined;
161
161
  }>;
162
162
  preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
163
163
  }>, "strip", z.ZodTypeAny, {
164
164
  id: string;
165
- name: string;
166
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
165
+ user_id: string;
166
+ org_id: string;
167
+ asset_type: "dataset";
167
168
  metadata: {
168
- columns: string[];
169
- schema: "datasets";
170
169
  table_name: string;
171
- type?: string | undefined;
170
+ schema: "datasets";
171
+ columns: string[];
172
172
  id?: string | undefined;
173
- name?: string | undefined;
174
173
  path?: string | undefined;
174
+ type?: string | undefined;
175
+ name?: string | undefined;
175
176
  size?: number | undefined;
176
177
  bucket?: "public-files" | "files" | undefined;
177
178
  };
178
- user_id: string;
179
- org_id: string;
180
- asset_type: "dataset";
181
179
  created_at: string;
182
180
  last_updated: string;
181
+ name: string;
183
182
  team_id: string;
183
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
184
184
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
185
185
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
186
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
187
- description?: string | null | undefined;
188
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
189
186
  user?: {
190
187
  id?: string | undefined;
191
188
  user_id?: string | undefined;
@@ -200,26 +197,28 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
200
197
  organization?: {
201
198
  id?: string | undefined;
202
199
  name?: string | undefined;
203
- size?: string | undefined;
204
- email?: string | null | undefined;
205
200
  avatar_path?: string | null | undefined;
206
201
  mission?: string | null | undefined;
202
+ size?: string | undefined;
203
+ email?: string | null | undefined;
207
204
  domain?: string | null | undefined;
208
205
  urls?: {
209
206
  value: string;
210
207
  }[] | null | undefined;
211
- base_role?: "none" | "admin" | "read" | "write" | undefined;
208
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
212
209
  } | undefined;
213
210
  team?: {
214
211
  id?: string | undefined;
215
- name?: string | undefined;
216
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
217
- description?: string | null | undefined;
218
212
  org_id?: string | undefined;
219
213
  created_at?: string | undefined;
220
- default_role?: "none" | "admin" | "read" | "write" | undefined;
214
+ name?: string | undefined;
215
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
216
+ description?: string | null | undefined;
217
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
221
218
  } | undefined;
219
+ description?: string | null | undefined;
222
220
  parent_id?: string | null | undefined;
221
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
223
222
  name_url_slug?: string | null | undefined;
224
223
  slug?: string | null | undefined;
225
224
  price?: number | null | undefined;
@@ -228,31 +227,29 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
228
227
  cost_unit?: string | null | undefined;
229
228
  product_id?: string | null | undefined;
230
229
  price_id?: string | null | undefined;
230
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
231
231
  }, {
232
232
  id: string;
233
- name: string;
234
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
233
+ user_id: string;
234
+ org_id: string;
235
235
  metadata: {
236
- columns: string[];
237
236
  table_name: string;
238
- type?: string | undefined;
237
+ columns: string[];
239
238
  id?: string | undefined;
240
- name?: string | undefined;
241
239
  path?: string | undefined;
240
+ type?: string | undefined;
241
+ name?: string | undefined;
242
242
  size?: number | undefined;
243
- schema?: "datasets" | undefined;
244
243
  bucket?: "public-files" | "files" | undefined;
244
+ schema?: "datasets" | undefined;
245
245
  };
246
- user_id: string;
247
- org_id: string;
248
246
  created_at: string;
249
247
  last_updated: string;
248
+ name: string;
250
249
  team_id: string;
250
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
251
251
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
252
252
  preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
253
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
254
- description?: string | null | undefined;
255
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
256
253
  user?: {
257
254
  id?: string | undefined;
258
255
  user_id?: string | undefined;
@@ -267,27 +264,29 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
267
264
  organization?: {
268
265
  id?: string | undefined;
269
266
  name?: string | undefined;
270
- size?: string | undefined;
271
- email?: string | null | undefined;
272
267
  avatar_path?: string | null | undefined;
273
268
  mission?: string | null | undefined;
269
+ size?: string | undefined;
270
+ email?: string | null | undefined;
274
271
  domain?: string | null | undefined;
275
272
  urls?: {
276
273
  value: string;
277
274
  }[] | null | undefined;
278
- base_role?: "none" | "admin" | "read" | "write" | undefined;
275
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
279
276
  } | undefined;
280
277
  team?: {
281
278
  id?: string | undefined;
282
- name?: string | undefined;
283
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
284
- description?: string | null | undefined;
285
279
  org_id?: string | undefined;
286
280
  created_at?: string | undefined;
287
- default_role?: "none" | "admin" | "read" | "write" | undefined;
281
+ name?: string | undefined;
282
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
283
+ description?: string | null | undefined;
284
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
288
285
  } | undefined;
289
286
  asset_type?: "dataset" | undefined;
287
+ description?: string | null | undefined;
290
288
  parent_id?: string | null | undefined;
289
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
291
290
  name_url_slug?: string | null | undefined;
292
291
  slug?: string | null | undefined;
293
292
  price?: number | null | undefined;
@@ -296,6 +295,7 @@ declare const DatasetSchema: z.ZodObject<z.objectUtil.extendShape<{
296
295
  cost_unit?: string | null | undefined;
297
296
  product_id?: string | null | undefined;
298
297
  price_id?: string | null | undefined;
298
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
299
299
  }>;
300
300
  declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
301
301
  id: z.ZodOptional<z.ZodString>;
@@ -355,27 +355,27 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
355
355
  }, "strip", z.ZodTypeAny, {
356
356
  id?: string | undefined;
357
357
  name?: string | undefined;
358
- size?: string | undefined;
359
- email?: string | null | undefined;
360
358
  avatar_path?: string | null | undefined;
361
359
  mission?: string | null | undefined;
360
+ size?: string | undefined;
361
+ email?: string | null | undefined;
362
362
  domain?: string | null | undefined;
363
363
  urls?: {
364
364
  value: string;
365
365
  }[] | null | undefined;
366
- base_role?: "none" | "admin" | "read" | "write" | undefined;
366
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
367
367
  }, {
368
368
  id?: string | undefined;
369
369
  name?: string | undefined;
370
- size?: string | undefined;
371
- email?: string | null | undefined;
372
370
  avatar_path?: string | null | undefined;
373
371
  mission?: string | null | undefined;
372
+ size?: string | undefined;
373
+ email?: string | null | undefined;
374
374
  domain?: string | null | undefined;
375
375
  urls?: {
376
376
  value: string;
377
377
  }[] | null | undefined;
378
- base_role?: "none" | "admin" | "read" | "write" | undefined;
378
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
379
379
  }>>>;
380
380
  team_id: z.ZodOptional<z.ZodString>;
381
381
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -388,20 +388,20 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
388
388
  created_at: z.ZodOptional<z.ZodString>;
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  id?: string | undefined;
391
- name?: string | undefined;
392
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
393
- description?: string | null | undefined;
394
391
  org_id?: string | undefined;
395
392
  created_at?: string | undefined;
396
- default_role?: "none" | "admin" | "read" | "write" | undefined;
397
- }, {
398
- id?: string | undefined;
399
393
  name?: string | undefined;
400
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
394
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
401
395
  description?: string | null | undefined;
396
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
397
+ }, {
398
+ id?: string | undefined;
402
399
  org_id?: string | undefined;
403
400
  created_at?: string | undefined;
404
- default_role?: "none" | "admin" | "read" | "write" | undefined;
401
+ name?: string | undefined;
402
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
403
+ description?: string | null | undefined;
404
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
405
405
  }>>>;
406
406
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
407
407
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -447,52 +447,52 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
447
447
  id: z.ZodString;
448
448
  bucket: z.ZodEnum<["public-files", "files"]>;
449
449
  }>, "strip", z.ZodTypeAny, {
450
- type: string;
451
450
  id: string;
452
- name: string;
453
- columns: string[];
454
451
  path: string;
452
+ type: string;
453
+ name: string;
455
454
  size: number;
456
- schema: "datasets";
457
455
  bucket: "public-files" | "files";
458
456
  table_name: string;
457
+ schema: "datasets";
458
+ columns: string[];
459
459
  }, {
460
- type: string;
461
460
  id: string;
462
- name: string;
463
- columns: string[];
464
461
  path: string;
462
+ type: string;
463
+ name: string;
465
464
  size: number;
466
465
  bucket: "public-files" | "files";
467
466
  table_name: string;
467
+ columns: string[];
468
468
  schema?: "datasets" | undefined;
469
469
  }>;
470
470
  preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
471
471
  }>, "strip", z.ZodTypeAny, {
472
472
  id: string;
473
- state: "error" | "in-progress" | "success" | "queued";
474
- name: string;
475
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
473
+ org_id: string | null;
474
+ asset_type: "dataset";
476
475
  metadata: {
477
- type: string;
478
476
  id: string;
479
- name: string;
480
- columns: string[];
481
477
  path: string;
478
+ type: string;
479
+ name: string;
482
480
  size: number;
483
- schema: "datasets";
484
481
  bucket: "public-files" | "files";
485
482
  table_name: string;
483
+ schema: "datasets";
484
+ columns: string[];
486
485
  };
487
- org_id: string | null;
488
- asset_type: "dataset";
489
486
  created_at: string;
490
487
  last_updated: string;
488
+ name: string;
491
489
  team_id: string | null;
490
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
492
491
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
492
+ state: "queued" | "in-progress" | "success" | "error";
493
493
  description?: string | null | undefined;
494
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
495
494
  parent_id?: string | null | undefined;
495
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
496
496
  name_url_slug?: string | null | undefined;
497
497
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
498
498
  price?: number | null | undefined;
@@ -502,30 +502,29 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
502
502
  product_id?: string | null | undefined;
503
503
  price_id?: string | null | undefined;
504
504
  }, {
505
- name: string;
506
505
  metadata: {
507
- type: string;
508
506
  id: string;
509
- name: string;
510
- columns: string[];
511
507
  path: string;
508
+ type: string;
509
+ name: string;
512
510
  size: number;
513
511
  bucket: "public-files" | "files";
514
512
  table_name: string;
513
+ columns: string[];
515
514
  schema?: "datasets" | undefined;
516
515
  };
516
+ name: string;
517
517
  preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
518
518
  id?: string | undefined;
519
- state?: "error" | "in-progress" | "success" | "queued" | undefined;
520
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
521
- description?: string | null | undefined;
522
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
523
519
  org_id?: string | null | undefined;
524
520
  asset_type?: "dataset" | undefined;
525
521
  created_at?: string | undefined;
526
522
  last_updated?: string | undefined;
527
523
  team_id?: string | null | undefined;
524
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
525
+ description?: string | null | undefined;
528
526
  parent_id?: string | null | undefined;
527
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
529
528
  name_url_slug?: string | null | undefined;
530
529
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
531
530
  price?: number | null | undefined;
@@ -534,6 +533,7 @@ declare const CreateDatasetFromFileSchema: z.ZodObject<z.objectUtil.extendShape<
534
533
  cost_unit?: string | null | undefined;
535
534
  product_id?: string | null | undefined;
536
535
  price_id?: string | null | undefined;
536
+ state?: "queued" | "in-progress" | "success" | "error" | undefined;
537
537
  }>;
538
538
  declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
539
539
  id: z.ZodOptional<z.ZodString>;
@@ -593,27 +593,27 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
593
593
  }, "strip", z.ZodTypeAny, {
594
594
  id?: string | undefined;
595
595
  name?: string | undefined;
596
- size?: string | undefined;
597
- email?: string | null | undefined;
598
596
  avatar_path?: string | null | undefined;
599
597
  mission?: string | null | undefined;
598
+ size?: string | undefined;
599
+ email?: string | null | undefined;
600
600
  domain?: string | null | undefined;
601
601
  urls?: {
602
602
  value: string;
603
603
  }[] | null | undefined;
604
- base_role?: "none" | "admin" | "read" | "write" | undefined;
604
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
605
605
  }, {
606
606
  id?: string | undefined;
607
607
  name?: string | undefined;
608
- size?: string | undefined;
609
- email?: string | null | undefined;
610
608
  avatar_path?: string | null | undefined;
611
609
  mission?: string | null | undefined;
610
+ size?: string | undefined;
611
+ email?: string | null | undefined;
612
612
  domain?: string | null | undefined;
613
613
  urls?: {
614
614
  value: string;
615
615
  }[] | null | undefined;
616
- base_role?: "none" | "admin" | "read" | "write" | undefined;
616
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
617
617
  }>>>;
618
618
  team_id: z.ZodOptional<z.ZodString>;
619
619
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -626,20 +626,20 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
626
626
  created_at: z.ZodOptional<z.ZodString>;
627
627
  }, "strip", z.ZodTypeAny, {
628
628
  id?: string | undefined;
629
- name?: string | undefined;
630
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
631
- description?: string | null | undefined;
632
629
  org_id?: string | undefined;
633
630
  created_at?: string | undefined;
634
- default_role?: "none" | "admin" | "read" | "write" | undefined;
635
- }, {
636
- id?: string | undefined;
637
631
  name?: string | undefined;
638
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
632
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
639
633
  description?: string | null | undefined;
634
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
635
+ }, {
636
+ id?: string | undefined;
640
637
  org_id?: string | undefined;
641
638
  created_at?: string | undefined;
642
- default_role?: "none" | "admin" | "read" | "write" | undefined;
639
+ name?: string | undefined;
640
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
641
+ description?: string | null | undefined;
642
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
643
643
  }>>>;
644
644
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
645
645
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -678,34 +678,34 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
678
678
  schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
679
679
  columns: z.ZodArray<z.ZodString, "many">;
680
680
  }, "strip", z.ZodTypeAny, {
681
- columns: string[];
682
- schema: "datasets";
683
681
  table_name: string;
684
- }, {
682
+ schema: "datasets";
685
683
  columns: string[];
684
+ }, {
686
685
  table_name: string;
686
+ columns: string[];
687
687
  schema?: "datasets" | undefined;
688
688
  }>;
689
689
  preview: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
690
690
  }>, "strip", z.ZodTypeAny, {
691
691
  id: string;
692
- state: "error" | "in-progress" | "success" | "queued";
693
- name: string;
694
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
692
+ org_id: string | null;
693
+ asset_type: "dataset";
695
694
  metadata: {
696
- columns: string[];
697
- schema: "datasets";
698
695
  table_name: string;
696
+ schema: "datasets";
697
+ columns: string[];
699
698
  };
700
- org_id: string | null;
701
- asset_type: "dataset";
702
699
  created_at: string;
703
700
  last_updated: string;
701
+ name: string;
704
702
  team_id: string | null;
703
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
705
704
  preview: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
705
+ state: "queued" | "in-progress" | "success" | "error";
706
706
  description?: string | null | undefined;
707
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
708
707
  parent_id?: string | null | undefined;
708
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
709
709
  name_url_slug?: string | null | undefined;
710
710
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
711
711
  price?: number | null | undefined;
@@ -715,24 +715,23 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
715
715
  product_id?: string | null | undefined;
716
716
  price_id?: string | null | undefined;
717
717
  }, {
718
- name: string;
719
718
  metadata: {
720
- columns: string[];
721
719
  table_name: string;
720
+ columns: string[];
722
721
  schema?: "datasets" | undefined;
723
722
  };
723
+ name: string;
724
724
  preview: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
725
725
  id?: string | undefined;
726
- state?: "error" | "in-progress" | "success" | "queued" | undefined;
727
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
728
- description?: string | null | undefined;
729
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
730
726
  org_id?: string | null | undefined;
731
727
  asset_type?: "dataset" | undefined;
732
728
  created_at?: string | undefined;
733
729
  last_updated?: string | undefined;
734
730
  team_id?: string | null | undefined;
731
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
732
+ description?: string | null | undefined;
735
733
  parent_id?: string | null | undefined;
734
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
736
735
  name_url_slug?: string | null | undefined;
737
736
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
738
737
  price?: number | null | undefined;
@@ -741,6 +740,7 @@ declare const CreateDatasetFromSchemaSchema: z.ZodObject<z.objectUtil.extendShap
741
740
  cost_unit?: string | null | undefined;
742
741
  product_id?: string | null | undefined;
743
742
  price_id?: string | null | undefined;
743
+ state?: "queued" | "in-progress" | "success" | "error" | undefined;
744
744
  }>;
745
745
  declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
746
746
  id: z.ZodOptional<z.ZodString>;
@@ -800,27 +800,27 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
800
800
  }, "strip", z.ZodTypeAny, {
801
801
  id?: string | undefined;
802
802
  name?: string | undefined;
803
- size?: string | undefined;
804
- email?: string | null | undefined;
805
803
  avatar_path?: string | null | undefined;
806
804
  mission?: string | null | undefined;
805
+ size?: string | undefined;
806
+ email?: string | null | undefined;
807
807
  domain?: string | null | undefined;
808
808
  urls?: {
809
809
  value: string;
810
810
  }[] | null | undefined;
811
- base_role?: "none" | "admin" | "read" | "write" | undefined;
811
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
812
812
  }, {
813
813
  id?: string | undefined;
814
814
  name?: string | undefined;
815
- size?: string | undefined;
816
- email?: string | null | undefined;
817
815
  avatar_path?: string | null | undefined;
818
816
  mission?: string | null | undefined;
817
+ size?: string | undefined;
818
+ email?: string | null | undefined;
819
819
  domain?: string | null | undefined;
820
820
  urls?: {
821
821
  value: string;
822
822
  }[] | null | undefined;
823
- base_role?: "none" | "admin" | "read" | "write" | undefined;
823
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
824
824
  }>>>;
825
825
  team_id: z.ZodOptional<z.ZodString>;
826
826
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -833,20 +833,20 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
833
833
  created_at: z.ZodOptional<z.ZodString>;
834
834
  }, "strip", z.ZodTypeAny, {
835
835
  id?: string | undefined;
836
- name?: string | undefined;
837
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
838
- description?: string | null | undefined;
839
836
  org_id?: string | undefined;
840
837
  created_at?: string | undefined;
841
- default_role?: "none" | "admin" | "read" | "write" | undefined;
842
- }, {
843
- id?: string | undefined;
844
838
  name?: string | undefined;
845
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
839
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
846
840
  description?: string | null | undefined;
841
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
842
+ }, {
843
+ id?: string | undefined;
847
844
  org_id?: string | undefined;
848
845
  created_at?: string | undefined;
849
- default_role?: "none" | "admin" | "read" | "write" | undefined;
846
+ name?: string | undefined;
847
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
848
+ description?: string | null | undefined;
849
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
850
850
  }>>>;
851
851
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
852
852
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -878,25 +878,25 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
878
878
  id: z.ZodOptional<z.ZodString>;
879
879
  bucket: z.ZodOptional<z.ZodEnum<["public-files", "files"]>>;
880
880
  }>, "strip", z.ZodTypeAny, {
881
- columns: string[];
882
- schema: "datasets";
883
881
  table_name: string;
884
- type?: string | undefined;
882
+ schema: "datasets";
883
+ columns: string[];
885
884
  id?: string | undefined;
886
- name?: string | undefined;
887
885
  path?: string | undefined;
886
+ type?: string | undefined;
887
+ name?: string | undefined;
888
888
  size?: number | undefined;
889
889
  bucket?: "public-files" | "files" | undefined;
890
890
  }, {
891
- columns: string[];
892
891
  table_name: string;
893
- type?: string | undefined;
892
+ columns: string[];
894
893
  id?: string | undefined;
895
- name?: string | undefined;
896
894
  path?: string | undefined;
895
+ type?: string | undefined;
896
+ name?: string | undefined;
897
897
  size?: number | undefined;
898
- schema?: "datasets" | undefined;
899
898
  bucket?: "public-files" | "files" | undefined;
899
+ schema?: "datasets" | undefined;
900
900
  }>>;
901
901
  preview: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>;
902
902
  }, "id" | "user_id" | "created_at" | "last_updated">, {
@@ -905,22 +905,6 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
905
905
  }>, "strip", z.ZodTypeAny, {
906
906
  asset_type: "dataset";
907
907
  last_updated: string;
908
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
909
- name?: string | undefined;
910
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
911
- metadata?: {
912
- columns: string[];
913
- schema: "datasets";
914
- table_name: string;
915
- type?: string | undefined;
916
- id?: string | undefined;
917
- name?: string | undefined;
918
- path?: string | undefined;
919
- size?: number | undefined;
920
- bucket?: "public-files" | "files" | undefined;
921
- } | undefined;
922
- description?: string | null | undefined;
923
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
924
908
  user?: {
925
909
  id?: string | undefined;
926
910
  user_id?: string | undefined;
@@ -935,28 +919,43 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
935
919
  organization?: {
936
920
  id?: string | undefined;
937
921
  name?: string | undefined;
938
- size?: string | undefined;
939
- email?: string | null | undefined;
940
922
  avatar_path?: string | null | undefined;
941
923
  mission?: string | null | undefined;
924
+ size?: string | undefined;
925
+ email?: string | null | undefined;
942
926
  domain?: string | null | undefined;
943
927
  urls?: {
944
928
  value: string;
945
929
  }[] | null | undefined;
946
- base_role?: "none" | "admin" | "read" | "write" | undefined;
930
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
947
931
  } | undefined;
948
932
  team?: {
949
933
  id?: string | undefined;
950
- name?: string | undefined;
951
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
952
- description?: string | null | undefined;
953
934
  org_id?: string | undefined;
954
935
  created_at?: string | undefined;
955
- default_role?: "none" | "admin" | "read" | "write" | undefined;
936
+ name?: string | undefined;
937
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
938
+ description?: string | null | undefined;
939
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
956
940
  } | undefined;
957
941
  org_id?: string | undefined;
942
+ metadata?: {
943
+ table_name: string;
944
+ schema: "datasets";
945
+ columns: string[];
946
+ id?: string | undefined;
947
+ path?: string | undefined;
948
+ type?: string | undefined;
949
+ name?: string | undefined;
950
+ size?: number | undefined;
951
+ bucket?: "public-files" | "files" | undefined;
952
+ } | undefined;
953
+ name?: string | undefined;
958
954
  team_id?: string | undefined;
955
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
956
+ description?: string | null | undefined;
959
957
  parent_id?: string | null | undefined;
958
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
960
959
  name_url_slug?: string | null | undefined;
961
960
  slug?: string | null | undefined;
962
961
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -967,23 +966,8 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
967
966
  product_id?: string | null | undefined;
968
967
  price_id?: string | null | undefined;
969
968
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
969
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
970
970
  }, {
971
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
972
- name?: string | undefined;
973
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
974
- metadata?: {
975
- columns: string[];
976
- table_name: string;
977
- type?: string | undefined;
978
- id?: string | undefined;
979
- name?: string | undefined;
980
- path?: string | undefined;
981
- size?: number | undefined;
982
- schema?: "datasets" | undefined;
983
- bucket?: "public-files" | "files" | undefined;
984
- } | undefined;
985
- description?: string | null | undefined;
986
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
987
971
  user?: {
988
972
  id?: string | undefined;
989
973
  user_id?: string | undefined;
@@ -998,30 +982,45 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
998
982
  organization?: {
999
983
  id?: string | undefined;
1000
984
  name?: string | undefined;
1001
- size?: string | undefined;
1002
- email?: string | null | undefined;
1003
985
  avatar_path?: string | null | undefined;
1004
986
  mission?: string | null | undefined;
987
+ size?: string | undefined;
988
+ email?: string | null | undefined;
1005
989
  domain?: string | null | undefined;
1006
990
  urls?: {
1007
991
  value: string;
1008
992
  }[] | null | undefined;
1009
- base_role?: "none" | "admin" | "read" | "write" | undefined;
993
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
1010
994
  } | undefined;
1011
995
  team?: {
1012
996
  id?: string | undefined;
1013
- name?: string | undefined;
1014
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
1015
- description?: string | null | undefined;
1016
997
  org_id?: string | undefined;
1017
998
  created_at?: string | undefined;
1018
- default_role?: "none" | "admin" | "read" | "write" | undefined;
999
+ name?: string | undefined;
1000
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1001
+ description?: string | null | undefined;
1002
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
1019
1003
  } | undefined;
1020
1004
  org_id?: string | undefined;
1021
1005
  asset_type?: "dataset" | undefined;
1006
+ metadata?: {
1007
+ table_name: string;
1008
+ columns: string[];
1009
+ id?: string | undefined;
1010
+ path?: string | undefined;
1011
+ type?: string | undefined;
1012
+ name?: string | undefined;
1013
+ size?: number | undefined;
1014
+ bucket?: "public-files" | "files" | undefined;
1015
+ schema?: "datasets" | undefined;
1016
+ } | undefined;
1022
1017
  last_updated?: string | undefined;
1018
+ name?: string | undefined;
1023
1019
  team_id?: string | undefined;
1020
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1021
+ description?: string | null | undefined;
1024
1022
  parent_id?: string | null | undefined;
1023
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1025
1024
  name_url_slug?: string | null | undefined;
1026
1025
  slug?: string | null | undefined;
1027
1026
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -1032,9 +1031,10 @@ declare const updateDatasetSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1032
1031
  product_id?: string | null | undefined;
1033
1032
  price_id?: string | null | undefined;
1034
1033
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | undefined;
1034
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1035
1035
  }>;
1036
- type Dataset = z.infer<typeof DatasetSchema>;
1037
- type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;
1038
- type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;
1039
- type UpdateDataset = z.infer<typeof updateDatasetSchema>;
1040
- export { DatasetSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, updateDatasetSchema, type Dataset, type CreateFromFileDataset, type CreateFromSchemaDataset, type UpdateDataset, };
1036
+ export { DatasetSchema, CreateDatasetFromFileSchema, CreateDatasetFromSchemaSchema, updateDatasetSchema, };
1037
+ export type Dataset = z.infer<typeof DatasetSchema>;
1038
+ export type CreateFromFileDataset = z.infer<typeof CreateDatasetFromFileSchema>;
1039
+ export type CreateFromSchemaDataset = z.infer<typeof CreateDatasetFromSchemaSchema>;
1040
+ export type UpdateDataset = z.infer<typeof updateDatasetSchema>;