@ourofoundation/ouro-js 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -80
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +240 -70
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -83
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +95 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +81 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +139 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +202 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +185 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +390 -301
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -76
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +115 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +85 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +4 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
package/dist/schema/files.d.ts
CHANGED
|
@@ -57,27 +57,27 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
id?: string | undefined;
|
|
59
59
|
name?: string | undefined;
|
|
60
|
-
size?: string | undefined;
|
|
61
|
-
email?: string | null | undefined;
|
|
62
60
|
avatar_path?: string | null | undefined;
|
|
63
61
|
mission?: string | null | undefined;
|
|
62
|
+
size?: string | undefined;
|
|
63
|
+
email?: string | null | undefined;
|
|
64
64
|
domain?: string | null | undefined;
|
|
65
65
|
urls?: {
|
|
66
66
|
value: string;
|
|
67
67
|
}[] | null | undefined;
|
|
68
|
-
base_role?: "
|
|
68
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
id?: string | undefined;
|
|
71
71
|
name?: string | undefined;
|
|
72
|
-
size?: string | undefined;
|
|
73
|
-
email?: string | null | undefined;
|
|
74
72
|
avatar_path?: string | null | undefined;
|
|
75
73
|
mission?: string | null | undefined;
|
|
74
|
+
size?: string | undefined;
|
|
75
|
+
email?: string | null | undefined;
|
|
76
76
|
domain?: string | null | undefined;
|
|
77
77
|
urls?: {
|
|
78
78
|
value: string;
|
|
79
79
|
}[] | null | undefined;
|
|
80
|
-
base_role?: "
|
|
80
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
81
81
|
}>>;
|
|
82
82
|
team_id: z.ZodString;
|
|
83
83
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,20 +90,20 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
90
|
created_at: z.ZodOptional<z.ZodString>;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
id?: string | undefined;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
95
|
-
description?: string | null | undefined;
|
|
96
93
|
org_id?: string | undefined;
|
|
97
94
|
created_at?: string | undefined;
|
|
98
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id?: string | undefined;
|
|
101
95
|
name?: string | undefined;
|
|
102
|
-
visibility?: "
|
|
96
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
103
97
|
description?: string | null | undefined;
|
|
98
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
id?: string | undefined;
|
|
104
101
|
org_id?: string | undefined;
|
|
105
102
|
created_at?: string | undefined;
|
|
106
|
-
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
105
|
+
description?: string | null | undefined;
|
|
106
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
109
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -137,48 +137,45 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
137
137
|
width: z.ZodOptional<z.ZodNumber>;
|
|
138
138
|
height: z.ZodOptional<z.ZodNumber>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
type: string;
|
|
141
140
|
id: string;
|
|
142
|
-
name: string;
|
|
143
141
|
path: string;
|
|
142
|
+
type: string;
|
|
143
|
+
name: string;
|
|
144
144
|
size: number;
|
|
145
145
|
bucket: "public-files" | "files";
|
|
146
|
-
height?: number | undefined;
|
|
147
146
|
width?: number | undefined;
|
|
147
|
+
height?: number | undefined;
|
|
148
148
|
}, {
|
|
149
|
-
type: string;
|
|
150
149
|
id: string;
|
|
151
|
-
name: string;
|
|
152
150
|
path: string;
|
|
151
|
+
type: string;
|
|
152
|
+
name: string;
|
|
153
153
|
size: number;
|
|
154
154
|
bucket: "public-files" | "files";
|
|
155
|
-
height?: number | undefined;
|
|
156
155
|
width?: number | undefined;
|
|
156
|
+
height?: number | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
}>, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
user_id: string;
|
|
161
|
+
org_id: string;
|
|
162
|
+
asset_type: "file";
|
|
162
163
|
metadata: {
|
|
163
|
-
type: string;
|
|
164
164
|
id: string;
|
|
165
|
-
name: string;
|
|
166
165
|
path: string;
|
|
166
|
+
type: string;
|
|
167
|
+
name: string;
|
|
167
168
|
size: number;
|
|
168
169
|
bucket: "public-files" | "files";
|
|
169
|
-
height?: number | undefined;
|
|
170
170
|
width?: number | undefined;
|
|
171
|
+
height?: number | undefined;
|
|
171
172
|
};
|
|
172
|
-
user_id: string;
|
|
173
|
-
org_id: string;
|
|
174
|
-
asset_type: "file";
|
|
175
173
|
created_at: string;
|
|
176
174
|
last_updated: string;
|
|
175
|
+
name: string;
|
|
177
176
|
team_id: string;
|
|
177
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
178
178
|
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
179
|
user?: {
|
|
183
180
|
id?: string | undefined;
|
|
184
181
|
user_id?: string | undefined;
|
|
@@ -193,26 +190,28 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
193
190
|
organization?: {
|
|
194
191
|
id?: string | undefined;
|
|
195
192
|
name?: string | undefined;
|
|
196
|
-
size?: string | undefined;
|
|
197
|
-
email?: string | null | undefined;
|
|
198
193
|
avatar_path?: string | null | undefined;
|
|
199
194
|
mission?: string | null | undefined;
|
|
195
|
+
size?: string | undefined;
|
|
196
|
+
email?: string | null | undefined;
|
|
200
197
|
domain?: string | null | undefined;
|
|
201
198
|
urls?: {
|
|
202
199
|
value: string;
|
|
203
200
|
}[] | null | undefined;
|
|
204
|
-
base_role?: "
|
|
201
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
205
202
|
} | undefined;
|
|
206
203
|
team?: {
|
|
207
204
|
id?: string | undefined;
|
|
208
|
-
name?: string | undefined;
|
|
209
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
210
|
-
description?: string | null | undefined;
|
|
211
205
|
org_id?: string | undefined;
|
|
212
206
|
created_at?: string | undefined;
|
|
213
|
-
|
|
207
|
+
name?: string | undefined;
|
|
208
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
209
|
+
description?: string | null | undefined;
|
|
210
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
214
211
|
} | undefined;
|
|
212
|
+
description?: string | null | undefined;
|
|
215
213
|
parent_id?: string | null | undefined;
|
|
214
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
216
215
|
name_url_slug?: string | null | undefined;
|
|
217
216
|
slug?: string | null | undefined;
|
|
218
217
|
price?: number | null | undefined;
|
|
@@ -222,29 +221,27 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
222
221
|
product_id?: string | null | undefined;
|
|
223
222
|
price_id?: string | null | undefined;
|
|
224
223
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
224
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
id: string;
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
user_id: string;
|
|
228
|
+
org_id: string;
|
|
229
229
|
metadata: {
|
|
230
|
-
type: string;
|
|
231
230
|
id: string;
|
|
232
|
-
name: string;
|
|
233
231
|
path: string;
|
|
232
|
+
type: string;
|
|
233
|
+
name: string;
|
|
234
234
|
size: number;
|
|
235
235
|
bucket: "public-files" | "files";
|
|
236
|
-
height?: number | undefined;
|
|
237
236
|
width?: number | undefined;
|
|
237
|
+
height?: number | undefined;
|
|
238
238
|
};
|
|
239
|
-
user_id: string;
|
|
240
|
-
org_id: string;
|
|
241
239
|
created_at: string;
|
|
242
240
|
last_updated: string;
|
|
241
|
+
name: string;
|
|
243
242
|
team_id: string;
|
|
243
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
244
244
|
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
245
|
user?: {
|
|
249
246
|
id?: string | undefined;
|
|
250
247
|
user_id?: string | undefined;
|
|
@@ -259,27 +256,29 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
256
|
organization?: {
|
|
260
257
|
id?: string | undefined;
|
|
261
258
|
name?: string | undefined;
|
|
262
|
-
size?: string | undefined;
|
|
263
|
-
email?: string | null | undefined;
|
|
264
259
|
avatar_path?: string | null | undefined;
|
|
265
260
|
mission?: string | null | undefined;
|
|
261
|
+
size?: string | undefined;
|
|
262
|
+
email?: string | null | undefined;
|
|
266
263
|
domain?: string | null | undefined;
|
|
267
264
|
urls?: {
|
|
268
265
|
value: string;
|
|
269
266
|
}[] | null | undefined;
|
|
270
|
-
base_role?: "
|
|
267
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
271
268
|
} | undefined;
|
|
272
269
|
team?: {
|
|
273
270
|
id?: string | undefined;
|
|
274
|
-
name?: string | undefined;
|
|
275
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
276
|
-
description?: string | null | undefined;
|
|
277
271
|
org_id?: string | undefined;
|
|
278
272
|
created_at?: string | undefined;
|
|
279
|
-
|
|
273
|
+
name?: string | undefined;
|
|
274
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
275
|
+
description?: string | null | undefined;
|
|
276
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
280
277
|
} | undefined;
|
|
281
278
|
asset_type?: "file" | undefined;
|
|
279
|
+
description?: string | null | undefined;
|
|
282
280
|
parent_id?: string | null | undefined;
|
|
281
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
283
282
|
name_url_slug?: string | null | undefined;
|
|
284
283
|
slug?: string | null | undefined;
|
|
285
284
|
price?: number | null | undefined;
|
|
@@ -289,6 +288,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
289
288
|
product_id?: string | null | undefined;
|
|
290
289
|
price_id?: string | null | undefined;
|
|
291
290
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
291
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
|
|
294
294
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -348,27 +348,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
349
|
id?: string | undefined;
|
|
350
350
|
name?: string | undefined;
|
|
351
|
-
size?: string | undefined;
|
|
352
|
-
email?: string | null | undefined;
|
|
353
351
|
avatar_path?: string | null | undefined;
|
|
354
352
|
mission?: string | null | undefined;
|
|
353
|
+
size?: string | undefined;
|
|
354
|
+
email?: string | null | undefined;
|
|
355
355
|
domain?: string | null | undefined;
|
|
356
356
|
urls?: {
|
|
357
357
|
value: string;
|
|
358
358
|
}[] | null | undefined;
|
|
359
|
-
base_role?: "
|
|
359
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
360
360
|
}, {
|
|
361
361
|
id?: string | undefined;
|
|
362
362
|
name?: string | undefined;
|
|
363
|
-
size?: string | undefined;
|
|
364
|
-
email?: string | null | undefined;
|
|
365
363
|
avatar_path?: string | null | undefined;
|
|
366
364
|
mission?: string | null | undefined;
|
|
365
|
+
size?: string | undefined;
|
|
366
|
+
email?: string | null | undefined;
|
|
367
367
|
domain?: string | null | undefined;
|
|
368
368
|
urls?: {
|
|
369
369
|
value: string;
|
|
370
370
|
}[] | null | undefined;
|
|
371
|
-
base_role?: "
|
|
371
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
372
372
|
}>>>;
|
|
373
373
|
team_id: z.ZodOptional<z.ZodString>;
|
|
374
374
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -381,20 +381,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
381
381
|
created_at: z.ZodOptional<z.ZodString>;
|
|
382
382
|
}, "strip", z.ZodTypeAny, {
|
|
383
383
|
id?: string | undefined;
|
|
384
|
-
name?: string | undefined;
|
|
385
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
386
|
-
description?: string | null | undefined;
|
|
387
384
|
org_id?: string | undefined;
|
|
388
385
|
created_at?: string | undefined;
|
|
389
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
390
|
-
}, {
|
|
391
|
-
id?: string | undefined;
|
|
392
386
|
name?: string | undefined;
|
|
393
|
-
visibility?: "
|
|
387
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
394
388
|
description?: string | null | undefined;
|
|
389
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
390
|
+
}, {
|
|
391
|
+
id?: string | undefined;
|
|
395
392
|
org_id?: string | undefined;
|
|
396
393
|
created_at?: string | undefined;
|
|
397
|
-
|
|
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
398
|
}>>>;
|
|
399
399
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
400
400
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -439,47 +439,47 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
439
439
|
width: z.ZodOptional<z.ZodNumber>;
|
|
440
440
|
height: z.ZodOptional<z.ZodNumber>;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
type: string;
|
|
443
442
|
id: string;
|
|
444
|
-
name: string;
|
|
445
443
|
path: string;
|
|
444
|
+
type: string;
|
|
445
|
+
name: string;
|
|
446
446
|
size: number;
|
|
447
447
|
bucket: "public-files" | "files";
|
|
448
|
-
height?: number | undefined;
|
|
449
448
|
width?: number | undefined;
|
|
449
|
+
height?: number | undefined;
|
|
450
450
|
}, {
|
|
451
|
-
type: string;
|
|
452
451
|
id: string;
|
|
453
|
-
name: string;
|
|
454
452
|
path: string;
|
|
453
|
+
type: string;
|
|
454
|
+
name: string;
|
|
455
455
|
size: number;
|
|
456
456
|
bucket: "public-files" | "files";
|
|
457
|
-
height?: number | undefined;
|
|
458
457
|
width?: number | undefined;
|
|
458
|
+
height?: number | undefined;
|
|
459
459
|
}>;
|
|
460
460
|
}>, "strip", z.ZodTypeAny, {
|
|
461
461
|
id: string;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
462
|
+
org_id: string | null;
|
|
463
|
+
asset_type: "file";
|
|
465
464
|
metadata: {
|
|
466
|
-
type: string;
|
|
467
465
|
id: string;
|
|
468
|
-
name: string;
|
|
469
466
|
path: string;
|
|
467
|
+
type: string;
|
|
468
|
+
name: string;
|
|
470
469
|
size: number;
|
|
471
470
|
bucket: "public-files" | "files";
|
|
472
|
-
height?: number | undefined;
|
|
473
471
|
width?: number | undefined;
|
|
472
|
+
height?: number | undefined;
|
|
474
473
|
};
|
|
475
|
-
org_id: string | null;
|
|
476
|
-
asset_type: "file";
|
|
477
474
|
created_at: string;
|
|
478
475
|
last_updated: string;
|
|
476
|
+
name: string;
|
|
479
477
|
team_id: string | null;
|
|
478
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
479
|
+
state: "success";
|
|
480
480
|
description?: string | null | undefined;
|
|
481
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
482
481
|
parent_id?: string | null | undefined;
|
|
482
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
483
483
|
name_url_slug?: string | null | undefined;
|
|
484
484
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
485
485
|
price?: number | null | undefined;
|
|
@@ -490,28 +490,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
490
490
|
price_id?: string | null | undefined;
|
|
491
491
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
492
492
|
}, {
|
|
493
|
-
name: string;
|
|
494
493
|
metadata: {
|
|
495
|
-
type: string;
|
|
496
494
|
id: string;
|
|
497
|
-
name: string;
|
|
498
495
|
path: string;
|
|
496
|
+
type: string;
|
|
497
|
+
name: string;
|
|
499
498
|
size: number;
|
|
500
499
|
bucket: "public-files" | "files";
|
|
501
|
-
height?: number | undefined;
|
|
502
500
|
width?: number | undefined;
|
|
501
|
+
height?: number | undefined;
|
|
503
502
|
};
|
|
503
|
+
name: string;
|
|
504
504
|
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
505
|
org_id?: string | null | undefined;
|
|
510
506
|
asset_type?: "file" | undefined;
|
|
511
507
|
created_at?: string | undefined;
|
|
512
508
|
last_updated?: string | undefined;
|
|
513
509
|
team_id?: string | null | undefined;
|
|
510
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
511
|
+
description?: string | null | undefined;
|
|
514
512
|
parent_id?: string | null | undefined;
|
|
513
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
515
514
|
name_url_slug?: string | null | undefined;
|
|
516
515
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
517
516
|
price?: number | null | undefined;
|
|
@@ -521,6 +520,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
521
520
|
product_id?: string | null | undefined;
|
|
522
521
|
price_id?: string | null | undefined;
|
|
523
522
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
523
|
+
state?: "success" | undefined;
|
|
524
524
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
|
|
525
525
|
id: z.ZodOptional<z.ZodString>;
|
|
526
526
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -579,27 +579,27 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
579
579
|
}, "strip", z.ZodTypeAny, {
|
|
580
580
|
id?: string | undefined;
|
|
581
581
|
name?: string | undefined;
|
|
582
|
-
size?: string | undefined;
|
|
583
|
-
email?: string | null | undefined;
|
|
584
582
|
avatar_path?: string | null | undefined;
|
|
585
583
|
mission?: string | null | undefined;
|
|
584
|
+
size?: string | undefined;
|
|
585
|
+
email?: string | null | undefined;
|
|
586
586
|
domain?: string | null | undefined;
|
|
587
587
|
urls?: {
|
|
588
588
|
value: string;
|
|
589
589
|
}[] | null | undefined;
|
|
590
|
-
base_role?: "
|
|
590
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
591
591
|
}, {
|
|
592
592
|
id?: string | undefined;
|
|
593
593
|
name?: string | undefined;
|
|
594
|
-
size?: string | undefined;
|
|
595
|
-
email?: string | null | undefined;
|
|
596
594
|
avatar_path?: string | null | undefined;
|
|
597
595
|
mission?: string | null | undefined;
|
|
596
|
+
size?: string | undefined;
|
|
597
|
+
email?: string | null | undefined;
|
|
598
598
|
domain?: string | null | undefined;
|
|
599
599
|
urls?: {
|
|
600
600
|
value: string;
|
|
601
601
|
}[] | null | undefined;
|
|
602
|
-
base_role?: "
|
|
602
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
603
603
|
}>>>;
|
|
604
604
|
team_id: z.ZodOptional<z.ZodString>;
|
|
605
605
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -612,20 +612,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
612
612
|
created_at: z.ZodOptional<z.ZodString>;
|
|
613
613
|
}, "strip", z.ZodTypeAny, {
|
|
614
614
|
id?: string | undefined;
|
|
615
|
-
name?: string | undefined;
|
|
616
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
617
|
-
description?: string | null | undefined;
|
|
618
615
|
org_id?: string | undefined;
|
|
619
616
|
created_at?: string | undefined;
|
|
620
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
621
|
-
}, {
|
|
622
|
-
id?: string | undefined;
|
|
623
617
|
name?: string | undefined;
|
|
624
|
-
visibility?: "
|
|
618
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
625
619
|
description?: string | null | undefined;
|
|
620
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
id?: string | undefined;
|
|
626
623
|
org_id?: string | undefined;
|
|
627
624
|
created_at?: string | undefined;
|
|
628
|
-
|
|
625
|
+
name?: string | undefined;
|
|
626
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
627
|
+
description?: string | null | undefined;
|
|
628
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
629
629
|
}>>>;
|
|
630
630
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
631
631
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -669,20 +669,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
669
669
|
}>;
|
|
670
670
|
}>, "strip", z.ZodTypeAny, {
|
|
671
671
|
id: string;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
visibility: "inherit" | "private" | "public" | "organization" | "monetized";
|
|
672
|
+
org_id: string | null;
|
|
673
|
+
asset_type: "file";
|
|
675
674
|
metadata: {
|
|
676
675
|
type: string;
|
|
677
676
|
};
|
|
678
|
-
org_id: string | null;
|
|
679
|
-
asset_type: "file";
|
|
680
677
|
created_at: string;
|
|
681
678
|
last_updated: string;
|
|
679
|
+
name: string;
|
|
682
680
|
team_id: string | null;
|
|
681
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
682
|
+
state: "in-progress";
|
|
683
683
|
description?: string | null | undefined;
|
|
684
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
685
684
|
parent_id?: string | null | undefined;
|
|
685
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
686
686
|
name_url_slug?: string | null | undefined;
|
|
687
687
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
688
688
|
price?: number | null | undefined;
|
|
@@ -693,21 +693,20 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
693
693
|
price_id?: string | null | undefined;
|
|
694
694
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
695
695
|
}, {
|
|
696
|
-
name: string;
|
|
697
696
|
metadata: {
|
|
698
697
|
type: string;
|
|
699
698
|
};
|
|
699
|
+
name: string;
|
|
700
700
|
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
701
|
org_id?: string | null | undefined;
|
|
706
702
|
asset_type?: "file" | undefined;
|
|
707
703
|
created_at?: string | undefined;
|
|
708
704
|
last_updated?: string | undefined;
|
|
709
705
|
team_id?: string | null | undefined;
|
|
706
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
707
|
+
description?: string | null | undefined;
|
|
710
708
|
parent_id?: string | null | undefined;
|
|
709
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
711
710
|
name_url_slug?: string | null | undefined;
|
|
712
711
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
713
712
|
price?: number | null | undefined;
|
|
@@ -717,6 +716,7 @@ declare const CreateFileSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<z.
|
|
|
717
716
|
product_id?: string | null | undefined;
|
|
718
717
|
price_id?: string | null | undefined;
|
|
719
718
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
719
|
+
state?: "in-progress" | undefined;
|
|
720
720
|
}>]>;
|
|
721
721
|
declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
722
722
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -776,27 +776,27 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
776
776
|
}, "strip", z.ZodTypeAny, {
|
|
777
777
|
id?: string | undefined;
|
|
778
778
|
name?: string | undefined;
|
|
779
|
-
size?: string | undefined;
|
|
780
|
-
email?: string | null | undefined;
|
|
781
779
|
avatar_path?: string | null | undefined;
|
|
782
780
|
mission?: string | null | undefined;
|
|
781
|
+
size?: string | undefined;
|
|
782
|
+
email?: string | null | undefined;
|
|
783
783
|
domain?: string | null | undefined;
|
|
784
784
|
urls?: {
|
|
785
785
|
value: string;
|
|
786
786
|
}[] | null | undefined;
|
|
787
|
-
base_role?: "
|
|
787
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
788
788
|
}, {
|
|
789
789
|
id?: string | undefined;
|
|
790
790
|
name?: string | undefined;
|
|
791
|
-
size?: string | undefined;
|
|
792
|
-
email?: string | null | undefined;
|
|
793
791
|
avatar_path?: string | null | undefined;
|
|
794
792
|
mission?: string | null | undefined;
|
|
793
|
+
size?: string | undefined;
|
|
794
|
+
email?: string | null | undefined;
|
|
795
795
|
domain?: string | null | undefined;
|
|
796
796
|
urls?: {
|
|
797
797
|
value: string;
|
|
798
798
|
}[] | null | undefined;
|
|
799
|
-
base_role?: "
|
|
799
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
800
800
|
}>>>;
|
|
801
801
|
team_id: z.ZodOptional<z.ZodString>;
|
|
802
802
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -809,20 +809,20 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
809
809
|
created_at: z.ZodOptional<z.ZodString>;
|
|
810
810
|
}, "strip", z.ZodTypeAny, {
|
|
811
811
|
id?: string | undefined;
|
|
812
|
-
name?: string | undefined;
|
|
813
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
814
|
-
description?: string | null | undefined;
|
|
815
812
|
org_id?: string | undefined;
|
|
816
813
|
created_at?: string | undefined;
|
|
817
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
818
|
-
}, {
|
|
819
|
-
id?: string | undefined;
|
|
820
814
|
name?: string | undefined;
|
|
821
|
-
visibility?: "
|
|
815
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
822
816
|
description?: string | null | undefined;
|
|
817
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
818
|
+
}, {
|
|
819
|
+
id?: string | undefined;
|
|
823
820
|
org_id?: string | undefined;
|
|
824
821
|
created_at?: string | undefined;
|
|
825
|
-
|
|
822
|
+
name?: string | undefined;
|
|
823
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
824
|
+
description?: string | null | undefined;
|
|
825
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
826
826
|
}>>>;
|
|
827
827
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
828
828
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -853,43 +853,28 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
853
853
|
width: z.ZodOptional<z.ZodNumber>;
|
|
854
854
|
height: z.ZodOptional<z.ZodNumber>;
|
|
855
855
|
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
type: string;
|
|
857
856
|
id: string;
|
|
858
|
-
name: string;
|
|
859
857
|
path: string;
|
|
858
|
+
type: string;
|
|
859
|
+
name: string;
|
|
860
860
|
size: number;
|
|
861
861
|
bucket: "public-files" | "files";
|
|
862
|
-
height?: number | undefined;
|
|
863
862
|
width?: number | undefined;
|
|
863
|
+
height?: number | undefined;
|
|
864
864
|
}, {
|
|
865
|
-
type: string;
|
|
866
865
|
id: string;
|
|
867
|
-
name: string;
|
|
868
866
|
path: string;
|
|
867
|
+
type: string;
|
|
868
|
+
name: string;
|
|
869
869
|
size: number;
|
|
870
870
|
bucket: "public-files" | "files";
|
|
871
|
-
height?: number | undefined;
|
|
872
871
|
width?: number | undefined;
|
|
872
|
+
height?: number | undefined;
|
|
873
873
|
}>>;
|
|
874
874
|
}, "id" | "user_id" | "created_at" | "last_updated">, {
|
|
875
875
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
876
876
|
}>, "strip", z.ZodTypeAny, {
|
|
877
877
|
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
878
|
user?: {
|
|
894
879
|
id?: string | undefined;
|
|
895
880
|
user_id?: string | undefined;
|
|
@@ -904,29 +889,43 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
904
889
|
organization?: {
|
|
905
890
|
id?: string | undefined;
|
|
906
891
|
name?: string | undefined;
|
|
907
|
-
size?: string | undefined;
|
|
908
|
-
email?: string | null | undefined;
|
|
909
892
|
avatar_path?: string | null | undefined;
|
|
910
893
|
mission?: string | null | undefined;
|
|
894
|
+
size?: string | undefined;
|
|
895
|
+
email?: string | null | undefined;
|
|
911
896
|
domain?: string | null | undefined;
|
|
912
897
|
urls?: {
|
|
913
898
|
value: string;
|
|
914
899
|
}[] | null | undefined;
|
|
915
|
-
base_role?: "
|
|
900
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
916
901
|
} | undefined;
|
|
917
902
|
team?: {
|
|
918
903
|
id?: string | undefined;
|
|
919
|
-
name?: string | undefined;
|
|
920
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
921
|
-
description?: string | null | undefined;
|
|
922
904
|
org_id?: string | undefined;
|
|
923
905
|
created_at?: string | undefined;
|
|
924
|
-
|
|
906
|
+
name?: string | undefined;
|
|
907
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
908
|
+
description?: string | null | undefined;
|
|
909
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
925
910
|
} | undefined;
|
|
926
911
|
org_id?: string | undefined;
|
|
927
912
|
asset_type?: "file" | undefined;
|
|
913
|
+
metadata?: {
|
|
914
|
+
id: string;
|
|
915
|
+
path: string;
|
|
916
|
+
type: string;
|
|
917
|
+
name: string;
|
|
918
|
+
size: number;
|
|
919
|
+
bucket: "public-files" | "files";
|
|
920
|
+
width?: number | undefined;
|
|
921
|
+
height?: number | undefined;
|
|
922
|
+
} | undefined;
|
|
923
|
+
name?: string | undefined;
|
|
928
924
|
team_id?: string | undefined;
|
|
925
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
926
|
+
description?: string | null | undefined;
|
|
929
927
|
parent_id?: string | null | undefined;
|
|
928
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
930
929
|
name_url_slug?: string | null | undefined;
|
|
931
930
|
slug?: string | null | undefined;
|
|
932
931
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -937,22 +936,8 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
937
936
|
product_id?: string | null | undefined;
|
|
938
937
|
price_id?: string | null | undefined;
|
|
939
938
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
939
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
940
940
|
}, {
|
|
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
941
|
user?: {
|
|
957
942
|
id?: string | undefined;
|
|
958
943
|
user_id?: string | undefined;
|
|
@@ -967,30 +952,44 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
967
952
|
organization?: {
|
|
968
953
|
id?: string | undefined;
|
|
969
954
|
name?: string | undefined;
|
|
970
|
-
size?: string | undefined;
|
|
971
|
-
email?: string | null | undefined;
|
|
972
955
|
avatar_path?: string | null | undefined;
|
|
973
956
|
mission?: string | null | undefined;
|
|
957
|
+
size?: string | undefined;
|
|
958
|
+
email?: string | null | undefined;
|
|
974
959
|
domain?: string | null | undefined;
|
|
975
960
|
urls?: {
|
|
976
961
|
value: string;
|
|
977
962
|
}[] | null | undefined;
|
|
978
|
-
base_role?: "
|
|
963
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
979
964
|
} | undefined;
|
|
980
965
|
team?: {
|
|
981
966
|
id?: string | undefined;
|
|
982
|
-
name?: string | undefined;
|
|
983
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
984
|
-
description?: string | null | undefined;
|
|
985
967
|
org_id?: string | undefined;
|
|
986
968
|
created_at?: string | undefined;
|
|
987
|
-
|
|
969
|
+
name?: string | undefined;
|
|
970
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
971
|
+
description?: string | null | undefined;
|
|
972
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
988
973
|
} | undefined;
|
|
989
974
|
org_id?: string | undefined;
|
|
990
975
|
asset_type?: "file" | undefined;
|
|
976
|
+
metadata?: {
|
|
977
|
+
id: string;
|
|
978
|
+
path: string;
|
|
979
|
+
type: string;
|
|
980
|
+
name: string;
|
|
981
|
+
size: number;
|
|
982
|
+
bucket: "public-files" | "files";
|
|
983
|
+
width?: number | undefined;
|
|
984
|
+
height?: number | undefined;
|
|
985
|
+
} | undefined;
|
|
991
986
|
last_updated?: string | undefined;
|
|
987
|
+
name?: string | undefined;
|
|
992
988
|
team_id?: string | undefined;
|
|
989
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
990
|
+
description?: string | null | undefined;
|
|
993
991
|
parent_id?: string | null | undefined;
|
|
992
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
994
993
|
name_url_slug?: string | null | undefined;
|
|
995
994
|
slug?: string | null | undefined;
|
|
996
995
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
@@ -1001,8 +1000,9 @@ declare const updateFileSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1001
1000
|
product_id?: string | null | undefined;
|
|
1002
1001
|
price_id?: string | null | undefined;
|
|
1003
1002
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
1003
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
1004
1004
|
}>;
|
|
1005
|
-
|
|
1006
|
-
type
|
|
1007
|
-
type
|
|
1008
|
-
export
|
|
1005
|
+
export { FileSchema, CreateFileSchema, updateFileSchema };
|
|
1006
|
+
export type File = z.infer<typeof FileSchema>;
|
|
1007
|
+
export type CreateFile = z.infer<typeof CreateFileSchema>;
|
|
1008
|
+
export type UpdateFile = z.infer<typeof updateFileSchema>;
|