@ourofoundation/ouro-js 3.3.0 → 3.5.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-7F26V24D.js +2 -0
- package/dist/chunk-7F26V24D.js.map +1 -0
- package/dist/chunk-CONKY65O.cjs +2 -0
- package/dist/chunk-CONKY65O.cjs.map +1 -0
- package/dist/chunk-JKTQY4RU.js +2 -0
- package/dist/chunk-JKTQY4RU.js.map +1 -0
- package/dist/chunk-JW7FACNZ.cjs +2 -0
- package/dist/chunk-JW7FACNZ.cjs.map +1 -0
- package/dist/chunk-XWXLCG4E.cjs +2 -0
- package/dist/chunk-XWXLCG4E.cjs.map +1 -0
- package/dist/chunk-Z3ALIFYO.js +2 -0
- package/dist/chunk-Z3ALIFYO.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +84 -84
- package/dist/schema/assets.d.ts +84 -84
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/common.d.cts +16 -16
- package/dist/schema/common.d.ts +16 -16
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- package/dist/schema/quests.cjs +2 -0
- package/dist/schema/quests.cjs.map +1 -0
- package/dist/schema/quests.d.cts +1517 -0
- package/dist/schema/quests.d.ts +1517 -0
- package/dist/schema/quests.js +2 -0
- package/dist/schema/quests.js.map +1 -0
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +275 -124
- package/dist/schema/services.d.ts +275 -124
- package/dist/schema/services.js +1 -1
- package/dist/schema/tags.d.cts +7 -7
- package/dist/schema/tags.d.ts +7 -7
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.cjs +2 -0
- package/dist/utils/quest-submission.cjs.map +1 -0
- package/dist/utils/quest-submission.d.cts +134 -0
- package/dist/utils/quest-submission.d.ts +134 -0
- package/dist/utils/quest-submission.js +2 -0
- package/dist/utils/quest-submission.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-42EQ7ULD.cjs +0 -2
- package/dist/chunk-42EQ7ULD.cjs.map +0 -1
- package/dist/chunk-FDKZIS34.js +0 -2
- package/dist/chunk-FDKZIS34.js.map +0 -1
package/dist/schema/files.d.ts
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";
|
|
111
112
|
public: "public";
|
|
112
113
|
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";
|
|
185
186
|
public: "public";
|
|
186
187
|
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";
|
|
214
213
|
queued: "queued";
|
|
215
214
|
"in-progress": "in-progress";
|
|
216
215
|
"timed-out": "timed-out";
|
|
216
|
+
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
web: "web";
|
|
220
219
|
api: "api";
|
|
220
|
+
web: "web";
|
|
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>>>>;
|
|
253
257
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
254
258
|
none: "none";
|
|
255
259
|
"pay-to-unlock": "pay-to-unlock";
|
|
256
260
|
"pay-per-use": "pay-per-use";
|
|
257
261
|
}>>;
|
|
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
|
-
web: "web";
|
|
286
285
|
api: "api";
|
|
286
|
+
web: "web";
|
|
287
287
|
}>>;
|
|
288
288
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
organization: "organization";
|
|
289
290
|
public: "public";
|
|
290
291
|
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>>>>;
|
|
326
330
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
327
331
|
none: "none";
|
|
328
332
|
"pay-to-unlock": "pay-to-unlock";
|
|
329
333
|
"pay-per-use": "pay-per-use";
|
|
330
334
|
}>>;
|
|
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
|
-
web: "web";
|
|
359
358
|
api: "api";
|
|
359
|
+
web: "web";
|
|
360
360
|
}>>;
|
|
361
361
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
organization: "organization";
|
|
362
363
|
public: "public";
|
|
363
364
|
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: "api" | "web";
|
|
392
|
+
visibility: "organization" | "public" | "private" | "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;
|
|
417
416
|
description?: {
|
|
418
417
|
json: Record<string, any>;
|
|
419
418
|
text: string;
|
|
420
419
|
} | 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: "api" | "web";
|
|
439
|
+
visibility: "organization" | "public" | "private" | "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;
|
|
456
455
|
description?: {
|
|
457
456
|
json: Record<string, any>;
|
|
458
457
|
text: string;
|
|
459
458
|
} | 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: "api" | "web";
|
|
478
|
+
visibility: "organization" | "public" | "private" | "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;
|
|
503
502
|
description?: {
|
|
504
503
|
json: Record<string, any>;
|
|
505
504
|
text: string;
|
|
506
505
|
} | 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: "api" | "web";
|
|
525
|
+
visibility: "organization" | "public" | "private" | "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;
|
|
542
541
|
description?: {
|
|
543
542
|
json: Record<string, any>;
|
|
544
543
|
text: string;
|
|
545
544
|
} | 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,19 +557,51 @@ 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
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
561
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
562
|
-
web: "web";
|
|
563
|
-
api: "api";
|
|
564
|
-
}>>;
|
|
565
560
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"file">>>;
|
|
561
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
562
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
563
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
id: z.ZodUUID;
|
|
565
|
+
path: z.ZodString;
|
|
566
|
+
bucket: z.ZodEnum<{
|
|
567
|
+
"public-files": "public-files";
|
|
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>;
|
|
566
590
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
591
|
+
organization: "organization";
|
|
567
592
|
public: "public";
|
|
568
593
|
private: "private";
|
|
569
|
-
organization: "organization";
|
|
570
594
|
monetized: "monetized";
|
|
571
595
|
inherit: "inherit";
|
|
572
596
|
}>>;
|
|
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
|
+
}>>;
|
|
573
605
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
574
606
|
none: "none";
|
|
575
607
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -577,18 +609,11 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
577
609
|
}>>;
|
|
578
610
|
state: z.ZodOptional<z.ZodEnum<{
|
|
579
611
|
success: "success";
|
|
580
|
-
error: "error";
|
|
581
612
|
queued: "queued";
|
|
582
613
|
"in-progress": "in-progress";
|
|
583
614
|
"timed-out": "timed-out";
|
|
615
|
+
error: "error";
|
|
584
616
|
}>>;
|
|
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>>>>;
|
|
592
617
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
593
618
|
license_id: z.ZodOptional<z.ZodString>;
|
|
594
619
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -607,60 +632,13 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
607
632
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
608
633
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
609
634
|
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;
|
|
641
639
|
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;
|
|
646
640
|
org_id?: string | undefined;
|
|
647
|
-
|
|
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;
|
|
641
|
+
parent?: Record<string, any> | undefined;
|
|
664
642
|
metadata?: {
|
|
665
643
|
id: string;
|
|
666
644
|
path: string;
|
|
@@ -679,22 +657,16 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
679
657
|
source?: string | null | undefined;
|
|
680
658
|
reply_to_comment_id?: string | null | undefined;
|
|
681
659
|
} | 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;
|
|
691
660
|
name?: string | undefined;
|
|
692
|
-
org_id?: string | undefined;
|
|
693
661
|
team_id?: string | undefined;
|
|
662
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
694
663
|
description?: {
|
|
695
664
|
json: Record<string, any>;
|
|
696
665
|
text: string;
|
|
697
666
|
} | 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;
|
|
698
670
|
parent_id?: string | null | undefined;
|
|
699
671
|
license_id?: string | undefined;
|
|
700
672
|
license?: Record<string, any> | undefined;
|
|
@@ -707,6 +679,12 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
707
679
|
stripe_product_id?: string | null | undefined;
|
|
708
680
|
stripe_price_id?: string | null | undefined;
|
|
709
681
|
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;
|
|
710
688
|
metadata?: {
|
|
711
689
|
id: string;
|
|
712
690
|
path: string;
|
|
@@ -725,6 +703,28 @@ declare const updateFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
725
703
|
source?: string | null | undefined;
|
|
726
704
|
reply_to_comment_id?: string | null | undefined;
|
|
727
705
|
} | 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
|
|
|
@@ -38,11 +38,11 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
38
38
|
asset: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
assetId: z.ZodString;
|
|
40
40
|
assetType: z.ZodEnum<{
|
|
41
|
-
organization: "organization";
|
|
42
|
-
file: "file";
|
|
43
41
|
user: "user";
|
|
42
|
+
organization: "organization";
|
|
44
43
|
team: "team";
|
|
45
44
|
dataset: "dataset";
|
|
45
|
+
file: "file";
|
|
46
46
|
service: "service";
|
|
47
47
|
route: "route";
|
|
48
48
|
post: "post";
|
|
@@ -38,11 +38,11 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
38
38
|
asset: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
assetId: z.ZodString;
|
|
40
40
|
assetType: z.ZodEnum<{
|
|
41
|
-
organization: "organization";
|
|
42
|
-
file: "file";
|
|
43
41
|
user: "user";
|
|
42
|
+
organization: "organization";
|
|
44
43
|
team: "team";
|
|
45
44
|
dataset: "dataset";
|
|
45
|
+
file: "file";
|
|
46
46
|
service: "service";
|
|
47
47
|
route: "route";
|
|
48
48
|
post: "post";
|
|
@@ -80,9 +80,9 @@ declare const MembershipSchema: z.ZodObject<{
|
|
|
80
80
|
membership_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
81
81
|
added_at: z.ZodDefault<z.ZodString>;
|
|
82
82
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
organization: "organization";
|
|
83
84
|
public: "public";
|
|
84
85
|
private: "private";
|
|
85
|
-
organization: "organization";
|
|
86
86
|
monetized: "monetized";
|
|
87
87
|
inherit: "inherit";
|
|
88
88
|
}>>;
|
|
@@ -80,9 +80,9 @@ declare const MembershipSchema: z.ZodObject<{
|
|
|
80
80
|
membership_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
81
81
|
added_at: z.ZodDefault<z.ZodString>;
|
|
82
82
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
organization: "organization";
|
|
83
84
|
public: "public";
|
|
84
85
|
private: "private";
|
|
85
|
-
organization: "organization";
|
|
86
86
|
monetized: "monetized";
|
|
87
87
|
inherit: "inherit";
|
|
88
88
|
}>>;
|