@@ -26,7 +26,7 @@ export const PackageNameSchema = v.pipe(
2626 * Validates an npm package name for new packages only
2727 * Stricter than PackageNameSchema - rejects legacy formats (uppercase, etc.)
2828 */
29- export const NewPackageNameSchema = v . pipe (
29+ const NewPackageNameSchema = v . pipe (
3030 v . string ( ) ,
3131 v . nonEmpty ( 'Package name is required' ) ,
3232 v . check ( input => {
@@ -77,15 +77,15 @@ export const ScopeTeamSchema = v.pipe(
7777/**
7878 * Validates org roles
7979 */
80- export const OrgRoleSchema = v . picklist (
80+ const OrgRoleSchema = v . picklist (
8181 [ 'developer' , 'admin' , 'owner' ] ,
8282 'Invalid role. Must be developer, admin, or owner' ,
8383)
8484
8585/**
8686 * Validates access permissions
8787 */
88- export const PermissionSchema = v . picklist (
88+ const PermissionSchema = v . picklist (
8989 [ 'read-only' , 'read-write' ] ,
9090 'Invalid permission. Must be read-only or read-write' ,
9191)
@@ -111,14 +111,14 @@ export const OperationTypeSchema = v.picklist([
111111/**
112112 * Validates OTP (6-digit code)
113113 */
114- export const OtpSchema = v . optional (
114+ const OtpSchema = v . optional (
115115 v . pipe ( v . string ( ) , v . regex ( / ^ \d { 6 } $ / , 'OTP must be a 6-digit code' ) ) ,
116116)
117117
118118/**
119119 * Validates a hex token (like session tokens and operation IDs)
120120 */
121- export const HexTokenSchema = v . pipe (
121+ const HexTokenSchema = v . pipe (
122122 v . string ( ) ,
123123 v . nonEmpty ( 'Token is required' ) ,
124124 v . regex ( / ^ [ a - f 0 - 9 ] + $ / i, 'Invalid token format' ) ,
@@ -127,7 +127,7 @@ export const HexTokenSchema = v.pipe(
127127/**
128128 * Validates operation ID (16-char hex)
129129 */
130- export const OperationIdSchema = v . pipe (
130+ const OperationIdSchema = v . pipe (
131131 v . string ( ) ,
132132 v . nonEmpty ( 'Operation ID is required' ) ,
133133 v . regex ( / ^ [ a - f 0 - 9 ] { 16 } $ / i, 'Invalid operation ID format' ) ,
@@ -176,7 +176,7 @@ export const BatchOperationsBodySchema = v.array(CreateOperationBodySchema)
176176// Type-specific Operation Params Schemas
177177// ============================================================================
178178
179- export const OrgAddUserParamsSchema = v . object ( {
179+ const OrgAddUserParamsSchema = v . object ( {
180180 org : OrgNameSchema ,
181181 user : UsernameSchema ,
182182 role : OrgRoleSchema ,
@@ -205,7 +205,7 @@ const TeamRemoveUserParamsSchema = v.object({
205205 user : UsernameSchema ,
206206} )
207207
208- export const AccessGrantParamsSchema = v . object ( {
208+ const AccessGrantParamsSchema = v . object ( {
209209 permission : PermissionSchema ,
210210 scopeTeam : ScopeTeamSchema ,
211211 pkg : PackageNameSchema ,
@@ -226,7 +226,7 @@ const OwnerRemoveParamsSchema = v.object({
226226 pkg : PackageNameSchema ,
227227} )
228228
229- export const PackageInitParamsSchema = v . object ( {
229+ const PackageInitParamsSchema = v . object ( {
230230 name : NewPackageNameSchema ,
231231 author : v . optional ( UsernameSchema ) ,
232232} )
0 commit comments