@ourofoundation/ouro-js 1.1.4 → 2.0.1

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 (104) hide show
  1. package/dist/index.cjs +816 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +7751 -0
  4. package/dist/index.d.ts +7751 -18
  5. package/dist/index.js +755 -1
  6. package/dist/index.js.map +1 -1
  7. package/package.json +19 -36
  8. package/tsup.config.ts +12 -0
  9. package/dist/index.esm.js +0 -2
  10. package/dist/index.esm.js.map +0 -1
  11. package/dist/schema/assets.d.ts +0 -611
  12. package/dist/schema/assets.esm.js +0 -2
  13. package/dist/schema/assets.esm.js.map +0 -1
  14. package/dist/schema/assets.js +0 -2
  15. package/dist/schema/assets.js.map +0 -1
  16. package/dist/schema/blueprints.d.ts +0 -553
  17. package/dist/schema/blueprints.esm.js +0 -2
  18. package/dist/schema/blueprints.esm.js.map +0 -1
  19. package/dist/schema/blueprints.js +0 -2
  20. package/dist/schema/blueprints.js.map +0 -1
  21. package/dist/schema/comments.d.ts +0 -537
  22. package/dist/schema/comments.esm.js +0 -2
  23. package/dist/schema/comments.esm.js.map +0 -1
  24. package/dist/schema/comments.js +0 -2
  25. package/dist/schema/comments.js.map +0 -1
  26. package/dist/schema/common.d.ts +0 -138
  27. package/dist/schema/common.esm.js +0 -2
  28. package/dist/schema/common.esm.js.map +0 -1
  29. package/dist/schema/common.js +0 -2
  30. package/dist/schema/common.js.map +0 -1
  31. package/dist/schema/conversations.d.ts +0 -709
  32. package/dist/schema/conversations.esm.js +0 -2
  33. package/dist/schema/conversations.esm.js.map +0 -1
  34. package/dist/schema/conversations.js +0 -2
  35. package/dist/schema/conversations.js.map +0 -1
  36. package/dist/schema/datasets.d.ts +0 -1056
  37. package/dist/schema/datasets.esm.js +0 -2
  38. package/dist/schema/datasets.esm.js.map +0 -1
  39. package/dist/schema/datasets.js +0 -2
  40. package/dist/schema/datasets.js.map +0 -1
  41. package/dist/schema/files.d.ts +0 -1024
  42. package/dist/schema/files.esm.js +0 -2
  43. package/dist/schema/files.esm.js.map +0 -1
  44. package/dist/schema/files.js +0 -2
  45. package/dist/schema/files.js.map +0 -1
  46. package/dist/schema/index.d.ts +0 -14
  47. package/dist/schema/index.js +0 -63
  48. package/dist/schema/notifications.d.ts +0 -97
  49. package/dist/schema/notifications.esm.js +0 -2
  50. package/dist/schema/notifications.esm.js.map +0 -1
  51. package/dist/schema/notifications.js +0 -2
  52. package/dist/schema/notifications.js.map +0 -1
  53. package/dist/schema/organizations.d.ts +0 -70
  54. package/dist/schema/organizations.esm.js +0 -2
  55. package/dist/schema/organizations.esm.js.map +0 -1
  56. package/dist/schema/organizations.js +0 -2
  57. package/dist/schema/organizations.js.map +0 -1
  58. package/dist/schema/posts.d.ts +0 -1848
  59. package/dist/schema/posts.esm.js +0 -2
  60. package/dist/schema/posts.esm.js.map +0 -1
  61. package/dist/schema/posts.js +0 -2
  62. package/dist/schema/posts.js.map +0 -1
  63. package/dist/schema/replications.d.ts +0 -610
  64. package/dist/schema/replications.esm.js +0 -2
  65. package/dist/schema/replications.esm.js.map +0 -1
  66. package/dist/schema/replications.js +0 -2
  67. package/dist/schema/replications.js.map +0 -1
  68. package/dist/schema/services.d.ts +0 -86
  69. package/dist/schema/services.esm.js +0 -2
  70. package/dist/schema/services.esm.js.map +0 -1
  71. package/dist/schema/services.js +0 -2
  72. package/dist/schema/services.js.map +0 -1
  73. package/dist/schema/teams.d.ts +0 -528
  74. package/dist/schema/teams.esm.js +0 -2
  75. package/dist/schema/teams.esm.js.map +0 -1
  76. package/dist/schema/teams.js +0 -2
  77. package/dist/schema/teams.js.map +0 -1
  78. package/dist/schema/users.d.ts +0 -132
  79. package/dist/schema/users.esm.js +0 -2
  80. package/dist/schema/users.esm.js.map +0 -1
  81. package/dist/schema/users.js +0 -2
  82. package/dist/schema/users.js.map +0 -1
  83. package/dist/types/index.d.ts +0 -14
  84. package/dist/utils/air/index.d.ts +0 -24
  85. package/dist/utils/air/index.esm.js +0 -2
  86. package/dist/utils/air/index.esm.js.map +0 -1
  87. package/dist/utils/air/index.js +0 -2
  88. package/dist/utils/air/index.js.map +0 -1
  89. package/dist/utils/air/markdown-parser.d.ts +0 -1
  90. package/dist/utils/air/markdown-parser.esm.js +0 -2
  91. package/dist/utils/air/markdown-parser.esm.js.map +0 -1
  92. package/dist/utils/air/markdown-parser.js +0 -2
  93. package/dist/utils/air/markdown-parser.js.map +0 -1
  94. package/dist/utils/dataset.d.ts +0 -7
  95. package/dist/utils/dataset.esm.js +0 -2
  96. package/dist/utils/dataset.esm.js.map +0 -1
  97. package/dist/utils/dataset.js +0 -2
  98. package/dist/utils/dataset.js.map +0 -1
  99. package/dist/utils/navigate.d.ts +0 -11
  100. package/dist/utils/navigate.esm.js +0 -2
  101. package/dist/utils/navigate.esm.js.map +0 -1
  102. package/dist/utils/navigate.js +0 -2
  103. package/dist/utils/navigate.js.map +0 -1
  104. package/rollup.config.js +0 -52
