@ourofoundation/ouro-js 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 -81
  5. package/dist/index.js.map +1 -1
  6. package/dist/schema/assets.d.ts +111 -100
  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 -95
  10. package/dist/schema/assets.js.map +1 -1
  11. package/dist/schema/blueprints.d.ts +105 -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 +91 -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 +149 -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 +218 -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 +201 -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 +326 -298
  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 -81
  56. package/dist/schema/posts.js.map +1 -1
  57. package/dist/schema/replications.d.ts +125 -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 +99 -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 +13 -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
@@ -15,6 +15,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
15
15
  }, {
16
16
  value: string;
17
17
  }>, "many">>>;
18
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18
19
  last_active: z.ZodOptional<z.ZodString>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  id?: string | undefined;
@@ -25,6 +26,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
25
26
  }[] | undefined;
26
27
  username?: string | null | undefined;
27
28
  bio?: string | null | undefined;
29
+ post_id?: string | null | undefined;
28
30
  last_active?: string | undefined;
29
31
  }, {
30
32
  id?: string | undefined;
@@ -35,6 +37,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
35
37
  }[] | undefined;
36
38
  username?: string | null | undefined;
37
39
  bio?: string | null | undefined;
40
+ post_id?: string | null | undefined;
38
41
  last_active?: string | undefined;
39
42
  }>>;
40
43
  org_id: z.ZodString;
@@ -57,27 +60,27 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
57
60
  }, "strip", z.ZodTypeAny, {
58
61
  id?: string | undefined;
59
62
  name?: string | undefined;
60
- size?: string | undefined;
61
- email?: string | null | undefined;
62
63
  avatar_path?: string | null | undefined;
63
64
  mission?: string | null | undefined;
65
+ size?: string | undefined;
66
+ email?: string | null | undefined;
64
67
  domain?: string | null | undefined;
65
68
  urls?: {
66
69
  value: string;
67
70
  }[] | null | undefined;
68
- base_role?: "none" | "admin" | "read" | "write" | undefined;
71
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
69
72
  }, {
70
73
  id?: string | undefined;
71
74
  name?: string | undefined;
72
- size?: string | undefined;
73
- email?: string | null | undefined;
74
75
  avatar_path?: string | null | undefined;
75
76
  mission?: string | null | undefined;
77
+ size?: string | undefined;
78
+ email?: string | null | undefined;
76
79
  domain?: string | null | undefined;
77
80
  urls?: {
78
81
  value: string;
79
82
  }[] | null | undefined;
80
- base_role?: "none" | "admin" | "read" | "write" | undefined;
83
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
81
84
  }>>;
82
85
  team_id: z.ZodString;
83
86
  team: z.ZodOptional<z.ZodObject<{
@@ -90,20 +93,20 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
90
93
  created_at: z.ZodOptional<z.ZodString>;
91
94
  }, "strip", z.ZodTypeAny, {
92
95
  id?: string | undefined;
93
- name?: string | undefined;
94
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
95
- description?: string | null | undefined;
96
96
  org_id?: string | undefined;
97
97
  created_at?: string | undefined;
98
- default_role?: "none" | "admin" | "read" | "write" | undefined;
99
- }, {
100
- id?: string | undefined;
101
98
  name?: string | undefined;
102
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
99
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
103
100
  description?: string | null | undefined;
101
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
102
+ }, {
103
+ id?: string | undefined;
104
104
  org_id?: string | undefined;
105
105
  created_at?: string | undefined;
106
- default_role?: "none" | "admin" | "read" | "write" | undefined;
106
+ name?: string | undefined;
107
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
108
+ description?: string | null | undefined;
109
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
107
110
  }>>;
108
111
  parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
112
  parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -137,48 +140,45 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
137
140
  width: z.ZodOptional<z.ZodNumber>;
138
141
  height: z.ZodOptional<z.ZodNumber>;
