@ourofoundation/ouro-js 3.5.2 → 3.5.4
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-73DHYPGU.cjs +2 -0
- package/dist/chunk-73DHYPGU.cjs.map +1 -0
- package/dist/{chunk-G24BRDHO.cjs → chunk-FLOHG4H4.cjs} +2 -2
- package/dist/chunk-FLOHG4H4.cjs.map +1 -0
- package/dist/chunk-QR2BSJ2C.js +2 -0
- package/dist/chunk-QR2BSJ2C.js.map +1 -0
- package/dist/{chunk-HIXNQKVP.cjs → chunk-W73NWPCZ.cjs} +2 -2
- package/dist/chunk-W73NWPCZ.cjs.map +1 -0
- package/dist/{chunk-CIWFH5BJ.js → chunk-X2PI5PAT.js} +2 -2
- package/dist/chunk-X2PI5PAT.js.map +1 -0
- package/dist/chunk-XLJBQ7BU.js +2 -0
- package/dist/chunk-XLJBQ7BU.js.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.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 +71 -69
- package/dist/schema/conversations.d.ts +71 -69
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +186 -140
- package/dist/schema/datasets.d.ts +186 -140
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/events.cjs +1 -1
- package/dist/schema/events.d.cts +6 -1
- package/dist/schema/events.d.ts +6 -1
- package/dist/schema/events.js +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- package/dist/schema/quests.d.cts +177 -177
- package/dist/schema/quests.d.ts +177 -177
- package/dist/schema/services.d.cts +127 -127
- package/dist/schema/services.d.ts +127 -127
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/utils/quest-submission.d.cts +7 -7
- package/dist/utils/quest-submission.d.ts +7 -7
- package/package.json +1 -1
- package/dist/chunk-35CJDNHH.js +0 -2
- package/dist/chunk-35CJDNHH.js.map +0 -1
- package/dist/chunk-3UWDQLTN.js +0 -2
- package/dist/chunk-3UWDQLTN.js.map +0 -1
- package/dist/chunk-CIWFH5BJ.js.map +0 -1
- package/dist/chunk-G24BRDHO.cjs.map +0 -1
- package/dist/chunk-HIXNQKVP.cjs.map +0 -1
- package/dist/chunk-OBWPO2QT.cjs +0 -2
- package/dist/chunk-OBWPO2QT.cjs.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";
|
|
111
112
|
public: "public";
|
|
112
113
|
private: "private";
|
|
113
|
-
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
+
organization: "organization";
|
|
185
186
|
public: "public";
|
|
186
187
|
private: "private";
|
|
187
|
-
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -210,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";
|
|
214
213
|
queued: "queued";
|
|
215
214
|
"in-progress": "in-progress";
|
|
216
215
|
"timed-out": "timed-out";
|
|
216
|
+
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
web: "web";
|
|
220
219
|
api: "api";
|
|
220
|
+
web: "web";
|
|
221
221
|
}>;
|
|
222
222
|
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
|
-
organization: "organization";
|
|
227
|
-
file: "file";
|
|
228
226
|
user: "user";
|
|
227
|
+
organization: "organization";
|
|
229
228
|
team: "team";
|
|
230
229
|
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";
|
|
308
307
|
queued: "queued";
|
|
309
308
|
"in-progress": "in-progress";
|
|
310
309
|
"timed-out": "timed-out";
|
|
310
|
+
error: "error";
|
|
311
311
|
}>>>;
|
|
312
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
313
|
-
web: "web";
|
|
314
313
|
api: "api";
|
|
314
|
+
web: "web";
|
|
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";
|
|
325
326
|
public: "public";
|
|
326
327
|
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" | "
|
|
351
|
-
source: "
|
|
350
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
351
|
+
source: "api" | "web";
|
|
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: "organization" | "public" | "private" | "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" | "
|
|
390
|
-
source: "
|
|
389
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
390
|
+
source: "api" | "web";
|
|
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: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
396
396
|
metadata: {
|
|
397
397
|
members: string[];
|
|
398
398
|
doi_url?: string | null | undefined;
|
|
@@ -422,19 +422,40 @@ 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
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
427
|
-
web: "web";
|
|
428
|
-
api: "api";
|
|
429
|
-
}>>>;
|
|
430
425
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
426
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
427
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
members: z.ZodArray<z.ZodString>;
|
|
429
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
430
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
431
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
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>;
|
|
431
444
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
445
|
+
organization: "organization";
|
|
432
446
|
public: "public";
|
|
433
447
|
private: "private";
|
|
434
|
-
organization: "organization";
|
|
435
448
|
monetized: "monetized";
|
|
436
449
|
inherit: "inherit";
|
|
437
450
|
}>>>;
|
|
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
|
+
}>>>;
|
|
438
459
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
439
460
|
none: "none";
|
|
440
461
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -442,17 +463,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
442
463
|
}>>>;
|
|
443
464
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
444
465
|
success: "success";
|
|
445
|
-
error: "error";
|
|
446
466
|
queued: "queued";
|
|
447
467
|
"in-progress": "in-progress";
|
|
448
468
|
"timed-out": "timed-out";
|
|
469
|
+
error: "error";
|
|
449
470
|
}>>>>;
|
|
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>>;
|
|
456
471
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
457
472
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
458
473
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -470,35 +485,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
470
485
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
471
486
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
472
487
|
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
488
|
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
|
-
parent?: Record<string, any> | undefined;
|
|
491
|
-
source?: "web" | "api" | undefined;
|
|
492
490
|
asset_type?: "conversation" | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
parent?: Record<string, any> | undefined;
|
|
492
|
+
metadata?: {
|
|
493
|
+
members: string[];
|
|
494
|
+
doi_url?: string | null | undefined;
|
|
495
|
+
external_url?: string | null | undefined;
|
|
496
|
+
paper_url?: string | null | undefined;
|
|
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;
|
|
496
504
|
name?: string | undefined;
|
|
505
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
497
506
|
description?: {
|
|
498
507
|
json: Record<string, any>;
|
|
499
508
|
text: string;
|
|
500
509
|
} | null | undefined;
|
|
501
|
-
|
|
510
|
+
source?: "api" | "web" | undefined;
|
|
511
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
512
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
502
513
|
parent_id?: string | null | undefined;
|
|
503
514
|
license_id?: string | undefined;
|
|
504
515
|
name_url_slug?: string | null | undefined;
|
|
@@ -510,6 +521,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
510
521
|
stripe_product_id?: string | null | undefined;
|
|
511
522
|
stripe_price_id?: string | null | undefined;
|
|
512
523
|
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;
|
|
513
528
|
metadata?: {
|
|
514
529
|
members: string[];
|
|
515
530
|
doi_url?: string | null | undefined;
|
|
@@ -520,21 +535,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
535
|
source?: string | null | undefined;
|
|
521
536
|
reply_to_comment_id?: string | null | undefined;
|
|
522
537
|
} | undefined;
|
|
523
|
-
|
|
538
|
+
created_at?: string | undefined;
|
|
524
539
|
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;
|
|
532
540
|
name?: string | undefined;
|
|
541
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
533
542
|
description?: {
|
|
534
543
|
json: Record<string, any>;
|
|
535
544
|
text: string;
|
|
536
545
|
} | null | undefined;
|
|
537
|
-
|
|
546
|
+
source?: "api" | "web" | undefined;
|
|
547
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
548
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
538
549
|
parent_id?: string | null | undefined;
|
|
539
550
|
license_id?: string | undefined;
|
|
540
551
|
name_url_slug?: string | null | undefined;
|
|
@@ -546,22 +557,13 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
546
557
|
stripe_product_id?: string | null | undefined;
|
|
547
558
|
stripe_price_id?: string | null | undefined;
|
|
548
559
|
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
560
|
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;
|
|
564
564
|
conversation_id: z.ZodUUID;
|
|
565
|
+
turn_id: z.ZodUUID;
|
|
566
|
+
seq: z.ZodNumber;
|
|
565
567
|
user_id: z.ZodUUID;
|
|
566
568
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
567
569
|
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";
|
|
111
112
|
public: "public";
|
|
112
113
|
private: "private";
|
|
113
|
-
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
+
organization: "organization";
|
|
185
186
|
public: "public";
|
|
186
187
|
private: "private";
|
|
187
|
-
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -210,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";
|
|
214
213
|
queued: "queued";
|
|
215
214
|
"in-progress": "in-progress";
|
|
216
215
|
"timed-out": "timed-out";
|
|
216
|
+
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
web: "web";
|
|
220
219
|
api: "api";
|
|
220
|
+
web: "web";
|
|
221
221
|
}>;
|
|
222
222
|
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
|
-
organization: "organization";
|
|
227
|
-
file: "file";
|
|
228
226
|
user: "user";
|
|
227
|
+
organization: "organization";
|
|
229
228
|
team: "team";
|
|
230
229
|
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";
|
|
308
307
|
queued: "queued";
|
|
309
308
|
"in-progress": "in-progress";
|
|
310
309
|
"timed-out": "timed-out";
|
|
310
|
+
error: "error";
|
|
311
311
|
}>>>;
|
|
312
312
|
source: z.ZodDefault<z.ZodEnum<{
|
|
313
|
-
web: "web";
|
|
314
313
|
api: "api";
|
|
314
|
+
web: "web";
|
|
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";
|
|
325
326
|
public: "public";
|
|
326
327
|
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" | "
|
|
351
|
-
source: "
|
|
350
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
351
|
+
source: "api" | "web";
|
|
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: "organization" | "public" | "private" | "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" | "
|
|
390
|
-
source: "
|
|
389
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
390
|
+
source: "api" | "web";
|
|
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: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
396
396
|
metadata: {
|
|
397
397
|
members: string[];
|
|
398
398
|
doi_url?: string | null | undefined;
|
|
@@ -422,19 +422,40 @@ 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
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
427
|
-
web: "web";
|
|
428
|
-
api: "api";
|
|
429
|
-
}>>>;
|
|
430
425
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
426
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
427
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
members: z.ZodArray<z.ZodString>;
|
|
429
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
430
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
431
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
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>;
|
|
431
444
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
445
|
+
organization: "organization";
|
|
432
446
|
public: "public";
|
|
433
447
|
private: "private";
|
|
434
|
-
organization: "organization";
|
|
435
448
|
monetized: "monetized";
|
|
436
449
|
inherit: "inherit";
|
|
437
450
|
}>>>;
|
|
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
|
+
}>>>;
|
|
438
459
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
439
460
|
none: "none";
|
|
440
461
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -442,17 +463,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
442
463
|
}>>>;
|
|
443
464
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
444
465
|
success: "success";
|
|
445
|
-
error: "error";
|
|
446
466
|
queued: "queued";
|
|
447
467
|
"in-progress": "in-progress";
|
|
448
468
|
"timed-out": "timed-out";
|
|
469
|
+
error: "error";
|
|
449
470
|
}>>>>;
|
|
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>>;
|
|
456
471
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
457
472
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
458
473
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -470,35 +485,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
470
485
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
471
486
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
472
487
|
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
488
|
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
|
-
parent?: Record<string, any> | undefined;
|
|
491
|
-
source?: "web" | "api" | undefined;
|
|
492
490
|
asset_type?: "conversation" | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
parent?: Record<string, any> | undefined;
|
|
492
|
+
metadata?: {
|
|
493
|
+
members: string[];
|
|
494
|
+
doi_url?: string | null | undefined;
|
|
495
|
+
external_url?: string | null | undefined;
|
|
496
|
+
paper_url?: string | null | undefined;
|
|
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;
|
|
496
504
|
name?: string | undefined;
|
|
505
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
497
506
|
description?: {
|
|
498
507
|
json: Record<string, any>;
|
|
499
508
|
text: string;
|
|
500
509
|
} | null | undefined;
|
|
501
|
-
|
|
510
|
+
source?: "api" | "web" | undefined;
|
|
511
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
512
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
502
513
|
parent_id?: string | null | undefined;
|
|
503
514
|
license_id?: string | undefined;
|
|
504
515
|
name_url_slug?: string | null | undefined;
|
|
@@ -510,6 +521,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
510
521
|
stripe_product_id?: string | null | undefined;
|
|
511
522
|
stripe_price_id?: string | null | undefined;
|
|
512
523
|
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;
|
|
513
528
|
metadata?: {
|
|
514
529
|
members: string[];
|
|
515
530
|
doi_url?: string | null | undefined;
|
|
@@ -520,21 +535,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
535
|
source?: string | null | undefined;
|
|
521
536
|
reply_to_comment_id?: string | null | undefined;
|
|
522
537
|
} | undefined;
|
|
523
|
-
|
|
538
|
+
created_at?: string | undefined;
|
|
524
539
|
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;
|
|
532
540
|
name?: string | undefined;
|
|
541
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
533
542
|
description?: {
|
|
534
543
|
json: Record<string, any>;
|
|
535
544
|
text: string;
|
|
536
545
|
} | null | undefined;
|
|
537
|
-
|
|
546
|
+
source?: "api" | "web" | undefined;
|
|
547
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
548
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
538
549
|
parent_id?: string | null | undefined;
|
|
539
550
|
license_id?: string | undefined;
|
|
540
551
|
name_url_slug?: string | null | undefined;
|
|
@@ -546,22 +557,13 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
546
557
|
stripe_product_id?: string | null | undefined;
|
|
547
558
|
stripe_price_id?: string | null | undefined;
|
|
548
559
|
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
560
|
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;
|
|
564
564
|
conversation_id: z.ZodUUID;
|
|
565
|
+
turn_id: z.ZodUUID;
|
|
566
|
+
seq: z.ZodNumber;
|
|
565
567
|
user_id: z.ZodUUID;
|
|
566
568
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
567
569
|
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-QR2BSJ2C.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 chunk73DHYPGU_cjs=require('../chunk-73DHYPGU.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 chunk73DHYPGU_cjs.g}});Object.defineProperty(exports,"CreateDatasetFromSchemaSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.h}});Object.defineProperty(exports,"DatasetAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.a}});Object.defineProperty(exports,"DatasetEnumColumnsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.b}});Object.defineProperty(exports,"DatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.f}});Object.defineProperty(exports,"EnrichedDatasetSchemaFieldSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.c}});Object.defineProperty(exports,"ResolvedAssetRefSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.d}});Object.defineProperty(exports,"ResolvedAssetRefsSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.e}});Object.defineProperty(exports,"updateDatasetSchema",{enumerable:true,get:function(){return chunk73DHYPGU_cjs.i}});//# sourceMappingURL=datasets.cjs.map
|
|
2
2
|
//# sourceMappingURL=datasets.cjs.map
|