@ourofoundation/ouro-js 3.2.3 → 3.2.5
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-5V7HPXUK.js +2 -0
- package/dist/chunk-5V7HPXUK.js.map +1 -0
- package/dist/chunk-D7S2GB7Z.cjs +2 -0
- package/dist/chunk-D7S2GB7Z.cjs.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +77 -77
- package/dist/schema/assets.d.ts +77 -77
- package/dist/schema/blueprints.d.cts +12 -12
- package/dist/schema/blueprints.d.ts +12 -12
- package/dist/schema/comments.d.cts +73 -73
- package/dist/schema/comments.d.ts +73 -73
- package/dist/schema/common.d.cts +9 -9
- package/dist/schema/common.d.ts +9 -9
- package/dist/schema/conversations.d.cts +62 -62
- package/dist/schema/conversations.d.ts +62 -62
- package/dist/schema/datasets.d.cts +97 -97
- package/dist/schema/datasets.d.ts +97 -97
- package/dist/schema/files.d.cts +91 -91
- package/dist/schema/files.d.ts +91 -91
- package/dist/schema/notifications.d.cts +1 -1
- package/dist/schema/notifications.d.ts +1 -1
- package/dist/schema/posts.d.cts +110 -110
- package/dist/schema/posts.d.ts +110 -110
- package/dist/schema/replications.d.cts +12 -12
- package/dist/schema/replications.d.ts +12 -12
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +106 -101
- package/dist/schema/services.d.ts +106 -101
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +15 -15
- package/dist/schema/teams.d.ts +15 -15
- 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/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- 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-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
|
@@ -222,14 +222,14 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
222
222
|
}, z.core.$strip>>>;
|
|
223
223
|
state: z.ZodEnum<{
|
|
224
224
|
success: "success";
|
|
225
|
+
error: "error";
|
|
225
226
|
queued: "queued";
|
|
226
227
|
"in-progress": "in-progress";
|
|
227
228
|
"timed-out": "timed-out";
|
|
228
|
-
error: "error";
|
|
229
229
|
}>;
|
|
230
230
|
source: z.ZodEnum<{
|
|
231
|
-
api: "api";
|
|
232
231
|
web: "web";
|
|
232
|
+
api: "api";
|
|
233
233
|
}>;
|
|
234
234
|
created_at: z.ZodString;
|
|
235
235
|
last_updated: z.ZodString;
|
|
@@ -240,6 +240,30 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>>>>;
|
|
241
241
|
}, z.core.$strip>;
|
|
242
242
|
declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
243
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
244
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
web: "web";
|
|
246
|
+
api: "api";
|
|
247
|
+
}>>;
|
|
248
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
organization: "organization";
|
|
250
|
+
public: "public";
|
|
251
|
+
private: "private";
|
|
252
|
+
monetized: "monetized";
|
|
253
|
+
inherit: "inherit";
|
|
254
|
+
}>>;
|
|
255
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
none: "none";
|
|
257
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
258
|
+
"pay-per-use": "pay-per-use";
|
|
259
|
+
}>>;
|
|
260
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
success: "success";
|
|
262
|
+
error: "error";
|
|
263
|
+
queued: "queued";
|
|
264
|
+
"in-progress": "in-progress";
|
|
265
|
+
"timed-out": "timed-out";
|
|
266
|
+
}>>;
|
|
243
267
|
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
244
268
|
id: z.ZodOptional<z.ZodUUID>;
|
|
245
269
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -264,6 +288,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
264
288
|
}>>;
|
|
265
289
|
last_active: z.ZodOptional<z.ZodString>;
|
|
266
290
|
}, z.core.$strip>>>;
|
|
291
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
267
292
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
268
293
|
id: z.ZodOptional<z.ZodUUID>;
|
|
269
294
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +321,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
296
321
|
api_only: "api_only";
|
|
297
322
|
}>>>>;
|
|
298
323
|
}, z.core.$strip>>>;
|
|
324
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
299
325
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
300
326
|
id: z.ZodOptional<z.ZodUUID>;
|
|
301
327
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -405,49 +431,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
405
431
|
}, z.core.$strip>>>;
|
|
406
432
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
433
|
}, z.core.$strip>>>;
|
|
408
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
409
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
410
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
411
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
-
originality: z.ZodEnum<{
|
|
416
|
-
original: "original";
|
|
417
|
-
derivative: "derivative";
|
|
418
|
-
"third-party": "third-party";
|
|
419
|
-
}>;
|
|
420
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
-
}, z.core.$strip>>>>;
|
|
423
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
424
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
425
|
-
organization: "organization";
|
|
426
|
-
public: "public";
|
|
427
|
-
private: "private";
|
|
428
|
-
monetized: "monetized";
|
|
429
|
-
inherit: "inherit";
|
|
430
|
-
}>>;
|
|
431
434
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
435
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
433
436
|
text: z.ZodString;
|
|
434
437
|
}, z.core.$strip>>>>;
|
|
435
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
436
|
-
api: "api";
|
|
437
|
-
web: "web";
|
|
438
|
-
}>>;
|
|
439
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
none: "none";
|
|
441
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
442
|
-
"pay-per-use": "pay-per-use";
|
|
443
|
-
}>>;
|
|
444
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
445
|
-
success: "success";
|
|
446
|
-
queued: "queued";
|
|
447
|
-
"in-progress": "in-progress";
|
|
448
|
-
"timed-out": "timed-out";
|
|
449
|
-
error: "error";
|
|
450
|
-
}>>;
|
|
451
438
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
452
439
|
license_id: z.ZodOptional<z.ZodString>;
|
|
453
440
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -467,6 +454,19 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
454
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
468
455
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
456
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
457
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
458
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
originality: z.ZodEnum<{
|
|
463
|
+
original: "original";
|
|
464
|
+
derivative: "derivative";
|
|
465
|
+
"third-party": "third-party";
|
|
466
|
+
}>;
|
|
467
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
}, z.core.$strip>>>>;
|
|
470
470
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
471
471
|
type: z.ZodString;
|
|
472
472
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -482,6 +482,11 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
482
482
|
name: string;
|
|
483
483
|
created_at: string;
|
|
484
484
|
last_updated: string;
|
|
485
|
+
parent?: Record<string, any> | undefined;
|
|
486
|
+
source?: "web" | "api" | undefined;
|
|
487
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
488
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
489
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
485
490
|
user?: {
|
|
486
491
|
id?: string | undefined;
|
|
487
492
|
user_id?: string | undefined;
|
|
@@ -499,6 +504,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
499
504
|
plan_type?: "free" | "gold" | undefined;
|
|
500
505
|
last_active?: string | undefined;
|
|
501
506
|
} | undefined;
|
|
507
|
+
org_id?: string | undefined;
|
|
502
508
|
organization?: {
|
|
503
509
|
id?: string | undefined;
|
|
504
510
|
name?: string | undefined;
|
|
@@ -518,6 +524,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
518
524
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
519
525
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
520
526
|
} | undefined;
|
|
527
|
+
team_id?: string | undefined;
|
|
521
528
|
team?: {
|
|
522
529
|
id?: string | undefined;
|
|
523
530
|
org_id?: string | undefined;
|
|
@@ -578,26 +585,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
578
585
|
}[] | undefined;
|
|
579
586
|
created_at?: string | undefined;
|
|
580
587
|
} | undefined;
|
|
581
|
-
org_id?: string | undefined;
|
|
582
|
-
parent?: Record<string, any> | undefined;
|
|
583
|
-
metadata?: {
|
|
584
|
-
originality: "original" | "derivative" | "third-party";
|
|
585
|
-
doi_url?: string | null | undefined;
|
|
586
|
-
external_url?: string | null | undefined;
|
|
587
|
-
paper_url?: string | null | undefined;
|
|
588
|
-
github_url?: string | null | undefined;
|
|
589
|
-
source?: string | null | undefined;
|
|
590
|
-
reply_to_comment_id?: string | null | undefined;
|
|
591
|
-
} | null | undefined;
|
|
592
|
-
team_id?: string | undefined;
|
|
593
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
594
588
|
description?: {
|
|
595
589
|
json: Record<string, any>;
|
|
596
590
|
text: string;
|
|
597
591
|
} | null | undefined;
|
|
598
|
-
source?: "api" | "web" | undefined;
|
|
599
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
600
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
601
592
|
parent_id?: string | null | undefined;
|
|
602
593
|
license_id?: string | undefined;
|
|
603
594
|
license?: Record<string, any> | undefined;
|
|
@@ -611,6 +602,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
611
602
|
stripe_product_id?: string | null | undefined;
|
|
612
603
|
stripe_price_id?: string | null | undefined;
|
|
613
604
|
stripe_meter_id?: string | null | undefined;
|
|
605
|
+
metadata?: {
|
|
606
|
+
originality: "original" | "derivative" | "third-party";
|
|
607
|
+
doi_url?: string | null | undefined;
|
|
608
|
+
external_url?: string | null | undefined;
|
|
609
|
+
paper_url?: string | null | undefined;
|
|
610
|
+
github_url?: string | null | undefined;
|
|
611
|
+
source?: string | null | undefined;
|
|
612
|
+
reply_to_comment_id?: string | null | undefined;
|
|
613
|
+
} | null | undefined;
|
|
614
614
|
preview?: {
|
|
615
615
|
type: string;
|
|
616
616
|
content: Record<string, any>[];
|
|
@@ -621,6 +621,11 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
621
621
|
name: string;
|
|
622
622
|
created_at: string;
|
|
623
623
|
last_updated: string;
|
|
624
|
+
parent?: Record<string, any> | undefined;
|
|
625
|
+
source?: "web" | "api" | undefined;
|
|
626
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
627
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
628
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
624
629
|
user?: {
|
|
625
630
|
id?: string | undefined;
|
|
626
631
|
user_id?: string | undefined;
|
|
@@ -638,6 +643,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
638
643
|
plan_type?: "free" | "gold" | undefined;
|
|
639
644
|
last_active?: string | undefined;
|
|
640
645
|
} | undefined;
|
|
646
|
+
org_id?: string | undefined;
|
|
641
647
|
organization?: {
|
|
642
648
|
id?: string | undefined;
|
|
643
649
|
name?: string | undefined;
|
|
@@ -657,6 +663,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
663
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
658
664
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
659
665
|
} | undefined;
|
|
666
|
+
team_id?: string | undefined;
|
|
660
667
|
team?: {
|
|
661
668
|
id?: string | undefined;
|
|
662
669
|
org_id?: string | undefined;
|
|
@@ -717,26 +724,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
717
724
|
}[] | undefined;
|
|
718
725
|
created_at?: string | undefined;
|
|
719
726
|
} | undefined;
|
|
720
|
-
org_id?: string | undefined;
|
|
721
|
-
parent?: Record<string, any> | undefined;
|
|
722
|
-
metadata?: {
|
|
723
|
-
originality: "original" | "derivative" | "third-party";
|
|
724
|
-
doi_url?: string | null | undefined;
|
|
725
|
-
external_url?: string | null | undefined;
|
|
726
|
-
paper_url?: string | null | undefined;
|
|
727
|
-
github_url?: string | null | undefined;
|
|
728
|
-
source?: string | null | undefined;
|
|
729
|
-
reply_to_comment_id?: string | null | undefined;
|
|
730
|
-
} | null | undefined;
|
|
731
|
-
team_id?: string | undefined;
|
|
732
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
733
727
|
description?: {
|
|
734
728
|
json: Record<string, any>;
|
|
735
729
|
text: string;
|
|
736
730
|
} | null | undefined;
|
|
737
|
-
source?: "api" | "web" | undefined;
|
|
738
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
739
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
740
731
|
parent_id?: string | null | undefined;
|
|
741
732
|
license_id?: string | undefined;
|
|
742
733
|
license?: Record<string, any> | undefined;
|
|
@@ -750,6 +741,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
750
741
|
stripe_product_id?: string | null | undefined;
|
|
751
742
|
stripe_price_id?: string | null | undefined;
|
|
752
743
|
stripe_meter_id?: string | null | undefined;
|
|
744
|
+
metadata?: {
|
|
745
|
+
originality: "original" | "derivative" | "third-party";
|
|
746
|
+
doi_url?: string | null | undefined;
|
|
747
|
+
external_url?: string | null | undefined;
|
|
748
|
+
paper_url?: string | null | undefined;
|
|
749
|
+
github_url?: string | null | undefined;
|
|
750
|
+
source?: string | null | undefined;
|
|
751
|
+
reply_to_comment_id?: string | null | undefined;
|
|
752
|
+
} | null | undefined;
|
|
753
753
|
preview?: {
|
|
754
754
|
type: string;
|
|
755
755
|
content: Record<string, any>[];
|
|
@@ -222,14 +222,14 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
222
222
|
}, z.core.$strip>>>;
|
|
223
223
|
state: z.ZodEnum<{
|
|
224
224
|
success: "success";
|
|
225
|
+
error: "error";
|
|
225
226
|
queued: "queued";
|
|
226
227
|
"in-progress": "in-progress";
|
|
227
228
|
"timed-out": "timed-out";
|
|
228
|
-
error: "error";
|
|
229
229
|
}>;
|
|
230
230
|
source: z.ZodEnum<{
|
|
231
|
-
api: "api";
|
|
232
231
|
web: "web";
|
|
232
|
+
api: "api";
|
|
233
233
|
}>;
|
|
234
234
|
created_at: z.ZodString;
|
|
235
235
|
last_updated: z.ZodString;
|
|
@@ -240,6 +240,30 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>>>>;
|
|
241
241
|
}, z.core.$strip>;
|
|
242
242
|
declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
243
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
244
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
web: "web";
|
|
246
|
+
api: "api";
|
|
247
|
+
}>>;
|
|
248
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
organization: "organization";
|
|
250
|
+
public: "public";
|
|
251
|
+
private: "private";
|
|
252
|
+
monetized: "monetized";
|
|
253
|
+
inherit: "inherit";
|
|
254
|
+
}>>;
|
|
255
|
+
monetization: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
none: "none";
|
|
257
|
+
"pay-to-unlock": "pay-to-unlock";
|
|
258
|
+
"pay-per-use": "pay-per-use";
|
|
259
|
+
}>>;
|
|
260
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
success: "success";
|
|
262
|
+
error: "error";
|
|
263
|
+
queued: "queued";
|
|
264
|
+
"in-progress": "in-progress";
|
|
265
|
+
"timed-out": "timed-out";
|
|
266
|
+
}>>;
|
|
243
267
|
user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
244
268
|
id: z.ZodOptional<z.ZodUUID>;
|
|
245
269
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -264,6 +288,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
264
288
|
}>>;
|
|
265
289
|
last_active: z.ZodOptional<z.ZodString>;
|
|
266
290
|
}, z.core.$strip>>>;
|
|
291
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
267
292
|
organization: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
268
293
|
id: z.ZodOptional<z.ZodUUID>;
|
|
269
294
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +321,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
296
321
|
api_only: "api_only";
|
|
297
322
|
}>>>>;
|
|
298
323
|
}, z.core.$strip>>>;
|
|
324
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
299
325
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
300
326
|
id: z.ZodOptional<z.ZodUUID>;
|
|
301
327
|
org_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -405,49 +431,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
405
431
|
}, z.core.$strip>>>;
|
|
406
432
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
433
|
}, z.core.$strip>>>;
|
|
408
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
409
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
410
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
411
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
-
originality: z.ZodEnum<{
|
|
416
|
-
original: "original";
|
|
417
|
-
derivative: "derivative";
|
|
418
|
-
"third-party": "third-party";
|
|
419
|
-
}>;
|
|
420
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
-
}, z.core.$strip>>>>;
|
|
423
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
424
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
425
|
-
organization: "organization";
|
|
426
|
-
public: "public";
|
|
427
|
-
private: "private";
|
|
428
|
-
monetized: "monetized";
|
|
429
|
-
inherit: "inherit";
|
|
430
|
-
}>>;
|
|
431
434
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
435
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
433
436
|
text: z.ZodString;
|
|
434
437
|
}, z.core.$strip>>>>;
|
|
435
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
436
|
-
api: "api";
|
|
437
|
-
web: "web";
|
|
438
|
-
}>>;
|
|
439
|
-
monetization: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
none: "none";
|
|
441
|
-
"pay-to-unlock": "pay-to-unlock";
|
|
442
|
-
"pay-per-use": "pay-per-use";
|
|
443
|
-
}>>;
|
|
444
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
445
|
-
success: "success";
|
|
446
|
-
queued: "queued";
|
|
447
|
-
"in-progress": "in-progress";
|
|
448
|
-
"timed-out": "timed-out";
|
|
449
|
-
error: "error";
|
|
450
|
-
}>>;
|
|
451
438
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
452
439
|
license_id: z.ZodOptional<z.ZodString>;
|
|
453
440
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -467,6 +454,19 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
454
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
468
455
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
469
456
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
457
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
458
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
originality: z.ZodEnum<{
|
|
463
|
+
original: "original";
|
|
464
|
+
derivative: "derivative";
|
|
465
|
+
"third-party": "third-party";
|
|
466
|
+
}>;
|
|
467
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
}, z.core.$strip>>>>;
|
|
470
470
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
471
471
|
type: z.ZodString;
|
|
472
472
|
content: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -482,6 +482,11 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
482
482
|
name: string;
|
|
483
483
|
created_at: string;
|
|
484
484
|
last_updated: string;
|
|
485
|
+
parent?: Record<string, any> | undefined;
|
|
486
|
+
source?: "web" | "api" | undefined;
|
|
487
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
488
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
489
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
485
490
|
user?: {
|
|
486
491
|
id?: string | undefined;
|
|
487
492
|
user_id?: string | undefined;
|
|
@@ -499,6 +504,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
499
504
|
plan_type?: "free" | "gold" | undefined;
|
|
500
505
|
last_active?: string | undefined;
|
|
501
506
|
} | undefined;
|
|
507
|
+
org_id?: string | undefined;
|
|
502
508
|
organization?: {
|
|
503
509
|
id?: string | undefined;
|
|
504
510
|
name?: string | undefined;
|
|
@@ -518,6 +524,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
518
524
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
519
525
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
520
526
|
} | undefined;
|
|
527
|
+
team_id?: string | undefined;
|
|
521
528
|
team?: {
|
|
522
529
|
id?: string | undefined;
|
|
523
530
|
org_id?: string | undefined;
|
|
@@ -578,26 +585,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
578
585
|
}[] | undefined;
|
|
579
586
|
created_at?: string | undefined;
|
|
580
587
|
} | undefined;
|
|
581
|
-
org_id?: string | undefined;
|
|
582
|
-
parent?: Record<string, any> | undefined;
|
|
583
|
-
metadata?: {
|
|
584
|
-
originality: "original" | "derivative" | "third-party";
|
|
585
|
-
doi_url?: string | null | undefined;
|
|
586
|
-
external_url?: string | null | undefined;
|
|
587
|
-
paper_url?: string | null | undefined;
|
|
588
|
-
github_url?: string | null | undefined;
|
|
589
|
-
source?: string | null | undefined;
|
|
590
|
-
reply_to_comment_id?: string | null | undefined;
|
|
591
|
-
} | null | undefined;
|
|
592
|
-
team_id?: string | undefined;
|
|
593
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
594
588
|
description?: {
|
|
595
589
|
json: Record<string, any>;
|
|
596
590
|
text: string;
|
|
597
591
|
} | null | undefined;
|
|
598
|
-
source?: "api" | "web" | undefined;
|
|
599
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
600
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
601
592
|
parent_id?: string | null | undefined;
|
|
602
593
|
license_id?: string | undefined;
|
|
603
594
|
license?: Record<string, any> | undefined;
|
|
@@ -611,6 +602,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
611
602
|
stripe_product_id?: string | null | undefined;
|
|
612
603
|
stripe_price_id?: string | null | undefined;
|
|
613
604
|
stripe_meter_id?: string | null | undefined;
|
|
605
|
+
metadata?: {
|
|
606
|
+
originality: "original" | "derivative" | "third-party";
|
|
607
|
+
doi_url?: string | null | undefined;
|
|
608
|
+
external_url?: string | null | undefined;
|
|
609
|
+
paper_url?: string | null | undefined;
|
|
610
|
+
github_url?: string | null | undefined;
|
|
611
|
+
source?: string | null | undefined;
|
|
612
|
+
reply_to_comment_id?: string | null | undefined;
|
|
613
|
+
} | null | undefined;
|
|
614
614
|
preview?: {
|
|
615
615
|
type: string;
|
|
616
616
|
content: Record<string, any>[];
|
|
@@ -621,6 +621,11 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
621
621
|
name: string;
|
|
622
622
|
created_at: string;
|
|
623
623
|
last_updated: string;
|
|
624
|
+
parent?: Record<string, any> | undefined;
|
|
625
|
+
source?: "web" | "api" | undefined;
|
|
626
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
627
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
628
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
624
629
|
user?: {
|
|
625
630
|
id?: string | undefined;
|
|
626
631
|
user_id?: string | undefined;
|
|
@@ -638,6 +643,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
638
643
|
plan_type?: "free" | "gold" | undefined;
|
|
639
644
|
last_active?: string | undefined;
|
|
640
645
|
} | undefined;
|
|
646
|
+
org_id?: string | undefined;
|
|
641
647
|
organization?: {
|
|
642
648
|
id?: string | undefined;
|
|
643
649
|
name?: string | undefined;
|
|
@@ -657,6 +663,7 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
657
663
|
actor_type_policy?: "any" | "verified_only" | "agents_only" | undefined;
|
|
658
664
|
source_policy?: "any" | "web_only" | "api_only" | undefined;
|
|
659
665
|
} | undefined;
|
|
666
|
+
team_id?: string | undefined;
|
|
660
667
|
team?: {
|
|
661
668
|
id?: string | undefined;
|
|
662
669
|
org_id?: string | undefined;
|
|
@@ -717,26 +724,10 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
717
724
|
}[] | undefined;
|
|
718
725
|
created_at?: string | undefined;
|
|
719
726
|
} | undefined;
|
|
720
|
-
org_id?: string | undefined;
|
|
721
|
-
parent?: Record<string, any> | undefined;
|
|
722
|
-
metadata?: {
|
|
723
|
-
originality: "original" | "derivative" | "third-party";
|
|
724
|
-
doi_url?: string | null | undefined;
|
|
725
|
-
external_url?: string | null | undefined;
|
|
726
|
-
paper_url?: string | null | undefined;
|
|
727
|
-
github_url?: string | null | undefined;
|
|
728
|
-
source?: string | null | undefined;
|
|
729
|
-
reply_to_comment_id?: string | null | undefined;
|
|
730
|
-
} | null | undefined;
|
|
731
|
-
team_id?: string | undefined;
|
|
732
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
733
727
|
description?: {
|
|
734
728
|
json: Record<string, any>;
|
|
735
729
|
text: string;
|
|
736
730
|
} | null | undefined;
|
|
737
|
-
source?: "api" | "web" | undefined;
|
|
738
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
739
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
740
731
|
parent_id?: string | null | undefined;
|
|
741
732
|
license_id?: string | undefined;
|
|
742
733
|
license?: Record<string, any> | undefined;
|
|
@@ -750,6 +741,15 @@ declare const CreateCommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
750
741
|
stripe_product_id?: string | null | undefined;
|
|
751
742
|
stripe_price_id?: string | null | undefined;
|
|
752
743
|
stripe_meter_id?: string | null | undefined;
|
|
744
|
+
metadata?: {
|
|
745
|
+
originality: "original" | "derivative" | "third-party";
|
|
746
|
+
doi_url?: string | null | undefined;
|
|
747
|
+
external_url?: string | null | undefined;
|
|
748
|
+
paper_url?: string | null | undefined;
|
|
749
|
+
github_url?: string | null | undefined;
|
|
750
|
+
source?: string | null | undefined;
|
|
751
|
+
reply_to_comment_id?: string | null | undefined;
|
|
752
|
+
} | null | undefined;
|
|
753
753
|
preview?: {
|
|
754
754
|
type: string;
|
|
755
755
|
content: Record<string, any>[];
|
package/dist/schema/common.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const AssetTypeSchema: z.ZodEnum<{
|
|
4
|
+
file: "file";
|
|
4
5
|
user: "user";
|
|
5
6
|
organization: "organization";
|
|
6
7
|
team: "team";
|
|
7
8
|
dataset: "dataset";
|
|
8
|
-
file: "file";
|
|
9
9
|
service: "service";
|
|
10
10
|
route: "route";
|
|
11
11
|
post: "post";
|
|
@@ -44,11 +44,11 @@ declare const EmbeddingSchema: z.ZodObject<{
|
|
|
44
44
|
embedding: z.ZodArray<z.ZodNumber>;
|
|
45
45
|
content: z.ZodString;
|
|
46
46
|
asset_type: z.ZodEnum<{
|
|
47
|
+
file: "file";
|
|
47
48
|
user: "user";
|
|
48
49
|
organization: "organization";
|
|
49
50
|
team: "team";
|
|
50
51
|
dataset: "dataset";
|
|
51
|
-
file: "file";
|
|
52
52
|
service: "service";
|
|
53
53
|
route: "route";
|
|
54
54
|
post: "post";
|
|
@@ -78,11 +78,11 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
78
78
|
source_id: z.ZodUUID;
|
|
79
79
|
target_id: z.ZodUUID;
|
|
80
80
|
source_asset_type: z.ZodEnum<{
|
|
81
|
+
file: "file";
|
|
81
82
|
user: "user";
|
|
82
83
|
organization: "organization";
|
|
83
84
|
team: "team";
|
|
84
85
|
dataset: "dataset";
|
|
85
|
-
file: "file";
|
|
86
86
|
service: "service";
|
|
87
87
|
route: "route";
|
|
88
88
|
post: "post";
|
|
@@ -93,11 +93,11 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
93
93
|
replication: "replication";
|
|
94
94
|
}>;
|
|
95
95
|
target_asset_type: z.ZodEnum<{
|
|
96
|
+
file: "file";
|
|
96
97
|
user: "user";
|
|
97
98
|
organization: "organization";
|
|
98
99
|
team: "team";
|
|
99
100
|
dataset: "dataset";
|
|
100
|
-
file: "file";
|
|
101
101
|
service: "service";
|
|
102
102
|
route: "route";
|
|
103
103
|
post: "post";
|
|
@@ -113,15 +113,15 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
113
113
|
declare const PurchaseAssetSchema: z.ZodObject<{
|
|
114
114
|
assetId: z.ZodUUID;
|
|
115
115
|
method: z.ZodEnum<{
|
|
116
|
-
checkout: "checkout";
|
|
117
116
|
api: "api";
|
|
117
|
+
checkout: "checkout";
|
|
118
118
|
}>;
|
|
119
119
|
assetType: z.ZodEnum<{
|
|
120
|
+
file: "file";
|
|
120
121
|
user: "user";
|
|
121
122
|
organization: "organization";
|
|
122
123
|
team: "team";
|
|
123
124
|
dataset: "dataset";
|
|
124
|
-
file: "file";
|
|
125
125
|
service: "service";
|
|
126
126
|
route: "route";
|
|
127
127
|
post: "post";
|
|
@@ -146,11 +146,11 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
146
146
|
user_id: z.ZodNullable<z.ZodUUID>;
|
|
147
147
|
org_id: z.ZodNullable<z.ZodUUID>;
|
|
148
148
|
asset_type: z.ZodEnum<{
|
|
149
|
+
file: "file";
|
|
149
150
|
user: "user";
|
|
150
151
|
organization: "organization";
|
|
151
152
|
team: "team";
|
|
152
153
|
dataset: "dataset";
|
|
153
|
-
file: "file";
|
|
154
154
|
service: "service";
|
|
155
155
|
route: "route";
|
|
156
156
|
post: "post";
|
|
@@ -166,14 +166,14 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
166
166
|
}, z.core.$strip>;
|
|
167
167
|
declare const StatusSchema: z.ZodEnum<{
|
|
168
168
|
success: "success";
|
|
169
|
+
error: "error";
|
|
169
170
|
queued: "queued";
|
|
170
171
|
"in-progress": "in-progress";
|
|
171
172
|
"timed-out": "timed-out";
|
|
172
|
-
error: "error";
|
|
173
173
|
}>;
|
|
174
174
|
declare const SourceSchema: z.ZodEnum<{
|
|
175
|
-
api: "api";
|
|
176
175
|
web: "web";
|
|
176
|
+
api: "api";
|
|
177
177
|
}>;
|
|
178
178
|
|
|
179
179
|
type Role = z.infer<typeof RoleSchema>;
|