139
142
  }, "strip", z.ZodTypeAny, {
140
- type: string;
141
143
  id: string;
142
- name: string;
143
144
  path: string;
145
+ type: string;
146
+ name: string;
144
147
  size: number;
145
148
  bucket: "public-files" | "files";
146
- height?: number | undefined;
147
149
  width?: number | undefined;
150
+ height?: number | undefined;
148
151
  }, {
149
- type: string;
150
152
  id: string;
151
- name: string;
152
153
  path: string;
154
+ type: string;
155
+ name: string;
153
156
  size: number;
154
157
  bucket: "public-files" | "files";
155
- height?: number | undefined;
156
158
  width?: number | undefined;
159
+ height?: number | undefined;
157
160
  }>;
158
161
  }>, "strip", z.ZodTypeAny, {
159
162
  id: string;
160
- name: string;
161
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
163
+ user_id: string;
164
+ org_id: string;
165
+ asset_type: "file";
162
166
  metadata: {
163
- type: string;
164
167
  id: string;
165
- name: string;
166
168
  path: string;
169
+ type: string;
170
+ name: string;
167
171
  size: number;
168
172
  bucket: "public-files" | "files";
169
- height?: number | undefined;
170
173
  width?: number | undefined;
174
+ height?: number | undefined;
171
175
  };
172
- user_id: string;
173
- org_id: string;
174
- asset_type: "file";
175
176
  created_at: string;
176
177
  last_updated: string;
178
+ name: string;
177
179
  team_id: string;
180
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
178
181
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
179
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
180
- description?: string | null | undefined;
181
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
182
182
  user?: {
183
183
  id?: string | undefined;
184
184
  user_id?: string | undefined;
@@ -188,31 +188,34 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
188
188
  }[] | undefined;
189
189
  username?: string | null | undefined;
190
190
  bio?: string | null | undefined;
191
+ post_id?: string | null | undefined;
191
192
  last_active?: string | undefined;
192
193
  } | undefined;
193
194
  organization?: {
194
195
  id?: string | undefined;
195
196
  name?: string | undefined;
196
- size?: string | undefined;
197
- email?: string | null | undefined;
198
197
  avatar_path?: string | null | undefined;
199
198
  mission?: string | null | undefined;
199
+ size?: string | undefined;
200
+ email?: string | null | undefined;
200
201
  domain?: string | null | undefined;
201
202
  urls?: {
202
203
  value: string;
203
204
  }[] | null | undefined;
204
- base_role?: "none" | "admin" | "read" | "write" | undefined;
205
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
205
206
  } | undefined;
206
207
  team?: {
207
208
  id?: string | undefined;
208
- name?: string | undefined;
209
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
210
- description?: string | null | undefined;
211
209
  org_id?: string | undefined;
212
210
  created_at?: string | undefined;
213
- default_role?: "none" | "admin" | "read" | "write" | undefined;
211
+ name?: string | undefined;
212
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
213
+ description?: string | null | undefined;
214
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
214
215
  } | undefined;
216
+ description?: string | null | undefined;
215
217
  parent_id?: string | null | undefined;
218
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
216
219
  name_url_slug?: string | null | undefined;
217
220
  slug?: string | null | undefined;
218
221
  price?: number | null | undefined;
@@ -222,29 +225,27 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
222
225
  product_id?: string | null | undefined;
223
226
  price_id?: string | null | undefined;
224
227
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
228
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
225
229
  }, {
226
230
  id: string;
227
- name: string;
228
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
231
+ user_id: string;
232
+ org_id: string;
229
233
  metadata: {
230
- type: string;
231
234
  id: string;
232
- name: string;
233
235
  path: string;
236
+ type: string;
237
+ name: string;
234
238
  size: number;
235
239
  bucket: "public-files" | "files";
236
- height?: number | undefined;
237
240
  width?: number | undefined;
241
+ height?: number | undefined;
238
242
  };
239
- user_id: string;
240
- org_id: string;
241
243
  created_at: string;
242
244
  last_updated: string;
245
+ name: string;
243
246
  team_id: string;
247
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
244
248
  monetization: "none" | "pay-to-unlock" | "pay-per-use";
245
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
246
- description?: string | null | undefined;
247
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
248
249
  user?: {
249
250
  id?: string | undefined;
250
251
  user_id?: string | undefined;
@@ -254,32 +255,35 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
254
255
  }[] | undefined;
255
256
  username?: string | null | undefined;
256
257
  bio?: string | null | undefined;
258
+ post_id?: string | null | undefined;
257
259
  last_active?: string | undefined;
258
260
  } | undefined;
