@ourofoundation/ouro-js 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-36UOEIZN.js +2 -0
- package/dist/chunk-36UOEIZN.js.map +1 -0
- package/dist/chunk-4KDHR4VP.js +2 -0
- package/dist/chunk-4KDHR4VP.js.map +1 -0
- package/dist/chunk-IU7AKVYI.cjs +2 -0
- package/dist/chunk-IU7AKVYI.cjs.map +1 -0
- package/dist/chunk-NRZCTFCQ.cjs +2 -0
- package/dist/chunk-NRZCTFCQ.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +84 -84
- package/dist/schema/assets.d.ts +84 -84
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/common.d.cts +16 -16
- package/dist/schema/common.d.ts +16 -16
- package/dist/schema/conversations.d.cts +69 -69
- package/dist/schema/conversations.d.ts +69 -69
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/notifications.d.cts +2 -2
- package/dist/schema/notifications.d.ts +2 -2
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/posts.d.cts +127 -127
- package/dist/schema/posts.d.ts +127 -127
- package/dist/schema/quests.cjs +2 -0
- package/dist/schema/quests.cjs.map +1 -0
- package/dist/schema/quests.d.cts +1140 -0
- package/dist/schema/quests.d.ts +1140 -0
- package/dist/schema/quests.js +2 -0
- package/dist/schema/quests.js.map +1 -0
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +159 -120
- package/dist/schema/services.d.ts +159 -120
- package/dist/schema/services.js +1 -1
- package/dist/schema/tags.d.cts +7 -7
- package/dist/schema/tags.d.ts +7 -7
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/package.json +1 -1
- package/dist/chunk-42EQ7ULD.cjs +0 -2
- package/dist/chunk-42EQ7ULD.cjs.map +0 -1
- package/dist/chunk-FDKZIS34.js +0 -2
- package/dist/chunk-FDKZIS34.js.map +0 -1
|
@@ -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,23 +210,23 @@ 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
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
224
224
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
organization: "organization";
|
|
226
|
-
file: "file";
|
|
227
225
|
user: "user";
|
|
226
|
+
organization: "organization";
|
|
228
227
|
team: "team";
|
|
229
228
|
dataset: "dataset";
|
|
229
|
+
file: "file";
|
|
230
230
|
service: "service";
|
|
231
231
|
route: "route";
|
|
232
232
|
post: "post";
|
|
@@ -303,14 +303,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
303
303
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
304
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
305
305
|
success: "success";
|
|
306
|
-
error: "error";
|
|
307
306
|
queued: "queued";
|
|
308
307
|
"in-progress": "in-progress";
|
|
309
308
|
"timed-out": "timed-out";
|
|
309
|
+
error: "error";
|
|
310
310
|
}>>>;
|
|
311
311
|
source: z.ZodDefault<z.ZodEnum<{
|
|
312
|
-
web: "web";
|
|
313
312
|
api: "api";
|
|
313
|
+
web: "web";
|
|
314
314
|
}>>;
|
|
315
315
|
created_at: z.ZodDefault<z.ZodString>;
|
|
316
316
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -321,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
321
321
|
"pay-per-use": "pay-per-use";
|
|
322
322
|
}>>;
|
|
323
323
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
324
|
+
organization: "organization";
|
|
324
325
|
public: "public";
|
|
325
326
|
private: "private";
|
|
326
|
-
organization: "organization";
|
|
327
327
|
monetized: "monetized";
|
|
328
328
|
inherit: "inherit";
|
|
329
329
|
}>>;
|
|
@@ -346,13 +346,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
346
346
|
team_id: string | null;
|
|
347
347
|
org_id: string | null;
|
|
348
348
|
name: string;
|
|
349
|
-
state: "success" | "
|
|
350
|
-
source: "
|
|
349
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
350
|
+
source: "api" | "web";
|
|
351
351
|
created_at: string;
|
|
352
352
|
last_updated: string;
|
|
353
353
|
asset_type: "conversation";
|
|
354
354
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
355
|
-
visibility: "
|
|
355
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
356
356
|
metadata: {
|
|
357
357
|
members: string[];
|
|
358
358
|
doi_url?: string | null | undefined;
|
|
@@ -385,13 +385,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
385
385
|
team_id: string | null;
|
|
386
386
|
org_id: string | null;
|
|
387
387
|
name: string;
|
|
388
|
-
state: "success" | "
|
|
389
|
-
source: "
|
|
388
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
389
|
+
source: "api" | "web";
|
|
390
390
|
created_at: string;
|
|
391
391
|
last_updated: string;
|
|
392
392
|
asset_type: "conversation";
|
|
393
393
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
394
|
-
visibility: "
|
|
394
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
395
395
|
metadata: {
|
|
396
396
|
members: string[];
|
|
397
397
|
doi_url?: string | null | undefined;
|
|
@@ -421,19 +421,40 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
421
421
|
name_url_slug?: string | null | undefined;
|
|
422
422
|
}>>;
|
|
423
423
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
424
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
425
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
426
|
-
web: "web";
|
|
427
|
-
api: "api";
|
|
428
|
-
}>>>;
|
|
429
424
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
425
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
members: z.ZodArray<z.ZodString>;
|
|
428
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
429
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
430
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
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>;
|
|
430
443
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
444
|
+
organization: "organization";
|
|
431
445
|
public: "public";
|
|
432
446
|
private: "private";
|
|
433
|
-
organization: "organization";
|
|
434
447
|
monetized: "monetized";
|
|
435
448
|
inherit: "inherit";
|
|
436
449
|
}>>>;
|
|
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
|
+
}>>>;
|
|
437
458
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
438
459
|
none: "none";
|
|
439
460
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -441,17 +462,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
441
462
|
}>>>;
|
|
442
463
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
443
464
|
success: "success";
|
|
444
|
-
error: "error";
|
|
445
465
|
queued: "queued";
|
|
446
466
|
"in-progress": "in-progress";
|
|
447
467
|
"timed-out": "timed-out";
|
|
468
|
+
error: "error";
|
|
448
469
|
}>>>>;
|
|
449
|
-
name: z.ZodOptional<z.ZodString>;
|
|
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
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
455
470
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
456
471
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
457
472
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -469,35 +484,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
469
484
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
470
485
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
471
486
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
472
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
473
|
-
members: z.ZodArray<z.ZodString>;
|
|
474
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
475
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
479
|
-
original: "original";
|
|
480
|
-
derivative: "derivative";
|
|
481
|
-
"third-party": "third-party";
|
|
482
|
-
}>>;
|
|
483
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
484
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
-
}, z.core.$strip>>;
|
|
486
487
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
487
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
488
488
|
}, z.core.$strip>, z.ZodTransform<{
|
|
489
|
-
parent?: Record<string, any> | undefined;
|
|
490
|
-
source?: "web" | "api" | undefined;
|
|
491
489
|
asset_type?: "conversation" | undefined;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
490
|
+
parent?: Record<string, any> | undefined;
|
|
491
|
+
metadata?: {
|
|
492
|
+
members: string[];
|
|
493
|
+
doi_url?: string | null | undefined;
|
|
494
|
+
external_url?: string | null | undefined;
|
|
495
|
+
paper_url?: string | null | undefined;
|
|
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;
|
|
495
503
|
name?: string | undefined;
|
|
504
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
496
505
|
description?: {
|
|
497
506
|
json: Record<string, any>;
|
|
498
507
|
text: string;
|
|
499
508
|
} | null | undefined;
|
|
500
|
-
|
|
509
|
+
source?: "api" | "web" | undefined;
|
|
510
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
511
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
512
|
parent_id?: string | null | undefined;
|
|
502
513
|
license_id?: string | undefined;
|
|
503
514
|
name_url_slug?: string | null | undefined;
|
|
@@ -509,6 +520,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
509
520
|
stripe_product_id?: string | null | undefined;
|
|
510
521
|
stripe_price_id?: string | null | undefined;
|
|
511
522
|
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;
|
|
512
527
|
metadata?: {
|
|
513
528
|
members: string[];
|
|
514
529
|
doi_url?: string | null | undefined;
|
|
@@ -519,21 +534,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
519
534
|
source?: string | null | undefined;
|
|
520
535
|
reply_to_comment_id?: string | null | undefined;
|
|
521
536
|
} | undefined;
|
|
522
|
-
|
|
537
|
+
created_at?: string | undefined;
|
|
523
538
|
last_updated?: string | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
parent?: Record<string, any> | undefined;
|
|
526
|
-
source?: "web" | "api" | undefined;
|
|
527
|
-
asset_type?: "conversation" | undefined;
|
|
528
|
-
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
529
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
530
|
-
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
531
539
|
name?: string | undefined;
|
|
540
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
532
541
|
description?: {
|
|
533
542
|
json: Record<string, any>;
|
|
534
543
|
text: string;
|
|
535
544
|
} | null | undefined;
|
|
536
|
-
|
|
545
|
+
source?: "api" | "web" | undefined;
|
|
546
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
547
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
548
|
parent_id?: string | null | undefined;
|
|
538
549
|
license_id?: string | undefined;
|
|
539
550
|
name_url_slug?: string | null | undefined;
|
|
@@ -545,18 +556,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
545
556
|
stripe_product_id?: string | null | undefined;
|
|
546
557
|
stripe_price_id?: string | null | undefined;
|
|
547
558
|
stripe_meter_id?: string | null | undefined;
|
|
548
|
-
metadata?: {
|
|
549
|
-
members: string[];
|
|
550
|
-
doi_url?: string | null | undefined;
|
|
551
|
-
external_url?: string | null | undefined;
|
|
552
|
-
paper_url?: string | null | undefined;
|
|
553
|
-
github_url?: string | null | undefined;
|
|
554
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
555
|
-
source?: string | null | undefined;
|
|
556
|
-
reply_to_comment_id?: string | null | undefined;
|
|
557
|
-
} | undefined;
|
|
558
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
559
|
-
last_updated?: string | undefined;
|
|
560
560
|
}>>;
|
|
561
561
|
declare const MessageSchema: z.ZodObject<{
|
|
562
562
|
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,23 +210,23 @@ 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
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
224
224
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
organization: "organization";
|
|
226
|
-
file: "file";
|
|
227
225
|
user: "user";
|
|
226
|
+
organization: "organization";
|
|
228
227
|
team: "team";
|
|
229
228
|
dataset: "dataset";
|
|
229
|
+
file: "file";
|
|
230
230
|
service: "service";
|
|
231
231
|
route: "route";
|
|
232
232
|
post: "post";
|
|
@@ -303,14 +303,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
303
303
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
304
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
305
305
|
success: "success";
|
|
306
|
-
error: "error";
|
|
307
306
|
queued: "queued";
|
|
308
307
|
"in-progress": "in-progress";
|
|
309
308
|
"timed-out": "timed-out";
|
|
309
|
+
error: "error";
|
|
310
310
|
}>>>;
|
|
311
311
|
source: z.ZodDefault<z.ZodEnum<{
|
|
312
|
-
web: "web";
|
|
313
312
|
api: "api";
|
|
313
|
+
web: "web";
|
|
314
314
|
}>>;
|
|
315
315
|
created_at: z.ZodDefault<z.ZodString>;
|
|
316
316
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -321,9 +321,9 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
321
321
|
"pay-per-use": "pay-per-use";
|
|
322
322
|
}>>;
|
|
323
323
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
324
|
+
organization: "organization";
|
|
324
325
|
public: "public";
|
|
325
326
|
private: "private";
|
|
326
|
-
organization: "organization";
|
|
327
327
|
monetized: "monetized";
|
|
328
328
|
inherit: "inherit";
|
|
329
329
|
}>>;
|
|
@@ -346,13 +346,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
346
346
|
team_id: string | null;
|
|
347
347
|
org_id: string | null;
|
|
348
348
|
name: string;
|
|
349
|
-
state: "success" | "
|
|
350
|
-
source: "
|
|
349
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
350
|
+
source: "api" | "web";
|
|
351
351
|
created_at: string;
|
|
352
352
|
last_updated: string;
|
|
353
353
|
asset_type: "conversation";
|
|
354
354
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
355
|
-
visibility: "
|
|
355
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
356
356
|
metadata: {
|
|
357
357
|
members: string[];
|
|
358
358
|
doi_url?: string | null | undefined;
|
|
@@ -385,13 +385,13 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
385
385
|
team_id: string | null;
|
|
386
386
|
org_id: string | null;
|
|
387
387
|
name: string;
|
|
388
|
-
state: "success" | "
|
|
389
|
-
source: "
|
|
388
|
+
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
389
|
+
source: "api" | "web";
|
|
390
390
|
created_at: string;
|
|
391
391
|
last_updated: string;
|
|
392
392
|
asset_type: "conversation";
|
|
393
393
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
394
|
-
visibility: "
|
|
394
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
395
395
|
metadata: {
|
|
396
396
|
members: string[];
|
|
397
397
|
doi_url?: string | null | undefined;
|
|
@@ -421,19 +421,40 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
421
421
|
name_url_slug?: string | null | undefined;
|
|
422
422
|
}>>;
|
|
423
423
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
424
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
425
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
426
|
-
web: "web";
|
|
427
|
-
api: "api";
|
|
428
|
-
}>>>;
|
|
429
424
|
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
425
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
426
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
members: z.ZodArray<z.ZodString>;
|
|
428
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
429
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
430
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
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>;
|
|
430
443
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
444
|
+
organization: "organization";
|
|
431
445
|
public: "public";
|
|
432
446
|
private: "private";
|
|
433
|
-
organization: "organization";
|
|
434
447
|
monetized: "monetized";
|
|
435
448
|
inherit: "inherit";
|
|
436
449
|
}>>>;
|
|
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
|
+
}>>>;
|
|
437
458
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
438
459
|
none: "none";
|
|
439
460
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -441,17 +462,11 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
441
462
|
}>>>;
|
|
442
463
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
443
464
|
success: "success";
|
|
444
|
-
error: "error";
|
|
445
465
|
queued: "queued";
|
|
446
466
|
"in-progress": "in-progress";
|
|
447
467
|
"timed-out": "timed-out";
|
|
468
|
+
error: "error";
|
|
448
469
|
}>>>>;
|
|
449
|
-
name: z.ZodOptional<z.ZodString>;
|
|
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
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
455
470
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
456
471
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
457
472
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -469,35 +484,31 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
469
484
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
470
485
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
471
486
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
472
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
473
|
-
members: z.ZodArray<z.ZodString>;
|
|
474
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
475
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
479
|
-
original: "original";
|
|
480
|
-
derivative: "derivative";
|
|
481
|
-
"third-party": "third-party";
|
|
482
|
-
}>>;
|
|
483
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
484
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
485
|
-
}, z.core.$strip>>;
|
|
486
487
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
487
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
488
488
|
}, z.core.$strip>, z.ZodTransform<{
|
|
489
|
-
parent?: Record<string, any> | undefined;
|
|
490
|
-
source?: "web" | "api" | undefined;
|
|
491
489
|
asset_type?: "conversation" | undefined;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
490
|
+
parent?: Record<string, any> | undefined;
|
|
491
|
+
metadata?: {
|
|
492
|
+
members: string[];
|
|
493
|
+
doi_url?: string | null | undefined;
|
|
494
|
+
external_url?: string | null | undefined;
|
|
495
|
+
paper_url?: string | null | undefined;
|
|
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;
|
|
495
503
|
name?: string | undefined;
|
|
504
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
496
505
|
description?: {
|
|
497
506
|
json: Record<string, any>;
|
|
498
507
|
text: string;
|
|
499
508
|
} | null | undefined;
|
|
500
|
-
|
|
509
|
+
source?: "api" | "web" | undefined;
|
|
510
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
511
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
501
512
|
parent_id?: string | null | undefined;
|
|
502
513
|
license_id?: string | undefined;
|
|
503
514
|
name_url_slug?: string | null | undefined;
|
|
@@ -509,6 +520,10 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
509
520
|
stripe_product_id?: string | null | undefined;
|
|
510
521
|
stripe_price_id?: string | null | undefined;
|
|
511
522
|
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;
|
|
512
527
|
metadata?: {
|
|
513
528
|
members: string[];
|
|
514
529
|
doi_url?: string | null | undefined;
|
|
@@ -519,21 +534,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
519
534
|
source?: string | null | undefined;
|
|
520
535
|
reply_to_comment_id?: string | null | undefined;
|
|
521
536
|
} | undefined;
|
|
522
|
-
|
|
537
|
+
created_at?: string | undefined;
|
|
523
538
|
last_updated?: string | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
parent?: Record<string, any> | undefined;
|
|
526
|
-
source?: "web" | "api" | undefined;
|
|
527
|
-
asset_type?: "conversation" | undefined;
|
|
528
|
-
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
529
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
530
|
-
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
531
539
|
name?: string | undefined;
|
|
540
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
532
541
|
description?: {
|
|
533
542
|
json: Record<string, any>;
|
|
534
543
|
text: string;
|
|
535
544
|
} | null | undefined;
|
|
536
|
-
|
|
545
|
+
source?: "api" | "web" | undefined;
|
|
546
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
547
|
+
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
537
548
|
parent_id?: string | null | undefined;
|
|
538
549
|
license_id?: string | undefined;
|
|
539
550
|
name_url_slug?: string | null | undefined;
|
|
@@ -545,18 +556,7 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
545
556
|
stripe_product_id?: string | null | undefined;
|
|
546
557
|
stripe_price_id?: string | null | undefined;
|
|
547
558
|
stripe_meter_id?: string | null | undefined;
|
|
548
|
-
metadata?: {
|
|
549
|
-
members: string[];
|
|
550
|
-
doi_url?: string | null | undefined;
|
|
551
|
-
external_url?: string | null | undefined;
|
|
552
|
-
paper_url?: string | null | undefined;
|
|
553
|
-
github_url?: string | null | undefined;
|
|
554
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
555
|
-
source?: string | null | undefined;
|
|
556
|
-
reply_to_comment_id?: string | null | undefined;
|
|
557
|
-
} | undefined;
|
|
558
559
|
preview?: Record<string, any>[] | null | undefined;
|
|
559
|
-
last_updated?: string | undefined;
|
|
560
560
|
}>>;
|
|
561
561
|
declare const MessageSchema: z.ZodObject<{
|
|
562
562
|
id: z.ZodUUID;
|