@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/posts.d.ts
CHANGED
|
@@ -219,24 +219,24 @@ declare const PostSchema: z.ZodObject<{
|
|
|
219
219
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
220
|
state: z.ZodEnum<{
|
|
221
221
|
success: "success";
|
|
222
|
+
error: "error";
|
|
222
223
|
queued: "queued";
|
|
223
224
|
"in-progress": "in-progress";
|
|
224
225
|
"timed-out": "timed-out";
|
|
225
|
-
error: "error";
|
|
226
226
|
}>;
|
|
227
227
|
source: z.ZodEnum<{
|
|
228
|
-
api: "api";
|
|
229
228
|
web: "web";
|
|
229
|
+
api: "api";
|
|
230
230
|
}>;
|
|
231
231
|
created_at: z.ZodString;
|
|
232
232
|
last_updated: z.ZodString;
|
|
233
233
|
name: z.ZodNullable<z.ZodString>;
|
|
234
234
|
asset_type: z.ZodEnum<{
|
|
235
|
+
file: "file";
|
|
235
236
|
user: "user";
|
|
236
237
|
organization: "organization";
|
|
237
238
|
team: "team";
|
|
238
239
|
dataset: "dataset";
|
|
239
|
-
file: "file";
|
|
240
240
|
service: "service";
|
|
241
241
|
route: "route";
|
|
242
242
|
post: "post";
|
|
@@ -273,28 +273,15 @@ declare const PostSchema: z.ZodObject<{
|
|
|
273
273
|
}, z.core.$strip>;
|
|
274
274
|
declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
275
275
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
276
|
-
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
277
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
-
originality: z.ZodEnum<{
|
|
282
|
-
original: "original";
|
|
283
|
-
derivative: "derivative";
|
|
284
|
-
"third-party": "third-party";
|
|
285
|
-
}>;
|
|
286
|
-
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
-
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
-
}, z.core.$strip>>>>;
|
|
289
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
290
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
291
|
-
text: z.ZodString;
|
|
292
|
-
}, z.core.$strip>>>>;
|
|
293
276
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
294
277
|
none: "none";
|
|
295
278
|
"pay-to-unlock": "pay-to-unlock";
|
|
296
279
|
"pay-per-use": "pay-per-use";
|
|
297
280
|
}>>;
|
|
281
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
282
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
283
|
+
text: z.ZodString;
|
|
284
|
+
}, z.core.$strip>>>>;
|
|
298
285
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
299
286
|
license_id: z.ZodOptional<z.ZodString>;
|
|
300
287
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -311,20 +298,33 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
311
298
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
312
299
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
313
300
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
301
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
302
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
originality: z.ZodEnum<{
|
|
307
|
+
original: "original";
|
|
308
|
+
derivative: "derivative";
|
|
309
|
+
"third-party": "third-party";
|
|
310
|
+
}>;
|
|
311
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
}, z.core.$strip>>>>;
|
|
314
314
|
id: z.ZodDefault<z.ZodUUID>;
|
|
315
315
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
316
316
|
org_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
317
317
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
318
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
319
319
|
success: "success";
|
|
320
|
+
error: "error";
|
|
320
321
|
queued: "queued";
|
|
321
322
|
"in-progress": "in-progress";
|
|
322
323
|
"timed-out": "timed-out";
|
|
323
|
-
error: "error";
|
|
324
324
|
}>>>;
|
|
325
325
|
source: z.ZodDefault<z.ZodEnum<{
|
|
326
|
-
api: "api";
|
|
327
326
|
web: "web";
|
|
327
|
+
api: "api";
|
|
328
328
|
}>>;
|
|
329
329
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
330
330
|
organization: "organization";
|
|
@@ -345,8 +345,8 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
345
345
|
id: string;
|
|
346
346
|
team_id: string | null;
|
|
347
347
|
org_id: string | null;
|
|
348
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
349
|
-
source: "
|
|
348
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
349
|
+
source: "web" | "api";
|
|
350
350
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
351
351
|
created_at: string;
|
|
352
352
|
last_updated: string;
|
|
@@ -357,20 +357,11 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
357
357
|
content: any[];
|
|
358
358
|
};
|
|
359
359
|
parent?: Record<string, any> | undefined;
|
|
360
|
-
|
|
361
|
-
originality: "original" | "derivative" | "third-party";
|
|
362
|
-
doi_url?: string | null | undefined;
|
|
363
|
-
external_url?: string | null | undefined;
|
|
364
|
-
paper_url?: string | null | undefined;
|
|
365
|
-
github_url?: string | null | undefined;
|
|
366
|
-
source?: string | null | undefined;
|
|
367
|
-
reply_to_comment_id?: string | null | undefined;
|
|
368
|
-
} | null | undefined;
|
|
360
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
369
361
|
description?: {
|
|
370
362
|
json: Record<string, any>;
|
|
371
363
|
text: string;
|
|
372
364
|
} | null | undefined;
|
|
373
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
374
365
|
parent_id?: string | null | undefined;
|
|
375
366
|
license_id?: string | undefined;
|
|
376
367
|
price?: number | null | undefined;
|
|
@@ -381,13 +372,22 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
381
372
|
stripe_product_id?: string | null | undefined;
|
|
382
373
|
stripe_price_id?: string | null | undefined;
|
|
383
374
|
stripe_meter_id?: string | null | undefined;
|
|
375
|
+
metadata?: {
|
|
376
|
+
originality: "original" | "derivative" | "third-party";
|
|
377
|
+
doi_url?: string | null | undefined;
|
|
378
|
+
external_url?: string | null | undefined;
|
|
379
|
+
paper_url?: string | null | undefined;
|
|
380
|
+
github_url?: string | null | undefined;
|
|
381
|
+
source?: string | null | undefined;
|
|
382
|
+
reply_to_comment_id?: string | null | undefined;
|
|
383
|
+
} | null | undefined;
|
|
384
384
|
name_url_slug?: string | null | undefined;
|
|
385
385
|
}, {
|
|
386
386
|
id: string;
|
|
387
387
|
team_id: string | null;
|
|
388
388
|
org_id: string | null;
|
|
389
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
390
|
-
source: "
|
|
389
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
390
|
+
source: "web" | "api";
|
|
391
391
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
392
392
|
created_at: string;
|
|
393
393
|
last_updated: string;
|
|
@@ -398,20 +398,11 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
398
398
|
content: any[];
|
|
399
399
|
};
|
|
400
400
|
parent?: Record<string, any> | undefined;
|
|
401
|
-
|
|
402
|
-
originality: "original" | "derivative" | "third-party";
|
|
403
|
-
doi_url?: string | null | undefined;
|
|
404
|
-
external_url?: string | null | undefined;
|
|
405
|
-
paper_url?: string | null | undefined;
|
|
406
|
-
github_url?: string | null | undefined;
|
|
407
|
-
source?: string | null | undefined;
|
|
408
|
-
reply_to_comment_id?: string | null | undefined;
|
|
409
|
-
} | null | undefined;
|
|
401
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
410
402
|
description?: {
|
|
411
403
|
json: Record<string, any>;
|
|
412
404
|
text: string;
|
|
413
405
|
} | null | undefined;
|
|
414
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
415
406
|
parent_id?: string | null | undefined;
|
|
416
407
|
license_id?: string | undefined;
|
|
417
408
|
price?: number | null | undefined;
|
|
@@ -422,6 +413,15 @@ declare const CreatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
422
413
|
stripe_product_id?: string | null | undefined;
|
|
423
414
|
stripe_price_id?: string | null | undefined;
|
|
424
415
|
stripe_meter_id?: string | null | undefined;
|
|
416
|
+
metadata?: {
|
|
417
|
+
originality: "original" | "derivative" | "third-party";
|
|
418
|
+
doi_url?: string | null | undefined;
|
|
419
|
+
external_url?: string | null | undefined;
|
|
420
|
+
paper_url?: string | null | undefined;
|
|
421
|
+
github_url?: string | null | undefined;
|
|
422
|
+
source?: string | null | undefined;
|
|
423
|
+
reply_to_comment_id?: string | null | undefined;
|
|
424
|
+
} | null | undefined;
|
|
425
425
|
name_url_slug?: string | null | undefined;
|
|
426
426
|
}>>;
|
|
427
427
|
declare const ReadPostSchema: z.ZodObject<{
|
|
@@ -632,24 +632,24 @@ declare const ReadPostSchema: z.ZodObject<{
|
|
|
632
632
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
633
633
|
state: z.ZodEnum<{
|
|
634
634
|
success: "success";
|
|
635
|
+
error: "error";
|
|
635
636
|
queued: "queued";
|
|
636
637
|
"in-progress": "in-progress";
|
|
637
638
|
"timed-out": "timed-out";
|
|
638
|
-
error: "error";
|
|
639
639
|
}>;
|
|
640
640
|
source: z.ZodEnum<{
|
|
641
|
-
api: "api";
|
|
642
641
|
web: "web";
|
|
642
|
+
api: "api";
|
|
643
643
|
}>;
|
|
644
644
|
created_at: z.ZodString;
|
|
645
645
|
last_updated: z.ZodString;
|
|
646
646
|
name: z.ZodNullable<z.ZodString>;
|
|
647
647
|
asset_type: z.ZodEnum<{
|
|
648
|
+
file: "file";
|
|
648
649
|
user: "user";
|
|
649
650
|
organization: "organization";
|
|
650
651
|
team: "team";
|
|
651
652
|
dataset: "dataset";
|
|
652
|
-
file: "file";
|
|
653
653
|
service: "service";
|
|
654
654
|
route: "route";
|
|
655
655
|
post: "post";
|
|
@@ -896,24 +896,24 @@ declare const ReadPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
896
896
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
897
897
|
state: z.ZodEnum<{
|
|
898
898
|
success: "success";
|
|
899
|
+
error: "error";
|
|
899
900
|
queued: "queued";
|
|
900
901
|
"in-progress": "in-progress";
|
|
901
902
|
"timed-out": "timed-out";
|
|
902
|
-
error: "error";
|
|
903
903
|
}>;
|
|
904
904
|
source: z.ZodEnum<{
|
|
905
|
-
api: "api";
|
|
906
905
|
web: "web";
|
|
906
|
+
api: "api";
|
|
907
907
|
}>;
|
|
908
908
|
created_at: z.ZodString;
|
|
909
909
|
last_updated: z.ZodString;
|
|
910
910
|
name: z.ZodNullable<z.ZodString>;
|
|
911
911
|
asset_type: z.ZodEnum<{
|
|
912
|
+
file: "file";
|
|
912
913
|
user: "user";
|
|
913
914
|
organization: "organization";
|
|
914
915
|
team: "team";
|
|
915
916
|
dataset: "dataset";
|
|
916
|
-
file: "file";
|
|
917
917
|
service: "service";
|
|
918
918
|
route: "route";
|
|
919
919
|
post: "post";
|
|
@@ -1160,24 +1160,24 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1160
1160
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
1161
|
state: z.ZodEnum<{
|
|
1162
1162
|
success: "success";
|
|
1163
|
+
error: "error";
|
|
1163
1164
|
queued: "queued";
|
|
1164
1165
|
"in-progress": "in-progress";
|
|
1165
1166
|
"timed-out": "timed-out";
|
|
1166
|
-
error: "error";
|
|
1167
1167
|
}>;
|
|
1168
1168
|
source: z.ZodEnum<{
|
|
1169
|
-
api: "api";
|
|
1170
1169
|
web: "web";
|
|
1170
|
+
api: "api";
|
|
1171
1171
|
}>;
|
|
1172
1172
|
created_at: z.ZodString;
|
|
1173
1173
|
last_updated: z.ZodString;
|
|
1174
1174
|
name: z.ZodNullable<z.ZodString>;
|
|
1175
1175
|
asset_type: z.ZodEnum<{
|
|
1176
|
+
file: "file";
|
|
1176
1177
|
user: "user";
|
|
1177
1178
|
organization: "organization";
|
|
1178
1179
|
team: "team";
|
|
1179
1180
|
dataset: "dataset";
|
|
1180
|
-
file: "file";
|
|
1181
1181
|
service: "service";
|
|
1182
1182
|
route: "route";
|
|
1183
1183
|
post: "post";
|
|
@@ -1213,12 +1213,17 @@ declare const ListPostsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1213
1213
|
}, z.core.$strip>>;
|
|
1214
1214
|
}, z.core.$strip>>;
|
|
1215
1215
|
declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
1216
|
+
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1217
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1218
|
+
web: "web";
|
|
1219
|
+
api: "api";
|
|
1220
|
+
}>>;
|
|
1216
1221
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
1222
|
+
file: "file";
|
|
1217
1223
|
user: "user";
|
|
1218
1224
|
organization: "organization";
|
|
1219
1225
|
team: "team";
|
|
1220
1226
|
dataset: "dataset";
|
|
1221
|
-
file: "file";
|
|
1222
1227
|
service: "service";
|
|
1223
1228
|
route: "route";
|
|
1224
1229
|
post: "post";
|
|
@@ -1228,23 +1233,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1228
1233
|
blueprint: "blueprint";
|
|
1229
1234
|
replication: "replication";
|
|
1230
1235
|
}>>;
|
|
1231
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1232
|
-
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1233
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
1234
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1235
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1236
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1237
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1238
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
1239
|
-
original: "original";
|
|
1240
|
-
derivative: "derivative";
|
|
1241
|
-
"third-party": "third-party";
|
|
1242
|
-
}>>;
|
|
1243
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1244
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1245
|
-
}, z.core.$strip>>;
|
|
1246
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1247
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1248
1236
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1249
1237
|
organization: "organization";
|
|
1250
1238
|
public: "public";
|
|
@@ -1252,14 +1240,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1252
1240
|
monetized: "monetized";
|
|
1253
1241
|
inherit: "inherit";
|
|
1254
1242
|
}>>;
|
|
1255
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1256
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1257
|
-
text: z.ZodString;
|
|
1258
|
-
}, z.core.$strip>>>>;
|
|
1259
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
1260
|
-
api: "api";
|
|
1261
|
-
web: "web";
|
|
1262
|
-
}>>;
|
|
1263
1243
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
1264
1244
|
none: "none";
|
|
1265
1245
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -1267,11 +1247,18 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1267
1247
|
}>>;
|
|
1268
1248
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1269
1249
|
success: "success";
|
|
1250
|
+
error: "error";
|
|
1270
1251
|
queued: "queued";
|
|
1271
1252
|
"in-progress": "in-progress";
|
|
1272
1253
|
"timed-out": "timed-out";
|
|
1273
|
-
error: "error";
|
|
1274
1254
|
}>>;
|
|
1255
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1256
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
1257
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
1258
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1259
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1260
|
+
text: z.ZodString;
|
|
1261
|
+
}, z.core.$strip>>>>;
|
|
1275
1262
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
1276
1263
|
license_id: z.ZodOptional<z.ZodString>;
|
|
1277
1264
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -1290,6 +1277,19 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1290
1277
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1291
1278
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1292
1279
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1280
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1281
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1282
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1283
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1284
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1285
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
1286
|
+
original: "original";
|
|
1287
|
+
derivative: "derivative";
|
|
1288
|
+
"third-party": "third-party";
|
|
1289
|
+
}>>;
|
|
1290
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1291
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1292
|
+
}, z.core.$strip>>;
|
|
1293
1293
|
preview: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1294
1294
|
type: z.ZodLiteral<"doc">;
|
|
1295
1295
|
content: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -1297,28 +1297,19 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1297
1297
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
1298
1298
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1299
1299
|
last_updated: string;
|
|
1300
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
1301
|
-
org_id?: string | undefined;
|
|
1302
1300
|
parent?: Record<string, any> | undefined;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1309
|
-
source?: string | null | undefined;
|
|
1310
|
-
reply_to_comment_id?: string | null | undefined;
|
|
1311
|
-
} | undefined;
|
|
1301
|
+
source?: "web" | "api" | undefined;
|
|
1302
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
1303
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1304
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1305
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
1312
1306
|
name?: string | null | undefined;
|
|
1307
|
+
org_id?: string | undefined;
|
|
1313
1308
|
team_id?: string | undefined;
|
|
1314
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1315
1309
|
description?: {
|
|
1316
1310
|
json: Record<string, any>;
|
|
1317
1311
|
text: string;
|
|
1318
1312
|
} | null | undefined;
|
|
1319
|
-
source?: "api" | "web" | undefined;
|
|
1320
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1321
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1322
1313
|
parent_id?: string | null | undefined;
|
|
1323
1314
|
license_id?: string | undefined;
|
|
1324
1315
|
license?: Record<string, any> | undefined;
|
|
@@ -1331,15 +1322,6 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1331
1322
|
stripe_product_id?: string | null | undefined;
|
|
1332
1323
|
stripe_price_id?: string | null | undefined;
|
|
1333
1324
|
stripe_meter_id?: string | null | undefined;
|
|
1334
|
-
preview?: {
|
|
1335
|
-
type: "doc";
|
|
1336
|
-
content: any[];
|
|
1337
|
-
} | undefined;
|
|
1338
|
-
}, {
|
|
1339
|
-
last_updated: string;
|
|
1340
|
-
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
1341
|
-
org_id?: string | undefined;
|
|
1342
|
-
parent?: Record<string, any> | undefined;
|
|
1343
1325
|
metadata?: {
|
|
1344
1326
|
doi_url?: string | null | undefined;
|
|
1345
1327
|
external_url?: string | null | undefined;
|
|
@@ -1349,16 +1331,25 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1349
1331
|
source?: string | null | undefined;
|
|
1350
1332
|
reply_to_comment_id?: string | null | undefined;
|
|
1351
1333
|
} | undefined;
|
|
1334
|
+
preview?: {
|
|
1335
|
+
type: "doc";
|
|
1336
|
+
content: any[];
|
|
1337
|
+
} | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
last_updated: string;
|
|
1340
|
+
parent?: Record<string, any> | undefined;
|
|
1341
|
+
source?: "web" | "api" | undefined;
|
|
1342
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
1343
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1344
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1345
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
1352
1346
|
name?: string | null | undefined;
|
|
1347
|
+
org_id?: string | undefined;
|
|
1353
1348
|
team_id?: string | undefined;
|
|
1354
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
1355
1349
|
description?: {
|
|
1356
1350
|
json: Record<string, any>;
|
|
1357
1351
|
text: string;
|
|
1358
1352
|
} | null | undefined;
|
|
1359
|
-
source?: "api" | "web" | undefined;
|
|
1360
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
1361
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
1362
1353
|
parent_id?: string | null | undefined;
|
|
1363
1354
|
license_id?: string | undefined;
|
|
1364
1355
|
license?: Record<string, any> | undefined;
|
|
@@ -1371,6 +1362,15 @@ declare const UpdatePostSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1371
1362
|
stripe_product_id?: string | null | undefined;
|
|
1372
1363
|
stripe_price_id?: string | null | undefined;
|
|
1373
1364
|
stripe_meter_id?: string | null | undefined;
|
|
1365
|
+
metadata?: {
|
|
1366
|
+
doi_url?: string | null | undefined;
|
|
1367
|
+
external_url?: string | null | undefined;
|
|
1368
|
+
paper_url?: string | null | undefined;
|
|
1369
|
+
github_url?: string | null | undefined;
|
|
1370
|
+
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
1371
|
+
source?: string | null | undefined;
|
|
1372
|
+
reply_to_comment_id?: string | null | undefined;
|
|
1373
|
+
} | undefined;
|
|
1374
1374
|
preview?: {
|
|
1375
1375
|
type: "doc";
|
|
1376
1376
|
content: any[];
|
|
@@ -210,23 +210,23 @@ declare const ReplicationSchema: 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.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";
|
|
@@ -459,23 +459,23 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
459
459
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
460
460
|
state: z.ZodOptional<z.ZodEnum<{
|
|
461
461
|
success: "success";
|
|
462
|
+
error: "error";
|
|
462
463
|
queued: "queued";
|
|
463
464
|
"in-progress": "in-progress";
|
|
464
465
|
"timed-out": "timed-out";
|
|
465
|
-
error: "error";
|
|
466
466
|
}>>;
|
|
467
467
|
source: z.ZodOptional<z.ZodEnum<{
|
|
468
|
-
api: "api";
|
|
469
468
|
web: "web";
|
|
469
|
+
api: "api";
|
|
470
470
|
}>>;
|
|
471
471
|
created_at: z.ZodOptional<z.ZodString>;
|
|
472
472
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
473
473
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
474
|
+
file: "file";
|
|
474
475
|
user: "user";
|
|
475
476
|
organization: "organization";
|
|
476
477
|
team: "team";
|
|
477
478
|
dataset: "dataset";
|
|
478
|
-
file: "file";
|
|
479
479
|
service: "service";
|
|
480
480
|
route: "route";
|
|
481
481
|
post: "post";
|
|
@@ -628,11 +628,11 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
628
628
|
stripe_price_id?: string | null | undefined;
|
|
629
629
|
stripe_meter_id?: string | null | undefined;
|
|
630
630
|
preview?: Record<string, any>[] | null | undefined;
|
|
631
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
632
|
-
source?: "
|
|
631
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
632
|
+
source?: "web" | "api" | undefined;
|
|
633
633
|
created_at?: string | undefined;
|
|
634
634
|
last_updated?: string | undefined;
|
|
635
|
-
asset_type?: "
|
|
635
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
636
636
|
metadata?: {
|
|
637
637
|
schedule?: {
|
|
638
638
|
[x: string]: unknown;
|
|
@@ -769,11 +769,11 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
769
769
|
stripe_price_id?: string | null | undefined;
|
|
770
770
|
stripe_meter_id?: string | null | undefined;
|
|
771
771
|
preview?: Record<string, any>[] | null | undefined;
|
|
772
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
773
|
-
source?: "
|
|
772
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
773
|
+
source?: "web" | "api" | undefined;
|
|
774
774
|
created_at?: string | undefined;
|
|
775
775
|
last_updated?: string | undefined;
|
|
776
|
-
asset_type?: "
|
|
776
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
777
777
|
metadata?: {
|
|
778
778
|
schedule?: {
|
|
779
779
|
[x: string]: unknown;
|
|
@@ -210,23 +210,23 @@ declare const ReplicationSchema: 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.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";
|
|
@@ -459,23 +459,23 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
459
459
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
460
460
|
state: z.ZodOptional<z.ZodEnum<{
|
|
461
461
|
success: "success";
|
|
462
|
+
error: "error";
|
|
462
463
|
queued: "queued";
|
|
463
464
|
"in-progress": "in-progress";
|
|
464
465
|
"timed-out": "timed-out";
|
|
465
|
-
error: "error";
|
|
466
466
|
}>>;
|
|
467
467
|
source: z.ZodOptional<z.ZodEnum<{
|
|
468
|
-
api: "api";
|
|
469
468
|
web: "web";
|
|
469
|
+
api: "api";
|
|
470
470
|
}>>;
|
|
471
471
|
created_at: z.ZodOptional<z.ZodString>;
|
|
472
472
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
473
473
|
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
474
|
+
file: "file";
|
|
474
475
|
user: "user";
|
|
475
476
|
organization: "organization";
|
|
476
477
|
team: "team";
|
|
477
478
|
dataset: "dataset";
|
|
478
|
-
file: "file";
|
|
479
479
|
service: "service";
|
|
480
480
|
route: "route";
|
|
481
481
|
post: "post";
|
|
@@ -628,11 +628,11 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
628
628
|
stripe_price_id?: string | null | undefined;
|
|
629
629
|
stripe_meter_id?: string | null | undefined;
|
|
630
630
|
preview?: Record<string, any>[] | null | undefined;
|
|
631
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
632
|
-
source?: "
|
|
631
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
632
|
+
source?: "web" | "api" | undefined;
|
|
633
633
|
created_at?: string | undefined;
|
|
634
634
|
last_updated?: string | undefined;
|
|
635
|
-
asset_type?: "
|
|
635
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
636
636
|
metadata?: {
|
|
637
637
|
schedule?: {
|
|
638
638
|
[x: string]: unknown;
|
|
@@ -769,11 +769,11 @@ declare const CreateReplicationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
769
769
|
stripe_price_id?: string | null | undefined;
|
|
770
770
|
stripe_meter_id?: string | null | undefined;
|
|
771
771
|
preview?: Record<string, any>[] | null | undefined;
|
|
772
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" |
|
|
773
|
-
source?: "
|
|
772
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
773
|
+
source?: "web" | "api" | undefined;
|
|
774
774
|
created_at?: string | undefined;
|
|
775
775
|
last_updated?: string | undefined;
|
|
776
|
-
asset_type?: "
|
|
776
|
+
asset_type?: "file" | "user" | "organization" | "team" | "dataset" | "service" | "route" | "post" | "quest" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
777
777
|
metadata?: {
|
|
778
778
|
schedule?: {
|
|
779
779
|
[x: string]: unknown;
|
package/dist/schema/services.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkD7S2GB7Z_cjs=require('../chunk-D7S2GB7Z.cjs');require('../chunk-FQ4F7DQH.cjs'),require('../chunk-IW4MZW5P.cjs'),require('../chunk-OIPOIY6M.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-3ZHWBPGA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"ActionSchema",{enumerable:true,get:function(){return chunkD7S2GB7Z_cjs.e}});Object.defineProperty(exports,"CreateServiceSchema",{enumerable:true,get:function(){return chunkD7S2GB7Z_cjs.b}});Object.defineProperty(exports,"RouteSchema",{enumerable:true,get:function(){return chunkD7S2GB7Z_cjs.d}});Object.defineProperty(exports,"ServiceSchema",{enumerable:true,get:function(){return chunkD7S2GB7Z_cjs.a}});Object.defineProperty(exports,"UpdateServiceSchema",{enumerable:true,get:function(){return chunkD7S2GB7Z_cjs.c}});//# sourceMappingURL=services.cjs.map
|
|
2
2
|
//# sourceMappingURL=services.cjs.map
|