259
261
  organization?: {
260
262
  id?: string | undefined;
261
263
  name?: string | undefined;
262
- size?: string | undefined;
263
- email?: string | null | undefined;
264
264
  avatar_path?: string | null | undefined;
265
265
  mission?: string | null | undefined;
266
+ size?: string | undefined;
267
+ email?: string | null | undefined;
266
268
  domain?: string | null | undefined;
267
269
  urls?: {
268
270
  value: string;
269
271
  }[] | null | undefined;
270
- base_role?: "none" | "admin" | "read" | "write" | undefined;
272
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
271
273
  } | undefined;
272
274
  team?: {
273
275
  id?: string | undefined;
274
- name?: string | undefined;
275
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
276
- description?: string | null | undefined;
277
276
  org_id?: string | undefined;
278
277
  created_at?: string | undefined;
279
- default_role?: "none" | "admin" | "read" | "write" | undefined;
278
+ name?: string | undefined;
279
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
280
+ description?: string | null | undefined;
281
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
280
282
  } | undefined;
281
283
  asset_type?: "file" | undefined;
284
+ description?: string | null | undefined;
282
285
  parent_id?: string | null | undefined;
286
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
283
287
  name_url_slug?: string | null | undefined;
284
288
  slug?: string | null | undefined;
285
289
  price?: number | null | undefined;
@@ -289,6 +293,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
289
293
  product_id?: string | null | undefined;
290
294
  price_id?: string | null | undefined;
291
295
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
296
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
292
297
  }>;
293
298
  declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
294
299
  id: z.ZodOptional<z.ZodString>;
@@ -306,6 +311,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
306
311
  }, {
307
312
  value: string;
308
313
  }>, "many">>>;
314
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
309
315
  last_active: z.ZodOptional<z.ZodString>;
310
316
  }, "strip", z.ZodTypeAny, {
311
317
  id?: string | undefined;
@@ -316,6 +322,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
316
322
  }[] | undefined;
317
323
  username?: string | null | undefined;
318
324
  bio?: string | null | undefined;
325
+ post_id?: string | null | undefined;
319
326
  last_active?: string | undefined;
320
327
  }, {
321
328
  id?: string | undefined;
@@ -326,6 +333,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
326
333
  }[] | undefined;
327
334
  username?: string | null | undefined;
328
335
  bio?: string | null | undefined;
336
+ post_id?: string | null | undefined;
329
337
  last_active?: string | undefined;
330
338
  }>>>;
331
339
  org_id: z.ZodOptional<z.ZodString>;
@@ -348,27 +356,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
348
356
  }, "strip", z.ZodTypeAny, {
349
357
  id?: string | undefined;
350
358
  name?: string | undefined;
351
- size?: string | undefined;
352
- email?: string | null | undefined;
353
359
  avatar_path?: string | null | undefined;
354
360
  mission?: string | null | undefined;
361
+ size?: string | undefined;
362
+ email?: string | null | undefined;
355
363
  domain?: string | null | undefined;
356
364
  urls?: {
357
365
  value: string;
358
366
  }[] | null | undefined;
359
- base_role?: "none" | "admin" | "read" | "write" | undefined;
367
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
360
368
  }, {
361
369
  id?: string | undefined;
362
370
  name?: string | undefined;
363
- size?: string | undefined;
364
- email?: string | null | undefined;
365
371
  avatar_path?: string | null | undefined;
366
372
  mission?: string | null | undefined;
373
+ size?: string | undefined;
374
+ email?: string | null | undefined;
367
375
  domain?: string | null | undefined;
368
376
  urls?: {
369
377
  value: string;
370
378
  }[] | null | undefined;
371
- base_role?: "none" | "admin" | "read" | "write" | undefined;
379
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
372
380
  }>>>;
