@ourofoundation/ouro-js 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6GPIZJ4T.cjs → chunk-57RRLX7P.cjs} +2 -2
- package/dist/{chunk-6GPIZJ4T.cjs.map → chunk-57RRLX7P.cjs.map} +1 -1
- package/dist/chunk-5EQ5LO7V.cjs +2 -0
- package/dist/chunk-5EQ5LO7V.cjs.map +1 -0
- package/dist/chunk-7EKD5NQB.js +2 -0
- package/dist/{chunk-IWOXGKK4.js.map → chunk-7EKD5NQB.js.map} +1 -1
- package/dist/{chunk-YKA3RUTN.cjs → chunk-AI2FA44G.cjs} +2 -2
- package/dist/{chunk-YKA3RUTN.cjs.map → chunk-AI2FA44G.cjs.map} +1 -1
- package/dist/chunk-DY5QSBE4.js +2 -0
- package/dist/{chunk-NGN2PI7X.js.map → chunk-DY5QSBE4.js.map} +1 -1
- package/dist/{chunk-DBEBXFQI.cjs → chunk-HW6FGPTA.cjs} +2 -2
- package/dist/{chunk-DBEBXFQI.cjs.map → chunk-HW6FGPTA.cjs.map} +1 -1
- package/dist/{chunk-G3VMEPTP.js → chunk-ITF5WQQB.js} +2 -2
- package/dist/{chunk-G3VMEPTP.js.map → chunk-ITF5WQQB.js.map} +1 -1
- package/dist/{chunk-IBRRR3T2.cjs → chunk-IVO3RQUN.cjs} +2 -2
- package/dist/{chunk-IBRRR3T2.cjs.map → chunk-IVO3RQUN.cjs.map} +1 -1
- package/dist/chunk-JUELSRCY.js +2 -0
- package/dist/{chunk-4UE3XIYR.js.map → chunk-JUELSRCY.js.map} +1 -1
- package/dist/chunk-KHERHT26.cjs +2 -0
- package/dist/chunk-KHERHT26.cjs.map +1 -0
- package/dist/{chunk-F5CWCYOP.cjs → chunk-NTWSEN2H.cjs} +2 -2
- package/dist/{chunk-F5CWCYOP.cjs.map → chunk-NTWSEN2H.cjs.map} +1 -1
- package/dist/chunk-OU4JKY4M.js +2 -0
- package/dist/chunk-OU4JKY4M.js.map +1 -0
- package/dist/chunk-QBL6KIST.js +2 -0
- package/dist/{chunk-WNYOQITO.js.map → chunk-QBL6KIST.js.map} +1 -1
- package/dist/{chunk-6ZJQTECB.cjs → chunk-QNERXSMJ.cjs} +2 -2
- package/dist/{chunk-6ZJQTECB.cjs.map → chunk-QNERXSMJ.cjs.map} +1 -1
- package/dist/chunk-QSOXS57A.cjs +2 -0
- package/dist/chunk-QSOXS57A.cjs.map +1 -0
- package/dist/chunk-RD6EPK44.js +2 -0
- package/dist/{chunk-KCVE35IO.js.map → chunk-RD6EPK44.js.map} +1 -1
- package/dist/{chunk-FRMPLGE4.cjs → chunk-SY5IKIT6.cjs} +2 -2
- package/dist/{chunk-FRMPLGE4.cjs.map → chunk-SY5IKIT6.cjs.map} +1 -1
- package/dist/chunk-TGOXRPF5.js +2 -0
- package/dist/chunk-TGOXRPF5.js.map +1 -0
- package/dist/{chunk-TYOQ32UV.js → chunk-TMNFNVTZ.js} +2 -2
- package/dist/{chunk-TYOQ32UV.js.map → chunk-TMNFNVTZ.js.map} +1 -1
- package/dist/chunk-ZC2VDKSH.js +2 -0
- package/dist/chunk-ZC2VDKSH.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +175 -45
- package/dist/schema/assets.d.ts +175 -45
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +95 -27
- package/dist/schema/comments.d.ts +95 -27
- package/dist/schema/comments.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +163 -47
- package/dist/schema/conversations.d.ts +163 -47
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +230 -66
- package/dist/schema/datasets.d.ts +230 -66
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +230 -66
- package/dist/schema/files.d.ts +230 -66
- package/dist/schema/files.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +250 -74
- package/dist/schema/posts.d.ts +250 -74
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +163 -47
- package/dist/schema/quests.d.ts +163 -47
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +247 -71
- package/dist/schema/services.d.ts +247 -71
- 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 +2 -2
- package/dist/chunk-4UE3XIYR.js +0 -2
- package/dist/chunk-IWOXGKK4.js +0 -2
- 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
- package/dist/chunk-WNYOQITO.js +0 -2
|
@@ -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.ZodOptional<z.ZodNullable<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>;
|
|
@@ -287,6 +307,35 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
287
307
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
288
308
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
289
309
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
310
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
311
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
312
|
+
original: "original";
|
|
313
|
+
derivative: "derivative";
|
|
314
|
+
"third-party": "third-party";
|
|
315
|
+
}>>>;
|
|
316
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
321
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
324
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
325
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
}, z.core.$strip>>>;
|
|
330
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
331
|
+
IsSupplementTo: "IsSupplementTo";
|
|
332
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
333
|
+
References: "References";
|
|
334
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
335
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
336
|
+
}>>>;
|
|
337
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
}, z.core.$strip>>>>;
|
|
290
339
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
291
340
|
id: z.ZodDefault<z.ZodUUID>;
|
|
292
341
|
team_id: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -338,15 +387,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
338
387
|
spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
388
|
spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
389
|
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
390
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
351
391
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
352
392
|
}, z.core.$strip>;
|
|
@@ -368,11 +408,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
368
408
|
spec_path?: string | null | undefined;
|
|
369
409
|
spec_url?: string | null | undefined;
|
|
370
410
|
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
411
|
source?: string | null | undefined;
|
|
377
412
|
reply_to_comment_id?: string | null | undefined;
|
|
378
413
|
};
|
|
@@ -392,6 +427,25 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
392
427
|
stripe_product_id?: string | null | undefined;
|
|
393
428
|
stripe_price_id?: string | null | undefined;
|
|
394
429
|
stripe_meter_id?: string | null | undefined;
|
|
430
|
+
attribution?: {
|
|
431
|
+
originality: "original" | "derivative" | "third-party";
|
|
432
|
+
external_url?: string | null | undefined;
|
|
433
|
+
github_url?: string | null | undefined;
|
|
434
|
+
paper_url?: string | null | undefined;
|
|
435
|
+
doi_url?: string | null | undefined;
|
|
436
|
+
citation?: {
|
|
437
|
+
doi?: string | null | undefined;
|
|
438
|
+
title?: string | null | undefined;
|
|
439
|
+
authors?: string[] | null | undefined;
|
|
440
|
+
year?: number | null | undefined;
|
|
441
|
+
venue?: string | null | undefined;
|
|
442
|
+
url?: string | null | undefined;
|
|
443
|
+
bibtex?: string | null | undefined;
|
|
444
|
+
source?: string | null | undefined;
|
|
445
|
+
} | null | undefined;
|
|
446
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
447
|
+
doi?: string | null | undefined;
|
|
448
|
+
} | null | undefined;
|
|
395
449
|
preview?: Record<string, any>[] | null | undefined;
|
|
396
450
|
name_url_slug?: string | null | undefined;
|
|
397
451
|
}, {
|
|
@@ -412,11 +466,6 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
412
466
|
spec_path?: string | null | undefined;
|
|
413
467
|
spec_url?: string | null | undefined;
|
|
414
468
|
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
469
|
source?: string | null | undefined;
|
|
421
470
|
reply_to_comment_id?: string | null | undefined;
|
|
422
471
|
};
|
|
@@ -436,6 +485,25 @@ declare const CreateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
436
485
|
stripe_product_id?: string | null | undefined;
|
|
437
486
|
stripe_price_id?: string | null | undefined;
|
|
438
487
|
stripe_meter_id?: string | null | undefined;
|
|
488
|
+
attribution?: {
|
|
489
|
+
originality: "original" | "derivative" | "third-party";
|
|
490
|
+
external_url?: string | null | undefined;
|
|
491
|
+
github_url?: string | null | undefined;
|
|
492
|
+
paper_url?: string | null | undefined;
|
|
493
|
+
doi_url?: string | null | undefined;
|
|
494
|
+
citation?: {
|
|
495
|
+
doi?: string | null | undefined;
|
|
496
|
+
title?: string | null | undefined;
|
|
497
|
+
authors?: string[] | null | undefined;
|
|
498
|
+
year?: number | null | undefined;
|
|
499
|
+
venue?: string | null | undefined;
|
|
500
|
+
url?: string | null | undefined;
|
|
501
|
+
bibtex?: string | null | undefined;
|
|
502
|
+
source?: string | null | undefined;
|
|
503
|
+
} | null | undefined;
|
|
504
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
505
|
+
doi?: string | null | undefined;
|
|
506
|
+
} | null | undefined;
|
|
439
507
|
preview?: Record<string, any>[] | null | undefined;
|
|
440
508
|
name_url_slug?: string | null | undefined;
|
|
441
509
|
}>>;
|
|
@@ -467,15 +535,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
467
535
|
spec_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
468
536
|
spec_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
537
|
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
538
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
480
539
|
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
481
540
|
}, z.core.$strip>>;
|
|
@@ -526,6 +585,35 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
526
585
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
527
586
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
528
587
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
588
|
+
attribution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
589
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
590
|
+
original: "original";
|
|
591
|
+
derivative: "derivative";
|
|
592
|
+
"third-party": "third-party";
|
|
593
|
+
}>>>;
|
|
594
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
595
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
596
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
597
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
599
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
600
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
601
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
602
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
603
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
+
}, z.core.$strip>>>;
|
|
608
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
609
|
+
IsSupplementTo: "IsSupplementTo";
|
|
610
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
611
|
+
References: "References";
|
|
612
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
613
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
614
|
+
}>>>;
|
|
615
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
616
|
+
}, z.core.$strip>>>>;
|
|
529
617
|
preview: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>>;
|
|
530
618
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
531
619
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -540,11 +628,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
540
628
|
spec_path?: string | null | undefined;
|
|
541
629
|
spec_url?: string | null | undefined;
|
|
542
630
|
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
631
|
source?: string | null | undefined;
|
|
549
632
|
reply_to_comment_id?: string | null | undefined;
|
|
550
633
|
} | undefined;
|
|
@@ -570,6 +653,25 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
570
653
|
stripe_product_id?: string | null | undefined;
|
|
571
654
|
stripe_price_id?: string | null | undefined;
|
|
572
655
|
stripe_meter_id?: string | null | undefined;
|
|
656
|
+
attribution?: {
|
|
657
|
+
originality: "original" | "derivative" | "third-party";
|
|
658
|
+
external_url?: string | null | undefined;
|
|
659
|
+
github_url?: string | null | undefined;
|
|
660
|
+
paper_url?: string | null | undefined;
|
|
661
|
+
doi_url?: string | null | undefined;
|
|
662
|
+
citation?: {
|
|
663
|
+
doi?: string | null | undefined;
|
|
664
|
+
title?: string | null | undefined;
|
|
665
|
+
authors?: string[] | null | undefined;
|
|
666
|
+
year?: number | null | undefined;
|
|
667
|
+
venue?: string | null | undefined;
|
|
668
|
+
url?: string | null | undefined;
|
|
669
|
+
bibtex?: string | null | undefined;
|
|
670
|
+
source?: string | null | undefined;
|
|
671
|
+
} | null | undefined;
|
|
672
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
673
|
+
doi?: string | null | undefined;
|
|
674
|
+
} | null | undefined;
|
|
573
675
|
preview?: Record<string, any>[] | null | undefined;
|
|
574
676
|
}, {
|
|
575
677
|
last_updated: string;
|
|
@@ -583,11 +685,6 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
583
685
|
spec_path?: string | null | undefined;
|
|
584
686
|
spec_url?: string | null | undefined;
|
|
585
687
|
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
688
|
source?: string | null | undefined;
|
|
592
689
|
reply_to_comment_id?: string | null | undefined;
|
|
593
690
|
} | undefined;
|
|
@@ -613,6 +710,25 @@ declare const UpdateServiceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
613
710
|
stripe_product_id?: string | null | undefined;
|
|
614
711
|
stripe_price_id?: string | null | undefined;
|
|
615
712
|
stripe_meter_id?: string | null | undefined;
|
|
713
|
+
attribution?: {
|
|
714
|
+
originality: "original" | "derivative" | "third-party";
|
|
715
|
+
external_url?: string | null | undefined;
|
|
716
|
+
github_url?: string | null | undefined;
|
|
717
|
+
paper_url?: string | null | undefined;
|
|
718
|
+
doi_url?: string | null | undefined;
|
|
719
|
+
citation?: {
|
|
720
|
+
doi?: string | null | undefined;
|
|
721
|
+
title?: string | null | undefined;
|
|
722
|
+
authors?: string[] | null | undefined;
|
|
723
|
+
year?: number | null | undefined;
|
|
724
|
+
venue?: string | null | undefined;
|
|
725
|
+
url?: string | null | undefined;
|
|
726
|
+
bibtex?: string | null | undefined;
|
|
727
|
+
source?: string | null | undefined;
|
|
728
|
+
} | null | undefined;
|
|
729
|
+
relation_type?: "IsSupplementTo" | "IsDerivedFrom" | "References" | "IsVariantFormOf" | "IsIdenticalTo" | null | undefined;
|
|
730
|
+
doi?: string | null | undefined;
|
|
731
|
+
} | null | undefined;
|
|
616
732
|
preview?: Record<string, any>[] | null | undefined;
|
|
617
733
|
}>>;
|
|
618
734
|
declare const ExecutionModeSchema: z.ZodEnum<{
|
|
@@ -967,17 +1083,37 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
967
1083
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
1084
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
1085
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
originality: z.ZodEnum<{
|
|
1086
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1087
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1088
|
+
}, z.core.$strip>>>;
|
|
1089
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1090
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
975
1091
|
original: "original";
|
|
976
1092
|
derivative: "derivative";
|
|
977
1093
|
"third-party": "third-party";
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
|
|
1094
|
+
}>>>;
|
|
1095
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1096
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1098
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1099
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1100
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1101
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1102
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1103
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1104
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1105
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1106
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1107
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1108
|
+
}, z.core.$strip>>>;
|
|
1109
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1110
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1111
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1112
|
+
References: "References";
|
|
1113
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1114
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1115
|
+
}>>>;
|
|
1116
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
981
1117
|
}, z.core.$strip>>>;
|
|
982
1118
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
983
1119
|
state: z.ZodEnum<{
|
|
@@ -1322,17 +1458,37 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
1322
1458
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1323
1459
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1324
1460
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
originality: z.ZodEnum<{
|
|
1461
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1462
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1463
|
+
}, z.core.$strip>>>;
|
|
1464
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1465
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1330
1466
|
original: "original";
|
|
1331
1467
|
derivative: "derivative";
|
|
1332
1468
|
"third-party": "third-party";
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
|
|
1469
|
+
}>>>;
|
|
1470
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1471
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1472
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1473
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1474
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1475
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1477
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1478
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1479
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1480
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1481
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1482
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1483
|
+
}, z.core.$strip>>>;
|
|
1484
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1485
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1486
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1487
|
+
References: "References";
|
|
1488
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1489
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1490
|
+
}>>>;
|
|
1491
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1336
1492
|
}, z.core.$strip>>>;
|
|
1337
1493
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
1338
1494
|
state: z.ZodEnum<{
|
|
@@ -1572,17 +1728,37 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
1572
1728
|
stripe_price_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1573
1729
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1574
1730
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
originality: z.ZodEnum<{
|
|
1731
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1732
|
+
reply_to_comment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1733
|
+
}, z.core.$strip>>>;
|
|
1734
|
+
attribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1735
|
+
originality: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1580
1736
|
original: "original";
|
|
1581
1737
|
derivative: "derivative";
|
|
1582
1738
|
"third-party": "third-party";
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1739
|
+
}>>>;
|
|
1740
|
+
external_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1741
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1742
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1743
|
+
doi_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1744
|
+
citation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1745
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1746
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1747
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1748
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1749
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1750
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1751
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1752
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1753
|
+
}, z.core.$strip>>>;
|
|
1754
|
+
relation_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1755
|
+
IsSupplementTo: "IsSupplementTo";
|
|
1756
|
+
IsDerivedFrom: "IsDerivedFrom";
|
|
1757
|
+
References: "References";
|
|
1758
|
+
IsVariantFormOf: "IsVariantFormOf";
|
|
1759
|
+
IsIdenticalTo: "IsIdenticalTo";
|
|
1760
|
+
}>>>;
|
|
1761
|
+
doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1586
1762
|
}, z.core.$strip>>>;
|
|
1587
1763
|
preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
1588
1764
|
state: z.ZodEnum<{
|
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-ZC2VDKSH.js';import'../chunk-OU4JKY4M.js';import'../chunk-TGOXRPF5.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 chunkQNERXSMJ_cjs=require('../chunk-QNERXSMJ.cjs');require('../chunk-QSOXS57A.cjs'),require('../chunk-KHERHT26.cjs'),require('../chunk-5EQ5LO7V.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 chunkQNERXSMJ_cjs.c}});Object.defineProperty(exports,"KeyedAssetInputValueSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.b}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkQNERXSMJ_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkQNERXSMJ_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-TMNFNVTZ.js';import'../chunk-ZC2VDKSH.js';import'../chunk-OU4JKY4M.js';import'../chunk-TGOXRPF5.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ourofoundation/ouro-js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Interact with the Ouro platform in browser and node.js environments",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=14.0.0"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
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-IWOXGKK4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b,c as c$1,d,a as a$1}from'./chunk-SR5UZ4NP.js';import {a}from'./chunk-WRHPQNEL.js';import {lazy,object,optional,string,array,record,any,literal,nullable,number}from'zod';var h=lazy(()=>object({type:string(),content:optional(array(h)),attrs:optional(record(string(),any())),marks:optional(array(object({type:string(),attrs:optional(record(string(),any()))}))),text:optional(string())})),c=object({type:literal("doc"),content:array(h)}),P=object({json:c,text:string()}).default({json:{type:"doc",content:[]},text:""}),z=object({}),T=z.extend(b.partial().shape),m=c$1.extend({name:nullable(string()),asset_type:a.refine(t=>["post","comment"].includes(t)),metadata:T,preview:c.default({type:"doc",content:[]}),content:P}),A=d.extend({asset_type:literal("post").default("post"),name:string().optional().nullable().default("").transform(t=>t==null?void 0:t.trim()).transform(t=>t||null),preview:c}).transform(t=>a$1(t)),C=m.extend({content:optional(nullable(P.default({json:{type:"doc",content:[]},text:""}))),reactions:array(record(string(),any())).default([]),views:number().default(0),commentCount:number().default(0)}),j=array(C),w=array(m),v=m.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,content:true,organization:true,user:true,team:true,slug:true,is_pinned_in_team:true}).extend({last_updated:string().default(()=>new Date().toISOString())}).transform(t=>a$1(t));export{c as a,P as b,m as c,A as d,C as e,j as f,w as g,v as h};//# sourceMappingURL=chunk-IWOXGKK4.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-IWOXGKK4.js.map
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/services.ts"],"names":["AuthType","zodEnum","BaseServiceMetadataSchema","object","string","optional","nullable","ServiceMetadataSchema","AssetMetadataSchema","ServiceSchema","AssetSchema","AssetTypeSchema","x","CreateServiceSchema","CreateAssetSchema","value","normalizeAssetConfigForParsing","UpdateServiceSchema","ExecutionModeSchema","RouteAssetType","RouteInputFilter","RouteInputAssetDeclarationSchema","boolean","array","any","RouteOutputAssetDeclarationSchema","RouteInputAssetsSchema","record","RouteOutputAssetsSchema","RouteDetailSchema","number","RouteMetricsSchema","RouteSchema","ActionSchema","uuid","StatusSchema"],"mappings":"0MAuBA,IAAMA,EAAWC,KAAQ,CAAA,CAAC,uBAAyB,CAAA,MAAA,CAAQ,OAAQ,WAAW,CAAC,CAEzEC,CAAAA,CAAAA,CAA4BC,OAAO,CACvC,cAAA,CAAgBH,CAChB,CAAA,QAAA,CAAUI,QACV,CAAA,OAAA,CAASC,QAASC,CAAAA,QAAAA,CAASF,QAAQ,CAAC,CACpC,CAAA,SAAA,CAAWC,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,EACtC,QAAUC,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACrC,QAAUC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CACvC,CAAC,CAEKG,CAAAA,CAA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AAA,CAASI,CAAW,CAAC,CAAA,CAC5C,aAAeL,CAAAA,QAAAA,CAASC,SAASiB,KAAMI,CAAAA,MAAAA,CAAOvB,MAAO,EAAA,CAAGoB,KAAK,CAAC,CAAC,CAAC,EAChE,WAAanB,CAAAA,QAAAA,CAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAAA,CACxC,aAAeC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAAA,CAC1C,OAAQ+B,CACR,CAAA,UAAA,CAAY/B,MAAO,EAAA,CACnB,aAAcA,MAAO,EAAA,CACrB,UAAYC,CAAAA,QAAAA,CAASC,SAASF,MAAO,EAAC,CAAC,CAAA,CAIvC,OAAQC,QAASC,CAAAA,QAAAA,CAASF,MAAO,EAAC,CAAC,CAEnC,CAAA,oBAAA,CAAsBC,QAASC,CAAAA,QAAAA,CAASwB,QAAQ,CAAC,CACjD,CAAA,WAAA,CAAazB,SAASC,QAASF,CAAAA,MAAAA,EAAQ,CAAC,CAC1C,CAAC","file":"chunk-MLTO7TMM.js","sourcesContent":["import {\n object,\n string,\n uuid,\n number,\n array,\n type z,\n record,\n any,\n enum as zodEnum,\n optional,\n nullable,\n boolean\n} from \"zod\";\n\nimport { AssetTypeSchema, StatusSchema } from \"./common\";\nimport {\n AssetMetadataSchema,\n AssetSchema,\n CreateAssetSchema,\n normalizeAssetConfigForParsing,\n} from \"./assets\";\n\nconst AuthType = zodEnum([\"Personal Access Token\", \"Ouro\", \"None\", \"OAuth 2.0\"]);\n\nconst BaseServiceMetadataSchema = object({\n authentication: AuthType,\n base_url: string(),\n version: optional(nullable(string())),\n spec_path: optional(nullable(string())),\n spec_url: optional(nullable(string())),\n auth_url: optional(nullable(string())),\n});\n\nconst ServiceMetadataSchema = BaseServiceMetadataSchema.extend(\n AssetMetadataSchema.partial().shape\n);\n\nconst ServiceSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n});\n\nconst CreateServiceSchema = CreateAssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"service\" === x),\n metadata: ServiceMetadataSchema,\n}).transform((value) => normalizeAssetConfigForParsing(value));\n\nconst UpdateServiceSchema = ServiceSchema.partial()\n .omit({\n user_id: true,\n id: true,\n created_at: true,\n last_updated: true,\n organization: true,\n user: true,\n team: true,\n slug: true,\n is_pinned_in_team: true,\n })\n .extend({\n last_updated: string().default(() => new Date().toISOString()),\n })\n .transform((value) => normalizeAssetConfigForParsing(value));\n\nconst ExecutionModeSchema = zodEnum([\"sync\", \"async\"]);\n\n// Asset type accepted in keyed `input_assets` / `output_assets` declarations.\nconst RouteAssetType = zodEnum([\"file\", \"dataset\", \"post\"]);\n\n// File-type filter accepted on file-input declarations.\nconst RouteInputFilter = zodEnum([\n \"audio\",\n \"video\",\n \"image\",\n \"pdf\",\n \"3d model\",\n \"atomic structure\",\n]);\n\n// Shape of a single keyed declaration in `routes.input_assets`. Plural\n// declarations are canonical; the legacy `input_type` and `input_file_*`\n// columns on the route row stay in sync as primary projections.\nconst RouteInputAssetDeclarationSchema = object({\n asset_type: RouteAssetType,\n primary: optional(boolean()),\n input_filter: optional(nullable(RouteInputFilter)),\n file_extensions: optional(nullable(array(string()))),\n contains_file_extensions: optional(nullable(array(string()))),\n}).catchall(any());\n\n// Shape of a single keyed declaration in `routes.output_assets`.\nconst RouteOutputAssetDeclarationSchema = object({\n asset_type: RouteAssetType,\n primary: optional(boolean()),\n file_extensions: optional(nullable(array(string()))),\n contains_file_extensions: optional(nullable(array(string()))),\n}).catchall(any());\n\nconst RouteInputAssetsSchema = record(\n string(),\n RouteInputAssetDeclarationSchema\n);\n\nconst RouteOutputAssetsSchema = record(\n string(),\n RouteOutputAssetDeclarationSchema\n);\n\nconst RouteDetailSchema = object({\n id: string(),\n user_id: string(),\n service_id: string(),\n path: string(),\n method: zodEnum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]),\n summary: optional(nullable(string())),\n parameters: optional(nullable(array(record(string(), any())))),\n request_body: optional(nullable(record(string(), any()))),\n responses: optional(nullable(array(record(string(), any())))),\n // Canonical plural input declarations keyed by request body field name.\n input_assets: optional(nullable(RouteInputAssetsSchema)),\n // Legacy primary projection — kept synchronized with `input_assets` for\n // older clients, indexing, and quick asset-type lookups.\n input_type: optional(nullable(RouteAssetType)),\n input_filter: optional(nullable(RouteInputFilter)),\n input_file_extension: optional(nullable(string())),\n input_file_extensions: optional(nullable(array(string()))),\n // Canonical plural output declarations keyed by response body field name.\n output_assets: optional(nullable(RouteOutputAssetsSchema)),\n // Legacy primary projection — kept synchronized with `output_assets`.\n output_type: optional(nullable(RouteAssetType)),\n output_file_extension: optional(nullable(string())),\n security: optional(nullable(record(string(), any()))),\n rate_limit: optional(nullable(number())),\n // Author-declared execution model: 'sync' = upstream returns the result\n // inline; 'async' = upstream returns 202 quickly and webhooks completion.\n execution_mode: optional(ExecutionModeSchema).default(\"sync\"),\n // Empirical mode derived by the platform from recent action history; null\n // until enough samples have been observed. When this differs from\n // execution_mode the route is misconfigured.\n observed_execution_mode: optional(nullable(ExecutionModeSchema)),\n last_updated: string(),\n});\n\n// Per-route latency aggregates surfaced from asset_metrics. All fields are\n// nullable because they don't exist until the platform has observed at least\n// one completed action for the route.\nconst RouteMetricsSchema = object({\n // Average HTTP-hop latency in milliseconds: time from request start until\n // upstream returned 200 or 202.\n avg_ack_ms: optional(nullable(number())),\n p95_ack_ms: optional(nullable(number())),\n // Average end-to-end latency in milliseconds: started_at to finished_at,\n // includes webhook completion for async routes. This is the value an\n // agent should consider when deciding whether to wait or poll.\n avg_completion_ms: optional(nullable(number())),\n p95_completion_ms: optional(nullable(number())),\n latency_sample_count: optional(nullable(number())),\n});\n\nconst RouteSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((x) => \"route\" === x),\n route: RouteDetailSchema,\n // Latency aggregates joined from asset_metrics; null when no samples yet.\n metrics: optional(nullable(RouteMetricsSchema)),\n});\n\nconst ActionSchema = object({\n id: uuid(),\n user_id: uuid(),\n route_id: uuid(),\n metadata: optional(nullable(record(string(), any()))),\n response: optional(nullable(record(string(), any()))),\n side_effects: boolean().default(true),\n input_asset_id: optional(nullable(uuid())),\n output_asset_id: optional(nullable(uuid())),\n input_asset: optional(nullable(AssetSchema)),\n input_assets: optional(nullable(array(record(string(), any())))),\n output_asset: optional(nullable(AssetSchema)),\n output_assets: optional(nullable(array(record(string(), any())))),\n webhook_url: optional(nullable(string())),\n webhook_token: optional(nullable(string())),\n status: StatusSchema,\n created_at: string(),\n last_updated: string(),\n started_at: optional(nullable(string())),\n // When the upstream service first responded (200 or 202). For sync routes\n // this is approximately equal to finished_at; for async routes the gap\n // between ack_at and finished_at is the out-of-band wait time.\n ack_at: optional(nullable(string())),\n // HTTP status code returned by the upstream service at ack time.\n upstream_status_code: optional(nullable(number())),\n finished_at: optional(nullable(string())),\n});\n\nexport {\n RouteSchema,\n RouteInputAssetDeclarationSchema,\n RouteOutputAssetDeclarationSchema,\n RouteInputAssetsSchema,\n RouteOutputAssetsSchema,\n ServiceSchema,\n CreateServiceSchema,\n UpdateServiceSchema,\n ActionSchema,\n RouteMetricsSchema,\n ExecutionModeSchema,\n};\nexport type Service = z.infer<typeof ServiceSchema>;\nexport type Route = z.infer<typeof RouteSchema>;\nexport type RouteDetail = z.infer<typeof RouteDetailSchema>;\nexport type RouteMetrics = z.infer<typeof RouteMetricsSchema>;\nexport type RouteInputAssetDeclaration = z.infer<typeof RouteInputAssetDeclarationSchema>;\nexport type RouteOutputAssetDeclaration = z.infer<typeof RouteOutputAssetDeclarationSchema>;\nexport type RouteInputAssets = z.infer<typeof RouteInputAssetsSchema>;\nexport type RouteOutputAssets = z.infer<typeof RouteOutputAssetsSchema>;\nexport type ExecutionMode = z.infer<typeof ExecutionModeSchema>;\nexport type AuthType = z.infer<typeof AuthType>;\nexport type Action = z.infer<typeof ActionSchema>;\n"]}
|
package/dist/chunk-NGN2PI7X.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a,d,c as c$1}from'./chunk-TYOQ32UV.js';import {c,b,d as d$1,a as a$2}from'./chunk-SR5UZ4NP.js';import {a as a$1}from'./chunk-WRHPQNEL.js';import {enum as _enum,object,optional,string,array,any,record,literal,number,uuid,nullable,boolean,union}from'zod';var z=_enum(["closable","continuous"]),E=_enum(["draft","open","closed","cancelled"]),_=_enum(["pending","in_progress","done","skipped"]),C=_enum(["btc","usd"]),I=_enum(["skipped","running","passed","failed","errored"]),q=_enum(["submitted","accepted","rejected"]),k=object({type:string(),content:optional(array(any())),attrs:optional(record(string(),any())),marks:optional(array(any())),text:optional(string())}),p=object({json:object({type:literal("doc"),content:array(k)}),text:string()}),T=object({id:uuid(),quest_id:uuid(),description:string(),status:_.default("pending"),auto_skipped:optional(nullable(string().or(any()))),status_before_auto_skip:optional(nullable(_)),sort_order:number().default(0),type:string().default("task"),created_by:uuid(),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:number().int().nonnegative().default(0),reward_currency:C.default("btc"),reward_amount:number().int().nonnegative().default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),submission_assets:optional(nullable(record(string(),d))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string())),contributor_keys:optional(nullable(array(object({key:string(),required:boolean().default(true),filters:object({assetType:optional(string()),fileType:optional(string()),extensions:optional(array(string())),hasConstraints:boolean().default(false)})})))),created_at:string(),updated_at:string()}),A=T,S=object({description:string().min(1,{message:"Item description cannot be empty"}),type:optional(string()).default("task"),sort_order:optional(number().int()),assignee_id:optional(nullable(uuid())),expected_asset_type:optional(nullable(a$1)),reward_xp:optional(number().int().nonnegative()).default(0),reward_currency:optional(C).default("btc"),reward_amount:optional(number().int().nonnegative()).default(0),child_quest_id:optional(nullable(uuid())),eval_route_id:optional(nullable(uuid())),eval_score_path:optional(nullable(string())),eval_pass_min:optional(nullable(number())),eval_pass_max:optional(nullable(number())),submission_assets:optional(nullable(record(string(),d))),eval_static_inputs:optional(nullable(a)),notes:optional(nullable(string()))}),R=union([string().transform(u=>({description:u})),S]).pipe(S),U=object({type:z.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),closed_at:optional(nullable(string()))}),j=c.extend({asset_type:literal("quest").default("quest"),metadata:optional(nullable(b.partial())),quest:optional(U.partial()),items:optional(array(A.partial())),progress:optional(object({total:number(),resolved:number(),remaining:number(),items:optional(array(object({id:string(),status:_,waiting_on:optional(nullable(string())),waiting_until:optional(nullable(string())),waiting_check_every:optional(nullable(string()))}).partial()))}))}),Z=d$1.extend({asset_type:literal("quest").default("quest"),name:optional(nullable(string())).default(null),description:optional(nullable(p)),type:z.default("closable"),status:E.default("open"),max_xp_per_contributor:optional(nullable(number().int().nonnegative())),items:optional(array(R)).default([])}).transform(u=>a$2(u)),F=j.partial().omit({user_id:true,id:true,created_at:true,last_updated:true,organization:true,user:true,team:true,slug:true,items:true,progress:true,is_pinned_in_team:true}).extend({asset_type:literal("quest").default("quest"),last_updated:string().default(()=>new Date().toISOString())}).transform(u=>a$2(u)),M=S.partial().extend({status:optional(_)}),N=object({id:uuid(),quest_id:uuid(),user_id:uuid(),item_id:optional(nullable(uuid())),asset_id:optional(nullable(uuid())),asset_type:optional(nullable(a$1)),assets:optional(nullable(a)),description:optional(nullable(p)),review:optional(nullable(p)),status:q,reviewer_id:optional(nullable(uuid())),reviewed_at:optional(nullable(string())),eval_action_id:optional(nullable(uuid())),eval_score:optional(nullable(number())),eval_status:optional(nullable(I)),created_at:string(),updated_at:string()}),P=object({item_id:uuid(),assets:optional(nullable(c$1)),description:optional(nullable(union([string(),p])))}),G=object({status:_enum(["accepted","rejected"]),review:optional(nullable(union([string(),p])))});export{z as a,E as b,_ as c,C as d,I as e,q as f,T as g,A as h,S as i,R as j,j as k,Z as l,F as m,M as n,N as o,P as p,G as q};//# sourceMappingURL=chunk-NGN2PI7X.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-NGN2PI7X.js.map
|