fix(sdk): preserve generated event contracts

This commit is contained in:
Dax Raad
2026-05-31 03:18:43 -04:00
parent 1afa9e32c9
commit 25edeaf473
7 changed files with 2496 additions and 2150 deletions

View File

@@ -14,17 +14,17 @@ export class PermissionID extends Newtype<PermissionID>()(
}
}
export const Action = Schema.Literals(["allow", "deny", "ask"]).annotate({ identifier: "PermissionV2.Action" })
export const Action = Schema.Literals(["allow", "deny", "ask"]).annotate({ identifier: "Permission.Action" })
export type Action = typeof Action.Type
export const Rule = Schema.Struct({
permission: Schema.String,
pattern: Schema.String,
action: Action,
}).annotate({ identifier: "PermissionV2.Rule" })
}).annotate({ identifier: "Permission.Rule" })
export type Rule = typeof Rule.Type
export const Ruleset = Schema.Array(Rule).annotate({ identifier: "PermissionV2.Ruleset" })
export const Ruleset = Schema.Array(Rule).annotate({ identifier: "Permission.Ruleset" })
export type Ruleset = typeof Ruleset.Type
const EDIT_TOOLS = ["edit", "write", "apply_patch"]