@@ -1,1024 +0,0 @@
1
- import { z } from "zod";
2
- declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodString;
4
- user_id: z.ZodString;
5
- user: z.ZodOptional<z.ZodObject<{
6
- id: z.ZodOptional<z.ZodString>;
7
- user_id: z.ZodOptional<z.ZodString>;
8
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
10
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
11
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
12
- value: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- value: string;
15
- }, {
16
- value: string;
17
- }>, "many">>>;
18
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19
- last_active: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- id?: string | undefined;
22
- user_id?: string | undefined;
23
- avatar_path?: string | null | undefined;
24
- urls?: {
25
- value: string;
26
- }[] | undefined;
27
- username?: string | null | undefined;
28
- bio?: string | null | undefined;
29
- post_id?: string | null | undefined;
30
- last_active?: string | undefined;
31
- }, {
32
- id?: string | undefined;
33
- user_id?: string | undefined;
34
- avatar_path?: string | null | undefined;
35
- urls?: {
36
- value: string;
37
- }[] | undefined;
38
- username?: string | null | undefined;
39
- bio?: string | null | undefined;
40
- post_id?: string | null | undefined;
41
- last_active?: string | undefined;
42
- }>>;
43
- org_id: z.ZodString;
44
- organization: z.ZodOptional<z.ZodObject<{
45
- id: z.ZodOptional<z.ZodString>;
46
- name: z.ZodOptional<z.ZodString>;
47
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
48
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
49
- size: z.ZodOptional<z.ZodString>;
50
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
51
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
52
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
- value: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- value: string;
56
- }, {
57
- value: string;
58
- }>, "many">>>>;
59
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
60
- }, "strip", z.ZodTypeAny, {
61
- id?: string | undefined;
62
- name?: string | undefined;
63
- avatar_path?: string | null | undefined;
64
- mission?: string | null | undefined;
65
- size?: string | undefined;
66
- email?: string | null | undefined;
67
- domain?: string | null | undefined;
68
- urls?: {
69
- value: string;
70
- }[] | null | undefined;
71
- base_role?: "admin" | "read" | "write" | "none" | undefined;
72
- }, {
73
- id?: string | undefined;
74
- name?: string | undefined;
75
- avatar_path?: string | null | undefined;
76
- mission?: string | null | undefined;
77
- size?: string | undefined;
78
- email?: string | null | undefined;
79
- domain?: string | null | undefined;
80
- urls?: {
81
- value: string;
82
- }[] | null | undefined;
83
- base_role?: "admin" | "read" | "write" | "none" | undefined;
84
- }>>;
85
- team_id: z.ZodString;
86
- team: z.ZodOptional<z.ZodObject<{
87
- id: z.ZodOptional<z.ZodString>;
88
- org_id: z.ZodOptional<z.ZodString>;
89
- name: z.ZodOptional<z.ZodString>;
90
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
91
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
92
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
93
- created_at: z.ZodOptional<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- id?: string | undefined;
96
- org_id?: string | undefined;
97
- created_at?: string | undefined;
98
- name?: string | undefined;
99
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
100
- description?: string | null | undefined;
101
- default_role?: "admin" | "read" | "write" | "none" | undefined;
102
- }, {
103
- id?: string | undefined;
104
- org_id?: string | undefined;
105
- created_at?: string | 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;
110
- }>>;
111
- parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
113
- asset_type: z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>;
114
- name: z.ZodString;
115
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
- slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- visibility: z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>;
119
- monetization: z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>;
120
- price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
- unit_cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
- cost_accounting: z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>;
123
- cost_unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
124
- product_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
- price_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
126
- metadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
127
- preview: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">>>;
128
- state: z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
129
- created_at: z.ZodString;
130
- last_updated: z.ZodString;
131
- }, {
132
- asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
133
- metadata: z.ZodObject<{
134
- id: z.ZodString;
135
- path: z.ZodString;
136
- bucket: z.ZodEnum<["public-files", "files"]>;
137
- name: z.ZodString;
138
- type: z.ZodString;
139
- size: z.ZodNumber;
140
- width: z.ZodOptional<z.ZodNumber>;
141
- height: z.ZodOptional<z.ZodNumber>;
142
- }, "strip", z.ZodTypeAny, {
143
- id: string;
144
- path: string;
145
- type: string;
146
- name: string;
147
- size: number;
148
- bucket: "public-files" | "files";
149
- width?: number | undefined;
150
- height?: number | undefined;
151
- }, {
152
- id: string;
153
- path: string;
154
- type: string;
155
- name: string;
156
- size: number;
157
- bucket: "public-files" | "files";
158
- width?: number | undefined;
159
- height?: number | undefined;
160
- }>;
161
- }>, "strip", z.ZodTypeAny, {
162
- id: string;
163
- user_id: string;
164
- org_id: string;
165
- asset_type: "file";
166
- metadata: {
167
- id: string;
168
- path: string;
169
- type: string;
170
- name: string;
171
- size: number;
172
- bucket: "public-files" | "files";
173
- width?: number | undefined;
174
- height?: number | undefined;
175
- };
176
- created_at: string;
177
- last_updated: string;
178
- name: string;
179
- team_id: string;
180
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
181
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
182
- user?: {
183
- id?: string | undefined;
184
- user_id?: string | undefined;
185
- avatar_path?: string | null | undefined;
186
- urls?: {
187
- value: string;
188
- }[] | undefined;
189
- username?: string | null | undefined;
190
- bio?: string | null | undefined;
191
- post_id?: string | null | undefined;
192
- last_active?: string | undefined;
193
- } | undefined;
194
- organization?: {
195
- id?: string | undefined;
196
- name?: string | undefined;
197
- avatar_path?: string | null | undefined;
198
- mission?: string | null | undefined;
199
- size?: string | undefined;
200
- email?: string | null | undefined;
201
- domain?: string | null | undefined;
202
- urls?: {
203
- value: string;
204
- }[] | null | undefined;
205
- base_role?: "admin" | "read" | "write" | "none" | undefined;
206
- } | undefined;
207
- team?: {
208
- id?: string | undefined;
209
- org_id?: string | undefined;
210
- created_at?: string | 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;
215
- } | undefined;
216
- description?: string | null | undefined;
217
- parent_id?: string | null | undefined;
218
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
219
- name_url_slug?: string | null | undefined;
220
- slug?: string | null | undefined;
221
- price?: number | null | undefined;
222
- unit_cost?: number | null | undefined;
223
- cost_accounting?: "fixed" | "variable" | null | undefined;
224
- cost_unit?: string | null | undefined;
225
- product_id?: string | null | undefined;
226
- price_id?: string | null | undefined;
227
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
228
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
229
- }, {
230
- id: string;
231
- user_id: string;
232
- org_id: string;
233
- metadata: {
234
- id: string;
235
- path: string;
236
- type: string;
237
- name: string;
238
- size: number;
239
- bucket: "public-files" | "files";
240
- width?: number | undefined;
241
- height?: number | undefined;
242
- };
243
- created_at: string;
244
- last_updated: string;
245
- name: string;
246
- team_id: string;
247
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
248
- monetization: "none" | "pay-to-unlock" | "pay-per-use";
249
- user?: {
250
- id?: string | undefined;
251
- user_id?: string | undefined;
252
- avatar_path?: string | null | undefined;
253
- urls?: {
254
- value: string;
255
- }[] | undefined;
256
- username?: string | null | undefined;
257
- bio?: string | null | undefined;
258
- post_id?: string | null | undefined;
259
- last_active?: string | undefined;
260
- } | undefined;
261
- organization?: {
262
- id?: string | undefined;
263
- name?: string | undefined;
264
- avatar_path?: string | null | undefined;
265
- mission?: string | null | undefined;
266
- size?: string | undefined;
267
- email?: string | null | undefined;
268
- domain?: string | null | undefined;
269
- urls?: {
270
- value: string;
271
- }[] | null | undefined;
272
- base_role?: "admin" | "read" | "write" | "none" | undefined;
273
- } | undefined;
274
- team?: {
275
- id?: string | undefined;
276
- org_id?: string | undefined;
277
- created_at?: string | 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;
282
- } | undefined;
283
- asset_type?: "file" | undefined;
284
- description?: string | null | undefined;
285
- parent_id?: string | null | undefined;
286
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
287
- name_url_slug?: string | null | undefined;
288
- slug?: string | null | undefined;
289
- price?: number | null | undefined;
290
- unit_cost?: number | null | undefined;
291
- cost_accounting?: "fixed" | "variable" | null | undefined;
292
- cost_unit?: string | null | undefined;
293
- product_id?: string | null | undefined;
294
- price_id?: string | null | undefined;
295
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
296
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
297
- }>;
298
- declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
299
- id: z.ZodOptional<z.ZodString>;
300
- user_id: z.ZodOptional<z.ZodString>;
301
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
302
- id: z.ZodOptional<z.ZodString>;
303
- user_id: z.ZodOptional<z.ZodString>;
304
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
305
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
306
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
307
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
308
- value: z.ZodString;
309
- }, "strip", z.ZodTypeAny, {
310
- value: string;
311
- }, {
312
- value: string;
313
- }>, "many">>>;
314
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
315
- last_active: z.ZodOptional<z.ZodString>;
316
- }, "strip", z.ZodTypeAny, {
317
- id?: string | undefined;
318
- user_id?: string | undefined;
319
- avatar_path?: string | null | undefined;
320
- urls?: {
321
- value: string;
322
- }[] | undefined;
323
- username?: string | null | undefined;
324
- bio?: string | null | undefined;
325
- post_id?: string | null | undefined;
326
- last_active?: string | undefined;
327
- }, {
328
- id?: string | undefined;
329
- user_id?: string | undefined;
330
- avatar_path?: string | null | undefined;
331
- urls?: {
332
- value: string;
333
- }[] | undefined;
334
- username?: string | null | undefined;
335
- bio?: string | null | undefined;
336
- post_id?: string | null | undefined;
337
- last_active?: string | undefined;
338
- }>>>;
339
- org_id: z.ZodOptional<z.ZodString>;
340
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
341
- id: z.ZodOptional<z.ZodString>;
342
- name: z.ZodOptional<z.ZodString>;
343
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
344
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
345
- size: z.ZodOptional<z.ZodString>;
346
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
347
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
348
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
349
- value: z.ZodString;
350
- }, "strip", z.ZodTypeAny, {
351
- value: string;
352
- }, {
353
- value: string;
354
- }>, "many">>>>;
355
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
356
- }, "strip", z.ZodTypeAny, {
357
- id?: string | undefined;
358
- name?: string | undefined;
359
- avatar_path?: string | null | undefined;
360
- mission?: string | null | undefined;
361
- size?: string | undefined;
362
- email?: string | null | undefined;
363
- domain?: string | null | undefined;
364
- urls?: {
365
- value: string;
366
- }[] | null | undefined;
367
- base_role?: "admin" | "read" | "write" | "none" | undefined;
368
- }, {
369
- id?: string | undefined;
370
- name?: string | undefined;
371
- avatar_path?: string | null | undefined;
372
- mission?: string | null | undefined;
373
- size?: string | undefined;
374
- email?: string | null | undefined;
375
- domain?: string | null | undefined;
376
- urls?: {
377
- value: string;
378
- }[] | null | undefined;
379
- base_role?: "admin" | "read" | "write" | "none" | undefined;
380
- }>>>;
381
- team_id: z.ZodOptional<z.ZodString>;
382
- team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
383
- id: z.ZodOptional<z.ZodString>;
384
- org_id: z.ZodOptional<z.ZodString>;
385
- name: z.ZodOptional<z.ZodString>;
386
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
387
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
388
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
389
- created_at: z.ZodOptional<z.ZodString>;
390
- }, "strip", z.ZodTypeAny, {
391
- id?: string | undefined;
392
- org_id?: string | undefined;
393
- created_at?: string | undefined;
394
- name?: string | undefined;
395
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
396
- description?: string | null | undefined;
397
- default_role?: "admin" | "read" | "write" | "none" | undefined;
398
- }, {
399
- id?: string | undefined;
400
- org_id?: string | undefined;
401
- created_at?: string | 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;
406
- }>>>;
407
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
408
- parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
409
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
410
- name: z.ZodOptional<z.ZodString>;
411
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
412
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
413
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
414
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
415
- monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
416
- price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
417
- unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
418
- cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
419
- cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
420
- product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
421
- price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
422
- metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
423
- 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">>>>;
424
- state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
425
- created_at: z.ZodOptional<z.ZodString>;
426
- last_updated: z.ZodOptional<z.ZodString>;
427
- }, "user" | "organization" | "team" | "user_id" | "slug">, {
428
- id: z.ZodDefault<z.ZodString>;
429
- team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
430
- org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
431
- name: z.ZodString;
432
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
433
- state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
434
- visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
435
- created_at: z.ZodDefault<z.ZodString>;
436
- last_updated: z.ZodDefault<z.ZodString>;
437
- }>, {
438
- asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
439
- state: z.ZodDefault<z.ZodLiteral<"success">>;
440
- metadata: z.ZodObject<{
441
- id: z.ZodString;
442
- path: z.ZodString;
443
- bucket: z.ZodEnum<["public-files", "files"]>;
444
- name: z.ZodString;
445
- type: z.ZodString;
446
- size: z.ZodNumber;
447
- width: z.ZodOptional<z.ZodNumber>;
448
- height: z.ZodOptional<z.ZodNumber>;
449
- }, "strip", z.ZodTypeAny, {
450
- id: string;
451
- path: string;
452
- type: string;
453
- name: string;
454
- size: number;
455
- bucket: "public-files" | "files";
456
- width?: number | undefined;
457
- height?: number | undefined;
458
- }, {
459
- id: string;
460
- path: string;
461
- type: string;
462
- name: string;
463
- size: number;
464
- bucket: "public-files" | "files";
465
- width?: number | undefined;
466
- height?: number | undefined;
467
- }>;
468
- }>, "strip", z.ZodTypeAny, {
469
- id: string;
470
- org_id: string | null;
471
- asset_type: "file";
472
- metadata: {
473
- id: string;
474
- path: string;
475
- type: string;
476
- name: string;
477
- size: number;
478
- bucket: "public-files" | "files";
479
- width?: number | undefined;
480
- height?: number | undefined;
481
- };
482
- created_at: string;
483
- last_updated: string;
484
- name: string;
485
- team_id: string | null;
486
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
487
- state: "success";
488
- description?: string | null | undefined;
489
- parent_id?: string | null | undefined;
490
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
491
- name_url_slug?: string | null | undefined;
492
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
493
- price?: number | null | undefined;
494
- unit_cost?: number | null | undefined;
495
- cost_accounting?: "fixed" | "variable" | null | undefined;
496
- cost_unit?: string | null | undefined;
497
- product_id?: string | null | undefined;
498
- price_id?: string | null | undefined;
499
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
500
- }, {
501
- metadata: {
502
- id: string;
503
- path: string;
504
- type: string;
505
- name: string;
506
- size: number;
507
- bucket: "public-files" | "files";
508
- width?: number | undefined;
509
- height?: number | undefined;
510
- };
511
- name: string;
512
- id?: string | undefined;
513
- org_id?: string | null | undefined;
514
- asset_type?: "file" | undefined;
515
- created_at?: string | undefined;
516
- last_updated?: string | undefined;
517
- team_id?: string | null | undefined;
518
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
519
- description?: string | null | undefined;
520
- parent_id?: string | null | undefined;
521
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
522
- name_url_slug?: string | null | undefined;
523
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
524
- price?: number | null | undefined;
525
- unit_cost?: number | null | undefined;
526
- cost_accounting?: "fixed" | "variable" | null | undefined;
527
- cost_unit?: string | null | undefined;
528
- product_id?: string | null | undefined;
529
- price_id?: string | null | undefined;
530
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
531
- state?: "success" | undefined;
532
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
533
- id: z.ZodOptional<z.ZodString>;
534
- user_id: z.ZodOptional<z.ZodString>;
535
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
536
- id: z.ZodOptional<z.ZodString>;
537
- user_id: z.ZodOptional<z.ZodString>;
538
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
539
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
540
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
541
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
542
- value: z.ZodString;
543
- }, "strip", z.ZodTypeAny, {
544
- value: string;
545
- }, {
546
- value: string;
547
- }>, "many">>>;
548
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
549
- last_active: z.ZodOptional<z.ZodString>;
550
- }, "strip", z.ZodTypeAny, {
551
- id?: string | undefined;
552
- user_id?: string | undefined;
553
- avatar_path?: string | null | undefined;
554
- urls?: {
555
- value: string;
556
- }[] | undefined;
557
- username?: string | null | undefined;
558
- bio?: string | null | undefined;
559
- post_id?: string | null | undefined;
560
- last_active?: string | undefined;
561
- }, {
562
- id?: string | undefined;
563
- user_id?: string | undefined;
564
- avatar_path?: string | null | undefined;
565
- urls?: {
566
- value: string;
567
- }[] | undefined;
568
- username?: string | null | undefined;
569
- bio?: string | null | undefined;
570
- post_id?: string | null | undefined;
571
- last_active?: string | undefined;
572
- }>>>;
573
- org_id: z.ZodOptional<z.ZodString>;
574
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
575
- id: z.ZodOptional<z.ZodString>;
576
- name: z.ZodOptional<z.ZodString>;
577
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
578
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
- size: z.ZodOptional<z.ZodString>;
580
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
581
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
582
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
583
- value: z.ZodString;
584
- }, "strip", z.ZodTypeAny, {
585
- value: string;
586
- }, {
587
- value: string;
588
- }>, "many">>>>;
589
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
590
- }, "strip", z.ZodTypeAny, {
591
- id?: string | undefined;
592
- name?: string | undefined;
593
- avatar_path?: string | null | undefined;
594
- mission?: string | null | undefined;
595
- size?: string | undefined;
596
- email?: string | null | undefined;
597
- domain?: string | null | undefined;
598
- urls?: {
599
- value: string;
600
- }[] | null | undefined;
601
- base_role?: "admin" | "read" | "write" | "none" | undefined;
602
- }, {
603
- id?: string | undefined;
604
- name?: string | undefined;
605
- avatar_path?: string | null | undefined;
606
- mission?: string | null | undefined;
607
- size?: string | undefined;
608
- email?: string | null | undefined;
609
- domain?: string | null | undefined;
610
- urls?: {
611
- value: string;
612
- }[] | null | undefined;
613
- base_role?: "admin" | "read" | "write" | "none" | undefined;
614
- }>>>;
615
- team_id: z.ZodOptional<z.ZodString>;
616
- team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
617
- id: z.ZodOptional<z.ZodString>;
618
- org_id: z.ZodOptional<z.ZodString>;
619
- name: z.ZodOptional<z.ZodString>;
620
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
621
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
622
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
623
- created_at: z.ZodOptional<z.ZodString>;
624
- }, "strip", z.ZodTypeAny, {
625
- id?: string | undefined;
626
- org_id?: string | undefined;
627
- created_at?: string | undefined;
628
- name?: string | undefined;
629
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
630
- description?: string | null | undefined;
631
- default_role?: "admin" | "read" | "write" | "none" | undefined;
632
- }, {
633
- id?: string | undefined;
634
- org_id?: string | undefined;
635
- created_at?: string | 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;
640
- }>>>;
641
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
642
- parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
643
- asset_type: z.ZodOptional<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>>;
644
- name: z.ZodOptional<z.ZodString>;
645
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
646
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
647
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
648
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
649
- monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
650
- price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
651
- unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
652
- cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
653
- cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
654
- product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
655
- price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
656
- metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>>;
657
- 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">>>>;
658
- state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
659
- created_at: z.ZodOptional<z.ZodString>;
660
- last_updated: z.ZodOptional<z.ZodString>;
661
- }, "user" | "organization" | "team" | "user_id" | "slug">, {
662
- id: z.ZodDefault<z.ZodString>;
663
- team_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
664
- org_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
665
- name: z.ZodString;
666
- name_url_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
667
- state: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>;
668
- visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>>;
669
- created_at: z.ZodDefault<z.ZodString>;
670
- last_updated: z.ZodDefault<z.ZodString>;
671
- }>, {
672
- asset_type: z.ZodDefault<z.ZodLiteral<"file">>;
673
- state: z.ZodDefault<z.ZodLiteral<"in-progress">>;
674
- metadata: z.ZodObject<{
675
- type: z.ZodString;
676
- }, "strip", z.ZodTypeAny, {
677
- type: string;
678
- }, {
679
- type: string;
680
- }>;
681
- }>, "strip", z.ZodTypeAny, {
682
- id: string;
683
- org_id: string | null;
684
- asset_type: "file";
685
- metadata: {
686
- type: string;
687
- };
688
- created_at: string;
689
- last_updated: string;
690
- name: string;
691
- team_id: string | null;
692
- visibility: "organization" | "public" | "private" | "monetized" | "inherit";
693
- state: "in-progress";
694
- description?: string | null | undefined;
695
- parent_id?: string | null | undefined;
696
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
697
- name_url_slug?: string | null | undefined;
698
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
699
- price?: number | null | undefined;
700
- unit_cost?: number | null | undefined;
701
- cost_accounting?: "fixed" | "variable" | null | undefined;
702
- cost_unit?: string | null | undefined;
703
- product_id?: string | null | undefined;
704
- price_id?: string | null | undefined;
705
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
706
- }, {
707
- metadata: {
708
- type: string;
709
- };
710
- name: string;
711
- id?: string | undefined;
712
- org_id?: string | null | undefined;
713
- asset_type?: "file" | undefined;
714
- created_at?: string | undefined;
715
- last_updated?: string | undefined;
716
- team_id?: string | null | undefined;
717
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
718
- description?: string | null | undefined;
719
- parent_id?: string | null | undefined;
720
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
721
- name_url_slug?: string | null | undefined;
722
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
723
- price?: number | null | undefined;
724
- unit_cost?: number | null | undefined;
725
- cost_accounting?: "fixed" | "variable" | null | undefined;
726
- cost_unit?: string | null | undefined;
727
- product_id?: string | null | undefined;
728
- price_id?: string | null | undefined;
729
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
730
- state?: "in-progress" | undefined;
731
- }>]>;
732
- declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
733
- id: z.ZodOptional<z.ZodString>;
734
- user_id: z.ZodOptional<z.ZodString>;
735
- user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
736
- id: z.ZodOptional<z.ZodString>;
737
- user_id: z.ZodOptional<z.ZodString>;
738
- username: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
739
- avatar_path: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
740
- bio: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
741
- urls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
742
- value: z.ZodString;
743
- }, "strip", z.ZodTypeAny, {
744
- value: string;
745
- }, {
746
- value: string;
747
- }>, "many">>>;
748
- post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
749
- last_active: z.ZodOptional<z.ZodString>;
750
- }, "strip", z.ZodTypeAny, {
751
- id?: string | undefined;
752
- user_id?: string | undefined;
753
- avatar_path?: string | null | undefined;
754
- urls?: {
755
- value: string;
756
- }[] | undefined;
757
- username?: string | null | undefined;
758
- bio?: string | null | undefined;
759
- post_id?: string | null | undefined;
760
- last_active?: string | undefined;
761
- }, {
762
- id?: string | undefined;
763
- user_id?: string | undefined;
764
- avatar_path?: string | null | undefined;
765
- urls?: {
766
- value: string;
767
- }[] | undefined;
768
- username?: string | null | undefined;
769
- bio?: string | null | undefined;
770
- post_id?: string | null | undefined;
771
- last_active?: string | undefined;
772
- }>>>;
773
- org_id: z.ZodOptional<z.ZodString>;
774
- organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
775
- id: z.ZodOptional<z.ZodString>;
776
- name: z.ZodOptional<z.ZodString>;
777
- avatar_path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
778
- mission: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
779
- size: z.ZodOptional<z.ZodString>;
780
- email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
781
- domain: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
782
- urls: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
783
- value: z.ZodString;
784
- }, "strip", z.ZodTypeAny, {
785
- value: string;
786
- }, {
787
- value: string;
788
- }>, "many">>>>;
789
- base_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<["admin", "read", "write", "none"]>>>;
790
- }, "strip", z.ZodTypeAny, {
791
- id?: string | undefined;
792
- name?: string | undefined;
793
- avatar_path?: string | null | undefined;
794
- mission?: string | null | undefined;
795
- size?: string | undefined;
796
- email?: string | null | undefined;
797
- domain?: string | null | undefined;
798
- urls?: {
799
- value: string;
800
- }[] | null | undefined;
801
- base_role?: "admin" | "read" | "write" | "none" | undefined;
802
- }, {
803
- id?: string | undefined;
804
- name?: string | undefined;
805
- avatar_path?: string | null | undefined;
806
- mission?: string | null | undefined;
807
- size?: string | undefined;
808
- email?: string | null | undefined;
809
- domain?: string | null | undefined;
810
- urls?: {
811
- value: string;
812
- }[] | null | undefined;
813
- base_role?: "admin" | "read" | "write" | "none" | undefined;
814
- }>>>;
815
- team_id: z.ZodOptional<z.ZodString>;
816
- team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
817
- id: z.ZodOptional<z.ZodString>;
818
- org_id: z.ZodOptional<z.ZodString>;
819
- name: z.ZodOptional<z.ZodString>;
820
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
821
- default_role: z.ZodOptional<z.ZodEnum<["admin", "read", "write", "none"]>>;
822
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
823
- created_at: z.ZodOptional<z.ZodString>;
824
- }, "strip", z.ZodTypeAny, {
825
- id?: string | undefined;
826
- org_id?: string | undefined;
827
- created_at?: string | undefined;
828
- name?: string | undefined;
829
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
830
- description?: string | null | undefined;
831
- default_role?: "admin" | "read" | "write" | "none" | undefined;
832
- }, {
833
- id?: string | undefined;
834
- org_id?: string | undefined;
835
- created_at?: string | 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;
840
- }>>>;
841
- parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
842
- parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
843
- name: z.ZodOptional<z.ZodString>;
844
- name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
845
- slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
846
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
847
- visibility: z.ZodOptional<z.ZodEnum<["public", "private", "organization", "monetized", "inherit"]>>;
848
- monetization: z.ZodOptional<z.ZodEnum<["none", "pay-to-unlock", "pay-per-use"]>>;
849
- price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
850
- unit_cost: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
851
- cost_accounting: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["fixed", "variable"]>>>>;
852
- cost_unit: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
853
- product_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
854
- price_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
855
- 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">>>>;
856
- state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
857
- created_at: z.ZodOptional<z.ZodString>;
858
- last_updated: z.ZodOptional<z.ZodString>;
859
- asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
860
- metadata: z.ZodOptional<z.ZodObject<{
861
- id: z.ZodString;
862
- path: z.ZodString;
863
- bucket: z.ZodEnum<["public-files", "files"]>;
864
- name: z.ZodString;
865
- type: z.ZodString;
866
- size: z.ZodNumber;
867
- width: z.ZodOptional<z.ZodNumber>;
868
- height: z.ZodOptional<z.ZodNumber>;
869
- }, "strip", z.ZodTypeAny, {
870
- id: string;
871
- path: string;
872
- type: string;
873
- name: string;
874
- size: number;
875
- bucket: "public-files" | "files";
876
- width?: number | undefined;
877
- height?: number | undefined;
878
- }, {
879
- id: string;
880
- path: string;
881
- type: string;
882
- name: string;
883
- size: number;
884
- bucket: "public-files" | "files";
885
- width?: number | undefined;
886
- height?: number | undefined;
887
- }>>;
888
- }, "id" | "user_id" | "created_at" | "last_updated">, {
889
- last_updated: z.ZodDefault<z.ZodString>;
890
- }>, "strip", z.ZodTypeAny, {
891
- last_updated: string;
892
- user?: {
893
- id?: string | undefined;
894
- user_id?: string | undefined;
895
- avatar_path?: string | null | undefined;
896
- urls?: {
897
- value: string;
898
- }[] | undefined;
899
- username?: string | null | undefined;
900
- bio?: string | null | undefined;
901
- post_id?: string | null | undefined;
902
- last_active?: string | undefined;
903
- } | undefined;
904
- organization?: {
905
- id?: string | undefined;
906
- name?: string | undefined;
907
- avatar_path?: string | null | undefined;
908
- mission?: string | null | undefined;
909
- size?: string | undefined;
910
- email?: string | null | undefined;
911
- domain?: string | null | undefined;
912
- urls?: {
913
- value: string;
914
- }[] | null | undefined;
915
- base_role?: "admin" | "read" | "write" | "none" | undefined;
916
- } | undefined;
917
- team?: {
918
- id?: string | undefined;
919
- org_id?: string | undefined;
920
- created_at?: string | 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
- } | undefined;
926
- org_id?: string | undefined;
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;
939
- team_id?: string | undefined;
940
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
941
- description?: string | null | undefined;
942
- parent_id?: string | null | undefined;
943
- parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
944
- name_url_slug?: string | null | undefined;
945
- slug?: string | null | undefined;
946
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
947
- price?: number | null | undefined;
948
- unit_cost?: number | null | undefined;
949
- cost_accounting?: "fixed" | "variable" | null | undefined;
950
- cost_unit?: string | null | undefined;
951
- product_id?: string | null | undefined;
952
- price_id?: string | null | undefined;
953
- preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
954
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
955
- }, {
956
- user?: {
957
- id?: string | undefined;
958
- user_id?: string | undefined;
959
- avatar_path?: string | null | undefined;
960
- urls?: {
961
- value: string;
962
- }[] | undefined;
963
- username?: string | null | undefined;
964
- bio?: string | null | undefined;
965
- post_id?: string | null | undefined;
966
- last_active?: string | undefined;
967
- } | undefined;
968
- organization?: {
969
- id?: string | undefined;
970
- name?: string | undefined;
971
- avatar_path?: string | null | undefined;
972
- mission?: string | null | undefined;
973
- size?: string | undefined;
974
- email?: string | null | undefined;
975
- domain?: string | null | undefined;
976
- urls?: {
977
- value: string;
978
- }[] | null | undefined;
979
- base_role?: "admin" | "read" | "write" | "none" | undefined;
980
- } | undefined;
981
- team?: {
982
- id?: string | undefined;
983
- org_id?: string | undefined;
984
- created_at?: string | 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;
989
- } | undefined;
990
- org_id?: string | undefined;
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;
1002
- last_updated?: string | undefined;
1003
- name?: string | undefined;
1004
- team_id?: string | undefined;
1005
- visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
1006
- description?: string | null | undefined;
1007
- parent_id?: string | null | undefined;
1008
- parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1009
- name_url_slug?: string | null | undefined;
1010
- slug?: string | null | undefined;
1011
- monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
1012
- price?: number | null | undefined;
1013
- unit_cost?: number | null | undefined;
1014
- cost_accounting?: "fixed" | "variable" | null | undefined;
1015
- cost_unit?: string | null | undefined;
1016
- product_id?: string | null | undefined;
1017
- price_id?: string | null | undefined;
1018
- preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
1019
- state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
1020
- }>;
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>;