373
381
  team_id: z.ZodOptional<z.ZodString>;
374
382
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -381,20 +389,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
381
389
  created_at: z.ZodOptional<z.ZodString>;
382
390
  }, "strip", z.ZodTypeAny, {
383
391
  id?: string | undefined;
384
- name?: string | undefined;
385
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
386
- description?: string | null | undefined;
387
392
  org_id?: string | undefined;
388
393
  created_at?: string | undefined;
389
- default_role?: "none" | "admin" | "read" | "write" | undefined;
390
- }, {
391
- id?: string | undefined;
392
394
  name?: string | undefined;
393
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
395
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
394
396
  description?: string | null | undefined;
397
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
398
+ }, {
399
+ id?: string | undefined;
395
400
  org_id?: string | undefined;
396
401
  created_at?: string | undefined;
397
- default_role?: "none" | "admin" | "read" | "write" | undefined;
402
+ name?: string | undefined;
403
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
404
+ description?: string | null | undefined;
405
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
398
406
  }>>>;
399
407
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
400
408
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -439,47 +447,47 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
439
447
  width: z.ZodOptional<z.ZodNumber>;
440
448
  height: z.ZodOptional<z.ZodNumber>;
441
449
  }, "strip", z.ZodTypeAny, {
442
- type: string;
443
450
  id: string;
444
- name: string;
445
451
  path: string;
452
+ type: string;
453
+ name: string;
446
454
  size: number;
447
455
  bucket: "public-files" | "files";
448
- height?: number | undefined;
449
456
  width?: number | undefined;
457
+ height?: number | undefined;
450
458
  }, {
451
- type: string;
452
459
  id: string;
453
- name: string;
454
460
  path: string;
461
+ type: string;
462
+ name: string;
455
463
  size: number;
456
464
  bucket: "public-files" | "files";
457
- height?: number | undefined;
458
465
  width?: number | undefined;
466
+ height?: number | undefined;
459
467
  }>;
460
468
  }>, "strip", z.ZodTypeAny, {
461
469
  id: string;
462
- state: "success";
463
- name: string;
464
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
470
+ org_id: string | null;
471
+ asset_type: "file";
465
472
  metadata: {
466
- type: string;
467
473
  id: string;
468
- name: string;
469
474
  path: string;
475
+ type: string;
476
+ name: string;
470
477
  size: number;
471
478
  bucket: "public-files" | "files";
472
- height?: number | undefined;
473
479
  width?: number | undefined;
480
+ height?: number | undefined;
474
481
  };
475
- org_id: string | null;
476
- asset_type: "file";
477
482
  created_at: string;
478
483
  last_updated: string;
484
+ name: string;
479
485
  team_id: string | null;
486
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
487
+ state: "success";
480
488
  description?: string | null | undefined;
481
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
482
489
  parent_id?: string | null | undefined;
490
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
483
491
  name_url_slug?: string | null | undefined;
484
492
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
485
493
  price?: number | null | undefined;
@@ -490,28 +498,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
490
498
  price_id?: string | null | undefined;
491
499
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
492
500
  }, {
493
- name: string;
494
501
  metadata: {
495
- type: string;
496
502
  id: string;
497
- name: string;
498
503
  path: string;
504
+ type: string;
505
+ name: string;
499
506
  size: number;
500
507
  bucket: "public-files" | "files";
501
- height?: number | undefined;
502
508
  width?: number | undefined;
509
+ height?: number | undefined;
503
510
  };
511
+ name: string;
504
512
  id?: string | undefined;
505
- state?: "success" | undefined;
506
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
507
- description?: string | null | undefined;
508
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
509
513
  org_id?: string | null | undefined;
510
514
  asset_type?: "file" | undefined;
511
515
  created_at?: string | undefined;
512
516
  last_updated?: string | undefined;
513
517
  team_id?: string | null | undefined;
518
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
519
+ description?: string | null | undefined;
514
520
  parent_id?: string | null | undefined;
521
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
515
522
  name_url_slug?: string | null | undefined;
516
523
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
517
524
  price?: number | null | undefined;
@@ -521,6 +528,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
521
528
  product_id?: string | null | undefined;
522
529
  price_id?: string | null | undefined;
523
530
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
531
+ state?: "success" | undefined;
524
532
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
525
533
  id: z.ZodOptional<z.ZodString>;
526
534
  user_id: z.ZodOptional<z.ZodString>;
@@ -537,6 +545,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
537
545
  }, {
538
546
  value: string;
539
547
  }>, "many">>>;
