@ourofoundation/ouro-js 3.8.3 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +63 -0
- package/dist/chunk-33ELNWOX.js +2 -0
- package/dist/chunk-33ELNWOX.js.map +1 -0
- package/dist/chunk-3PRQXWQP.js +2 -0
- package/dist/chunk-3PRQXWQP.js.map +1 -0
- package/dist/chunk-4276I2OP.js +2 -0
- package/dist/chunk-4276I2OP.js.map +1 -0
- package/dist/chunk-4AEKCY33.js +2 -0
- package/dist/chunk-4AEKCY33.js.map +1 -0
- package/dist/{chunk-KU5AWMS5.cjs → chunk-5PWVQ2XA.cjs} +2 -2
- package/dist/{chunk-KU5AWMS5.cjs.map → chunk-5PWVQ2XA.cjs.map} +1 -1
- package/dist/{chunk-RMMMRN4X.cjs → chunk-6DNS4QKU.cjs} +2 -2
- package/dist/{chunk-RMMMRN4X.cjs.map → chunk-6DNS4QKU.cjs.map} +1 -1
- package/dist/{chunk-AIIAIQ6L.cjs → chunk-BR3QVFVE.cjs} +2 -2
- package/dist/{chunk-AIIAIQ6L.cjs.map → chunk-BR3QVFVE.cjs.map} +1 -1
- package/dist/{chunk-OCG3P3PJ.js → chunk-BWUPF76F.js} +2 -2
- package/dist/{chunk-OCG3P3PJ.js.map → chunk-BWUPF76F.js.map} +1 -1
- package/dist/{chunk-LXDNBUOU.js → chunk-BYYDLMAE.js} +2 -2
- package/dist/{chunk-LXDNBUOU.js.map → chunk-BYYDLMAE.js.map} +1 -1
- package/dist/chunk-CZMKRHO4.cjs +2 -0
- package/dist/chunk-CZMKRHO4.cjs.map +1 -0
- package/dist/chunk-D6JWKEY5.cjs +2 -0
- package/dist/chunk-D6JWKEY5.cjs.map +1 -0
- package/dist/chunk-DA7VOYUY.js +2 -0
- package/dist/{chunk-FGEMQEEM.js.map → chunk-DA7VOYUY.js.map} +1 -1
- package/dist/chunk-F7URSDHU.cjs +2 -0
- package/dist/chunk-F7URSDHU.cjs.map +1 -0
- package/dist/chunk-HJW6XNOY.js +2 -0
- package/dist/chunk-HJW6XNOY.js.map +1 -0
- package/dist/chunk-J4GKOJZZ.cjs +2 -0
- package/dist/chunk-J4GKOJZZ.cjs.map +1 -0
- package/dist/chunk-KE53HYHH.cjs +2 -0
- package/dist/chunk-KE53HYHH.cjs.map +1 -0
- package/dist/chunk-NLU672VS.js +2 -0
- package/dist/chunk-NLU672VS.js.map +1 -0
- package/dist/chunk-O2BXIKRA.js +2 -0
- package/dist/chunk-O2BXIKRA.js.map +1 -0
- package/dist/chunk-OC34WU3H.cjs +2 -0
- package/dist/chunk-OC34WU3H.cjs.map +1 -0
- package/dist/chunk-OMO4474C.cjs +2 -0
- package/dist/chunk-OMO4474C.cjs.map +1 -0
- package/dist/chunk-PMOXYEAS.js +2 -0
- package/dist/{chunk-MKRXM63S.js.map → chunk-PMOXYEAS.js.map} +1 -1
- package/dist/chunk-QVMN2EX4.js +2 -0
- package/dist/chunk-QVMN2EX4.js.map +1 -0
- package/dist/chunk-R52RJPI3.cjs +2 -0
- package/dist/chunk-R52RJPI3.cjs.map +1 -0
- package/dist/chunk-RO6NRIGU.js +2 -0
- package/dist/chunk-RO6NRIGU.js.map +1 -0
- package/dist/chunk-SUVNXKE6.js +2 -0
- package/dist/chunk-SUVNXKE6.js.map +1 -0
- package/dist/chunk-SZW4GHCP.cjs +2 -0
- package/dist/chunk-SZW4GHCP.cjs.map +1 -0
- package/dist/chunk-UBSYUTZO.cjs +2 -0
- package/dist/chunk-UBSYUTZO.cjs.map +1 -0
- package/dist/chunk-V352KM56.cjs +2 -0
- package/dist/chunk-V352KM56.cjs.map +1 -0
- package/dist/{chunk-DSJ23DIB.cjs → chunk-V5W6FOUA.cjs} +2 -2
- package/dist/{chunk-DSJ23DIB.cjs.map → chunk-V5W6FOUA.cjs.map} +1 -1
- package/dist/chunk-WMCUQQ2Q.cjs +2 -0
- package/dist/chunk-WMCUQQ2Q.cjs.map +1 -0
- package/dist/{chunk-E2FDUS3B.cjs → chunk-X5KE2IW6.cjs} +2 -2
- package/dist/{chunk-E2FDUS3B.cjs.map → chunk-X5KE2IW6.cjs.map} +1 -1
- package/dist/chunk-XSZPAZEE.js +2 -0
- package/dist/{chunk-PGCNGDPK.js.map → chunk-XSZPAZEE.js.map} +1 -1
- package/dist/chunk-Y37HRTGF.js +2 -0
- package/dist/chunk-Y37HRTGF.js.map +1 -0
- package/dist/chunk-ZM7J5MCU.js +2 -0
- package/dist/chunk-ZM7J5MCU.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +1 -1
- package/dist/schema/asset-filters.d.cts +2 -2
- package/dist/schema/asset-filters.d.ts +2 -2
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +10 -4
- package/dist/schema/assets.d.ts +10 -4
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +44 -8
- package/dist/schema/comments.d.ts +44 -8
- package/dist/schema/comments.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +18 -6
- package/dist/schema/conversations.d.ts +18 -6
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +24 -16
- package/dist/schema/datasets.d.ts +24 -16
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +178 -11
- package/dist/schema/files.d.ts +178 -11
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +21 -1
- package/dist/schema/notifications.d.ts +21 -1
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +3 -1
- package/dist/schema/organizations.d.ts +3 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +42 -6
- package/dist/schema/posts.d.ts +42 -6
- package/dist/schema/posts.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +94 -21
- package/dist/schema/quests.d.ts +94 -21
- package/dist/schema/quests.js +1 -1
- package/dist/schema/renditions.cjs +2 -0
- package/dist/schema/renditions.cjs.map +1 -0
- package/dist/schema/renditions.d.cts +196 -0
- package/dist/schema/renditions.d.ts +196 -0
- package/dist/schema/renditions.js +2 -0
- package/dist/schema/renditions.js.map +1 -0
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +333 -21
- package/dist/schema/services.d.ts +333 -21
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +27 -2
- package/dist/schema/teams.d.ts +27 -2
- package/dist/schema/teams.js +1 -1
- package/dist/schema/users.cjs +1 -1
- package/dist/schema/users.d.cts +42 -1
- package/dist/schema/users.d.ts +42 -1
- package/dist/schema/users.js +1 -1
- package/dist/utils/files.cjs +1 -1
- package/dist/utils/files.d.cts +2 -1
- package/dist/utils/files.d.ts +2 -1
- package/dist/utils/files.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.js +1 -1
- package/dist/utils/quest-submission-helpers.cjs +2 -0
- package/dist/utils/quest-submission-helpers.cjs.map +1 -0
- package/dist/utils/quest-submission-helpers.d.cts +2 -0
- package/dist/utils/quest-submission-helpers.d.ts +2 -0
- package/dist/utils/quest-submission-helpers.js +2 -0
- package/dist/utils/quest-submission-helpers.js.map +1 -0
- package/dist/utils/quest-submission.cjs +1 -1
- package/dist/utils/quest-submission.d.cts +69 -59
- package/dist/utils/quest-submission.d.ts +69 -59
- package/dist/utils/quest-submission.js +1 -1
- package/package.json +1 -1
- package/tests/file-classification.test.mjs +19 -0
- package/tests/files.test.mjs +21 -1
- package/tests/navigate.test.mjs +53 -0
- package/tests/renditions.test.mjs +111 -0
- package/dist/chunk-3DGJ27WL.js +0 -2
- package/dist/chunk-3DGJ27WL.js.map +0 -1
- package/dist/chunk-3JPOAQ2M.cjs +0 -2
- package/dist/chunk-3JPOAQ2M.cjs.map +0 -1
- package/dist/chunk-64ZUBBP7.js +0 -2
- package/dist/chunk-64ZUBBP7.js.map +0 -1
- package/dist/chunk-ADLJ3UUW.cjs +0 -2
- package/dist/chunk-ADLJ3UUW.cjs.map +0 -1
- package/dist/chunk-CDJH4OT5.js +0 -2
- package/dist/chunk-CDJH4OT5.js.map +0 -1
- package/dist/chunk-CIEATF7M.cjs +0 -2
- package/dist/chunk-CIEATF7M.cjs.map +0 -1
- package/dist/chunk-EY4OFSDP.js +0 -2
- package/dist/chunk-EY4OFSDP.js.map +0 -1
- package/dist/chunk-FGEMQEEM.js +0 -2
- package/dist/chunk-KHERHT26.cjs +0 -2
- package/dist/chunk-KHERHT26.cjs.map +0 -1
- package/dist/chunk-LMRFVO4I.cjs +0 -2
- package/dist/chunk-LMRFVO4I.cjs.map +0 -1
- package/dist/chunk-MKRXM63S.js +0 -2
- package/dist/chunk-MOEVC3KD.cjs +0 -2
- package/dist/chunk-MOEVC3KD.cjs.map +0 -1
- package/dist/chunk-OU4JKY4M.js +0 -2
- package/dist/chunk-OU4JKY4M.js.map +0 -1
- package/dist/chunk-PGCNGDPK.js +0 -2
- package/dist/chunk-PVUBGWOI.cjs +0 -2
- package/dist/chunk-PVUBGWOI.cjs.map +0 -1
- package/dist/chunk-RS5H4XDK.js +0 -2
- package/dist/chunk-RS5H4XDK.js.map +0 -1
- package/dist/chunk-W6KXPYCB.js +0 -2
- package/dist/chunk-W6KXPYCB.js.map +0 -1
- package/dist/chunk-XEA4DDOE.cjs +0 -2
- package/dist/chunk-XEA4DDOE.cjs.map +0 -1
- package/dist/chunk-XL2RQ3DZ.cjs +0 -2
- package/dist/chunk-XL2RQ3DZ.cjs.map +0 -1
- package/dist/chunk-XXFKHRNE.js +0 -2
- package/dist/chunk-XXFKHRNE.js.map +0 -1
- package/dist/chunk-Y6BK75KP.js +0 -2
- package/dist/chunk-Y6BK75KP.js.map +0 -1
- package/dist/chunk-YTCAK2AH.cjs +0 -2
- package/dist/chunk-YTCAK2AH.cjs.map +0 -1
- package/dist/chunk-ZFARY5F4.js +0 -2
- package/dist/chunk-ZFARY5F4.js.map +0 -1
package/dist/schema/services.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{u as ActionAssetRefSchema,t as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,v as ReadActionRouteSchema,w as ReadActionSchema,e as RouteAssetTypeSchema,f as RouteAssetTypesSchema,l as RouteCacheScopeSchema,q as RouteCapabilitiesSchema,h as RouteInputAssetDeclarationSchema,j as RouteInputAssetsSchema,g as RouteInputFilterSchema,r as RouteMetricsSchema,i as RouteOutputAssetDeclarationSchema,k as RouteOutputAssetsSchema,s as RouteSchema,a as ServiceSchema,p as SpeechTranscribeRouteCapabilitySchema,n as SpeechVoiceSchema,o as TextSpeechRouteCapabilitySchema,m as TextTranslationRouteCapabilitySchema,c as UpdateServiceSchema}from'../chunk-4276I2OP.js';import'../chunk-QVMN2EX4.js';import'../chunk-XSZPAZEE.js';import'../chunk-ZM7J5MCU.js';import'../chunk-BWUPF76F.js';import'../chunk-NLU672VS.js';import'../chunk-33C7IDRP.js';import'../chunk-DUBPWSCA.js';import'../chunk-42ADEGDM.js';//# sourceMappingURL=services.js.map
|
|
2
2
|
//# sourceMappingURL=services.js.map
|
package/dist/schema/teams.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkR52RJPI3_cjs=require('../chunk-R52RJPI3.cjs');require('../chunk-5PWVQ2XA.cjs'),require('../chunk-WMCUQQ2Q.cjs'),require('../chunk-YFEGRZXL.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"CreateTeamSchema",{enumerable:true,get:function(){return chunkR52RJPI3_cjs.b}});Object.defineProperty(exports,"ReadTeamSchema",{enumerable:true,get:function(){return chunkR52RJPI3_cjs.c}});Object.defineProperty(exports,"ReadTeamsSchema",{enumerable:true,get:function(){return chunkR52RJPI3_cjs.d}});Object.defineProperty(exports,"TeamSchema",{enumerable:true,get:function(){return chunkR52RJPI3_cjs.a}});Object.defineProperty(exports,"UpdateTeamSchema",{enumerable:true,get:function(){return chunkR52RJPI3_cjs.e}});//# sourceMappingURL=teams.cjs.map
|
|
2
2
|
//# sourceMappingURL=teams.cjs.map
|
package/dist/schema/teams.d.cts
CHANGED
|
@@ -63,6 +63,7 @@ declare const TeamSchema: z.ZodObject<{
|
|
|
63
63
|
web_only: "web_only";
|
|
64
64
|
api_only: "api_only";
|
|
65
65
|
}>>>;
|
|
66
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
66
67
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
68
|
user_id: z.ZodUUID;
|
|
68
69
|
role: z.ZodEnum<{
|
|
@@ -72,6 +73,11 @@ declare const TeamSchema: z.ZodObject<{
|
|
|
72
73
|
none: "none";
|
|
73
74
|
}>;
|
|
74
75
|
}, z.core.$strip>>>;
|
|
76
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
id: z.ZodUUID;
|
|
78
|
+
status: z.ZodString;
|
|
79
|
+
created_at: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
75
81
|
memberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
82
|
members: z.ZodArray<z.ZodObject<{
|
|
77
83
|
user_id: z.ZodUUID;
|
|
@@ -115,6 +121,7 @@ declare const CreateTeamSchema: z.ZodObject<{
|
|
|
115
121
|
id: z.ZodDefault<z.ZodString>;
|
|
116
122
|
org_id: z.ZodUUID;
|
|
117
123
|
name: z.ZodString;
|
|
124
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
118
125
|
actor_type_policy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
119
126
|
any: "any";
|
|
120
127
|
verified_only: "verified_only";
|
|
@@ -131,13 +138,13 @@ declare const CreateTeamSchema: z.ZodObject<{
|
|
|
131
138
|
private: "private";
|
|
132
139
|
monetized: "monetized";
|
|
133
140
|
inherit: "inherit";
|
|
134
|
-
}>>;
|
|
141
|
+
}>> & z.ZodType<"organization" | "public", "organization" | "public" | "private" | "monetized" | "inherit" | undefined, z.core.$ZodTypeInternals<"organization" | "public", "organization" | "public" | "private" | "monetized" | "inherit" | undefined>>;
|
|
135
142
|
default_role: z.ZodDefault<z.ZodEnum<{
|
|
136
143
|
admin: "admin";
|
|
137
144
|
read: "read";
|
|
138
145
|
write: "write";
|
|
139
146
|
none: "none";
|
|
140
|
-
}>>;
|
|
147
|
+
}>> & z.ZodType<"read" | "write", "admin" | "read" | "write" | "none" | undefined, z.core.$ZodTypeInternals<"read" | "write", "admin" | "read" | "write" | "none" | undefined>>;
|
|
141
148
|
description: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
149
|
text: z.ZodString;
|
|
143
150
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -174,6 +181,12 @@ declare const ReadTeamSchema: z.ZodObject<{
|
|
|
174
181
|
web_only: "web_only";
|
|
175
182
|
api_only: "api_only";
|
|
176
183
|
}>>>;
|
|
184
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
185
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
186
|
+
id: z.ZodUUID;
|
|
187
|
+
status: z.ZodString;
|
|
188
|
+
created_at: z.ZodString;
|
|
189
|
+
}, z.core.$strip>>>;
|
|
177
190
|
created_at: z.ZodString;
|
|
178
191
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
179
192
|
user_id: z.ZodUUID;
|
|
@@ -319,6 +332,12 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
|
|
|
319
332
|
web_only: "web_only";
|
|
320
333
|
api_only: "api_only";
|
|
321
334
|
}>>>;
|
|
335
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
336
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
337
|
+
id: z.ZodUUID;
|
|
338
|
+
status: z.ZodString;
|
|
339
|
+
created_at: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
322
341
|
created_at: z.ZodString;
|
|
323
342
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
324
343
|
user_id: z.ZodUUID;
|
|
@@ -437,6 +456,7 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
|
|
|
437
456
|
}, z.core.$strip>>;
|
|
438
457
|
declare const UpdateTeamSchema: z.ZodObject<{
|
|
439
458
|
name: z.ZodOptional<z.ZodString>;
|
|
459
|
+
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
440
460
|
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
441
461
|
any: "any";
|
|
442
462
|
verified_only: "verified_only";
|
|
@@ -473,6 +493,11 @@ declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
473
493
|
none: "none";
|
|
474
494
|
}>;
|
|
475
495
|
}, z.core.$strip>>>>;
|
|
496
|
+
userJoinRequest: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
497
|
+
id: z.ZodUUID;
|
|
498
|
+
status: z.ZodString;
|
|
499
|
+
created_at: z.ZodString;
|
|
500
|
+
}, z.core.$strip>>>>;
|
|
476
501
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
477
502
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
503
|
user_id: z.ZodUUID;
|
package/dist/schema/teams.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ declare const TeamSchema: z.ZodObject<{
|
|
|
63
63
|
web_only: "web_only";
|
|
64
64
|
api_only: "api_only";
|
|
65
65
|
}>>>;
|
|
66
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
66
67
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
68
|
user_id: z.ZodUUID;
|
|
68
69
|
role: z.ZodEnum<{
|
|
@@ -72,6 +73,11 @@ declare const TeamSchema: z.ZodObject<{
|
|
|
72
73
|
none: "none";
|
|
73
74
|
}>;
|
|
74
75
|
}, z.core.$strip>>>;
|
|
76
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
id: z.ZodUUID;
|
|
78
|
+
status: z.ZodString;
|
|
79
|
+
created_at: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
75
81
|
memberCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
82
|
members: z.ZodArray<z.ZodObject<{
|
|
77
83
|
user_id: z.ZodUUID;
|
|
@@ -115,6 +121,7 @@ declare const CreateTeamSchema: z.ZodObject<{
|
|
|
115
121
|
id: z.ZodDefault<z.ZodString>;
|
|
116
122
|
org_id: z.ZodUUID;
|
|
117
123
|
name: z.ZodString;
|
|
124
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
118
125
|
actor_type_policy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
119
126
|
any: "any";
|
|
120
127
|
verified_only: "verified_only";
|
|
@@ -131,13 +138,13 @@ declare const CreateTeamSchema: z.ZodObject<{
|
|
|
131
138
|
private: "private";
|
|
132
139
|
monetized: "monetized";
|
|
133
140
|
inherit: "inherit";
|
|
134
|
-
}>>;
|
|
141
|
+
}>> & z.ZodType<"organization" | "public", "organization" | "public" | "private" | "monetized" | "inherit" | undefined, z.core.$ZodTypeInternals<"organization" | "public", "organization" | "public" | "private" | "monetized" | "inherit" | undefined>>;
|
|
135
142
|
default_role: z.ZodDefault<z.ZodEnum<{
|
|
136
143
|
admin: "admin";
|
|
137
144
|
read: "read";
|
|
138
145
|
write: "write";
|
|
139
146
|
none: "none";
|
|
140
|
-
}>>;
|
|
147
|
+
}>> & z.ZodType<"read" | "write", "admin" | "read" | "write" | "none" | undefined, z.core.$ZodTypeInternals<"read" | "write", "admin" | "read" | "write" | "none" | undefined>>;
|
|
141
148
|
description: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
149
|
text: z.ZodString;
|
|
143
150
|
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -174,6 +181,12 @@ declare const ReadTeamSchema: z.ZodObject<{
|
|
|
174
181
|
web_only: "web_only";
|
|
175
182
|
api_only: "api_only";
|
|
176
183
|
}>>>;
|
|
184
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
185
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
186
|
+
id: z.ZodUUID;
|
|
187
|
+
status: z.ZodString;
|
|
188
|
+
created_at: z.ZodString;
|
|
189
|
+
}, z.core.$strip>>>;
|
|
177
190
|
created_at: z.ZodString;
|
|
178
191
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
179
192
|
user_id: z.ZodUUID;
|
|
@@ -319,6 +332,12 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
|
|
|
319
332
|
web_only: "web_only";
|
|
320
333
|
api_only: "api_only";
|
|
321
334
|
}>>>;
|
|
335
|
+
join_policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
336
|
+
userJoinRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
337
|
+
id: z.ZodUUID;
|
|
338
|
+
status: z.ZodString;
|
|
339
|
+
created_at: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
322
341
|
created_at: z.ZodString;
|
|
323
342
|
userMembership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
324
343
|
user_id: z.ZodUUID;
|
|
@@ -437,6 +456,7 @@ declare const ReadTeamsSchema: z.ZodArray<z.ZodObject<{
|
|
|
437
456
|
}, z.core.$strip>>;
|
|
438
457
|
declare const UpdateTeamSchema: z.ZodObject<{
|
|
439
458
|
name: z.ZodOptional<z.ZodString>;
|
|
459
|
+
join_policy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
440
460
|
actor_type_policy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
441
461
|
any: "any";
|
|
442
462
|
verified_only: "verified_only";
|
|
@@ -473,6 +493,11 @@ declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
473
493
|
none: "none";
|
|
474
494
|
}>;
|
|
475
495
|
}, z.core.$strip>>>>;
|
|
496
|
+
userJoinRequest: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
497
|
+
id: z.ZodUUID;
|
|
498
|
+
status: z.ZodString;
|
|
499
|
+
created_at: z.ZodString;
|
|
500
|
+
}, z.core.$strip>>>>;
|
|
476
501
|
memberCount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
477
502
|
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
503
|
user_id: z.ZodUUID;
|
package/dist/schema/teams.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'../chunk-
|
|
1
|
+
export{b as CreateTeamSchema,c as ReadTeamSchema,d as ReadTeamsSchema,a as TeamSchema,e as UpdateTeamSchema}from'../chunk-ZM7J5MCU.js';import'../chunk-BWUPF76F.js';import'../chunk-NLU672VS.js';import'../chunk-33C7IDRP.js';import'../chunk-42ADEGDM.js';//# sourceMappingURL=teams.js.map
|
|
2
2
|
//# sourceMappingURL=teams.js.map
|
package/dist/schema/users.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWMCUQQ2Q_cjs=require('../chunk-WMCUQQ2Q.cjs');Object.defineProperty(exports,"ActorTypeSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.a}});Object.defineProperty(exports,"LanguageToolsPreferencesSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.b}});Object.defineProperty(exports,"PreferencesSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.c}});Object.defineProperty(exports,"ProfileSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.d}});Object.defineProperty(exports,"ReadProfileSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.e}});Object.defineProperty(exports,"UpdateProfileSchema",{enumerable:true,get:function(){return chunkWMCUQQ2Q_cjs.f}});//# sourceMappingURL=users.cjs.map
|
|
2
2
|
//# sourceMappingURL=users.cjs.map
|
package/dist/schema/users.d.cts
CHANGED
|
@@ -5,6 +5,45 @@ declare const ActorTypeSchema: z.ZodEnum<{
|
|
|
5
5
|
agent: "agent";
|
|
6
6
|
verified: "verified";
|
|
7
7
|
}>;
|
|
8
|
+
declare const LanguageToolsPreferencesSchema: z.ZodObject<{
|
|
9
|
+
language: z.ZodString;
|
|
10
|
+
translation: z.ZodObject<{
|
|
11
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
12
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
13
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
14
|
+
speech: z.ZodObject<{
|
|
15
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
16
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
|
+
voice: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
19
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
21
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
23
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
24
|
+
declare const PreferencesSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodUUID;
|
|
26
|
+
user_id: z.ZodUUID;
|
|
27
|
+
notifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
29
|
+
onboarding: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
30
|
+
language_tools: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
language: z.ZodString;
|
|
32
|
+
translation: z.ZodObject<{
|
|
33
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
34
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
35
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
36
|
+
speech: z.ZodObject<{
|
|
37
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
38
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
39
|
+
voice: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
41
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
43
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
44
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
45
|
+
}, z.core.$catchall<z.ZodAny>>>>;
|
|
46
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
8
47
|
declare const ProfileSchema: z.ZodObject<{
|
|
9
48
|
id: z.ZodUUID;
|
|
10
49
|
user_id: z.ZodUUID;
|
|
@@ -82,8 +121,10 @@ declare const UpdateProfileSchema: z.ZodObject<{
|
|
|
82
121
|
}, z.core.$strip>;
|
|
83
122
|
|
|
84
123
|
type ActorType = z.infer<typeof ActorTypeSchema>;
|
|
124
|
+
type LanguageToolsPreferences = z.infer<typeof LanguageToolsPreferencesSchema>;
|
|
125
|
+
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
85
126
|
type Profile = z.infer<typeof ProfileSchema>;
|
|
86
127
|
type UpdateProfile = z.infer<typeof UpdateProfileSchema>;
|
|
87
128
|
type ReadProfile = z.infer<typeof ReadProfileSchema>;
|
|
88
129
|
|
|
89
|
-
export { type ActorType, ActorTypeSchema, type Profile, ProfileSchema, type ReadProfile, ReadProfileSchema, type UpdateProfile, UpdateProfileSchema };
|
|
130
|
+
export { type ActorType, ActorTypeSchema, type LanguageToolsPreferences, LanguageToolsPreferencesSchema, type Preferences, PreferencesSchema, type Profile, ProfileSchema, type ReadProfile, ReadProfileSchema, type UpdateProfile, UpdateProfileSchema };
|
package/dist/schema/users.d.ts
CHANGED
|
@@ -5,6 +5,45 @@ declare const ActorTypeSchema: z.ZodEnum<{
|
|
|
5
5
|
agent: "agent";
|
|
6
6
|
verified: "verified";
|
|
7
7
|
}>;
|
|
8
|
+
declare const LanguageToolsPreferencesSchema: z.ZodObject<{
|
|
9
|
+
language: z.ZodString;
|
|
10
|
+
translation: z.ZodObject<{
|
|
11
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
12
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
13
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
14
|
+
speech: z.ZodObject<{
|
|
15
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
16
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
|
+
voice: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
19
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
21
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
23
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
24
|
+
declare const PreferencesSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodUUID;
|
|
26
|
+
user_id: z.ZodUUID;
|
|
27
|
+
notifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
29
|
+
onboarding: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
30
|
+
language_tools: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
language: z.ZodString;
|
|
32
|
+
translation: z.ZodObject<{
|
|
33
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
34
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
35
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
36
|
+
speech: z.ZodObject<{
|
|
37
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
38
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
39
|
+
voice: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
41
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
route_id: z.ZodNullable<z.ZodUUID>;
|
|
43
|
+
options: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
44
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
45
|
+
}, z.core.$catchall<z.ZodAny>>>>;
|
|
46
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
8
47
|
declare const ProfileSchema: z.ZodObject<{
|
|
9
48
|
id: z.ZodUUID;
|
|
10
49
|
user_id: z.ZodUUID;
|
|
@@ -82,8 +121,10 @@ declare const UpdateProfileSchema: z.ZodObject<{
|
|
|
82
121
|
}, z.core.$strip>;
|
|
83
122
|
|
|
84
123
|
type ActorType = z.infer<typeof ActorTypeSchema>;
|
|
124
|
+
type LanguageToolsPreferences = z.infer<typeof LanguageToolsPreferencesSchema>;
|
|
125
|
+
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
85
126
|
type Profile = z.infer<typeof ProfileSchema>;
|
|
86
127
|
type UpdateProfile = z.infer<typeof UpdateProfileSchema>;
|
|
87
128
|
type ReadProfile = z.infer<typeof ReadProfileSchema>;
|
|
88
129
|
|
|
89
|
-
export { type ActorType, ActorTypeSchema, type Profile, ProfileSchema, type ReadProfile, ReadProfileSchema, type UpdateProfile, UpdateProfileSchema };
|
|
130
|
+
export { type ActorType, ActorTypeSchema, type LanguageToolsPreferences, LanguageToolsPreferencesSchema, type Preferences, PreferencesSchema, type Profile, ProfileSchema, type ReadProfile, ReadProfileSchema, type UpdateProfile, UpdateProfileSchema };
|
package/dist/schema/users.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ActorTypeSchema,b as
|
|
1
|
+
export{a as ActorTypeSchema,b as LanguageToolsPreferencesSchema,c as PreferencesSchema,d as ProfileSchema,e as ReadProfileSchema,f as UpdateProfileSchema}from'../chunk-NLU672VS.js';//# sourceMappingURL=users.js.map
|
|
2
2
|
//# sourceMappingURL=users.js.map
|
package/dist/utils/files.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOC34WU3H_cjs=require('../chunk-OC34WU3H.cjs');Object.defineProperty(exports,"FILE_FILTERS",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.a}});Object.defineProperty(exports,"fileTypes",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.b}});Object.defineProperty(exports,"getExtensionFromFileName",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.e}});Object.defineProperty(exports,"getExtensionFromMimeType",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.f}});Object.defineProperty(exports,"getFileClassification",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.i}});Object.defineProperty(exports,"getFileFilterLabel",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.c}});Object.defineProperty(exports,"getFileTypeName",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.h}});Object.defineProperty(exports,"getSafeFileExtension",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.g}});Object.defineProperty(exports,"normalizeExtension",{enumerable:true,get:function(){return chunkOC34WU3H_cjs.d}});//# sourceMappingURL=files.cjs.map
|
|
2
2
|
//# sourceMappingURL=files.cjs.map
|
package/dist/utils/files.d.cts
CHANGED
|
@@ -12,7 +12,8 @@ declare function getSafeFileExtension({ fileName, mimeType, fallback, }: {
|
|
|
12
12
|
mimeType?: string | null;
|
|
13
13
|
fallback?: string | null;
|
|
14
14
|
}): string;
|
|
15
|
+
declare function getFileTypeName(extension: string | null | undefined): string | null;
|
|
15
16
|
/** Display classification for a MIME type (asset badges, etc.). */
|
|
16
17
|
declare function getFileClassification(type: string, extension: string): string;
|
|
17
18
|
|
|
18
|
-
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension };
|
|
19
|
+
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getFileTypeName, getSafeFileExtension, normalizeExtension };
|
package/dist/utils/files.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ declare function getSafeFileExtension({ fileName, mimeType, fallback, }: {
|
|
|
12
12
|
mimeType?: string | null;
|
|
13
13
|
fallback?: string | null;
|
|
14
14
|
}): string;
|
|
15
|
+
declare function getFileTypeName(extension: string | null | undefined): string | null;
|
|
15
16
|
/** Display classification for a MIME type (asset badges, etc.). */
|
|
16
17
|
declare function getFileClassification(type: string, extension: string): string;
|
|
17
18
|
|
|
18
|
-
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getSafeFileExtension, normalizeExtension };
|
|
19
|
+
export { FILE_FILTERS, type FileFilter, fileTypes, getExtensionFromFileName, getExtensionFromMimeType, getFileClassification, getFileFilterLabel, getFileTypeName, getSafeFileExtension, normalizeExtension };
|
package/dist/utils/files.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,
|
|
1
|
+
export{a as FILE_FILTERS,b as fileTypes,e as getExtensionFromFileName,f as getExtensionFromMimeType,i as getFileClassification,c as getFileFilterLabel,h as getFileTypeName,g as getSafeFileExtension,d as normalizeExtension}from'../chunk-QVMN2EX4.js';//# sourceMappingURL=files.js.map
|
|
2
2
|
//# sourceMappingURL=files.js.map
|
package/dist/utils/navigate.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkUBSYUTZO_cjs=require('../chunk-UBSYUTZO.cjs');require('../chunk-VGNECRJJ.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"createNameUrlSlug",{enumerable:true,get:function(){return chunkUBSYUTZO_cjs.a}});Object.defineProperty(exports,"createUrlSlug",{enumerable:true,get:function(){return chunkUBSYUTZO_cjs.b}});Object.defineProperty(exports,"getAssetUrl",{enumerable:true,get:function(){return chunkUBSYUTZO_cjs.c}});//# sourceMappingURL=navigate.cjs.map
|
|
2
2
|
//# sourceMappingURL=navigate.cjs.map
|
package/dist/utils/navigate.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'../chunk-
|
|
1
|
+
export{a as createNameUrlSlug,b as createUrlSlug,c as getAssetUrl}from'../chunk-3PRQXWQP.js';import'../chunk-OJQM6MWS.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=navigate.js.map
|
|
2
2
|
//# sourceMappingURL=navigate.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkJ4GKOJZZ_cjs=require('../chunk-J4GKOJZZ.cjs');Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.g}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.f}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.b}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.h}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.d}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.a}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.e}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.c}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.i}});//# sourceMappingURL=quest-submission-helpers.cjs.map
|
|
2
|
+
//# sourceMappingURL=quest-submission-helpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"quest-submission-helpers.cjs"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AssetDeclarationPickerFilters, EvalSubmissionFilters, QuestSubmissionItemInput, RouteForSubmissionShape, RouteInputDeclarationLike, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './quest-submission.cjs';
|
|
2
|
+
import 'zod';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AssetDeclarationPickerFilters, EvalSubmissionFilters, QuestSubmissionItemInput, RouteForSubmissionShape, RouteInputDeclarationLike, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets } from './quest-submission.js';
|
|
2
|
+
import 'zod';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{g as assetMatchesDeclaration,f as declarationToPickerFilters,b as declarationToSubmissionDeclaration,h as getPrimaryAssetRef,d as getPrimaryDeclarationKey,a as getRouteInputDeclarationsFromRoute,e as getSubmissionAssetShape,c as materializeContributorSubmissionAssets,i as toRouteInputAssets}from'../chunk-HJW6XNOY.js';//# sourceMappingURL=quest-submission-helpers.js.map
|
|
2
|
+
//# sourceMappingURL=quest-submission-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"quest-submission-helpers.js"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCZMKRHO4_cjs=require('../chunk-CZMKRHO4.cjs'),chunkJ4GKOJZZ_cjs=require('../chunk-J4GKOJZZ.cjs');require('../chunk-SZW4GHCP.cjs'),require('../chunk-OC34WU3H.cjs'),require('../chunk-6DNS4QKU.cjs'),require('../chunk-R52RJPI3.cjs'),require('../chunk-5PWVQ2XA.cjs'),require('../chunk-WMCUQQ2Q.cjs'),require('../chunk-YFEGRZXL.cjs'),require('../chunk-7HF5VHUN.cjs'),require('../chunk-JRBBNFFI.cjs');Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkCZMKRHO4_cjs.c}});Object.defineProperty(exports,"KeyedAssetInputValueSchema",{enumerable:true,get:function(){return chunkCZMKRHO4_cjs.b}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkCZMKRHO4_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkCZMKRHO4_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.g}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.f}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.b}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.h}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.d}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.a}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.e}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.c}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkJ4GKOJZZ_cjs.i}});//# sourceMappingURL=quest-submission.cjs.map
|
|
2
2
|
//# sourceMappingURL=quest-submission.cjs.map
|
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
type AssetDeclarationPickerFilters = {
|
|
4
|
+
assetType?: string;
|
|
5
|
+
fileType?: string;
|
|
6
|
+
extensions?: string[];
|
|
7
|
+
hasConstraints: boolean;
|
|
8
|
+
};
|
|
9
|
+
type QuestSubmissionItemInput = {
|
|
10
|
+
eval_route_id?: string | null;
|
|
11
|
+
submission_assets?: Record<string, QuestSubmissionAssetDeclaration> | null;
|
|
12
|
+
eval_static_inputs?: KeyedAssetRefs | null;
|
|
13
|
+
expected_asset_type?: string | null;
|
|
14
|
+
};
|
|
15
|
+
type RouteInputDeclarationLike = {
|
|
16
|
+
asset_type?: string | null;
|
|
17
|
+
primary?: boolean;
|
|
18
|
+
input_filter?: string | null;
|
|
19
|
+
filter?: string | null;
|
|
20
|
+
file_extensions?: string[] | null;
|
|
21
|
+
input_file_extensions?: string[] | null;
|
|
22
|
+
label?: string | null;
|
|
23
|
+
};
|
|
24
|
+
type RouteForSubmissionShape = {
|
|
25
|
+
route?: {
|
|
26
|
+
input_assets?: Record<string, RouteInputDeclarationLike> | null;
|
|
27
|
+
input_type?: string | null;
|
|
28
|
+
input_filter?: string | null;
|
|
29
|
+
input_file_extensions?: string[] | null;
|
|
30
|
+
} | null;
|
|
31
|
+
} | null;
|
|
32
|
+
/** Route keyed inputs as a flat map (includes legacy input_type fallback). */
|
|
33
|
+
declare function getRouteInputDeclarationsFromRoute(route: RouteForSubmissionShape): Record<string, RouteInputDeclarationLike>;
|
|
34
|
+
declare function declarationToSubmissionDeclaration(declaration: RouteInputDeclarationLike): QuestSubmissionAssetDeclaration;
|
|
35
|
+
/** Materialize contributor declarations from route inputs minus pinned keys. */
|
|
36
|
+
declare function materializeContributorSubmissionAssets(routeInputs: Record<string, RouteInputDeclarationLike>, pinnedKeys: string[]): Record<string, QuestSubmissionAssetDeclaration>;
|
|
37
|
+
declare function getPrimaryDeclarationKey(declarations: Record<string, QuestSubmissionAssetDeclaration>): string | null;
|
|
38
|
+
declare function getSubmissionAssetShape(item: QuestSubmissionItemInput, route?: RouteForSubmissionShape | null): {
|
|
39
|
+
contributorKeys: string[];
|
|
40
|
+
declarations: Record<string, QuestSubmissionAssetDeclaration>;
|
|
41
|
+
pinned: KeyedAssetRefs;
|
|
42
|
+
};
|
|
43
|
+
declare function declarationToPickerFilters(declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): AssetDeclarationPickerFilters | null;
|
|
44
|
+
declare function assetMatchesDeclaration(asset: {
|
|
45
|
+
assetType?: string | null;
|
|
46
|
+
asset_type?: string | null;
|
|
47
|
+
asset?: {
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
} | null;
|
|
50
|
+
} | null | undefined, declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): boolean;
|
|
51
|
+
declare function getPrimaryAssetRef(refs: KeyedAssetRefs | null | undefined, declarations?: Record<string, QuestSubmissionAssetDeclaration> | null): {
|
|
52
|
+
key: string;
|
|
53
|
+
asset_id: string;
|
|
54
|
+
asset_type: string;
|
|
55
|
+
} | null;
|
|
56
|
+
declare function toRouteInputAssets(refs: KeyedAssetRefs | null | undefined): Record<string, {
|
|
57
|
+
assetId: string;
|
|
58
|
+
assetType: string;
|
|
59
|
+
}>;
|
|
60
|
+
/** @deprecated Use declarationToPickerFilters */
|
|
61
|
+
type EvalSubmissionFilters = AssetDeclarationPickerFilters;
|
|
62
|
+
|
|
3
63
|
/** Stored on entries and eval_static_inputs after server normalization. */
|
|
4
64
|
declare const KeyedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
65
|
asset_id: z.ZodUUID;
|
|
@@ -55,80 +115,30 @@ declare const QuestSubmissionAssetDeclarationSchema: z.ZodObject<{
|
|
|
55
115
|
dataset: "dataset";
|
|
56
116
|
file: "file";
|
|
57
117
|
post: "post";
|
|
118
|
+
comment: "comment";
|
|
58
119
|
}>;
|
|
120
|
+
asset_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
121
|
+
dataset: "dataset";
|
|
122
|
+
file: "file";
|
|
123
|
+
post: "post";
|
|
124
|
+
comment: "comment";
|
|
125
|
+
}>>>;
|
|
59
126
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
60
127
|
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
128
|
+
audio: "audio";
|
|
61
129
|
image: "image";
|
|
62
130
|
video: "video";
|
|
63
|
-
audio: "audio";
|
|
64
131
|
pdf: "pdf";
|
|
65
132
|
"3d model": "3d model";
|
|
66
133
|
"atomic structure": "atomic structure";
|
|
67
134
|
}>>>;
|
|
68
135
|
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
69
136
|
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
137
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
138
|
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
139
|
}, z.core.$catchall<z.ZodAny>>;
|
|
72
140
|
type KeyedAssetRefs = z.infer<typeof KeyedAssetRefsSchema>;
|
|
73
141
|
type KeyedAssetInput = z.infer<typeof KeyedAssetInputSchema>;
|
|
74
142
|
type QuestSubmissionAssetDeclaration = z.infer<typeof QuestSubmissionAssetDeclarationSchema>;
|
|
75
|
-
type AssetDeclarationPickerFilters = {
|
|
76
|
-
assetType?: string;
|
|
77
|
-
fileType?: string;
|
|
78
|
-
extensions?: string[];
|
|
79
|
-
hasConstraints: boolean;
|
|
80
|
-
};
|
|
81
|
-
type QuestSubmissionItemInput = {
|
|
82
|
-
eval_route_id?: string | null;
|
|
83
|
-
submission_assets?: Record<string, QuestSubmissionAssetDeclaration> | null;
|
|
84
|
-
eval_static_inputs?: KeyedAssetRefs | null;
|
|
85
|
-
expected_asset_type?: string | null;
|
|
86
|
-
};
|
|
87
|
-
type RouteInputDeclarationLike = {
|
|
88
|
-
asset_type?: string | null;
|
|
89
|
-
primary?: boolean;
|
|
90
|
-
input_filter?: string | null;
|
|
91
|
-
filter?: string | null;
|
|
92
|
-
file_extensions?: string[] | null;
|
|
93
|
-
input_file_extensions?: string[] | null;
|
|
94
|
-
};
|
|
95
|
-
type RouteForSubmissionShape = {
|
|
96
|
-
route?: {
|
|
97
|
-
input_assets?: Record<string, RouteInputDeclarationLike> | null;
|
|
98
|
-
input_type?: string | null;
|
|
99
|
-
input_filter?: string | null;
|
|
100
|
-
input_file_extensions?: string[] | null;
|
|
101
|
-
} | null;
|
|
102
|
-
} | null;
|
|
103
|
-
/** Route keyed inputs as a flat map (includes legacy input_type fallback). */
|
|
104
|
-
declare function getRouteInputDeclarationsFromRoute(route: RouteForSubmissionShape): Record<string, RouteInputDeclarationLike>;
|
|
105
|
-
declare function declarationToSubmissionDeclaration(declaration: RouteInputDeclarationLike): QuestSubmissionAssetDeclaration;
|
|
106
|
-
/** Materialize contributor declarations from route inputs minus pinned keys. */
|
|
107
|
-
declare function materializeContributorSubmissionAssets(routeInputs: Record<string, RouteInputDeclarationLike>, pinnedKeys: string[]): Record<string, QuestSubmissionAssetDeclaration>;
|
|
108
|
-
declare function getPrimaryDeclarationKey(declarations: Record<string, QuestSubmissionAssetDeclaration>): string | null;
|
|
109
|
-
declare function getSubmissionAssetShape(item: QuestSubmissionItemInput, route?: RouteForSubmissionShape | null): {
|
|
110
|
-
contributorKeys: string[];
|
|
111
|
-
declarations: Record<string, QuestSubmissionAssetDeclaration>;
|
|
112
|
-
pinned: KeyedAssetRefs;
|
|
113
|
-
};
|
|
114
|
-
declare function declarationToPickerFilters(declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): AssetDeclarationPickerFilters | null;
|
|
115
|
-
declare function assetMatchesDeclaration(asset: {
|
|
116
|
-
assetType?: string | null;
|
|
117
|
-
asset_type?: string | null;
|
|
118
|
-
asset?: {
|
|
119
|
-
metadata?: Record<string, unknown>;
|
|
120
|
-
} | null;
|
|
121
|
-
} | null | undefined, declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): boolean;
|
|
122
|
-
declare function getPrimaryAssetRef(refs: KeyedAssetRefs | null | undefined, declarations?: Record<string, QuestSubmissionAssetDeclaration> | null): {
|
|
123
|
-
key: string;
|
|
124
|
-
asset_id: string;
|
|
125
|
-
asset_type: string;
|
|
126
|
-
} | null;
|
|
127
|
-
declare function toRouteInputAssets(refs: KeyedAssetRefs | null | undefined): Record<string, {
|
|
128
|
-
assetId: string;
|
|
129
|
-
assetType: string;
|
|
130
|
-
}>;
|
|
131
|
-
/** @deprecated Use declarationToPickerFilters */
|
|
132
|
-
type EvalSubmissionFilters = AssetDeclarationPickerFilters;
|
|
133
143
|
|
|
134
144
|
export { type AssetDeclarationPickerFilters, type EvalSubmissionFilters, type KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetInputValueSchema, type KeyedAssetRefs, KeyedAssetRefsSchema, type QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, type QuestSubmissionItemInput, type RouteForSubmissionShape, type RouteInputDeclarationLike, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets };
|