@ourofoundation/ouro-js 3.6.0 → 3.7.1
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-2BABFO5H.js +2 -0
- package/dist/chunk-2BABFO5H.js.map +1 -0
- package/dist/{chunk-DBEBXFQI.cjs → chunk-2KXX5JF6.cjs} +2 -2
- package/dist/{chunk-DBEBXFQI.cjs.map → chunk-2KXX5JF6.cjs.map} +1 -1
- package/dist/chunk-G5V2WTN5.cjs +2 -0
- package/dist/chunk-G5V2WTN5.cjs.map +1 -0
- package/dist/{chunk-WNYOQITO.js → chunk-IL3WA4D7.js} +2 -2
- package/dist/{chunk-WNYOQITO.js.map → chunk-IL3WA4D7.js.map} +1 -1
- package/dist/chunk-KHERHT26.cjs +2 -0
- package/dist/chunk-KHERHT26.cjs.map +1 -0
- package/dist/{chunk-IWOXGKK4.js → chunk-LYP7DPZ3.js} +2 -2
- package/dist/{chunk-IWOXGKK4.js.map → chunk-LYP7DPZ3.js.map} +1 -1
- package/dist/chunk-N74Y47X7.js +2 -0
- package/dist/chunk-N74Y47X7.js.map +1 -0
- package/dist/{chunk-IBRRR3T2.cjs → chunk-O5CY3JW3.cjs} +2 -2
- package/dist/{chunk-IBRRR3T2.cjs.map → chunk-O5CY3JW3.cjs.map} +1 -1
- package/dist/chunk-OBXAWON7.js +2 -0
- package/dist/{chunk-4UE3XIYR.js.map → chunk-OBXAWON7.js.map} +1 -1
- package/dist/chunk-OU4JKY4M.js +2 -0
- package/dist/chunk-OU4JKY4M.js.map +1 -0
- package/dist/chunk-OWS6VJJ2.js +2 -0
- package/dist/{chunk-NGN2PI7X.js.map → chunk-OWS6VJJ2.js.map} +1 -1
- package/dist/{chunk-F5CWCYOP.cjs → chunk-PN763DHR.cjs} +2 -2
- package/dist/{chunk-F5CWCYOP.cjs.map → chunk-PN763DHR.cjs.map} +1 -1
- package/dist/chunk-PPZZKUF6.cjs +2 -0
- package/dist/chunk-PPZZKUF6.cjs.map +1 -0
- package/dist/chunk-QJG6O5OT.cjs +2 -0
- package/dist/chunk-QJG6O5OT.cjs.map +1 -0
- package/dist/chunk-R7YOQNVS.js +2 -0
- package/dist/chunk-R7YOQNVS.js.map +1 -0
- package/dist/{chunk-TYOQ32UV.js → chunk-S5VZHGMV.js} +2 -2
- package/dist/{chunk-TYOQ32UV.js.map → chunk-S5VZHGMV.js.map} +1 -1
- package/dist/{chunk-6ZJQTECB.cjs → chunk-VPYKCTVU.cjs} +2 -2
- package/dist/{chunk-6ZJQTECB.cjs.map → chunk-VPYKCTVU.cjs.map} +1 -1
- package/dist/{chunk-YKA3RUTN.cjs → chunk-Y6EN5F74.cjs} +2 -2
- package/dist/{chunk-YKA3RUTN.cjs.map → chunk-Y6EN5F74.cjs.map} +1 -1
- package/dist/{chunk-6GPIZJ4T.cjs → chunk-YCK6Y3BF.cjs} +2 -2
- package/dist/{chunk-6GPIZJ4T.cjs.map → chunk-YCK6Y3BF.cjs.map} +1 -1
- package/dist/chunk-YXVAFJZH.js +2 -0
- package/dist/{chunk-KCVE35IO.js.map → chunk-YXVAFJZH.js.map} +1 -1
- 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.cjs +1 -1
- package/dist/schema/assets.d.cts +215 -46
- package/dist/schema/assets.d.ts +215 -46
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +132 -28
- package/dist/schema/comments.d.ts +132 -28
- package/dist/schema/comments.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +235 -47
- package/dist/schema/conversations.d.ts +235 -47
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +302 -66
- package/dist/schema/datasets.d.ts +302 -66
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +302 -66
- package/dist/schema/files.d.ts +302 -66
- package/dist/schema/files.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +286 -74
- package/dist/schema/posts.d.ts +286 -74
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +199 -47
- package/dist/schema/quests.d.ts +199 -47
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +286 -74
- package/dist/schema/services.d.ts +286 -74
- package/dist/schema/services.js +1 -1
- package/dist/utils/files.cjs +2 -0
- package/dist/utils/files.cjs.map +1 -0
- package/dist/utils/files.d.cts +18 -0
- package/dist/utils/files.d.ts +18 -0
- package/dist/utils/files.js +2 -0
- package/dist/utils/files.js.map +1 -0
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4UE3XIYR.js +0 -2
- package/dist/chunk-FRMPLGE4.cjs +0 -2
- package/dist/chunk-FRMPLGE4.cjs.map +0 -1
- package/dist/chunk-G3VMEPTP.js +0 -2
- package/dist/chunk-G3VMEPTP.js.map +0 -1
- package/dist/chunk-KCVE35IO.js +0 -2
- package/dist/chunk-MLTO7TMM.js +0 -2
- package/dist/chunk-MLTO7TMM.js.map +0 -1
- package/dist/chunk-NGN2PI7X.js +0 -2
- package/dist/chunk-ROMY5WNQ.cjs +0 -2
- package/dist/chunk-ROMY5WNQ.cjs.map +0 -1
- package/dist/chunk-SR5UZ4NP.js +0 -2
- package/dist/chunk-SR5UZ4NP.js.map +0 -1
- package/dist/chunk-V73EW77Y.cjs +0 -2
- package/dist/chunk-V73EW77Y.cjs.map +0 -1
|
@@ -207,6 +207,35 @@ declare const ServiceSchema: z.ZodObject<{
|
|
|
207
207
|
stripe_product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
208
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
209
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
attribution: z.ZodObject<{
|
|
211
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
original: "original";
|
|
213
|
+
derivative: "derivative";
|
|
214
|
+
"third-party": "third-party";
|
|
215
|
+
}>>>;
|
|
216
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
221
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
224
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
225
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
231
|
+
IsSupplementTo: "IsSupplementTo";
|
|
232
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
233
|
+
References: "References";
|
|
234
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
235
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
236
|
+
}>>>;
|
|
237
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
+
}, z.core.$strip>;
|
|
210
239
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
211
240
|
state: z.ZodEnum<{
|
|
212
241
|
success: "success";
|
|
@@ -247,15 +276,6 @@ declare const ServiceSchema: z.ZodObject<{
|
|
|
247
276
|
spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
277
|
spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
278
|
auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
251
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
252
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
253
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
254
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
255
|
-
original: "original";
|
|
256
|
-
derivative: "derivative";
|
|
257
|
-
"third-party": "third-party";
|
|
258
|
-
}>>;
|
|
259
279
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
260
280
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
261
281
|
}, z.core.$strip>;
|
|
@@ -311,6 +331,71 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
311
331
|
monetized: "monetized";
|
|
312
332
|
inherit: "inherit";
|
|
313
333
|
}>>>;
|
|
334
|
+
attribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
335
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
original: "original";
|
|
337
|
+
derivative: "derivative";
|
|
338
|
+
"third-party": "third-party";
|
|
339
|
+
}>>>;
|
|
340
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
345
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
348
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
349
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
}, z.core.$strip>>>;
|
|
354
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
355
|
+
IsSupplementTo: "IsSupplementTo";
|
|
356
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
357
|
+
References: "References";
|
|
358
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
359
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
360
|
+
}>>>;
|
|
361
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
363
|
+
originality: "original" | "derivative" | "third-party";
|
|
364
|
+
external_url?: string | null | undefined;
|
|
365
|
+
github_url?: string | null | undefined;
|
|
366
|
+
paper_url?: string | null | undefined;
|
|
367
|
+
doi_url?: string | null | undefined;
|
|
368
|
+
citation?: {
|
|
369
|
+
doi?: string | null | undefined;
|
|
370
|
+
title?: string | null | undefined;
|
|
371
|
+
authors?: string[] | null | undefined;
|
|
372
|
+
year?: number | null | undefined;
|
|
373
|
+
venue?: string | null | undefined;
|
|
374
|
+
url?: string | null | undefined;
|
|
375
|
+
bibtex?: string | null | undefined;
|
|
376
|
+
source?: string | null | undefined;
|
|
377
|
+
} | null | undefined;
|
|
378
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
379
|
+
doi?: string | null | undefined;
|
|
380
|
+
}, {
|
|
381
|
+
originality: "original" | "derivative" | "third-party";
|
|
382
|
+
external_url?: string | null | undefined;
|
|
383
|
+
github_url?: string | null | undefined;
|
|
384
|
+
paper_url?: string | null | undefined;
|
|
385
|
+
doi_url?: string | null | undefined;
|
|
386
|
+
citation?: {
|
|
387
|
+
doi?: string | null | undefined;
|
|
388
|
+
title?: string | null | undefined;
|
|
389
|
+
authors?: string[] | null | undefined;
|
|
390
|
+
year?: number | null | undefined;
|
|
391
|
+
venue?: string | null | undefined;
|
|
392
|
+
url?: string | null | undefined;
|
|
393
|
+
bibtex?: string | null | undefined;
|
|
394
|
+
source?: string | null | undefined;
|
|
395
|
+
} | null | undefined;
|
|
396
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
397
|
+
doi?: string | null | undefined;
|
|
398
|
+
} | null | undefined>>;
|
|
314
399
|
created_at: z.ZodDefault<z.ZodString>;
|
|
315
400
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
316
401
|
asset_type: z.ZodEnum<{
|
|
@@ -338,15 +423,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
338
423
|
spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
424
|
spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
425
|
auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
342
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
343
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
344
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
345
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
346
|
-
original: "original";
|
|
347
|
-
derivative: "derivative";
|
|
348
|
-
"third-party": "third-party";
|
|
349
|
-
}>>;
|
|
350
426
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
351
427
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
352
428
|
}, z.core.$strip>;
|
|
@@ -358,6 +434,25 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
358
434
|
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
359
435
|
source: "api" | "web";
|
|
360
436
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
437
|
+
attribution: {
|
|
438
|
+
originality: "original" | "derivative" | "third-party";
|
|
439
|
+
external_url?: string | null | undefined;
|
|
440
|
+
github_url?: string | null | undefined;
|
|
441
|
+
paper_url?: string | null | undefined;
|
|
442
|
+
doi_url?: string | null | undefined;
|
|
443
|
+
citation?: {
|
|
444
|
+
doi?: string | null | undefined;
|
|
445
|
+
title?: string | null | undefined;
|
|
446
|
+
authors?: string[] | null | undefined;
|
|
447
|
+
year?: number | null | undefined;
|
|
448
|
+
venue?: string | null | undefined;
|
|
449
|
+
url?: string | null | undefined;
|
|
450
|
+
bibtex?: string | null | undefined;
|
|
451
|
+
source?: string | null | undefined;
|
|
452
|
+
} | null | undefined;
|
|
453
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
454
|
+
doi?: string | null | undefined;
|
|
455
|
+
};
|
|
361
456
|
created_at: string;
|
|
362
457
|
last_updated: string;
|
|
363
458
|
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
@@ -368,11 +463,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
368
463
|
spec_path?: string | null | undefined;
|
|
369
464
|
spec_url?: string | null | undefined;
|
|
370
465
|
auth_url?: string | null | undefined;
|
|
371
|
-
doi_url?: string | null | undefined;
|
|
372
|
-
external_url?: string | null | undefined;
|
|
373
|
-
paper_url?: string | null | undefined;
|
|
374
|
-
github_url?: string | null | undefined;
|
|
375
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
376
466
|
source?: string | null | undefined;
|
|
377
467
|
reply_to_comment_id?: string | null | undefined;
|
|
378
468
|
};
|
|
@@ -402,6 +492,25 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
402
492
|
state: "success" | "queued" | "in-progress" | "timed-out" | "error";
|
|
403
493
|
source: "api" | "web";
|
|
404
494
|
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
495
|
+
attribution: {
|
|
496
|
+
originality: "original" | "derivative" | "third-party";
|
|
497
|
+
external_url?: string | null | undefined;
|
|
498
|
+
github_url?: string | null | undefined;
|
|
499
|
+
paper_url?: string | null | undefined;
|
|
500
|
+
doi_url?: string | null | undefined;
|
|
501
|
+
citation?: {
|
|
502
|
+
doi?: string | null | undefined;
|
|
503
|
+
title?: string | null | undefined;
|
|
504
|
+
authors?: string[] | null | undefined;
|
|
505
|
+
year?: number | null | undefined;
|
|
506
|
+
venue?: string | null | undefined;
|
|
507
|
+
url?: string | null | undefined;
|
|
508
|
+
bibtex?: string | null | undefined;
|
|
509
|
+
source?: string | null | undefined;
|
|
510
|
+
} | null | undefined;
|
|
511
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
512
|
+
doi?: string | null | undefined;
|
|
513
|
+
};
|
|
405
514
|
created_at: string;
|
|
406
515
|
last_updated: string;
|
|
407
516
|
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "quest" | "comment" | "conversation";
|
|
@@ -412,11 +521,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
412
521
|
spec_path?: string | null | undefined;
|
|
413
522
|
spec_url?: string | null | undefined;
|
|
414
523
|
auth_url?: string | null | undefined;
|
|
415
|
-
doi_url?: string | null | undefined;
|
|
416
|
-
external_url?: string | null | undefined;
|
|
417
|
-
paper_url?: string | null | undefined;
|
|
418
|
-
github_url?: string | null | undefined;
|
|
419
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
420
524
|
source?: string | null | undefined;
|
|
421
525
|
reply_to_comment_id?: string | null | undefined;
|
|
422
526
|
};
|
|
@@ -467,15 +571,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
571
|
spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
572
|
spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
573
|
auth_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
470
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
471
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
472
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
473
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
474
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
475
|
-
original: "original";
|
|
476
|
-
derivative: "derivative";
|
|
477
|
-
"third-party": "third-party";
|
|
478
|
-
}>>;
|
|
479
574
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
480
575
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
481
576
|
}, z.core.$strip>>;
|
|
@@ -501,6 +596,35 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
596
|
"pay-to-unlock": "pay-to-unlock";
|
|
502
597
|
"pay-per-use": "pay-per-use";
|
|
503
598
|
}>>;
|
|
599
|
+
attribution: z.ZodOptional<z.ZodObject<{
|
|
600
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
601
|
+
original: "original";
|
|
602
|
+
derivative: "derivative";
|
|
603
|
+
"third-party": "third-party";
|
|
604
|
+
}>>>;
|
|
605
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
610
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
611
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
612
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
613
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
614
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
615
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
616
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
}, z.core.$strip>>>;
|
|
619
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
620
|
+
IsSupplementTo: "IsSupplementTo";
|
|
621
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
622
|
+
References: "References";
|
|
623
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
624
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
625
|
+
}>>>;
|
|
626
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
627
|
+
}, z.core.$strip>>;
|
|
504
628
|
state: z.ZodOptional<z.ZodEnum<{
|
|
505
629
|
success: "success";
|
|
506
630
|
queued: "queued";
|
|
@@ -540,11 +664,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
540
664
|
spec_path?: string | null | undefined;
|
|
541
665
|
spec_url?: string | null | undefined;
|
|
542
666
|
auth_url?: string | null | undefined;
|
|
543
|
-
doi_url?: string | null | undefined;
|
|
544
|
-
external_url?: string | null | undefined;
|
|
545
|
-
paper_url?: string | null | undefined;
|
|
546
|
-
github_url?: string | null | undefined;
|
|
547
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
548
667
|
source?: string | null | undefined;
|
|
549
668
|
reply_to_comment_id?: string | null | undefined;
|
|
550
669
|
} | undefined;
|
|
@@ -557,6 +676,25 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
557
676
|
} | null | undefined;
|
|
558
677
|
source?: "api" | "web" | undefined;
|
|
559
678
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
679
|
+
attribution?: {
|
|
680
|
+
originality: "original" | "derivative" | "third-party";
|
|
681
|
+
external_url?: string | null | undefined;
|
|
682
|
+
github_url?: string | null | undefined;
|
|
683
|
+
paper_url?: string | null | undefined;
|
|
684
|
+
doi_url?: string | null | undefined;
|
|
685
|
+
citation?: {
|
|
686
|
+
doi?: string | null | undefined;
|
|
687
|
+
title?: string | null | undefined;
|
|
688
|
+
authors?: string[] | null | undefined;
|
|
689
|
+
year?: number | null | undefined;
|
|
690
|
+
venue?: string | null | undefined;
|
|
691
|
+
url?: string | null | undefined;
|
|
692
|
+
bibtex?: string | null | undefined;
|
|
693
|
+
source?: string | null | undefined;
|
|
694
|
+
} | null | undefined;
|
|
695
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
696
|
+
doi?: string | null | undefined;
|
|
697
|
+
} | undefined;
|
|
560
698
|
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
561
699
|
parent_id?: string | null | undefined;
|
|
562
700
|
license_id?: string | undefined;
|
|
@@ -583,11 +721,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
583
721
|
spec_path?: string | null | undefined;
|
|
584
722
|
spec_url?: string | null | undefined;
|
|
585
723
|
auth_url?: string | null | undefined;
|
|
586
|
-
doi_url?: string | null | undefined;
|
|
587
|
-
external_url?: string | null | undefined;
|
|
588
|
-
paper_url?: string | null | undefined;
|
|
589
|
-
github_url?: string | null | undefined;
|
|
590
|
-
originality?: "original" | "derivative" | "third-party" | undefined;
|
|
591
724
|
source?: string | null | undefined;
|
|
592
725
|
reply_to_comment_id?: string | null | undefined;
|
|
593
726
|
} | undefined;
|
|
@@ -600,6 +733,25 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
600
733
|
} | null | undefined;
|
|
601
734
|
source?: "api" | "web" | undefined;
|
|
602
735
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
736
|
+
attribution?: {
|
|
737
|
+
originality: "original" | "derivative" | "third-party";
|
|
738
|
+
external_url?: string | null | undefined;
|
|
739
|
+
github_url?: string | null | undefined;
|
|
740
|
+
paper_url?: string | null | undefined;
|
|
741
|
+
doi_url?: string | null | undefined;
|
|
742
|
+
citation?: {
|
|
743
|
+
doi?: string | null | undefined;
|
|
744
|
+
title?: string | null | undefined;
|
|
745
|
+
authors?: string[] | null | undefined;
|
|
746
|
+
year?: number | null | undefined;
|
|
747
|
+
venue?: string | null | undefined;
|
|
748
|
+
url?: string | null | undefined;
|
|
749
|
+
bibtex?: string | null | undefined;
|
|
750
|
+
source?: string | null | undefined;
|
|
751
|
+
} | null | undefined;
|
|
752
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
753
|
+
doi?: string | null | undefined;
|
|
754
|
+
} | undefined;
|
|
603
755
|
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
604
756
|
parent_id?: string | null | undefined;
|
|
605
757
|
license_id?: string | undefined;
|
|
@@ -967,18 +1119,38 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
967
1119
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
1120
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
1121
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
970
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
971
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
972
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
973
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
974
|
-
originality: z.ZodEnum<{
|
|
975
|
-
original: "original";
|
|
976
|
-
derivative: "derivative";
|
|
977
|
-
"third-party": "third-party";
|
|
978
|
-
}>;
|
|
979
1122
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
980
1123
|
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
981
1124
|
}, z.core.$strip>>>;
|
|
1125
|
+
attribution: z.ZodObject<{
|
|
1126
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1127
|
+
original: "original";
|
|
1128
|
+
derivative: "derivative";
|
|
1129
|
+
"third-party": "third-party";
|
|
1130
|
+
}>>>;
|
|
1131
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1132
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1134
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1136
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1137
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1138
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1139
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1140
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1141
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1142
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1143
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1144
|
+
}, z.core.$strip>>>;
|
|
1145
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1146
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1147
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1148
|
+
References: "References";
|
|
1149
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1150
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1151
|
+
}>>>;
|
|
1152
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1153
|
+
}, z.core.$strip>;
|
|
982
1154
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
983
1155
|
state: z.ZodEnum<{
|
|
984
1156
|
success: "success";
|
|
@@ -1322,18 +1494,38 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
1322
1494
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1323
1495
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1324
1496
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1325
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1326
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1327
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1329
|
-
originality: z.ZodEnum<{
|
|
1330
|
-
original: "original";
|
|
1331
|
-
derivative: "derivative";
|
|
1332
|
-
"third-party": "third-party";
|
|
1333
|
-
}>;
|
|
1334
1497
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1335
1498
|
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1336
1499
|
}, z.core.$strip>>>;
|
|
1500
|
+
attribution: z.ZodObject<{
|
|
1501
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1502
|
+
original: "original";
|
|
1503
|
+
derivative: "derivative";
|
|
1504
|
+
"third-party": "third-party";
|
|
1505
|
+
}>>>;
|
|
1506
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1507
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1508
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1509
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1510
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1511
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1512
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1513
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1514
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1515
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1516
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1517
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1518
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1519
|
+
}, z.core.$strip>>>;
|
|
1520
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1521
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1522
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1523
|
+
References: "References";
|
|
1524
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1525
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1526
|
+
}>>>;
|
|
1527
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1528
|
+
}, z.core.$strip>;
|
|
1337
1529
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
1338
1530
|
state: z.ZodEnum<{
|
|
1339
1531
|
success: "success";
|
|
@@ -1572,18 +1764,38 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
1572
1764
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1573
1765
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1574
1766
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1575
|
-
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1576
|
-
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1577
|
-
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1578
|
-
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1579
|
-
originality: z.ZodEnum<{
|
|
1580
|
-
original: "original";
|
|
1581
|
-
derivative: "derivative";
|
|
1582
|
-
"third-party": "third-party";
|
|
1583
|
-
}>;
|
|
1584
1767
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1585
1768
|
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1586
1769
|
}, z.core.$strip>>>;
|
|
1770
|
+
attribution: z.ZodObject<{
|
|
1771
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1772
|
+
original: "original";
|
|
1773
|
+
derivative: "derivative";
|
|
1774
|
+
"third-party": "third-party";
|
|
1775
|
+
}>>>;
|
|
1776
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1777
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1778
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1779
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1780
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1781
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1782
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1783
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1784
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1785
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1786
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1787
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1788
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1789
|
+
}, z.core.$strip>>>;
|
|
1790
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1791
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1792
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1793
|
+
References: "References";
|
|
1794
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1795
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1796
|
+
}>>>;
|
|
1797
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1798
|
+
}, z.core.$strip>;
|
|
1587
1799
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
1588
1800
|
state: z.ZodEnum<{
|
|
1589
1801
|
success: "success";
|
package/dist/schema/services.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-
|
|
1
|
+
export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-R7YOQNVS.js';import'../chunk-OU4JKY4M.js';import'../chunk-2BABFO5H.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=services.js.map
|
|
2
2
|
//# sourceMappingURL=services.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkKHERHT26_cjs=require('../chunk-KHERHT26.cjs');Object.defineProperty(exports,"FILE_FILTERS",{enumerable:true,get:function(){return chunkKHERHT26_cjs.a}});Object.defineProperty(exports,"fileTypes",{enumerable:true,get:function(){return chunkKHERHT26_cjs.b}});Object.defineProperty(exports,"getExtensionFromFileName",{enumerable:true,get:function(){return chunkKHERHT26_cjs.e}});Object.defineProperty(exports,"getExtensionFromMimeType",{enumerable:true,get:function(){return chunkKHERHT26_cjs.f}});Object.defineProperty(exports,"getFileClassification",{enumerable:true,get:function(){return chunkKHERHT26_cjs.h}});Object.defineProperty(exports,"getFileFilterLabel",{enumerable:true,get:function(){return chunkKHERHT26_cjs.c}});Object.defineProperty(exports,"getSafeFileExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.g}});Object.defineProperty(exports,"normalizeExtension",{enumerable:true,get:function(){return chunkKHERHT26_cjs.d}});//# sourceMappingURL=files.cjs.map
|
|
2
|
+
//# sourceMappingURL=files.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"files.cjs"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Canonical file-input filter values (route `input_filter`, discovery, etc.). */
|
|
2
|
+
declare const FILE_FILTERS: readonly ["audio", "video", "image", "pdf", "3d model", "atomic structure"];
|
|
3
|
+
type FileFilter = (typeof FILE_FILTERS)[number];
|
|
4
|
+
/** MIME types grouped by file filter. */
|
|
5
|
+
declare const fileTypes: Record<FileFilter, readonly string[]>;
|
|
6
|
+
declare function getFileFilterLabel(fileType: string | null | undefined): string | null;
|
|
7
|
+
declare function normalizeExtension(value: string | null | undefined): string | null;
|
|
8
|
+
declare function getExtensionFromFileName(fileName: string | null | undefined): string | null;
|
|
9
|
+
declare function getExtensionFromMimeType(mimeType: string | null | undefined): string | null;
|
|
10
|
+
declare function getSafeFileExtension({ fileName, mimeType, fallback, }: {
|
|
11
|
+
fileName?: string | null;
|
|
12
|
+
mimeType?: string | null;
|
|
13
|
+
fallback?: string | null;
|
|
14
|
+
}): string;
|
|
15
|
+
/** Display classification for a MIME type (asset badges, etc.). */
|
|
16
|
+
declare function getFileClassification(type: string, extension: string): string;
|
|
17
|
+
|
|
18
|
+
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Canonical file-input filter values (route `input_filter`, discovery, etc.). */
|
|
2
|
+
declare const FILE_FILTERS: readonly ["audio", "video", "image", "pdf", "3d model", "atomic structure"];
|
|
3
|
+
type FileFilter = (typeof FILE_FILTERS)[number];
|
|
4
|
+
/** MIME types grouped by file filter. */
|
|
5
|
+
declare const fileTypes: Record<FileFilter, readonly string[]>;
|
|
6
|
+
declare function getFileFilterLabel(fileType: string | null | undefined): string | null;
|
|
7
|
+
declare function normalizeExtension(value: string | null | undefined): string | null;
|
|
8
|
+
declare function getExtensionFromFileName(fileName: string | null | undefined): string | null;
|
|
9
|
+
declare function getExtensionFromMimeType(mimeType: string | null | undefined): string | null;
|
|
10
|
+
declare function getSafeFileExtension({ fileName, mimeType, fallback, }: {
|
|
11
|
+
fileName?: string | null;
|
|
12
|
+
mimeType?: string | null;
|
|
13
|
+
fallback?: string | null;
|
|
14
|
+
}): string;
|
|
15
|
+
/** Display classification for a MIME type (asset badges, etc.). */
|
|
16
|
+
declare function getFileClassification(type: string, extension: string): string;
|
|
17
|
+
|
|
18
|
+
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,h as getFileClassification,c as getFileFilterLabel,g as getSafeFileExtension,d as normalizeExtension}from'../chunk-OU4JKY4M.js';//# sourceMappingURL=files.js.map
|
|
2
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"files.js"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkVPYKCTVU_cjs=require('../chunk-VPYKCTVU.cjs');require('../chunk-G5V2WTN5.cjs'),require('../chunk-KHERHT26.cjs'),require('../chunk-PPZZKUF6.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.c}});Object.defineProperty(exports,"KeyedAssetInputValueSchema",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.b}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkVPYKCTVU_cjs.m}});//# sourceMappingURL=quest-submission.cjs.map
|
|
2
2
|
//# sourceMappingURL=quest-submission.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as KeyedAssetInputSchema,b as KeyedAssetInputValueSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'../chunk-
|
|
1
|
+
export{c as KeyedAssetInputSchema,b as KeyedAssetInputValueSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'../chunk-S5VZHGMV.js';import'../chunk-R7YOQNVS.js';import'../chunk-OU4JKY4M.js';import'../chunk-2BABFO5H.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=quest-submission.js.map
|
|
2
2
|
//# sourceMappingURL=quest-submission.js.map
|
package/package.json
CHANGED
package/dist/chunk-4UE3XIYR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-IWOXGKK4.js';import {b,c,d,a as a$1}from'./chunk-SR5UZ4NP.js';import {b as b$1}from'./chunk-3N56ERWF.js';import {a,b as b$2,d as d$1}from'./chunk-WRHPQNEL.js';import {object,array,string,optional,nullable,literal,uuid,number,record,any}from'zod';var z=object({members:array(string())}),v=z.extend(b.partial().shape),U=c.extend({asset_type:a.default("conversation"),name:nullable(string()),metadata:v,users:optional(nullable(array(b$1)))}),S=d.extend({asset_type:literal("conversation").default("conversation"),monetization:d$1.default("none"),visibility:b$2.default("private"),name:string().optional().nullable().default("").transform(e=>e==null?void 0:e.trim()).transform(e=>e||null),metadata:v}),j=S.transform(e=>a$1(e)),B=S.omit({id:true,org_id:true,team_id:true}).partial().transform(e=>a$1(e)),P=object({id:uuid(),conversation_id:uuid(),turn_id:uuid(),seq:number(),user_id:uuid(),user:optional(nullable(b$1)),type:string().default("message"),created_at:string(),last_updated:string(),viewers:array(uuid()),json:a$2,text:string(),metadata:optional(nullable(record(string(),any())))});export{U as a,j as b,B as c,P as d};//# sourceMappingURL=chunk-4UE3XIYR.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-4UE3XIYR.js.map
|
package/dist/chunk-FRMPLGE4.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkROMY5WNQ_cjs=require('./chunk-ROMY5WNQ.cjs'),uuidv7=require('uuidv7'),zod=require('zod');var l=chunkROMY5WNQ_cjs.c.extend({asset_type:zod.literal("comment").default("comment"),preview:zod.optional(zod.nullable(zod.object({type:zod.string().refine(t=>t==="doc"),content:zod.array(zod.record(zod.string(),zod.any()))}).default({type:"doc",content:[]})))}),C=l.partial().omit({id:true,user_id:true}).extend({asset_type:zod.literal("comment").default("comment"),id:zod.string().default(()=>uuidv7.uuidv7()),name:zod.string().default(""),created_at:zod.string().default(()=>new Date().toISOString()),last_updated:zod.string().default(()=>new Date().toISOString())}).transform(t=>chunkROMY5WNQ_cjs.a(t));exports.a=l;exports.b=C;//# sourceMappingURL=chunk-FRMPLGE4.cjs.map
|
|
2
|
-
//# sourceMappingURL=chunk-FRMPLGE4.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7","value","normalizeAssetConfigForParsing"],"mappings":"+GAeMA,IAAAA,CAAAA,CAAgBC,mBAAY,CAAA,MAAA,CAAO,CACvC,UAAA,CAAYC,WAAQ,CAAA,SAAS,EAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,YACPC,CAAAA,YAAAA,CACEC,UAAO,CAAA,CACL,IAAMC,CAAAA,UAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,QAASC,SAAMC,CAAAA,UAAAA,CAAOH,UAAO,EAAA,CAAGI,OAAI,EAAC,CAAC,CACxC,CAAC,CAAA,CAAE,OAAQ,CAAA,CAAE,IAAM,CAAA,KAAA,CAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAAA,CAEKC,CAAsBX,CAAAA,CAAAA,CAAc,OAAQ,EAAA,CAC/C,IAAK,CAAA,CACJ,EAAI,CAAA,IAAA,CACJ,OAAS,CAAA,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,WAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,UAAAA,EAAS,CAAA,OAAA,CAAQ,IAAMM,aAAAA,EAAQ,CACnC,CAAA,IAAA,CAAMN,UAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAC3D,CAAA,YAAA,CAAcA,UAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,GAAO,WAAY,EAAC,CAC/D,CAAC,CACA,CAAA,SAAA,CAAWO,CAAUC,EAAAA,mBAAAA,CAA+BD,CAAK,CAAC","file":"chunk-FRMPLGE4.cjs","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema, normalizeAssetConfigForParsing } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
|
package/dist/chunk-G3VMEPTP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {c,a}from'./chunk-SR5UZ4NP.js';import {uuidv7}from'uuidv7';import {optional,literal,nullable,object,array,string,record,any}from'zod';var l=c.extend({asset_type:literal("comment").default("comment"),preview:optional(nullable(object({type:string().refine(t=>t==="doc"),content:array(record(string(),any()))}).default({type:"doc",content:[]})))}),C=l.partial().omit({id:true,user_id:true}).extend({asset_type:literal("comment").default("comment"),id:string().default(()=>uuidv7()),name:string().default(""),created_at:string().default(()=>new Date().toISOString()),last_updated:string().default(()=>new Date().toISOString())}).transform(t=>a(t));export{l as a,C as b};//# sourceMappingURL=chunk-G3VMEPTP.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-G3VMEPTP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/comments.ts"],"names":["CommentSchema","AssetSchema","literal","optional","nullable","object","string","x","array","record","any","CreateCommentSchema","uuidv7","value","normalizeAssetConfigForParsing"],"mappings":"6IAeMA,IAAAA,CAAAA,CAAgBC,CAAY,CAAA,MAAA,CAAO,CACvC,UAAA,CAAYC,OAAQ,CAAA,SAAS,EAAE,OAAQ,CAAA,SAAS,CAChD,CAAA,OAAA,CAASC,QACPC,CAAAA,QAAAA,CACEC,MAAO,CAAA,CACL,IAAMC,CAAAA,MAAAA,EAAS,CAAA,MAAA,CAAQC,CAAMA,EAAAA,CAAAA,GAAM,KAAK,CAAA,CACxC,QAASC,KAAMC,CAAAA,MAAAA,CAAOH,MAAO,EAAA,CAAGI,GAAI,EAAC,CAAC,CACxC,CAAC,CAAA,CAAE,OAAQ,CAAA,CAAE,IAAM,CAAA,KAAA,CAAO,OAAS,CAAA,EAAG,CAAC,CACzC,CACF,CACF,CAAC,CAAA,CAEKC,CAAsBX,CAAAA,CAAAA,CAAc,OAAQ,EAAA,CAC/C,IAAK,CAAA,CACJ,EAAI,CAAA,IAAA,CACJ,OAAS,CAAA,IACX,CAAC,CACA,CAAA,MAAA,CAAO,CACN,UAAA,CAAYE,OAAQ,CAAA,SAAS,CAAE,CAAA,OAAA,CAAQ,SAAS,CAAA,CAChD,EAAII,CAAAA,MAAAA,EAAS,CAAA,OAAA,CAAQ,IAAMM,MAAAA,EAAQ,CACnC,CAAA,IAAA,CAAMN,MAAO,EAAA,CAAE,OAAQ,CAAA,EAAE,CACzB,CAAA,UAAA,CAAYA,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,EAAO,CAAA,WAAA,EAAa,CAC3D,CAAA,YAAA,CAAcA,MAAO,EAAA,CAAE,OAAQ,CAAA,IAAM,IAAI,IAAA,GAAO,WAAY,EAAC,CAC/D,CAAC,CACA,CAAA,SAAA,CAAWO,CAAUC,EAAAA,CAAAA,CAA+BD,CAAK,CAAC","file":"chunk-G3VMEPTP.js","sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport {\n object,\n string,\n array,\n type z,\n record,\n any,\n literal,\n optional,\n nullable\n} from \"zod\";\n\nimport { AssetSchema, normalizeAssetConfigForParsing } from \"./assets\";\n\nconst CommentSchema = AssetSchema.extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n preview: optional(\n nullable(\n object({\n type: string().refine((x) => x === \"doc\"),\n content: array(record(string(), any())),\n }).default({ type: \"doc\", content: [] })\n )\n ),\n});\n\nconst CreateCommentSchema = CommentSchema.partial()\n .omit({\n id: true,\n user_id: true,\n })\n .extend({\n asset_type: literal(\"comment\").default(\"comment\"),\n id: string().default(() => uuidv7()),\n name: string().default(\"\"),\n created_at: string().default(() => new Date().toISOString()),\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nexport { CommentSchema, CreateCommentSchema };\nexport type Comment = z.infer<typeof CommentSchema>;\nexport type CreateComment = z.infer<typeof CreateCommentSchema>;\n"]}
|
package/dist/chunk-KCVE35IO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b,c,d,a}from'./chunk-SR5UZ4NP.js';import {object,optional,number,string,enum as _enum,uuid,literal,discriminatedUnion}from'zod';var f=object({id:uuid(),path:string(),bucket:_enum(["public-files","files"]),name:string(),type:string(),extension:string(),size:number(),width:optional(number()),height:optional(number())}),h=object({type:string()}),p=f.extend(b.partial().shape),S=h.extend(b.partial().shape),F=c.extend({asset_type:literal("file").default("file"),metadata:p}),g=discriminatedUnion("state",[d.extend({asset_type:literal("file").default("file"),state:literal("success").default("success"),metadata:p}),d.extend({asset_type:literal("file").default("file"),state:literal("in-progress").default("in-progress"),metadata:S})]).transform(a$1=>a(a$1)),z=F.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,is_pinned_in_team:true}).extend({last_updated:string().default(()=>new Date().toISOString())}).transform(a$1=>a(a$1));export{F as a,g as b,z as c};//# sourceMappingURL=chunk-KCVE35IO.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-KCVE35IO.js.map
|
package/dist/chunk-MLTO7TMM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b as b$1,c,d as d$1,a as a$1}from'./chunk-SR5UZ4NP.js';import {a,j}from'./chunk-WRHPQNEL.js';import {enum as _enum,object,optional,string,nullable,array,boolean,any,record,number,uuid}from'zod';var v=_enum(["Personal Access Token","Ouro","None","OAuth 2.0"]),z=object({authentication:v,base_url:string(),version:optional(nullable(string())),spec_path:optional(nullable(string())),spec_url:optional(nullable(string())),auth_url:optional(nullable(string()))}),A=z.extend(b$1.partial().shape),D=c.extend({asset_type:a.refine(n=>n==="service"),metadata:A}),C=d$1.extend({asset_type:a.refine(n=>n==="service"),metadata:A}).transform(n=>a$1(n)),w=D.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,is_pinned_in_team:true}).extend({last_updated:string().default(()=>new Date().toISOString())}).transform(n=>a$1(n)),x=_enum(["sync","async"]),d=_enum(["file","dataset","post"]),R=_enum(["audio","video","image","pdf","3d model","atomic structure"]),T=object({asset_type:d,primary:optional(boolean()),input_filter:optional(nullable(R)),file_extensions:optional(nullable(array(string()))),contains_file_extensions:optional(nullable(array(string())))}).catchall(any()),O=object({asset_type:d,primary:optional(boolean()),file_extensions:optional(nullable(array(string()))),contains_file_extensions:optional(nullable(array(string())))}).catchall(any()),b=record(string(),T),g=record(string(),O),M=object({id:string(),user_id:string(),service_id:string(),path:string(),method:_enum(["GET","POST","PUT","PATCH","DELETE"]),summary:optional(nullable(string())),parameters:optional(nullable(array(record(string(),any())))),request_body:optional(nullable(record(string(),any()))),responses:optional(nullable(array(record(string(),any())))),input_assets:optional(nullable(b)),input_type:optional(nullable(d)),input_filter:optional(nullable(R)),input_file_extension:optional(nullable(string())),input_file_extensions:optional(nullable(array(string()))),output_assets:optional(nullable(g)),output_type:optional(nullable(d)),output_file_extension:optional(nullable(string())),security:optional(nullable(record(string(),any()))),rate_limit:optional(nullable(number())),execution_mode:optional(x).default("sync"),observed_execution_mode:optional(nullable(x)),last_updated:string()}),E=object({avg_ack_ms:optional(nullable(number())),p95_ack_ms:optional(nullable(number())),avg_completion_ms:optional(nullable(number())),p95_completion_ms:optional(nullable(number())),latency_sample_count:optional(nullable(number()))}),F=c.extend({asset_type:a.refine(n=>n==="route"),route:M,metrics:optional(nullable(E))}),U=object({id:uuid(),user_id:uuid(),route_id:uuid(),metadata:optional(nullable(record(string(),any()))),response:optional(nullable(record(string(),any()))),side_effects:boolean().default(true),input_asset_id:optional(nullable(uuid())),output_asset_id:optional(nullable(uuid())),input_asset:optional(nullable(c)),input_assets:optional(nullable(array(record(string(),any())))),output_asset:optional(nullable(c)),output_assets:optional(nullable(array(record(string(),any())))),webhook_url:optional(nullable(string())),webhook_token:optional(nullable(string())),status:j,created_at:string(),last_updated:string(),started_at:optional(nullable(string())),ack_at:optional(nullable(string())),upstream_status_code:optional(nullable(number())),finished_at:optional(nullable(string()))});export{D as a,C as b,w as c,x as d,T as e,O as f,b as g,g as h,E as i,F as j,U as k};//# sourceMappingURL=chunk-MLTO7TMM.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-MLTO7TMM.js.map
|