548
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
540
549
  last_active: z.ZodOptional<z.ZodString>;
541
550
  }, "strip", z.ZodTypeAny, {
542
551
  id?: string | undefined;
@@ -547,6 +556,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
547
556
  }[] | undefined;
548
557
  username?: string | null | undefined;
549
558
  bio?: string | null | undefined;
559
+ post_id?: string | null | undefined;
550
560
  last_active?: string | undefined;
551
561
  }, {
552
562
  id?: string | undefined;
@@ -557,6 +567,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
557
567
  }[] | undefined;
558
568
  username?: string | null | undefined;
559
569
  bio?: string | null | undefined;
570
+ post_id?: string | null | undefined;
560
571
  last_active?: string | undefined;
561
572
  }>>>;
562
573
  org_id: z.ZodOptional<z.ZodString>;
@@ -579,27 +590,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
579
590
  }, "strip", z.ZodTypeAny, {
580
591
  id?: string | undefined;
581
592
  name?: string | undefined;
582
- size?: string | undefined;
583
- email?: string | null | undefined;
584
593
  avatar_path?: string | null | undefined;
585
594
  mission?: string | null | undefined;
595
+ size?: string | undefined;
596
+ email?: string | null | undefined;
586
597
  domain?: string | null | undefined;
587
598
  urls?: {
588
599
  value: string;
589
600
  }[] | null | undefined;
590
- base_role?: "none" | "admin" | "read" | "write" | undefined;
601
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
591
602
  }, {
592
603
  id?: string | undefined;
593
604
  name?: string | undefined;
594
- size?: string | undefined;
595
- email?: string | null | undefined;
596
605
  avatar_path?: string | null | undefined;
597
606
  mission?: string | null | undefined;
607
+ size?: string | undefined;
608
+ email?: string | null | undefined;
598
609
  domain?: string | null | undefined;
599
610
  urls?: {
600
611
  value: string;
601
612
  }[] | null | undefined;
602
- base_role?: "none" | "admin" | "read" | "write" | undefined;
613
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
603
614
  }>>>;
604
615
  team_id: z.ZodOptional<z.ZodString>;
605
616
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -612,20 +623,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
612
623
  created_at: z.ZodOptional<z.ZodString>;
613
624
  }, "strip", z.ZodTypeAny, {
614
625
  id?: string | undefined;
615
- name?: string | undefined;
616
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
617
- description?: string | null | undefined;
618
626
  org_id?: string | undefined;
619
627
  created_at?: string | undefined;
620
- default_role?: "none" | "admin" | "read" | "write" | undefined;
621
- }, {
622
- id?: string | undefined;
623
628
  name?: string | undefined;
624
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
629
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
625
630
  description?: string | null | undefined;
631
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
632
+ }, {
633
+ id?: string | undefined;
626
634
  org_id?: string | undefined;
627
635
  created_at?: string | undefined;
628
- default_role?: "none" | "admin" | "read" | "write" | undefined;
636
+ name?: string | undefined;
637
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
638
+ description?: string | null | undefined;
639
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
629
640
  }>>>;
630
641
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
631
642
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -669,20 +680,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
669
680
  }>;
