@ourofoundation/ouro-js 3.5.0 → 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-BFBGVGNF.js → chunk-35CJDNHH.js} +2 -2
- package/dist/{chunk-BFBGVGNF.js.map → chunk-35CJDNHH.js.map} +1 -1
- package/dist/chunk-3UWDQLTN.js +2 -0
- package/dist/chunk-3UWDQLTN.js.map +1 -0
- package/dist/chunk-6GPIZJ4T.cjs +2 -0
- package/dist/chunk-6GPIZJ4T.cjs.map +1 -0
- package/dist/{chunk-CONKY65O.cjs → chunk-6ZJQTECB.cjs} +2 -2
- package/dist/{chunk-CONKY65O.cjs.map → chunk-6ZJQTECB.cjs.map} +1 -1
- package/dist/{chunk-XWXLCG4E.cjs → chunk-BWAEBQKV.cjs} +2 -2
- package/dist/chunk-BWAEBQKV.cjs.map +1 -0
- package/dist/chunk-F5CWCYOP.cjs +2 -0
- package/dist/chunk-F5CWCYOP.cjs.map +1 -0
- package/dist/{chunk-QT3A4ULM.cjs → chunk-FRMPLGE4.cjs} +2 -2
- package/dist/{chunk-QT3A4ULM.cjs.map → chunk-FRMPLGE4.cjs.map} +1 -1
- package/dist/{chunk-6YF2RSXS.js → chunk-G3VMEPTP.js} +2 -2
- package/dist/{chunk-6YF2RSXS.js.map → chunk-G3VMEPTP.js.map} +1 -1
- package/dist/chunk-HIXNQKVP.cjs +2 -0
- package/dist/{chunk-NEINJFFK.cjs.map → chunk-HIXNQKVP.cjs.map} +1 -1
- package/dist/chunk-IWOXGKK4.js +2 -0
- 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-OBWPO2QT.cjs +2 -0
- package/dist/chunk-OBWPO2QT.cjs.map +1 -0
- package/dist/{chunk-Z3ALIFYO.js → chunk-R2W4NEEJ.js} +2 -2
- package/dist/chunk-R2W4NEEJ.js.map +1 -0
- package/dist/{chunk-IP4OVRZB.cjs → chunk-ROMY5WNQ.cjs} +2 -2
- package/dist/chunk-ROMY5WNQ.cjs.map +1 -0
- package/dist/chunk-SR5UZ4NP.js +2 -0
- package/dist/chunk-SR5UZ4NP.js.map +1 -0
- package/dist/{chunk-JKTQY4RU.js → chunk-TYOQ32UV.js} +2 -2
- package/dist/{chunk-JKTQY4RU.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.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +85 -84
- package/dist/schema/assets.d.ts +85 -84
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +140 -136
- package/dist/schema/comments.d.ts +140 -136
- package/dist/schema/comments.js +1 -1
- 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 +70 -69
- package/dist/schema/conversations.d.ts +70 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +283 -107
- package/dist/schema/datasets.d.ts +283 -107
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +101 -100
- package/dist/schema/files.d.ts +101 -100
- 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 +131 -129
- package/dist/schema/posts.d.ts +131 -129
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +178 -177
- package/dist/schema/quests.d.ts +178 -177
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +131 -127
- package/dist/schema/services.d.ts +131 -127
- 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-7F26V24D.js +0 -2
- package/dist/chunk-7F26V24D.js.map +0 -1
- package/dist/chunk-B4225TEG.js +0 -2
- package/dist/chunk-B4225TEG.js.map +0 -1
- package/dist/chunk-BQ5WODME.cjs +0 -2
- package/dist/chunk-BQ5WODME.cjs.map +0 -1
- package/dist/chunk-G2MXCB7Q.js +0 -2
- package/dist/chunk-G2MXCB7Q.js.map +0 -1
- package/dist/chunk-IP4OVRZB.cjs.map +0 -1
- package/dist/chunk-JW7FACNZ.cjs +0 -2
- package/dist/chunk-JW7FACNZ.cjs.map +0 -1
- package/dist/chunk-MH4A7XAY.cjs +0 -2
- package/dist/chunk-MH4A7XAY.cjs.map +0 -1
- package/dist/chunk-NEINJFFK.cjs +0 -2
- package/dist/chunk-U3F23ASS.js +0 -2
- package/dist/chunk-U3F23ASS.js.map +0 -1
- package/dist/chunk-WUC5AUUJ.cjs +0 -2
- package/dist/chunk-WUC5AUUJ.cjs.map +0 -1
- package/dist/chunk-XWXLCG4E.cjs.map +0 -1
- package/dist/chunk-Y6AKG4FJ.js +0 -2
- package/dist/chunk-Y6AKG4FJ.js.map +0 -1
- package/dist/chunk-Z3ALIFYO.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,23 +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
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
223
|
created_at: z.ZodString;
|
|
223
224
|
last_updated: z.ZodString;
|
|
224
225
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
user: "user";
|
|
226
226
|
organization: "organization";
|
|
227
|
+
file: "file";
|
|
228
|
+
user: "user";
|
|
227
229
|
team: "team";
|
|
228
230
|
dataset: "dataset";
|
|
229
|
-
file: "file";
|
|
230
231
|
service: "service";
|
|
231
232
|
route: "route";
|
|
232
233
|
post: "post";
|
|
@@ -303,14 +304,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
303
304
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
305
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
305
306
|
success: "success";
|
|
307
|
+
error: "error";
|
|
306
308
|
queued: "queued";
|
|
307
309
|
"in-progress": "in-progress";
|
|
308
310
|
"timed-out": "timed-out";
|
|
309
|
-
error: "error";
|
|
310
311
|
}>>>;
|
|
311
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
312
|
-
api: "api";
|
|
313
313
|
web: "web";
|
|
314
|
+
api: "api";
|
|
314
315
|
}>>;
|
|
315
316
|
created_at: z.ZodDefault<z.ZodString>;
|
|
316
317
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -321,9 +322,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
321
322
|
"pay-per-use": "pay-per-use";
|
|
322
323
|
}>>;
|
|
323
324
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
324
|
-
organization: "organization";
|
|
325
325
|
public: "public";
|
|
326
326
|
private: "private";
|
|
327
|
+
organization: "organization";
|
|
327
328
|
monetized: "monetized";
|
|
328
329
|
inherit: "inherit";
|
|
329
330
|
}>>;
|
|
@@ -346,13 +347,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
346
347
|
team_id: string | null;
|
|
347
348
|
org_id: string | null;
|
|
348
349
|
name: string;
|
|
349
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
350
|
-
source: "
|
|
350
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
351
|
+
source: "web" | "api";
|
|
351
352
|
created_at: string;
|
|
352
353
|
last_updated: string;
|
|
353
354
|
asset_type: "conversation";
|
|
354
355
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
355
|
-
visibility: "
|
|
356
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
356
357
|
metadata: {
|
|
357
358
|
members: string[];
|
|
358
359
|
doi_url?: string | null | undefined;
|
|
@@ -385,13 +386,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
385
386
|
team_id: string | null;
|
|
386
387
|
org_id: string | null;
|
|
387
388
|
name: string;
|
|
388
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
389
|
-
source: "
|
|
389
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
390
|
+
source: "web" | "api";
|
|
390
391
|
created_at: string;
|
|
391
392
|
last_updated: string;
|
|
392
393
|
asset_type: "conversation";
|
|
393
394
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
394
|
-
visibility: "
|
|
395
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
395
396
|
metadata: {
|
|
396
397
|
members: string[];
|
|
397
398
|
doi_url?: string | null | undefined;
|
|
@@ -421,40 +422,19 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
421
422
|
name_url_slug?: string | null | undefined;
|
|
422
423
|
}>>;
|
|
423
424
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
424
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
425
425
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
432
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
433
|
-
original: "original";
|
|
434
|
-
derivative: "derivative";
|
|
435
|
-
"third-party": "third-party";
|
|
436
|
-
}>>;
|
|
437
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
438
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
439
|
-
}, z.core.$strip>>;
|
|
440
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
441
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
442
|
-
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">>>;
|
|
443
431
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
444
|
-
organization: "organization";
|
|
445
432
|
public: "public";
|
|
446
433
|
private: "private";
|
|
434
|
+
organization: "organization";
|
|
447
435
|
monetized: "monetized";
|
|
448
436
|
inherit: "inherit";
|
|
449
437
|
}>>>;
|
|
450
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
451
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
452
|
-
text: z.ZodString;
|
|
453
|
-
}, z.core.$strip>>>>>;
|
|
454
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
455
|
-
api: "api";
|
|
456
|
-
web: "web";
|
|
457
|
-
}>>>;
|
|
458
438
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
459
439
|
none: "none";
|
|
460
440
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -462,11 +442,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
462
442
|
}>>>;
|
|
463
443
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
464
444
|
success: "success";
|
|
445
|
+
error: "error";
|
|
465
446
|
queued: "queued";
|
|
466
447
|
"in-progress": "in-progress";
|
|
467
448
|
"timed-out": "timed-out";
|
|
468
|
-
error: "error";
|
|
469
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>>;
|
|
470
456
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
471
457
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
472
458
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -484,31 +470,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
484
470
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
485
471
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
486
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>>;
|
|
487
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>>;
|
|
488
489
|
}, z.core.$strip>, z.ZodTransform<{
|
|
489
|
-
asset_type?: "conversation" | undefined;
|
|
490
490
|
parent?: Record<string, any> | undefined;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
github_url?: string | null | undefined;
|
|
497
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
498
|
-
source?: string | null | undefined;
|
|
499
|
-
reply_to_comment_id?: string | null | undefined;
|
|
500
|
-
} | undefined;
|
|
501
|
-
created_at?: string | undefined;
|
|
502
|
-
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;
|
|
503
496
|
name?: string | undefined;
|
|
504
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
505
497
|
description?: {
|
|
506
498
|
json: Record<string, any>;
|
|
507
499
|
text: string;
|
|
508
500
|
} | null | undefined;
|
|
509
|
-
|
|
510
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
511
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
|
+
created_at?: string | undefined;
|
|
512
502
|
parent_id?: string | null | undefined;
|
|
513
503
|
license_id?: string | undefined;
|
|
514
504
|
name_url_slug?: string | null | undefined;
|
|
@@ -520,10 +510,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
510
|
stripe_product_id?: string | null | undefined;
|
|
521
511
|
stripe_price_id?: string | null | undefined;
|
|
522
512
|
stripe_meter_id?: string | null | undefined;
|
|
523
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
asset_type?: "conversation" | undefined;
|
|
526
|
-
parent?: Record<string, any> | undefined;
|
|
527
513
|
metadata?: {
|
|
528
514
|
members: string[];
|
|
529
515
|
doi_url?: string | null | undefined;
|
|
@@ -534,17 +520,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
534
520
|
source?: string | null | undefined;
|
|
535
521
|
reply_to_comment_id?: string | null | undefined;
|
|
536
522
|
} | undefined;
|
|
537
|
-
|
|
523
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
538
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;
|
|
539
532
|
name?: string | undefined;
|
|
540
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
541
533
|
description?: {
|
|
542
534
|
json: Record<string, any>;
|
|
543
535
|
text: string;
|
|
544
536
|
} | null | undefined;
|
|
545
|
-
|
|
546
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
547
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
|
+
created_at?: string | undefined;
|
|
548
538
|
parent_id?: string | null | undefined;
|
|
549
539
|
license_id?: string | undefined;
|
|
550
540
|
name_url_slug?: string | null | undefined;
|
|
@@ -556,7 +546,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
556
546
|
stripe_product_id?: string | null | undefined;
|
|
557
547
|
stripe_price_id?: string | null | undefined;
|
|
558
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;
|
|
559
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
560
|
+
last_updated?: string | undefined;
|
|
560
561
|
}>>;
|
|
561
562
|
declare const MessageSchema: z.ZodObject<{
|
|
562
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,23 +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
|
+
is_pinned_in_team: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
223
|
created_at: z.ZodString;
|
|
223
224
|
last_updated: z.ZodString;
|
|
224
225
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
user: "user";
|
|
226
226
|
organization: "organization";
|
|
227
|
+
file: "file";
|
|
228
|
+
user: "user";
|
|
227
229
|
team: "team";
|
|
228
230
|
dataset: "dataset";
|
|
229
|
-
file: "file";
|
|
230
231
|
service: "service";
|
|
231
232
|
route: "route";
|
|
232
233
|
post: "post";
|
|
@@ -303,14 +304,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
303
304
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
305
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
305
306
|
success: "success";
|
|
307
|
+
error: "error";
|
|
306
308
|
queued: "queued";
|
|
307
309
|
"in-progress": "in-progress";
|
|
308
310
|
"timed-out": "timed-out";
|
|
309
|
-
error: "error";
|
|
310
311
|
}>>>;
|
|
311
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
312
|
-
api: "api";
|
|
313
313
|
web: "web";
|
|
314
|
+
api: "api";
|
|
314
315
|
}>>;
|
|
315
316
|
created_at: z.ZodDefault<z.ZodString>;
|
|
316
317
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -321,9 +322,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
321
322
|
"pay-per-use": "pay-per-use";
|
|
322
323
|
}>>;
|
|
323
324
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
324
|
-
organization: "organization";
|
|
325
325
|
public: "public";
|
|
326
326
|
private: "private";
|
|
327
|
+
organization: "organization";
|
|
327
328
|
monetized: "monetized";
|
|
328
329
|
inherit: "inherit";
|
|
329
330
|
}>>;
|
|
@@ -346,13 +347,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
346
347
|
team_id: string | null;
|
|
347
348
|
org_id: string | null;
|
|
348
349
|
name: string;
|
|
349
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
350
|
-
source: "
|
|
350
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
351
|
+
source: "web" | "api";
|
|
351
352
|
created_at: string;
|
|
352
353
|
last_updated: string;
|
|
353
354
|
asset_type: "conversation";
|
|
354
355
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
355
|
-
visibility: "
|
|
356
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
356
357
|
metadata: {
|
|
357
358
|
members: string[];
|
|
358
359
|
doi_url?: string | null | undefined;
|
|
@@ -385,13 +386,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
385
386
|
team_id: string | null;
|
|
386
387
|
org_id: string | null;
|
|
387
388
|
name: string;
|
|
388
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
389
|
-
source: "
|
|
389
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
390
|
+
source: "web" | "api";
|
|
390
391
|
created_at: string;
|
|
391
392
|
last_updated: string;
|
|
392
393
|
asset_type: "conversation";
|
|
393
394
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
394
|
-
visibility: "
|
|
395
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
395
396
|
metadata: {
|
|
396
397
|
members: string[];
|
|
397
398
|
doi_url?: string | null | undefined;
|
|
@@ -421,40 +422,19 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
421
422
|
name_url_slug?: string | null | undefined;
|
|
422
423
|
}>>;
|
|
423
424
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
424
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
425
425
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
432
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
433
|
-
original: "original";
|
|
434
|
-
derivative: "derivative";
|
|
435
|
-
"third-party": "third-party";
|
|
436
|
-
}>>;
|
|
437
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
438
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
439
|
-
}, z.core.$strip>>;
|
|
440
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
441
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
442
|
-
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">>>;
|
|
443
431
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
444
|
-
organization: "organization";
|
|
445
432
|
public: "public";
|
|
446
433
|
private: "private";
|
|
434
|
+
organization: "organization";
|
|
447
435
|
monetized: "monetized";
|
|
448
436
|
inherit: "inherit";
|
|
449
437
|
}>>>;
|
|
450
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
451
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
452
|
-
text: z.ZodString;
|
|
453
|
-
}, z.core.$strip>>>>>;
|
|
454
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
455
|
-
api: "api";
|
|
456
|
-
web: "web";
|
|
457
|
-
}>>>;
|
|
458
438
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
459
439
|
none: "none";
|
|
460
440
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -462,11 +442,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
462
442
|
}>>>;
|
|
463
443
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
464
444
|
success: "success";
|
|
445
|
+
error: "error";
|
|
465
446
|
queued: "queued";
|
|
466
447
|
"in-progress": "in-progress";
|
|
467
448
|
"timed-out": "timed-out";
|
|
468
|
-
error: "error";
|
|
469
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>>;
|
|
470
456
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
471
457
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
472
458
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -484,31 +470,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
484
470
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
485
471
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
486
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>>;
|
|
487
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>>;
|
|
488
489
|
}, z.core.$strip>, z.ZodTransform<{
|
|
489
|
-
asset_type?: "conversation" | undefined;
|
|
490
490
|
parent?: Record<string, any> | undefined;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
github_url?: string | null | undefined;
|
|
497
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
498
|
-
source?: string | null | undefined;
|
|
499
|
-
reply_to_comment_id?: string | null | undefined;
|
|
500
|
-
} | undefined;
|
|
501
|
-
created_at?: string | undefined;
|
|
502
|
-
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;
|
|
503
496
|
name?: string | undefined;
|
|
504
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
505
497
|
description?: {
|
|
506
498
|
json: Record<string, any>;
|
|
507
499
|
text: string;
|
|
508
500
|
} | null | undefined;
|
|
509
|
-
|
|
510
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
511
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
|
+
created_at?: string | undefined;
|
|
512
502
|
parent_id?: string | null | undefined;
|
|
513
503
|
license_id?: string | undefined;
|
|
514
504
|
name_url_slug?: string | null | undefined;
|
|
@@ -520,10 +510,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
510
|
stripe_product_id?: string | null | undefined;
|
|
521
511
|
stripe_price_id?: string | null | undefined;
|
|
522
512
|
stripe_meter_id?: string | null | undefined;
|
|
523
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
asset_type?: "conversation" | undefined;
|
|
526
|
-
parent?: Record<string, any> | undefined;
|
|
527
513
|
metadata?: {
|
|
528
514
|
members: string[];
|
|
529
515
|
doi_url?: string | null | undefined;
|
|
@@ -534,17 +520,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
534
520
|
source?: string | null | undefined;
|
|
535
521
|
reply_to_comment_id?: string | null | undefined;
|
|
536
522
|
} | undefined;
|
|
537
|
-
|
|
523
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
538
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;
|
|
539
532
|
name?: string | undefined;
|
|
540
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
541
533
|
description?: {
|
|
542
534
|
json: Record<string, any>;
|
|
543
535
|
text: string;
|
|
544
536
|
} | null | undefined;
|
|
545
|
-
|
|
546
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
547
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
|
+
created_at?: string | undefined;
|
|
548
538
|
parent_id?: string | null | undefined;
|
|
549
539
|
license_id?: string | undefined;
|
|
550
540
|
name_url_slug?: string | null | undefined;
|
|
@@ -556,7 +546,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
556
546
|
stripe_product_id?: string | null | undefined;
|
|
557
547
|
stripe_price_id?: string | null | undefined;
|
|
558
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;
|
|
559
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
560
|
+
last_updated?: string | undefined;
|
|
560
561
|
}>>;
|
|
561
562
|
declare const MessageSchema: z.ZodObject<{
|
|
562
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
|
package/dist/schema/datasets.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOBWPO2QT_cjs=require('../chunk-OBWPO2QT.cjs');require('../chunk-ROMY5WNQ.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"CreateDatasetFromFileSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.f}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.g}});Object.defineProperty(exports,"DatasetAssetRefsSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.a}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.e}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.b}});Object.defineProperty(exports,"ResolvedAssetRefSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.c}});Object.defineProperty(exports,"ResolvedAssetRefsSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.d}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunkOBWPO2QT_cjs.h}});//# sourceMappingURL=datasets.cjs.map
|
|
2
2
|
//# sourceMappingURL=datasets.cjs.map
|