Skip to content

Commit fceea55

Browse files
committed
feat: deprecate 'erc20-token-revocation' in permission schema and update registry type
1 parent 876cfc7 commit fceea55

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/7715-permission-types/src/permissions/schema/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ const PERMISSION_SCHEMAS: PermissionSchemaRegistry = {
6767
'erc20-token-stream': erc20TokenStreamSchema,
6868
'erc20-token-allowance': erc20TokenAllowanceSchema,
6969
'token-approval-revocation': tokenApprovalRevocationSchema,
70-
// Deprecated in favor of 'token-approval-revocation'; same rendering.
71-
'erc20-token-revocation': tokenApprovalRevocationSchema,
7270
};
7371

7472
/**

packages/7715-permission-types/src/permissions/schema/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ export type PermissionSchemaEntry = {
163163
sections: SchemaSection[];
164164
};
165165

166-
/** Maps permission type strings to their schema entries. */
166+
/**
167+
* Maps permission type strings to their schema entries.
168+
* `erc20-token-revocation` is deprecated in favor of `token-approval-revocation`
169+
* and intentionally excluded; it renders as an unknown permission type.
170+
*/
167171
export type PermissionSchemaRegistry = Record<
168-
PermissionType,
172+
Exclude<PermissionType, 'erc20-token-revocation'>,
169173
PermissionSchemaEntry
170174
>;

0 commit comments

Comments
 (0)