@ourofoundation/ouro-js 3.2.4 → 3.3.0
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/chunk-42EQ7ULD.cjs +2 -0
- package/dist/chunk-42EQ7ULD.cjs.map +1 -0
- package/dist/chunk-43KB23BA.cjs +2 -0
- package/dist/chunk-43KB23BA.cjs.map +1 -0
- package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
- package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
- package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
- package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
- package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
- package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
- package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
- package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
- package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
- package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
- package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
- package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
- package/dist/chunk-CIWFH5BJ.js +2 -0
- package/dist/chunk-CIWFH5BJ.js.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-FDKZIS34.js +2 -0
- package/dist/chunk-FDKZIS34.js.map +1 -0
- package/dist/chunk-G24BRDHO.cjs +2 -0
- package/dist/chunk-G24BRDHO.cjs.map +1 -0
- package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
- package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
- package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
- package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
- package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
- package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
- package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
- package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/chunk-NEINJFFK.cjs +2 -0
- package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
- package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
- package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
- package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
- package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
- package/dist/chunk-UY43EQTO.cjs +2 -0
- package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
- package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
- package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
- package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
- package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
- package/dist/chunk-WRHPQNEL.js +2 -0
- package/dist/chunk-WRHPQNEL.js.map +1 -0
- package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
- package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
- package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
- package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +84 -90
- package/dist/schema/assets.d.ts +84 -90
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +17 -28
- package/dist/schema/common.d.ts +17 -28
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -71
- package/dist/schema/conversations.d.ts +69 -71
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/events.cjs +2 -0
- package/dist/schema/events.cjs.map +1 -0
- package/dist/schema/events.d.cts +113 -0
- package/dist/schema/events.d.ts +113 -0
- package/dist/schema/events.js +2 -0
- package/dist/schema/events.js.map +1 -0
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -4
- package/dist/schema/notifications.d.ts +2 -4
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -137
- package/dist/schema/posts.d.ts +127 -137
- package/dist/schema/posts.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +124 -131
- package/dist/schema/services.d.ts +124 -131
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/schema/teams.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.d.cts +2 -2
- package/dist/utils/navigate.d.ts +2 -2
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/scripts/dump-events.ts +10 -0
- package/dist/chunk-3ZHWBPGA.cjs +0 -2
- package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
- package/dist/chunk-6AK3RVZR.cjs +0 -2
- package/dist/chunk-6AK3RVZR.cjs.map +0 -1
- package/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- package/dist/chunk-6TOGDJKP.cjs +0 -2
- package/dist/chunk-6TOGDJKP.cjs.map +0 -1
- package/dist/chunk-7ABFUHWW.js +0 -2
- package/dist/chunk-7ABFUHWW.js.map +0 -1
- package/dist/chunk-BU2S7UEL.js +0 -2
- package/dist/chunk-BU2S7UEL.js.map +0 -1
- package/dist/chunk-CVFVOARW.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
- package/dist/chunk-FNW6DDNP.cjs +0 -2
- package/dist/chunk-FNW6DDNP.cjs.map +0 -1
- package/dist/chunk-IW4MZW5P.cjs +0 -2
- package/dist/chunk-JPCZIGX2.js +0 -2
- package/dist/chunk-JPCZIGX2.js.map +0 -1
- package/dist/chunk-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
- package/dist/schema/blueprints.cjs +0 -2
- package/dist/schema/blueprints.cjs.map +0 -1
- package/dist/schema/blueprints.d.cts +0 -823
- package/dist/schema/blueprints.d.ts +0 -823
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/replications.cjs +0 -2
- package/dist/schema/replications.cjs.map +0 -1
- package/dist/schema/replications.d.cts +0 -827
- package/dist/schema/replications.d.ts +0 -827
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"events.js"}
|
package/dist/schema/files.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkBQ5WODME_cjs=require('../chunk-BQ5WODME.cjs');require('../chunk-IP4OVRZB.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateFileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.b}});Object.defineProperty(exports,"FileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.a}});Object.defineProperty(exports,"updateFileSchema",{enumerable:true,get:function(){return chunkBQ5WODME_cjs.c}});//# sourceMappingURL=files.cjs.map
|
|
2
2
|
//# sourceMappingURL=files.cjs.map
|
package/dist/schema/files.d.cts
CHANGED
|
@@ -108,9 +108,9 @@ declare const FileSchema: z.ZodObject<{
|
|
|
108
108
|
none: "none";
|
|
109
109
|
}>>;
|
|
110
110
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
organization: "organization";
|
|
112
111
|
public: "public";
|
|
113
112
|
private: "private";
|
|
113
|
+
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const FileSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
-
organization: "organization";
|
|
186
185
|
public: "public";
|
|
187
186
|
private: "private";
|
|
187
|
+
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -210,14 +210,14 @@ declare const FileSchema: z.ZodObject<{
|
|
|
210
210
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
211
211
|
state: z.ZodEnum<{
|
|
212
212
|
success: "success";
|
|
213
|
+
error: "error";
|
|
213
214
|
queued: "queued";
|
|
214
215
|
"in-progress": "in-progress";
|
|
215
216
|
"timed-out": "timed-out";
|
|
216
|
-
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
api: "api";
|
|
220
219
|
web: "web";
|
|
220
|
+
api: "api";
|
|
221
221
|
}>;
|
|
222
222
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
@@ -250,15 +250,15 @@ declare const FileSchema: z.ZodObject<{
|
|
|
250
250
|
}, z.core.$strip>;
|
|
251
251
|
declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
252
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
253
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
254
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
255
|
-
text: z.ZodString;
|
|
256
|
-
}, z.core.$strip>>>>;
|
|
257
253
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
258
254
|
none: "none";
|
|
259
255
|
"pay-to-unlock": "pay-to-unlock";
|
|
260
256
|
"pay-per-use": "pay-per-use";
|
|
261
257
|
}>>;
|
|
258
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
259
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
260
|
+
text: z.ZodString;
|
|
261
|
+
}, z.core.$strip>>>>;
|
|
262
262
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
263
263
|
license_id: z.ZodOptional<z.ZodString>;
|
|
264
264
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -282,13 +282,13 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
282
282
|
name: z.ZodString;
|
|
283
283
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
284
|
source: z.ZodDefault<z.ZodEnum<{
|
|
285
|
-
api: "api";
|
|
286
285
|
web: "web";
|
|
286
|
+
api: "api";
|
|
287
287
|
}>>;
|
|
288
288
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
289
|
-
organization: "organization";
|
|
290
289
|
public: "public";
|
|
291
290
|
private: "private";
|
|
291
|
+
organization: "organization";
|
|
292
292
|
monetized: "monetized";
|
|
293
293
|
inherit: "inherit";
|
|
294
294
|
}>>>;
|
|
@@ -323,15 +323,15 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
323
323
|
}, z.core.$strip>;
|
|
324
324
|
}, z.core.$strip>, z.ZodObject<{
|
|
325
325
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
326
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
327
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
328
|
-
text: z.ZodString;
|
|
329
|
-
}, z.core.$strip>>>>;
|
|
330
326
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
331
327
|
none: "none";
|
|
332
328
|
"pay-to-unlock": "pay-to-unlock";
|
|
333
329
|
"pay-per-use": "pay-per-use";
|
|
334
330
|
}>>;
|
|
331
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
332
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
333
|
+
text: z.ZodString;
|
|
334
|
+
}, z.core.$strip>>>>;
|
|
335
335
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
336
336
|
license_id: z.ZodOptional<z.ZodString>;
|
|
337
337
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -355,13 +355,13 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
355
355
|
name: z.ZodString;
|
|
356
356
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
357
|
source: z.ZodDefault<z.ZodEnum<{
|
|
358
|
-
api: "api";
|
|
359
358
|
web: "web";
|
|
359
|
+
api: "api";
|
|
360
360
|
}>>;
|
|
361
361
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
362
|
-
organization: "organization";
|
|
363
362
|
public: "public";
|
|
364
363
|
private: "private";
|
|
364
|
+
organization: "organization";
|
|
365
365
|
monetized: "monetized";
|
|
366
366
|
inherit: "inherit";
|
|
367
367
|
}>>>;
|
|
@@ -388,8 +388,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
388
388
|
team_id: string | null;
|
|
389
389
|
org_id: string | null;
|
|
390
390
|
name: string;
|
|
391
|
-
source: "
|
|
392
|
-
visibility: "
|
|
391
|
+
source: "web" | "api";
|
|
392
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
393
393
|
created_at: string;
|
|
394
394
|
last_updated: string;
|
|
395
395
|
asset_type: "file";
|
|
@@ -413,11 +413,11 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
413
413
|
reply_to_comment_id?: string | null | undefined;
|
|
414
414
|
};
|
|
415
415
|
parent?: Record<string, any> | undefined;
|
|
416
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
416
417
|
description?: {
|
|
417
418
|
json: Record<string, any>;
|
|
418
419
|
text: string;
|
|
419
420
|
} | null | undefined;
|
|
420
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
421
421
|
parent_id?: string | null | undefined;
|
|
422
422
|
license_id?: string | undefined;
|
|
423
423
|
price?: number | null | undefined;
|
|
@@ -435,8 +435,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
435
435
|
team_id: string | null;
|
|
436
436
|
org_id: string | null;
|
|
437
437
|
name: string;
|
|
438
|
-
source: "
|
|
439
|
-
visibility: "
|
|
438
|
+
source: "web" | "api";
|
|
439
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
440
440
|
created_at: string;
|
|
441
441
|
last_updated: string;
|
|
442
442
|
asset_type: "file";
|
|
@@ -452,11 +452,11 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
452
452
|
reply_to_comment_id?: string | null | undefined;
|
|
453
453
|
};
|
|
454
454
|
parent?: Record<string, any> | undefined;
|
|
455
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
455
456
|
description?: {
|
|
456
457
|
json: Record<string, any>;
|
|
457
458
|
text: string;
|
|
458
459
|
} | null | undefined;
|
|
459
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
460
460
|
parent_id?: string | null | undefined;
|
|
461
461
|
license_id?: string | undefined;
|
|
462
462
|
price?: number | null | undefined;
|
|
@@ -474,8 +474,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
474
474
|
team_id: string | null;
|
|
475
475
|
org_id: string | null;
|
|
476
476
|
name: string;
|
|
477
|
-
source: "
|
|
478
|
-
visibility: "
|
|
477
|
+
source: "web" | "api";
|
|
478
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
479
479
|
created_at: string;
|
|
480
480
|
last_updated: string;
|
|
481
481
|
asset_type: "file";
|
|
@@ -499,11 +499,11 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
499
499
|
reply_to_comment_id?: string | null | undefined;
|
|
500
500
|
};
|
|
501
501
|
parent?: Record<string, any> | undefined;
|
|
502
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
502
503
|
description?: {
|
|
503
504
|
json: Record<string, any>;
|
|
504
505
|
text: string;
|
|
505
506
|
} | null | undefined;
|
|
506
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
507
507
|
parent_id?: string | null | undefined;
|
|
508
508
|
license_id?: string | undefined;
|
|
509
509
|
price?: number | null | undefined;
|
|
@@ -521,8 +521,8 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
521
521
|
team_id: string | null;
|
|
522
522
|
org_id: string | null;
|
|
523
523
|
name: string;
|
|
524
|
-
source: "
|
|
525
|
-
visibility: "
|
|
524
|
+
source: "web" | "api";
|
|
525
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
526
526
|
created_at: string;
|
|
527
527
|
last_updated: string;
|
|
528
528
|
asset_type: "file";
|
|
@@ -538,11 +538,11 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
538
538
|
reply_to_comment_id?: string | null | undefined;
|
|
539
539
|
};
|
|
540
540
|
parent?: Record<string, any> | undefined;
|
|
541
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
541
542
|
description?: {
|
|
542
543
|
json: Record<string, any>;
|
|
543
544
|
text: string;
|
|
544
545
|
} | null | undefined;
|
|
545
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
546
546
|
parent_id?: string | null | undefined;
|
|
547
547
|
license_id?: string | undefined;
|
|
548
548
|
price?: number | null | undefined;
|
|
@@ -557,51 +557,19 @@ declare const CreateFileSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
557
557
|
name_url_slug?: string | null | undefined;
|
|
558
558
|
}>>;
|
|
559
559
|
declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
560
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
|
|
561
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
562
560
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
files: "files";
|
|
569
|
-
}>;
|
|
570
|
-
name: z.ZodString;
|
|
571
|
-
type: z.ZodString;
|
|
572
|
-
extension: z.ZodString;
|
|
573
|
-
size: z.ZodNumber;
|
|
574
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
575
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
576
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
577
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
578
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
579
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
580
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
581
|
-
original: "original";
|
|
582
|
-
derivative: "derivative";
|
|
583
|
-
"third-party": "third-party";
|
|
584
|
-
}>>;
|
|
585
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
586
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
587
|
-
}, z.core.$strip>>;
|
|
588
|
-
name: z.ZodOptional<z.ZodString>;
|
|
589
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
561
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
562
|
+
web: "web";
|
|
563
|
+
api: "api";
|
|
564
|
+
}>>;
|
|
565
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
|
|
590
566
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
591
|
-
organization: "organization";
|
|
592
567
|
public: "public";
|
|
593
568
|
private: "private";
|
|
569
|
+
organization: "organization";
|
|
594
570
|
monetized: "monetized";
|
|
595
571
|
inherit: "inherit";
|
|
596
572
|
}>>;
|
|
597
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
598
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
599
|
-
text: z.ZodString;
|
|
600
|
-
}, z.core.$strip>>>>;
|
|
601
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
602
|
-
api: "api";
|
|
603
|
-
web: "web";
|
|
604
|
-
}>>;
|
|
605
573
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
606
574
|
none: "none";
|
|
607
575
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -609,11 +577,18 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
609
577
|
}>>;
|
|
610
578
|
state: z.ZodOptional<z.ZodEnum<{
|
|
611
579
|
success: "success";
|
|
580
|
+
error: "error";
|
|
612
581
|
queued: "queued";
|
|
613
582
|
"in-progress": "in-progress";
|
|
614
583
|
"timed-out": "timed-out";
|
|
615
|
-
error: "error";
|
|
616
584
|
}>>;
|
|
585
|
+
name: z.ZodOptional<z.ZodString>;
|
|
586
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
587
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
588
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
589
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
590
|
+
text: z.ZodString;
|
|
591
|
+
}, z.core.$strip>>>>;
|
|
617
592
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
618
593
|
license_id: z.ZodOptional<z.ZodString>;
|
|
619
594
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -632,13 +607,60 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
632
607
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
633
608
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
634
609
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
610
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
id: z.ZodUUID;
|
|
612
|
+
path: z.ZodString;
|
|
613
|
+
bucket: z.ZodEnum<{
|
|
614
|
+
"public-files": "public-files";
|
|
615
|
+
files: "files";
|
|
616
|
+
}>;
|
|
617
|
+
name: z.ZodString;
|
|
618
|
+
type: z.ZodString;
|
|
619
|
+
extension: z.ZodString;
|
|
620
|
+
size: z.ZodNumber;
|
|
621
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
624
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
625
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
626
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
627
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
628
|
+
original: "original";
|
|
629
|
+
derivative: "derivative";
|
|
630
|
+
"third-party": "third-party";
|
|
631
|
+
}>>;
|
|
632
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
633
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
635
635
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
636
636
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
637
637
|
}, z.core.$strip>, z.ZodTransform<{
|
|
638
638
|
last_updated: string;
|
|
639
|
+
parent?: Record<string, any> | undefined;
|
|
640
|
+
source?: "web" | "api" | undefined;
|
|
639
641
|
asset_type?: "file" | undefined;
|
|
642
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
643
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
644
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
645
|
+
name?: string | undefined;
|
|
640
646
|
org_id?: string | undefined;
|
|
641
|
-
|
|
647
|
+
team_id?: string | undefined;
|
|
648
|
+
description?: {
|
|
649
|
+
json: Record<string, any>;
|
|
650
|
+
text: string;
|
|
651
|
+
} | null | undefined;
|
|
652
|
+
parent_id?: string | null | undefined;
|
|
653
|
+
license_id?: string | undefined;
|
|
654
|
+
license?: Record<string, any> | undefined;
|
|
655
|
+
name_url_slug?: string | null | undefined;
|
|
656
|
+
price?: number | null | undefined;
|
|
657
|
+
unit_cost?: number | null | undefined;
|
|
658
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
659
|
+
cost_unit?: string | null | undefined;
|
|
660
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
661
|
+
stripe_product_id?: string | null | undefined;
|
|
662
|
+
stripe_price_id?: string | null | undefined;
|
|
663
|
+
stripe_meter_id?: string | null | undefined;
|
|
642
664
|
metadata?: {
|
|
643
665
|
id: string;
|
|
644
666
|
path: string;
|
|
@@ -657,16 +679,22 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
679
|
source?: string | null | undefined;
|
|
658
680
|
reply_to_comment_id?: string | null | undefined;
|
|
659
681
|
} | undefined;
|
|
682
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
683
|
+
}, {
|
|
684
|
+
last_updated: string;
|
|
685
|
+
parent?: Record<string, any> | undefined;
|
|
686
|
+
source?: "web" | "api" | undefined;
|
|
687
|
+
asset_type?: "file" | undefined;
|
|
688
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
689
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
690
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
660
691
|
name?: string | undefined;
|
|
692
|
+
org_id?: string | undefined;
|
|
661
693
|
team_id?: string | undefined;
|
|
662
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
663
694
|
description?: {
|
|
664
695
|
json: Record<string, any>;
|
|
665
696
|
text: string;
|
|
666
697
|
} | null | undefined;
|
|
667
|
-
source?: "api" | "web" | undefined;
|
|
668
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
669
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
670
698
|
parent_id?: string | null | undefined;
|
|
671
699
|
license_id?: string | undefined;
|
|
672
700
|
license?: Record<string, any> | undefined;
|
|
@@ -679,12 +707,6 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
679
707
|
stripe_product_id?: string | null | undefined;
|
|
680
708
|
stripe_price_id?: string | null | undefined;
|
|
681
709
|
stripe_meter_id?: string | null | undefined;
|
|
682
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
683
|
-
}, {
|
|
684
|
-
last_updated: string;
|
|
685
|
-
asset_type?: "file" | undefined;
|
|
686
|
-
org_id?: string | undefined;
|
|
687
|
-
parent?: Record<string, any> | undefined;
|
|
688
710
|
metadata?: {
|
|
689
711
|
id: string;
|
|
690
712
|
path: string;
|
|
@@ -703,28 +725,6 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
703
725
|
source?: string | null | undefined;
|
|
704
726
|
reply_to_comment_id?: string | null | undefined;
|
|
705
727
|
} | undefined;
|
|
706
|
-
name?: string | undefined;
|
|
707
|
-
team_id?: string | undefined;
|
|
708
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
709
|
-
description?: {
|
|
710
|
-
json: Record<string, any>;
|
|
711
|
-
text: string;
|
|
712
|
-
} | null | undefined;
|
|
713
|
-
source?: "api" | "web" | undefined;
|
|
714
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
715
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
716
|
-
parent_id?: string | null | undefined;
|
|
717
|
-
license_id?: string | undefined;
|
|
718
|
-
license?: Record<string, any> | undefined;
|
|
719
|
-
name_url_slug?: string | null | undefined;
|
|
720
|
-
price?: number | null | undefined;
|
|
721
|
-
unit_cost?: number | null | undefined;
|
|
722
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
723
|
-
cost_unit?: string | null | undefined;
|
|
724
|
-
price_currency?: "usd" | "btc" | undefined;
|
|
725
|
-
stripe_product_id?: string | null | undefined;
|
|
726
|
-
stripe_price_id?: string | null | undefined;
|
|
727
|
-
stripe_meter_id?: string | null | undefined;
|
|
728
728
|
preview?: Record<string, any>[] | null | undefined;
|
|
729
729
|
}>>;
|
|
730
730
|
|