@ourofoundation/ouro-js 3.2.3 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-5V7HPXUK.js +2 -0
- package/dist/chunk-5V7HPXUK.js.map +1 -0
- package/dist/chunk-D7S2GB7Z.cjs +2 -0
- package/dist/chunk-D7S2GB7Z.cjs.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.d.cts +77 -77
- package/dist/schema/assets.d.ts +77 -77
- package/dist/schema/blueprints.d.cts +12 -12
- package/dist/schema/blueprints.d.ts +12 -12
- package/dist/schema/comments.d.cts +73 -73
- package/dist/schema/comments.d.ts +73 -73
- package/dist/schema/common.d.cts +9 -9
- package/dist/schema/common.d.ts +9 -9
- package/dist/schema/conversations.d.cts +62 -62
- package/dist/schema/conversations.d.ts +62 -62
- package/dist/schema/datasets.d.cts +97 -97
- package/dist/schema/datasets.d.ts +97 -97
- package/dist/schema/files.d.cts +91 -91
- package/dist/schema/files.d.ts +91 -91
- package/dist/schema/notifications.d.cts +1 -1
- package/dist/schema/notifications.d.ts +1 -1
- package/dist/schema/posts.d.cts +110 -110
- package/dist/schema/posts.d.ts +110 -110
- package/dist/schema/replications.d.cts +12 -12
- package/dist/schema/replications.d.ts +12 -12
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +106 -101
- package/dist/schema/services.d.ts +106 -101
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.d.cts +15 -15
- package/dist/schema/teams.d.ts +15 -15
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.d.cts +2 -2
- package/dist/utils/navigate.d.ts +2 -2
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- package/dist/chunk-DHQJ2FCF.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
- package/dist/chunk-FNW6DDNP.cjs +0 -2
- package/dist/chunk-FNW6DDNP.cjs.map +0 -1
- package/dist/chunk-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
package/dist/schema/common.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const AssetTypeSchema: z.ZodEnum<{
|
|
4
|
+
file: "file";
|
|
4
5
|
user: "user";
|
|
5
6
|
organization: "organization";
|
|
6
7
|
team: "team";
|
|
7
8
|
dataset: "dataset";
|
|
8
|
-
file: "file";
|
|
9
9
|
service: "service";
|
|
10
10
|
route: "route";
|
|
11
11
|
post: "post";
|
|
@@ -44,11 +44,11 @@ declare const EmbeddingSchema: z.ZodObject<{
|
|
|
44
44
|
embedding: z.ZodArray<z.ZodNumber>;
|
|
45
45
|
content: z.ZodString;
|
|
46
46
|
asset_type: z.ZodEnum<{
|
|
47
|
+
file: "file";
|
|
47
48
|
user: "user";
|
|
48
49
|
organization: "organization";
|
|
49
50
|
team: "team";
|
|
50
51
|
dataset: "dataset";
|
|
51
|
-
file: "file";
|
|
52
52
|
service: "service";
|
|
53
53
|
route: "route";
|
|
54
54
|
post: "post";
|
|
@@ -78,11 +78,11 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
78
78
|
source_id: z.ZodUUID;
|
|
79
79
|
target_id: z.ZodUUID;
|
|
80
80
|
source_asset_type: z.ZodEnum<{
|
|
81
|
+
file: "file";
|
|
81
82
|
user: "user";
|
|
82
83
|
organization: "organization";
|
|
83
84
|
team: "team";
|
|
84
85
|
dataset: "dataset";
|
|
85
|
-
file: "file";
|
|
86
86
|
service: "service";
|
|
87
87
|
route: "route";
|
|
88
88
|
post: "post";
|
|
@@ -93,11 +93,11 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
93
93
|
replication: "replication";
|
|
94
94
|
}>;
|
|
95
95
|
target_asset_type: z.ZodEnum<{
|
|
96
|
+
file: "file";
|
|
96
97
|
user: "user";
|
|
97
98
|
organization: "organization";
|
|
98
99
|
team: "team";
|
|
99
100
|
dataset: "dataset";
|
|
100
|
-
file: "file";
|
|
101
101
|
service: "service";
|
|
102
102
|
route: "route";
|
|
103
103
|
post: "post";
|
|
@@ -113,15 +113,15 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
113
113
|
declare const PurchaseAssetSchema: z.ZodObject<{
|
|
114
114
|
assetId: z.ZodUUID;
|
|
115
115
|
method: z.ZodEnum<{
|
|
116
|
-
checkout: "checkout";
|
|
117
116
|
api: "api";
|
|
117
|
+
checkout: "checkout";
|
|
118
118
|
}>;
|
|
119
119
|
assetType: z.ZodEnum<{
|
|
120
|
+
file: "file";
|
|
120
121
|
user: "user";
|
|
121
122
|
organization: "organization";
|
|
122
123
|
team: "team";
|
|
123
124
|
dataset: "dataset";
|
|
124
|
-
file: "file";
|
|
125
125
|
service: "service";
|
|
126
126
|
route: "route";
|
|
127
127
|
post: "post";
|
|
@@ -146,11 +146,11 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
146
146
|
user_id: z.ZodNullable<z.ZodUUID>;
|
|
147
147
|
org_id: z.ZodNullable<z.ZodUUID>;
|
|
148
148
|
asset_type: z.ZodEnum<{
|
|
149
|
+
file: "file";
|
|
149
150
|
user: "user";
|
|
150
151
|
organization: "organization";
|
|
151
152
|
team: "team";
|
|
152
153
|
dataset: "dataset";
|
|
153
|
-
file: "file";
|
|
154
154
|
service: "service";
|
|
155
155
|
route: "route";
|
|
156
156
|
post: "post";
|
|
@@ -166,14 +166,14 @@ declare const PermissionSchema: z.ZodObject<{
|
|
|
166
166
|
}, z.core.$strip>;
|
|
167
167
|
declare const StatusSchema: z.ZodEnum<{
|
|
168
168
|
success: "success";
|
|
169
|
+
error: "error";
|
|
169
170
|
queued: "queued";
|
|
170
171
|
"in-progress": "in-progress";
|
|
171
172
|
"timed-out": "timed-out";
|
|
172
|
-
error: "error";
|
|
173
173
|
}>;
|
|
174
174
|
declare const SourceSchema: z.ZodEnum<{
|
|
175
|
-
api: "api";
|
|
176
175
|
web: "web";
|
|
176
|
+
api: "api";
|
|
177
177
|
}>;
|
|
178
178
|
|
|
179
179
|
type Role = z.infer<typeof RoleSchema>;
|
|
@@ -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";
|
|
213
214
|
queued: "queued";
|
|
214
215
|
"in-progress": "in-progress";
|
|
215
216
|
"timed-out": "timed-out";
|
|
216
|
-
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
api: "api";
|
|
220
219
|
web: "web";
|
|
220
|
+
api: "api";
|
|
221
221
|
}>;
|
|
222
222
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
224
224
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
+
file: "file";
|
|
225
226
|
user: "user";
|
|
226
227
|
organization: "organization";
|
|
227
228
|
team: "team";
|
|
228
229
|
dataset: "dataset";
|
|
229
|
-
file: "file";
|
|
230
230
|
service: "service";
|
|
231
231
|
route: "route";
|
|
232
232
|
post: "post";
|
|
@@ -305,14 +305,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
305
305
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
306
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
307
307
|
success: "success";
|
|
308
|
+
error: "error";
|
|
308
309
|
queued: "queued";
|
|
309
310
|
"in-progress": "in-progress";
|
|
310
311
|
"timed-out": "timed-out";
|
|
311
|
-
error: "error";
|
|
312
312
|
}>>>;
|
|
313
313
|
source: z.ZodDefault<z.ZodEnum<{
|
|
314
|
-
api: "api";
|
|
315
314
|
web: "web";
|
|
315
|
+
api: "api";
|
|
316
316
|
}>>;
|
|
317
317
|
created_at: z.ZodDefault<z.ZodString>;
|
|
318
318
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -348,8 +348,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
348
348
|
team_id: string | null;
|
|
349
349
|
org_id: string | null;
|
|
350
350
|
name: string;
|
|
351
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
352
|
-
source: "
|
|
351
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
352
|
+
source: "web" | "api";
|
|
353
353
|
created_at: string;
|
|
354
354
|
last_updated: string;
|
|
355
355
|
asset_type: "conversation";
|
|
@@ -387,8 +387,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
387
387
|
team_id: string | null;
|
|
388
388
|
org_id: string | null;
|
|
389
389
|
name: string;
|
|
390
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
391
|
-
source: "
|
|
390
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
391
|
+
source: "web" | "api";
|
|
392
392
|
created_at: string;
|
|
393
393
|
last_updated: string;
|
|
394
394
|
asset_type: "conversation";
|
|
@@ -423,25 +423,12 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
423
423
|
name_url_slug?: string | null | undefined;
|
|
424
424
|
}>>;
|
|
425
425
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
426
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
427
426
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
434
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
original: "original";
|
|
436
|
-
derivative: "derivative";
|
|
437
|
-
"third-party": "third-party";
|
|
438
|
-
}>>;
|
|
439
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
440
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
441
|
-
}, z.core.$strip>>;
|
|
442
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
443
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
444
|
-
name: z.ZodOptional<z.ZodString>;
|
|
427
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
428
|
+
web: "web";
|
|
429
|
+
api: "api";
|
|
430
|
+
}>>>;
|
|
431
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
445
432
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
446
433
|
organization: "organization";
|
|
447
434
|
public: "public";
|
|
@@ -449,14 +436,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
449
436
|
monetized: "monetized";
|
|
450
437
|
inherit: "inherit";
|
|
451
438
|
}>>>;
|
|
452
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
454
|
-
text: z.ZodString;
|
|
455
|
-
}, z.core.$strip>>>>>;
|
|
456
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
457
|
-
api: "api";
|
|
458
|
-
web: "web";
|
|
459
|
-
}>>>;
|
|
460
439
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
461
440
|
none: "none";
|
|
462
441
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -464,11 +443,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
464
443
|
}>>>;
|
|
465
444
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
466
445
|
success: "success";
|
|
446
|
+
error: "error";
|
|
467
447
|
queued: "queued";
|
|
468
448
|
"in-progress": "in-progress";
|
|
469
449
|
"timed-out": "timed-out";
|
|
470
|
-
error: "error";
|
|
471
450
|
}>>>>;
|
|
451
|
+
name: z.ZodOptional<z.ZodString>;
|
|
452
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
454
|
+
text: z.ZodString;
|
|
455
|
+
}, z.core.$strip>>>>>;
|
|
456
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
472
457
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
473
458
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
474
459
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -486,31 +471,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
486
471
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
487
472
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
488
473
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
474
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
members: z.ZodArray<z.ZodString>;
|
|
476
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
479
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
480
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
original: "original";
|
|
482
|
+
derivative: "derivative";
|
|
483
|
+
"third-party": "third-party";
|
|
484
|
+
}>>;
|
|
485
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
486
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
489
488
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
489
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
490
490
|
}, z.core.$strip>, z.ZodTransform<{
|
|
491
|
-
asset_type?: "conversation" | undefined;
|
|
492
491
|
parent?: Record<string, any> | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
doi_url?: string | null | undefined;
|
|
496
|
-
external_url?: string | null | undefined;
|
|
497
|
-
paper_url?: string | null | undefined;
|
|
498
|
-
github_url?: string | null | undefined;
|
|
499
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
500
|
-
source?: string | null | undefined;
|
|
501
|
-
reply_to_comment_id?: string | null | undefined;
|
|
502
|
-
} | undefined;
|
|
503
|
-
created_at?: string | undefined;
|
|
504
|
-
last_updated?: string | undefined;
|
|
505
|
-
name?: string | undefined;
|
|
492
|
+
source?: "web" | "api" | undefined;
|
|
493
|
+
asset_type?: "conversation" | undefined;
|
|
506
494
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
495
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
496
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
497
|
+
name?: string | undefined;
|
|
507
498
|
description?: {
|
|
508
499
|
json: Record<string, any>;
|
|
509
500
|
text: string;
|
|
510
501
|
} | null | undefined;
|
|
511
|
-
|
|
512
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
513
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
502
|
+
created_at?: string | undefined;
|
|
514
503
|
parent_id?: string | null | undefined;
|
|
515
504
|
license_id?: string | undefined;
|
|
516
505
|
name_url_slug?: string | null | undefined;
|
|
@@ -522,10 +511,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
522
511
|
stripe_product_id?: string | null | undefined;
|
|
523
512
|
stripe_price_id?: string | null | undefined;
|
|
524
513
|
stripe_meter_id?: string | null | undefined;
|
|
525
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
asset_type?: "conversation" | undefined;
|
|
528
|
-
parent?: Record<string, any> | undefined;
|
|
529
514
|
metadata?: {
|
|
530
515
|
members: string[];
|
|
531
516
|
doi_url?: string | null | undefined;
|
|
@@ -536,17 +521,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
536
521
|
source?: string | null | undefined;
|
|
537
522
|
reply_to_comment_id?: string | null | undefined;
|
|
538
523
|
} | undefined;
|
|
539
|
-
|
|
524
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
540
525
|
last_updated?: string | undefined;
|
|
541
|
-
|
|
526
|
+
}, {
|
|
527
|
+
parent?: Record<string, any> | undefined;
|
|
528
|
+
source?: "web" | "api" | undefined;
|
|
529
|
+
asset_type?: "conversation" | undefined;
|
|
542
530
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
531
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
532
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
533
|
+
name?: string | undefined;
|
|
543
534
|
description?: {
|
|
544
535
|
json: Record<string, any>;
|
|
545
536
|
text: string;
|
|
546
537
|
} | null | undefined;
|
|
547
|
-
|
|
548
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
549
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
538
|
+
created_at?: string | undefined;
|
|
550
539
|
parent_id?: string | null | undefined;
|
|
551
540
|
license_id?: string | undefined;
|
|
552
541
|
name_url_slug?: string | null | undefined;
|
|
@@ -558,7 +547,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
558
547
|
stripe_product_id?: string | null | undefined;
|
|
559
548
|
stripe_price_id?: string | null | undefined;
|
|
560
549
|
stripe_meter_id?: string | null | undefined;
|
|
550
|
+
metadata?: {
|
|
551
|
+
members: string[];
|
|
552
|
+
doi_url?: string | null | undefined;
|
|
553
|
+
external_url?: string | null | undefined;
|
|
554
|
+
paper_url?: string | null | undefined;
|
|
555
|
+
github_url?: string | null | undefined;
|
|
556
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
557
|
+
source?: string | null | undefined;
|
|
558
|
+
reply_to_comment_id?: string | null | undefined;
|
|
559
|
+
} | undefined;
|
|
561
560
|
preview?: Record<string, any>[] | null | undefined;
|
|
561
|
+
last_updated?: string | undefined;
|
|
562
562
|
}>>;
|
|
563
563
|
declare const MessageSchema: z.ZodObject<{
|
|
564
564
|
id: z.ZodUUID;
|
|
@@ -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";
|
|
213
214
|
queued: "queued";
|
|
214
215
|
"in-progress": "in-progress";
|
|
215
216
|
"timed-out": "timed-out";
|
|
216
|
-
error: "error";
|
|
217
217
|
}>;
|
|
218
218
|
source: z.ZodEnum<{
|
|
219
|
-
api: "api";
|
|
220
219
|
web: "web";
|
|
220
|
+
api: "api";
|
|
221
221
|
}>;
|
|
222
222
|
created_at: z.ZodString;
|
|
223
223
|
last_updated: z.ZodString;
|
|
224
224
|
asset_type: z.ZodDefault<z.ZodEnum<{
|
|
225
|
+
file: "file";
|
|
225
226
|
user: "user";
|
|
226
227
|
organization: "organization";
|
|
227
228
|
team: "team";
|
|
228
229
|
dataset: "dataset";
|
|
229
|
-
file: "file";
|
|
230
230
|
service: "service";
|
|
231
231
|
route: "route";
|
|
232
232
|
post: "post";
|
|
@@ -305,14 +305,14 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
305
305
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
306
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
307
307
|
success: "success";
|
|
308
|
+
error: "error";
|
|
308
309
|
queued: "queued";
|
|
309
310
|
"in-progress": "in-progress";
|
|
310
311
|
"timed-out": "timed-out";
|
|
311
|
-
error: "error";
|
|
312
312
|
}>>>;
|
|
313
313
|
source: z.ZodDefault<z.ZodEnum<{
|
|
314
|
-
api: "api";
|
|
315
314
|
web: "web";
|
|
315
|
+
api: "api";
|
|
316
316
|
}>>;
|
|
317
317
|
created_at: z.ZodDefault<z.ZodString>;
|
|
318
318
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
@@ -348,8 +348,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
348
348
|
team_id: string | null;
|
|
349
349
|
org_id: string | null;
|
|
350
350
|
name: string;
|
|
351
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
352
|
-
source: "
|
|
351
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
352
|
+
source: "web" | "api";
|
|
353
353
|
created_at: string;
|
|
354
354
|
last_updated: string;
|
|
355
355
|
asset_type: "conversation";
|
|
@@ -387,8 +387,8 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
387
387
|
team_id: string | null;
|
|
388
388
|
org_id: string | null;
|
|
389
389
|
name: string;
|
|
390
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
391
|
-
source: "
|
|
390
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
391
|
+
source: "web" | "api";
|
|
392
392
|
created_at: string;
|
|
393
393
|
last_updated: string;
|
|
394
394
|
asset_type: "conversation";
|
|
@@ -423,25 +423,12 @@ declare const CreateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
423
423
|
name_url_slug?: string | null | undefined;
|
|
424
424
|
}>>;
|
|
425
425
|
declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
426
|
-
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
427
426
|
parent: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
434
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
original: "original";
|
|
436
|
-
derivative: "derivative";
|
|
437
|
-
"third-party": "third-party";
|
|
438
|
-
}>>;
|
|
439
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
440
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
441
|
-
}, z.core.$strip>>;
|
|
442
|
-
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
443
|
-
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
444
|
-
name: z.ZodOptional<z.ZodString>;
|
|
427
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
428
|
+
web: "web";
|
|
429
|
+
api: "api";
|
|
430
|
+
}>>>;
|
|
431
|
+
asset_type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"conversation">>>;
|
|
445
432
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
446
433
|
organization: "organization";
|
|
447
434
|
public: "public";
|
|
@@ -449,14 +436,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
449
436
|
monetized: "monetized";
|
|
450
437
|
inherit: "inherit";
|
|
451
438
|
}>>>;
|
|
452
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
454
|
-
text: z.ZodString;
|
|
455
|
-
}, z.core.$strip>>>>>;
|
|
456
|
-
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
457
|
-
api: "api";
|
|
458
|
-
web: "web";
|
|
459
|
-
}>>>;
|
|
460
439
|
monetization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
461
440
|
none: "none";
|
|
462
441
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -464,11 +443,17 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
464
443
|
}>>>;
|
|
465
444
|
state: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
466
445
|
success: "success";
|
|
446
|
+
error: "error";
|
|
467
447
|
queued: "queued";
|
|
468
448
|
"in-progress": "in-progress";
|
|
469
449
|
"timed-out": "timed-out";
|
|
470
|
-
error: "error";
|
|
471
450
|
}>>>>;
|
|
451
|
+
name: z.ZodOptional<z.ZodString>;
|
|
452
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
454
|
+
text: z.ZodString;
|
|
455
|
+
}, z.core.$strip>>>>>;
|
|
456
|
+
created_at: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
472
457
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>>;
|
|
473
458
|
license_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
474
459
|
name_url_slug: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -486,31 +471,35 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
486
471
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
487
472
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
488
473
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
474
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
members: z.ZodArray<z.ZodString>;
|
|
476
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
477
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
479
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
480
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
original: "original";
|
|
482
|
+
derivative: "derivative";
|
|
483
|
+
"third-party": "third-party";
|
|
484
|
+
}>>;
|
|
485
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
486
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
489
488
|
preview: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>>;
|
|
489
|
+
last_updated: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
490
490
|
}, z.core.$strip>, z.ZodTransform<{
|
|
491
|
-
asset_type?: "conversation" | undefined;
|
|
492
491
|
parent?: Record<string, any> | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
doi_url?: string | null | undefined;
|
|
496
|
-
external_url?: string | null | undefined;
|
|
497
|
-
paper_url?: string | null | undefined;
|
|
498
|
-
github_url?: string | null | undefined;
|
|
499
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
500
|
-
source?: string | null | undefined;
|
|
501
|
-
reply_to_comment_id?: string | null | undefined;
|
|
502
|
-
} | undefined;
|
|
503
|
-
created_at?: string | undefined;
|
|
504
|
-
last_updated?: string | undefined;
|
|
505
|
-
name?: string | undefined;
|
|
492
|
+
source?: "web" | "api" | undefined;
|
|
493
|
+
asset_type?: "conversation" | undefined;
|
|
506
494
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
495
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
496
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
497
|
+
name?: string | undefined;
|
|
507
498
|
description?: {
|
|
508
499
|
json: Record<string, any>;
|
|
509
500
|
text: string;
|
|
510
501
|
} | null | undefined;
|
|
511
|
-
|
|
512
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
513
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
502
|
+
created_at?: string | undefined;
|
|
514
503
|
parent_id?: string | null | undefined;
|
|
515
504
|
license_id?: string | undefined;
|
|
516
505
|
name_url_slug?: string | null | undefined;
|
|
@@ -522,10 +511,6 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
522
511
|
stripe_product_id?: string | null | undefined;
|
|
523
512
|
stripe_price_id?: string | null | undefined;
|
|
524
513
|
stripe_meter_id?: string | null | undefined;
|
|
525
|
-
preview?: Record<string, any>[] | null | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
asset_type?: "conversation" | undefined;
|
|
528
|
-
parent?: Record<string, any> | undefined;
|
|
529
514
|
metadata?: {
|
|
530
515
|
members: string[];
|
|
531
516
|
doi_url?: string | null | undefined;
|
|
@@ -536,17 +521,21 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
536
521
|
source?: string | null | undefined;
|
|
537
522
|
reply_to_comment_id?: string | null | undefined;
|
|
538
523
|
} | undefined;
|
|
539
|
-
|
|
524
|
+
preview?: Record<string, any>[] | null | undefined;
|
|
540
525
|
last_updated?: string | undefined;
|
|
541
|
-
|
|
526
|
+
}, {
|
|
527
|
+
parent?: Record<string, any> | undefined;
|
|
528
|
+
source?: "web" | "api" | undefined;
|
|
529
|
+
asset_type?: "conversation" | undefined;
|
|
542
530
|
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
531
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
532
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
533
|
+
name?: string | undefined;
|
|
543
534
|
description?: {
|
|
544
535
|
json: Record<string, any>;
|
|
545
536
|
text: string;
|
|
546
537
|
} | null | undefined;
|
|
547
|
-
|
|
548
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
549
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
538
|
+
created_at?: string | undefined;
|
|
550
539
|
parent_id?: string | null | undefined;
|
|
551
540
|
license_id?: string | undefined;
|
|
552
541
|
name_url_slug?: string | null | undefined;
|
|
@@ -558,7 +547,18 @@ declare const UpdateConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
558
547
|
stripe_product_id?: string | null | undefined;
|
|
559
548
|
stripe_price_id?: string | null | undefined;
|
|
560
549
|
stripe_meter_id?: string | null | undefined;
|
|
550
|
+
metadata?: {
|
|
551
|
+
members: string[];
|
|
552
|
+
doi_url?: string | null | undefined;
|
|
553
|
+
external_url?: string | null | undefined;
|
|
554
|
+
paper_url?: string | null | undefined;
|
|
555
|
+
github_url?: string | null | undefined;
|
|
556
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
557
|
+
source?: string | null | undefined;
|
|
558
|
+
reply_to_comment_id?: string | null | undefined;
|
|
559
|
+
} | undefined;
|
|
561
560
|
preview?: Record<string, any>[] | null | undefined;
|
|
561
|
+
last_updated?: string | undefined;
|
|
562
562
|
}>>;
|
|
563
563
|
declare const MessageSchema: z.ZodObject<{
|
|
564
564
|
id: z.ZodUUID;
|