670
681
  }>, "strip", z.ZodTypeAny, {
671
682
  id: string;
672
- state: "in-progress";
673
- name: string;
674
- visibility: "inherit" | "private" | "public" | "organization" | "monetized";
683
+ org_id: string | null;
684
+ asset_type: "file";
675
685
  metadata: {
676
686
  type: string;
677
687
  };
678
- org_id: string | null;
679
- asset_type: "file";
680
688
  created_at: string;
681
689
  last_updated: string;
690
+ name: string;
682
691
  team_id: string | null;
692
+ visibility: "organization" | "public" | "private" | "monetized" | "inherit";
693
+ state: "in-progress";
683
694
  description?: string | null | undefined;
684
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
685
695
  parent_id?: string | null | undefined;
696
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
686
697
  name_url_slug?: string | null | undefined;
687
698
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
688
699
  price?: number | null | undefined;
@@ -693,21 +704,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
693
704
  price_id?: string | null | undefined;
694
705
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
695
706
  }, {
696
- name: string;
697
707
  metadata: {
698
708
  type: string;
699
709
  };
710
+ name: string;
700
711
  id?: string | undefined;
701
- state?: "in-progress" | undefined;
702
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
703
- description?: string | null | undefined;
704
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
705
712
  org_id?: string | null | undefined;
706
713
  asset_type?: "file" | undefined;
707
714
  created_at?: string | undefined;
708
715
  last_updated?: string | undefined;
709
716
  team_id?: string | null | undefined;
717
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
718
+ description?: string | null | undefined;
710
719
  parent_id?: string | null | undefined;
720
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
711
721
  name_url_slug?: string | null | undefined;
712
722
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
713
723
  price?: number | null | undefined;
@@ -717,6 +727,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
717
727
  product_id?: string | null | undefined;
718
728
  price_id?: string | null | undefined;
719
729
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
730
+ state?: "in-progress" | undefined;
720
731
  }>]>;
721
732
  declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
722
733
  id: z.ZodOptional<z.ZodString>;
@@ -734,6 +745,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
734
745
  }, {
735
746
  value: string;
736
747
  }>, "many">>>;
748
+ post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
737
749
  last_active: z.ZodOptional<z.ZodString>;
738
750
  }, "strip", z.ZodTypeAny, {
739
751
  id?: string | undefined;
@@ -744,6 +756,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
744
756
  }[] | undefined;
745
757
  username?: string | null | undefined;
746
758
  bio?: string | null | undefined;
759
+ post_id?: string | null | undefined;
747
760
  last_active?: string | undefined;
748
761
  }, {
749
762
  id?: string | undefined;
@@ -754,6 +767,7 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
754
767
  }[] | undefined;
755
768
  username?: string | null | undefined;
756
769
  bio?: string | null | undefined;
770
+ post_id?: string | null | undefined;
757
771
  last_active?: string | undefined;
758
772
  }>>>;
759
773
  org_id: z.ZodOptional<z.ZodString>;
@@ -776,27 +790,27 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
776
790
  }, "strip", z.ZodTypeAny, {
777
791
  id?: string | undefined;
778
792
  name?: string | undefined;
779
- size?: string | undefined;
780
- email?: string | null | undefined;
781
793
  avatar_path?: string | null | undefined;
782
794
  mission?: string | null | undefined;
795
+ size?: string | undefined;
796
+ email?: string | null | undefined;
783
797
  domain?: string | null | undefined;
784
798
  urls?: {
785
799
  value: string;
786
800
  }[] | null | undefined;
787
- base_role?: "none" | "admin" | "read" | "write" | undefined;
801
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
788
802
  }, {
789
803
  id?: string | undefined;
790
804
  name?: string | undefined;
791
- size?: string | undefined;
792
- email?: string | null | undefined;
793
805
  avatar_path?: string | null | undefined;
794
806
  mission?: string | null | undefined;
807
+ size?: string | undefined;
808
+ email?: string | null | undefined;
795
809
  domain?: string | null | undefined;
796
810
  urls?: {
797
811
  value: string;
798
812
  }[] | null | undefined;
799
- base_role?: "none" | "admin" | "read" | "write" | undefined;
813
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
800
814
  }>>>;
801
815
  team_id: z.ZodOptional<z.ZodString>;
802
816
  team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -809,20 +823,20 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
809
823
  created_at: z.ZodOptional<z.ZodString>;
