@@ -25,6 +25,7 @@ export const PackageNameSchema = v.pipe(
2525/**
2626 * Validates an npm package name for new packages only
2727 * Stricter than PackageNameSchema - rejects legacy formats (uppercase, etc.)
28+ * @internal
2829 */
2930export const NewPackageNameSchema = v . pipe (
3031 v . string ( ) ,
@@ -76,6 +77,7 @@ export const ScopeTeamSchema = v.pipe(
7677
7778/**
7879 * Validates org roles
80+ * @internal
7981 */
8082export const OrgRoleSchema = v . picklist (
8183 [ 'developer' , 'admin' , 'owner' ] ,
@@ -84,6 +86,7 @@ export const OrgRoleSchema = v.picklist(
8486
8587/**
8688 * Validates access permissions
89+ * @internal
8790 */
8891export const PermissionSchema = v . picklist (
8992 [ 'read-only' , 'read-write' ] ,
@@ -110,13 +113,15 @@ export const OperationTypeSchema = v.picklist([
110113
111114/**
112115 * Validates OTP (6-digit code)
116+ * @internal
113117 */
114118export const OtpSchema = v . optional (
115119 v . pipe ( v . string ( ) , v . regex ( / ^ \d { 6 } $ / , 'OTP must be a 6-digit code' ) ) ,
116120)
117121
118122/**
119123 * Validates a hex token (like session tokens and operation IDs)
124+ * @internal
120125 */
121126export const HexTokenSchema = v . pipe (
122127 v . string ( ) ,
@@ -126,6 +131,7 @@ export const HexTokenSchema = v.pipe(
126131
127132/**
128133 * Validates operation ID (16-char hex)
134+ * @internal
129135 */
130136export const OperationIdSchema = v . pipe (
131137 v . string ( ) ,
@@ -176,6 +182,7 @@ export const BatchOperationsBodySchema = v.array(CreateOperationBodySchema)
176182// Type-specific Operation Params Schemas
177183// ============================================================================
178184
185+ /** @internal */
179186export const OrgAddUserParamsSchema = v . object ( {
180187 org : OrgNameSchema ,
181188 user : UsernameSchema ,
@@ -205,6 +212,7 @@ const TeamRemoveUserParamsSchema = v.object({
205212 user : UsernameSchema ,
206213} )
207214
215+ /** @internal */
208216export const AccessGrantParamsSchema = v . object ( {
209217 permission : PermissionSchema ,
210218 scopeTeam : ScopeTeamSchema ,
@@ -226,6 +234,7 @@ const OwnerRemoveParamsSchema = v.object({
226234 pkg : PackageNameSchema ,
227235} )
228236
237+ /** @internal */
229238export const PackageInitParamsSchema = v . object ( {
230239 name : NewPackageNameSchema ,
231240 author : v . optional ( UsernameSchema ) ,
0 commit comments