@ourofoundation/ouro-js 3.5.1 → 3.5.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/{chunk-XQQVHVWP.js → chunk-35CJDNHH.js} +2 -2
- package/dist/{chunk-XQQVHVWP.js.map → chunk-35CJDNHH.js.map} +1 -1
- package/dist/{chunk-6XQFD2Z2.cjs → chunk-6GPIZJ4T.cjs} +2 -2
- package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
- package/dist/{chunk-HN7Y7VMJ.cjs → chunk-6ZJQTECB.cjs} +2 -2
- package/dist/{chunk-HN7Y7VMJ.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
- package/dist/{chunk-6FG474SV.cjs → chunk-BWAEBQKV.cjs} +2 -2
- package/dist/chunk-BWAEBQKV.cjs.map +1 -0
- package/dist/{chunk-DC6TYS3A.cjs → chunk-F5CWCYOP.cjs} +2 -2
- package/dist/chunk-F5CWCYOP.cjs.map +1 -0
- package/dist/{chunk-NJQ5YWYJ.cjs → chunk-HIXNQKVP.cjs} +2 -2
- package/dist/{chunk-NJQ5YWYJ.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
- package/dist/{chunk-OS542EYD.js → chunk-IWOXGKK4.js} +2 -2
- package/dist/chunk-IWOXGKK4.js.map +1 -0
- package/dist/chunk-KCVE35IO.js +2 -0
- package/dist/chunk-KCVE35IO.js.map +1 -0
- package/dist/chunk-MLTO7TMM.js +2 -0
- package/dist/chunk-MLTO7TMM.js.map +1 -0
- package/dist/{chunk-EK5P7FST.js → chunk-R2W4NEEJ.js} +2 -2
- package/dist/chunk-R2W4NEEJ.js.map +1 -0
- package/dist/{chunk-M2JJPDBW.js → chunk-TYOQ32UV.js} +2 -2
- package/dist/{chunk-M2JJPDBW.js.map → chunk-TYOQ32UV.js.map} +1 -1
- package/dist/chunk-V73EW77Y.cjs +2 -0
- package/dist/chunk-V73EW77Y.cjs.map +1 -0
- package/dist/index.cjs +1 -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.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.d.cts +137 -137
- package/dist/schema/datasets.d.ts +137 -137
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -103
- package/dist/schema/files.d.ts +100 -103
- package/dist/schema/files.js +1 -1
- 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.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -130
- package/dist/schema/posts.d.ts +127 -130
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +177 -180
- package/dist/schema/quests.d.ts +177 -180
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +127 -130
- package/dist/schema/services.d.ts +127 -130
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6FG474SV.cjs.map +0 -1
- package/dist/chunk-6XQFD2Z2.cjs.map +0 -1
- package/dist/chunk-DC6TYS3A.cjs.map +0 -1
- package/dist/chunk-EK5P7FST.js.map +0 -1
- package/dist/chunk-OFDJA6ZW.cjs +0 -2
- package/dist/chunk-OFDJA6ZW.cjs.map +0 -1
- package/dist/chunk-OS542EYD.js.map +0 -1
- package/dist/chunk-VJJLRHOX.js +0 -2
- package/dist/chunk-VJJLRHOX.js.map +0 -1
- package/dist/chunk-W5UCZ73B.js +0 -2
- package/dist/chunk-W5UCZ73B.js.map +0 -1
|
@@ -108,9 +108,9 @@ declare const ConversationSchema: 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 ConversationSchema: 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,24 +210,24 @@ declare const ConversationSchema: 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
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
223
223
|
created_at: z.ZodString;
|
|
224
224
|
last_updated: z.ZodString;
|
|
225
225
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
226
|
-
user: "user";
|
|
227
226
|
organization: "organization";
|
|
227
|
+
file: "file";
|
|
228
|
+
user: "user";
|
|
228
229
|
team: "team";
|
|
229
230
|
dataset: "dataset";
|
|
230
|
-
file: "file";
|
|
231
231
|
service: "service";
|
|
232
232
|
route: "route";
|
|
233
233
|
post: "post";
|
|
@@ -304,14 +304,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
304
304
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
305
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
306
306
|
success: "success";
|
|
307
|
+
error: "error";
|
|
307
308
|
queued: "queued";
|
|
308
309
|
"in-progress": "in-progress";
|
|
309
310
|
"timed-out": "timed-out";
|
|
310
|
-
error: "error";
|
|
311
311
|
}>>>;
|
|
312
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
313
|
-
api: "api";
|
|
314
313
|
web: "web";
|
|
314
|
+
api: "api";
|
|
315
315
|
}>>;
|
|
316
316
|
created_at: z.ZodDefault<z.ZodString>;
|
|
317
317
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -322,9 +322,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
322
322
|
"pay-per-use": "pay-per-use";
|
|
323
323
|
}>>;
|
|
324
324
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
325
|
-
organization: "organization";
|
|
326
325
|
public: "public";
|
|
327
326
|
private: "private";
|
|
327
|
+
organization: "organization";
|
|
328
328
|
monetized: "monetized";
|
|
329
329
|
inherit: "inherit";
|
|
330
330
|
}>>;
|
|
@@ -347,13 +347,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
347
347
|
team_id: string | null;
|
|
348
348
|
org_id: string | null;
|
|
349
349
|
name: string;
|
|
350
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
351
|
-
source: "
|
|
350
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
351
|
+
source: "web" | "api";
|
|
352
352
|
created_at: string;
|
|
353
353
|
last_updated: string;
|
|
354
354
|
asset_type: "conversation";
|
|
355
355
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
356
|
-
visibility: "
|
|
356
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
357
357
|
metadata: {
|
|
358
358
|
members: string[];
|
|
359
359
|
doi_url?: string | null | undefined;
|
|
@@ -386,13 +386,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
386
386
|
team_id: string | null;
|
|
387
387
|
org_id: string | null;
|
|
388
388
|
name: string;
|
|
389
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
390
|
-
source: "
|
|
389
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
390
|
+
source: "web" | "api";
|
|
391
391
|
created_at: string;
|
|
392
392
|
last_updated: string;
|
|
393
393
|
asset_type: "conversation";
|
|
394
394
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
395
|
-
visibility: "
|
|
395
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
396
396
|
metadata: {
|
|
397
397
|
members: string[];
|
|
398
398
|
doi_url?: string | null | undefined;
|
|
@@ -422,40 +422,19 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
422
422
|
name_url_slug?: string | null | undefined;
|
|
423
423
|
}>>;
|
|
424
424
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
425
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
426
425
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
433
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
434
|
-
original: "original";
|
|
435
|
-
derivative: "derivative";
|
|
436
|
-
"third-party": "third-party";
|
|
437
|
-
}>>;
|
|
438
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
439
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
440
|
-
}, z.core.$strip>>;
|
|
441
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
442
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
443
|
-
name: z.ZodOptional<z.ZodString>;
|
|
426
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
427
|
+
web: "web";
|
|
428
|
+
api: "api";
|
|
429
|
+
}>>>;
|
|
430
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
444
431
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
445
|
-
organization: "organization";
|
|
446
432
|
public: "public";
|
|
447
433
|
private: "private";
|
|
434
|
+
organization: "organization";
|
|
448
435
|
monetized: "monetized";
|
|
449
436
|
inherit: "inherit";
|
|
450
437
|
}>>>;
|
|
451
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
452
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
453
|
-
text: z.ZodString;
|
|
454
|
-
}, z.core.$strip>>>>>;
|
|
455
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
456
|
-
api: "api";
|
|
457
|
-
web: "web";
|
|
458
|
-
}>>>;
|
|
459
438
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
460
439
|
none: "none";
|
|
461
440
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -463,11 +442,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
463
442
|
}>>>;
|
|
464
443
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
465
444
|
success: "success";
|
|
445
|
+
error: "error";
|
|
466
446
|
queued: "queued";
|
|
467
447
|
"in-progress": "in-progress";
|
|
468
448
|
"timed-out": "timed-out";
|
|
469
|
-
error: "error";
|
|
470
449
|
}>>>>;
|
|
450
|
+
name: z.ZodOptional<z.ZodString>;
|
|
451
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
452
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
453
|
+
text: z.ZodString;
|
|
454
|
+
}, z.core.$strip>>>>>;
|
|
455
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
471
456
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
472
457
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
473
458
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -485,31 +470,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
485
470
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
486
471
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
487
472
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
473
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
members: z.ZodArray<z.ZodString>;
|
|
475
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
479
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
original: "original";
|
|
481
|
+
derivative: "derivative";
|
|
482
|
+
"third-party": "third-party";
|
|
483
|
+
}>>;
|
|
484
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
488
487
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
488
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
489
489
|
}, z.core.$strip>, z.ZodTransform<{
|
|
490
|
-
asset_type?: "conversation" | undefined;
|
|
491
490
|
parent?: Record<string, any> | undefined;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
github_url?: string | null | undefined;
|
|
498
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
499
|
-
source?: string | null | undefined;
|
|
500
|
-
reply_to_comment_id?: string | null | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
created_at?: string | undefined;
|
|
503
|
-
last_updated?: string | undefined;
|
|
491
|
+
source?: "web" | "api" | undefined;
|
|
492
|
+
asset_type?: "conversation" | undefined;
|
|
493
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
494
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
495
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
504
496
|
name?: string | undefined;
|
|
505
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
506
497
|
description?: {
|
|
507
498
|
json: Record<string, any>;
|
|
508
499
|
text: string;
|
|
509
500
|
} | null | undefined;
|
|
510
|
-
|
|
511
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
512
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
|
+
created_at?: string | undefined;
|
|
513
502
|
parent_id?: string | null | undefined;
|
|
514
503
|
license_id?: string | undefined;
|
|
515
504
|
name_url_slug?: string | null | undefined;
|
|
@@ -521,10 +510,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
521
510
|
stripe_product_id?: string | null | undefined;
|
|
522
511
|
stripe_price_id?: string | null | undefined;
|
|
523
512
|
stripe_meter_id?: string | null | undefined;
|
|
524
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
asset_type?: "conversation" | undefined;
|
|
527
|
-
parent?: Record<string, any> | undefined;
|
|
528
513
|
metadata?: {
|
|
529
514
|
members: string[];
|
|
530
515
|
doi_url?: string | null | undefined;
|
|
@@ -535,17 +520,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
535
520
|
source?: string | null | undefined;
|
|
536
521
|
reply_to_comment_id?: string | null | undefined;
|
|
537
522
|
} | undefined;
|
|
538
|
-
|
|
523
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
539
524
|
last_updated?: string | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
parent?: Record<string, any> | undefined;
|
|
527
|
+
source?: "web" | "api" | undefined;
|
|
528
|
+
asset_type?: "conversation" | undefined;
|
|
529
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
530
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
531
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
540
532
|
name?: string | undefined;
|
|
541
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
542
533
|
description?: {
|
|
543
534
|
json: Record<string, any>;
|
|
544
535
|
text: string;
|
|
545
536
|
} | null | undefined;
|
|
546
|
-
|
|
547
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
548
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
|
+
created_at?: string | undefined;
|
|
549
538
|
parent_id?: string | null | undefined;
|
|
550
539
|
license_id?: string | undefined;
|
|
551
540
|
name_url_slug?: string | null | undefined;
|
|
@@ -557,7 +546,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
557
546
|
stripe_product_id?: string | null | undefined;
|
|
558
547
|
stripe_price_id?: string | null | undefined;
|
|
559
548
|
stripe_meter_id?: string | null | undefined;
|
|
549
|
+
metadata?: {
|
|
550
|
+
members: string[];
|
|
551
|
+
doi_url?: string | null | undefined;
|
|
552
|
+
external_url?: string | null | undefined;
|
|
553
|
+
paper_url?: string | null | undefined;
|
|
554
|
+
github_url?: string | null | undefined;
|
|
555
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
556
|
+
source?: string | null | undefined;
|
|
557
|
+
reply_to_comment_id?: string | null | undefined;
|
|
558
|
+
} | undefined;
|
|
560
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
560
|
+
last_updated?: string | undefined;
|
|
561
561
|
}>>;
|
|
562
562
|
declare const MessageSchema: z.ZodObject<{
|
|
563
563
|
id: z.ZodUUID;
|
|
@@ -108,9 +108,9 @@ declare const ConversationSchema: 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 ConversationSchema: 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,24 +210,24 @@ declare const ConversationSchema: 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
|
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
223
223
|
created_at: z.ZodString;
|
|
224
224
|
last_updated: z.ZodString;
|
|
225
225
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
226
|
-
user: "user";
|
|
227
226
|
organization: "organization";
|
|
227
|
+
file: "file";
|
|
228
|
+
user: "user";
|
|
228
229
|
team: "team";
|
|
229
230
|
dataset: "dataset";
|
|
230
|
-
file: "file";
|
|
231
231
|
service: "service";
|
|
232
232
|
route: "route";
|
|
233
233
|
post: "post";
|
|
@@ -304,14 +304,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
304
304
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
305
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
306
306
|
success: "success";
|
|
307
|
+
error: "error";
|
|
307
308
|
queued: "queued";
|
|
308
309
|
"in-progress": "in-progress";
|
|
309
310
|
"timed-out": "timed-out";
|
|
310
|
-
error: "error";
|
|
311
311
|
}>>>;
|
|
312
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
313
|
-
api: "api";
|
|
314
313
|
web: "web";
|
|
314
|
+
api: "api";
|
|
315
315
|
}>>;
|
|
316
316
|
created_at: z.ZodDefault<z.ZodString>;
|
|
317
317
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -322,9 +322,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
322
322
|
"pay-per-use": "pay-per-use";
|
|
323
323
|
}>>;
|
|
324
324
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
325
|
-
organization: "organization";
|
|
326
325
|
public: "public";
|
|
327
326
|
private: "private";
|
|
327
|
+
organization: "organization";
|
|
328
328
|
monetized: "monetized";
|
|
329
329
|
inherit: "inherit";
|
|
330
330
|
}>>;
|
|
@@ -347,13 +347,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
347
347
|
team_id: string | null;
|
|
348
348
|
org_id: string | null;
|
|
349
349
|
name: string;
|
|
350
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
351
|
-
source: "
|
|
350
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
351
|
+
source: "web" | "api";
|
|
352
352
|
created_at: string;
|
|
353
353
|
last_updated: string;
|
|
354
354
|
asset_type: "conversation";
|
|
355
355
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
356
|
-
visibility: "
|
|
356
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
357
357
|
metadata: {
|
|
358
358
|
members: string[];
|
|
359
359
|
doi_url?: string | null | undefined;
|
|
@@ -386,13 +386,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
386
386
|
team_id: string | null;
|
|
387
387
|
org_id: string | null;
|
|
388
388
|
name: string;
|
|
389
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
390
|
-
source: "
|
|
389
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
390
|
+
source: "web" | "api";
|
|
391
391
|
created_at: string;
|
|
392
392
|
last_updated: string;
|
|
393
393
|
asset_type: "conversation";
|
|
394
394
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
395
|
-
visibility: "
|
|
395
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
396
396
|
metadata: {
|
|
397
397
|
members: string[];
|
|
398
398
|
doi_url?: string | null | undefined;
|
|
@@ -422,40 +422,19 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
422
422
|
name_url_slug?: string | null | undefined;
|
|
423
423
|
}>>;
|
|
424
424
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
425
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
426
425
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
433
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
434
|
-
original: "original";
|
|
435
|
-
derivative: "derivative";
|
|
436
|
-
"third-party": "third-party";
|
|
437
|
-
}>>;
|
|
438
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
439
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
440
|
-
}, z.core.$strip>>;
|
|
441
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
442
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
443
|
-
name: z.ZodOptional<z.ZodString>;
|
|
426
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
427
|
+
web: "web";
|
|
428
|
+
api: "api";
|
|
429
|
+
}>>>;
|
|
430
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
444
431
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
445
|
-
organization: "organization";
|
|
446
432
|
public: "public";
|
|
447
433
|
private: "private";
|
|
434
|
+
organization: "organization";
|
|
448
435
|
monetized: "monetized";
|
|
449
436
|
inherit: "inherit";
|
|
450
437
|
}>>>;
|
|
451
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
452
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
453
|
-
text: z.ZodString;
|
|
454
|
-
}, z.core.$strip>>>>>;
|
|
455
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
456
|
-
api: "api";
|
|
457
|
-
web: "web";
|
|
458
|
-
}>>>;
|
|
459
438
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
460
439
|
none: "none";
|
|
461
440
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -463,11 +442,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
463
442
|
}>>>;
|
|
464
443
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
465
444
|
success: "success";
|
|
445
|
+
error: "error";
|
|
466
446
|
queued: "queued";
|
|
467
447
|
"in-progress": "in-progress";
|
|
468
448
|
"timed-out": "timed-out";
|
|
469
|
-
error: "error";
|
|
470
449
|
}>>>>;
|
|
450
|
+
name: z.ZodOptional<z.ZodString>;
|
|
451
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
452
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
453
|
+
text: z.ZodString;
|
|
454
|
+
}, z.core.$strip>>>>>;
|
|
455
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
471
456
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
472
457
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
473
458
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -485,31 +470,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
485
470
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
486
471
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
487
472
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
473
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
members: z.ZodArray<z.ZodString>;
|
|
475
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
479
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
original: "original";
|
|
481
|
+
derivative: "derivative";
|
|
482
|
+
"third-party": "third-party";
|
|
483
|
+
}>>;
|
|
484
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
488
487
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
488
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
489
489
|
}, z.core.$strip>, z.ZodTransform<{
|
|
490
|
-
asset_type?: "conversation" | undefined;
|
|
491
490
|
parent?: Record<string, any> | undefined;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
github_url?: string | null | undefined;
|
|
498
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
499
|
-
source?: string | null | undefined;
|
|
500
|
-
reply_to_comment_id?: string | null | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
created_at?: string | undefined;
|
|
503
|
-
last_updated?: string | undefined;
|
|
491
|
+
source?: "web" | "api" | undefined;
|
|
492
|
+
asset_type?: "conversation" | undefined;
|
|
493
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
494
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
495
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
504
496
|
name?: string | undefined;
|
|
505
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
506
497
|
description?: {
|
|
507
498
|
json: Record<string, any>;
|
|
508
499
|
text: string;
|
|
509
500
|
} | null | undefined;
|
|
510
|
-
|
|
511
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
512
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
|
+
created_at?: string | undefined;
|
|
513
502
|
parent_id?: string | null | undefined;
|
|
514
503
|
license_id?: string | undefined;
|
|
515
504
|
name_url_slug?: string | null | undefined;
|
|
@@ -521,10 +510,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
521
510
|
stripe_product_id?: string | null | undefined;
|
|
522
511
|
stripe_price_id?: string | null | undefined;
|
|
523
512
|
stripe_meter_id?: string | null | undefined;
|
|
524
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
asset_type?: "conversation" | undefined;
|
|
527
|
-
parent?: Record<string, any> | undefined;
|
|
528
513
|
metadata?: {
|
|
529
514
|
members: string[];
|
|
530
515
|
doi_url?: string | null | undefined;
|
|
@@ -535,17 +520,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
535
520
|
source?: string | null | undefined;
|
|
536
521
|
reply_to_comment_id?: string | null | undefined;
|
|
537
522
|
} | undefined;
|
|
538
|
-
|
|
523
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
539
524
|
last_updated?: string | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
parent?: Record<string, any> | undefined;
|
|
527
|
+
source?: "web" | "api" | undefined;
|
|
528
|
+
asset_type?: "conversation" | undefined;
|
|
529
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
530
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
531
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
540
532
|
name?: string | undefined;
|
|
541
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
542
533
|
description?: {
|
|
543
534
|
json: Record<string, any>;
|
|
544
535
|
text: string;
|
|
545
536
|
} | null | undefined;
|
|
546
|
-
|
|
547
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
548
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
|
+
created_at?: string | undefined;
|
|
549
538
|
parent_id?: string | null | undefined;
|
|
550
539
|
license_id?: string | undefined;
|
|
551
540
|
name_url_slug?: string | null | undefined;
|
|
@@ -557,7 +546,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
557
546
|
stripe_product_id?: string | null | undefined;
|
|
558
547
|
stripe_price_id?: string | null | undefined;
|
|
559
548
|
stripe_meter_id?: string | null | undefined;
|
|
549
|
+
metadata?: {
|
|
550
|
+
members: string[];
|
|
551
|
+
doi_url?: string | null | undefined;
|
|
552
|
+
external_url?: string | null | undefined;
|
|
553
|
+
paper_url?: string | null | undefined;
|
|
554
|
+
github_url?: string | null | undefined;
|
|
555
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
556
|
+
source?: string | null | undefined;
|
|
557
|
+
reply_to_comment_id?: string | null | undefined;
|
|
558
|
+
} | undefined;
|
|
560
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
560
|
+
last_updated?: string | undefined;
|
|
561
561
|
}>>;
|
|
562
562
|
declare const MessageSchema: z.ZodObject<{
|
|
563
563
|
id: z.ZodUUID;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-
|
|
1
|
+
export{a as ConversationSchema,b as CreateConversationSchema,d as MessageSchema,c as UpdateConversationSchema}from'../chunk-35CJDNHH.js';import'../chunk-IWOXGKK4.js';import'../chunk-SR5UZ4NP.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=conversations.js.map
|
|
2
2
|
//# sourceMappingURL=conversations.js.map
|