810
824
  }, "strip", z.ZodTypeAny, {
811
825
  id?: string | undefined;
812
- name?: string | undefined;
813
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
814
- description?: string | null | undefined;
815
826
  org_id?: string | undefined;
816
827
  created_at?: string | undefined;
817
- default_role?: "none" | "admin" | "read" | "write" | undefined;
818
- }, {
819
- id?: string | undefined;
820
828
  name?: string | undefined;
821
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
829
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
822
830
  description?: string | null | undefined;
831
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
832
+ }, {
833
+ id?: string | undefined;
823
834
  org_id?: string | undefined;
824
835
  created_at?: string | undefined;
825
- default_role?: "none" | "admin" | "read" | "write" | undefined;
836
+ name?: string | undefined;
837
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
838
+ description?: string | null | undefined;
839
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
826
840
  }>>>;
827
841
  parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
828
842
  parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
@@ -853,43 +867,28 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
853
867
  width: z.ZodOptional<z.ZodNumber>;
854
868
  height: z.ZodOptional<z.ZodNumber>;
855
869
  }, "strip", z.ZodTypeAny, {
856
- type: string;
857
870
  id: string;
858
- name: string;
859
871
  path: string;
872
+ type: string;
873
+ name: string;
860
874
  size: number;
861
875
  bucket: "public-files" | "files";
862
- height?: number | undefined;
863
876
  width?: number | undefined;
877
+ height?: number | undefined;
864
878
  }, {
865
- type: string;
866
879
  id: string;
867
- name: string;
868
880
  path: string;
881
+ type: string;
882
+ name: string;
869
883
  size: number;
870
884
  bucket: "public-files" | "files";
871
- height?: number | undefined;
872
885
  width?: number | undefined;
886
+ height?: number | undefined;
873
887
  }>>;
874
888
  }, "id" | "user_id" | "created_at" | "last_updated">, {
875
889
  last_updated: z.ZodDefault<z.ZodString>;
876
890
  }>, "strip", z.ZodTypeAny, {
877
891
  last_updated: string;
878
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
879
- name?: string | undefined;
880
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
881
- metadata?: {
882
- type: string;
883
- id: string;
884
- name: string;
885
- path: string;
886
- size: number;
887
- bucket: "public-files" | "files";
888
- height?: number | undefined;
889
- width?: number | undefined;
890
- } | undefined;
891
- description?: string | null | undefined;
892
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
893
892
  user?: {
894
893
  id?: string | undefined;
895
894
  user_id?: string | undefined;
@@ -899,34 +898,49 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
899
898
  }[] | undefined;
900
899
  username?: string | null | undefined;
901
900
  bio?: string | null | undefined;
901
+ post_id?: string | null | undefined;
902
902
  last_active?: string | undefined;
903
903
  } | undefined;
904
904
  organization?: {
905
905
  id?: string | undefined;
906
906
  name?: string | undefined;
907
- size?: string | undefined;
908
- email?: string | null | undefined;
909
907
  avatar_path?: string | null | undefined;
910
908
  mission?: string | null | undefined;
909
+ size?: string | undefined;
910
+ email?: string | null | undefined;
911
911
  domain?: string | null | undefined;
912
912
  urls?: {
913
913
  value: string;
914
914
  }[] | null | undefined;
915
- base_role?: "none" | "admin" | "read" | "write" | undefined;
915
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
916
916
  } | undefined;
917
917
  team?: {
918
918
  id?: string | undefined;
919
- name?: string | undefined;
920
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
921
- description?: string | null | undefined;
922
919
  org_id?: string | undefined;
923
920
  created_at?: string | undefined;
924
- default_role?: "none" | "admin" | "read" | "write" | undefined;
921
+ name?: string | undefined;
922
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
923
+ description?: string | null | undefined;
924
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
925
925
  } | undefined;
926
926
  org_id?: string | undefined;
927
927
  asset_type?: "file" | undefined;
928
+ metadata?: {
929
+ id: string;
930
+ path: string;
931
+ type: string;
932
+ name: string;
933
+ size: number;
934
+ bucket: "public-files" | "files";
935
+ width?: number | undefined;
936
+ height?: number | undefined;
937
+ } | undefined;
938
+ name?: string | undefined;
928
939
  team_id?: string | undefined;
940
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
941
+ description?: string | null | undefined;
929
942
  parent_id?: string | null | undefined;
943
+ parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
930
944
  name_url_slug?: string | null | undefined;
931
945
  slug?: string | null | undefined;
932
946
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -937,22 +951,8 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
937
951
  product_id?: string | null | undefined;
938
952
  price_id?: string | null | undefined;
939
953
  preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
954
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
940
955
  }, {
941
- state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
942
- name?: string | undefined;
943
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
944
- metadata?: {
945
- type: string;
946
- id: string;
947
- name: string;
948
- path: string;
949
- size: number;
950
- bucket: "public-files" | "files";
951
- height?: number | undefined;
952
- width?: number | undefined;
953
- } | undefined;
954
- description?: string | null | undefined;
955
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
956
956
  user?: {
957
957
  id?: string | undefined;
958
958
  user_id?: string | undefined;
@@ -962,35 +962,50 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
962
962
  }[] | undefined;
963
963
  username?: string | null | undefined;
964
964
  bio?: string | null | undefined;
965
+ post_id?: string | null | undefined;
965
966
  last_active?: string | undefined;
966
967
  } | undefined;
967
968
  organization?: {
968
969
  id?: string | undefined;
969
970
  name?: string | undefined;
970
- size?: string | undefined;
971
- email?: string | null | undefined;
972
971
  avatar_path?: string | null | undefined;
973
972
  mission?: string | null | undefined;
973
+ size?: string | undefined;
974
+ email?: string | null | undefined;
974
975
  domain?: string | null | undefined;
975
976
  urls?: {
976
977
  value: string;
977
978
  }[] | null | undefined;
978
- base_role?: "none" | "admin" | "read" | "write" | undefined;
979
+ base_role?: "admin" | "read" | "write" | "none" | undefined;
979
980
  } | undefined;
980
981
  team?: {
981
982
  id?: string | undefined;
982
- name?: string | undefined;
983
- visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
984
- description?: string | null | undefined;
985
983
  org_id?: string | undefined;
986
984
  created_at?: string | undefined;
987
- default_role?: "none" | "admin" | "read" | "write" | undefined;
985
+ name?: string | undefined;
986
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
987
+ description?: string | null | undefined;
988
+ default_role?: "admin" | "read" | "write" | "none" | undefined;
988
989
  } | undefined;
989
990
  org_id?: string | undefined;
990
991
  asset_type?: "file" | undefined;
992
+ metadata?: {
993
+ id: string;
994
+ path: string;
995
+ type: string;
996
+ name: string;
997
+ size: number;
998
+ bucket: "public-files" | "files";
999
+ width?: number | undefined;
1000
+ height?: number | undefined;
1001
+ } | undefined;
991
1002
  last_updated?: string | undefined;
1003
+ name?: string | undefined;
992
1004
  team_id?: string | undefined;
1005
+ visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1006
+ description?: string | null | undefined;
993
1007
  parent_id?: string | null | undefined;
1008
+ parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
994
1009
  name_url_slug?: string | null | undefined;
995
1010
  slug?: string | null | undefined;
996
1011
  monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
@@ -1001,8 +1016,9 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1001
1016
  product_id?: string | null | undefined;
1002
1017
  price_id?: string | null | undefined;
1003
1018
  preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1019
+ state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1004
1020
  }>;
1005
- type File = z.infer<typeof FileSchema>;
1006
- type CreateFile = z.infer<typeof CreateFileSchema>;
1007
- type UpdateFile = z.infer<typeof updateFileSchema>;
1008
- export { FileSchema, CreateFileSchema, updateFileSchema, type File, type CreateFile, type UpdateFile, };
1021
+ export { FileSchema, CreateFileSchema, updateFileSchema };
1022
+ export type File = z.infer<typeof FileSchema>;
1023
+ export type CreateFile = z.infer<typeof CreateFileSchema>;
1024
+ export type UpdateFile = z.infer<typeof updateFileSchema>;