passport-bridge 0.48.2 → 0.49.0

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.
Files changed (111) hide show
  1. package/dist/cliHookAfter.js +10 -1
  2. package/dist/cliHookDecide.d.ts +9 -3
  3. package/dist/cliHookDecide.js +182 -28
  4. package/dist/cliHookSessionState.d.ts +4 -1
  5. package/dist/cliHookSessionState.js +1 -1
  6. package/dist/connectorKit/callEffects.generated.d.ts +36 -0
  7. package/dist/connectorKit/callEffects.generated.js +73 -0
  8. package/dist/connectorKit/cli.generated.js +5 -2
  9. package/dist/connectorKit/engine.generated.d.ts +1 -1
  10. package/dist/connectorKit/engine.generated.js +32 -13
  11. package/dist/connectorKit/githubIds.generated.d.ts +1 -1
  12. package/dist/connectorKit/githubIds.generated.js +3 -2
  13. package/dist/connectorKit/manifest.generated.d.ts +34 -14
  14. package/dist/connectorKit/manifests/cloudflare.generated.d.ts +2 -0
  15. package/dist/connectorKit/manifests/cloudflare.generated.js +186 -0
  16. package/dist/connectorKit/manifests/cloudflareApi.generated.d.ts +4 -0
  17. package/dist/connectorKit/manifests/cloudflareApi.generated.js +207 -0
  18. package/dist/connectorKit/manifests/cloudflareCatalog.generated.d.ts +18 -0
  19. package/dist/connectorKit/manifests/cloudflareCatalog.generated.js +83 -0
  20. package/dist/connectorKit/manifests/cloudflareCli.generated.d.ts +2 -0
  21. package/dist/connectorKit/manifests/cloudflareCli.generated.js +441 -0
  22. package/dist/connectorKit/manifests/githubCapture.generated.js +19 -1
  23. package/dist/connectorKit/manifests/githubReads.generated.js +0 -3
  24. package/dist/connectorKit/manifests/kubernetes.generated.d.ts +76 -0
  25. package/dist/connectorKit/manifests/kubernetes.generated.js +210 -0
  26. package/dist/connectorKit/manifests/kubernetesArgs.generated.d.ts +21 -0
  27. package/dist/connectorKit/manifests/kubernetesArgs.generated.js +82 -0
  28. package/dist/connectorKit/manifests/kubernetesCli.generated.d.ts +30 -0
  29. package/dist/connectorKit/manifests/kubernetesCli.generated.js +530 -0
  30. package/dist/connectorKit/manifests/kubernetesEffects.generated.d.ts +15 -0
  31. package/dist/connectorKit/manifests/kubernetesEffects.generated.js +111 -0
  32. package/dist/connectorKit/manifests/kubernetesObjects.generated.d.ts +24 -0
  33. package/dist/connectorKit/manifests/kubernetesObjects.generated.js +154 -0
  34. package/dist/connectorKit/manifests/railwayHooks.generated.js +11 -5
  35. package/dist/connectorKit/manifests/sentry.generated.d.ts +6 -0
  36. package/dist/connectorKit/manifests/sentry.generated.js +27 -0
  37. package/dist/connectorKit/manifests/sentryApi.generated.d.ts +6 -0
  38. package/dist/connectorKit/manifests/sentryApi.generated.js +282 -0
  39. package/dist/connectorKit/manifests/sentryCapture.generated.d.ts +2 -0
  40. package/dist/connectorKit/manifests/sentryCapture.generated.js +165 -0
  41. package/dist/connectorKit/manifests/sentryCatalog.generated.d.ts +5 -0
  42. package/dist/connectorKit/manifests/sentryCatalog.generated.js +70 -0
  43. package/dist/connectorKit/manifests/sentryCli.generated.d.ts +2 -0
  44. package/dist/connectorKit/manifests/sentryCli.generated.js +230 -0
  45. package/dist/connectorKit/manifests/sentryIssues.generated.d.ts +20 -0
  46. package/dist/connectorKit/manifests/sentryIssues.generated.js +204 -0
  47. package/dist/connectorKit/manifests/supabase.generated.js +3 -2
  48. package/dist/connectorKit/manifests/supabaseApi.generated.js +52 -52
  49. package/dist/connectorKit/manifests/supabaseCapture.generated.js +22 -21
  50. package/dist/connectorKit/manifests/supabaseCatalog.generated.d.ts +2 -2
  51. package/dist/connectorKit/manifests/supabaseCatalog.generated.js +8 -7
  52. package/dist/connectorKit/manifests/supabaseCli.generated.js +32 -32
  53. package/dist/connectorKit/manifests/supabaseProbes.generated.js +29 -29
  54. package/dist/connectorKit/manifests/terraform.generated.d.ts +5 -0
  55. package/dist/connectorKit/manifests/terraform.generated.js +214 -0
  56. package/dist/connectorKit/manifests/terraformLink.generated.d.ts +30 -0
  57. package/dist/connectorKit/manifests/terraformLink.generated.js +73 -0
  58. package/dist/connectorKit/manifests/terraformPlan.generated.d.ts +48 -0
  59. package/dist/connectorKit/manifests/terraformPlan.generated.js +192 -0
  60. package/dist/connectorKit/params.generated.js +2 -0
  61. package/dist/connectorKit/shell.generated.d.ts +5 -1
  62. package/dist/connectorKit/shell.generated.js +121 -20
  63. package/dist/connectorKit/sources/cloudflare/api-operations.generated.d.ts +37 -0
  64. package/dist/connectorKit/sources/cloudflare/api-operations.generated.js +2 -0
  65. package/dist/connectorKit/sources/cloudflare/cli-flags.generated.d.ts +617 -0
  66. package/dist/connectorKit/sources/cloudflare/cli-flags.generated.js +2 -0
  67. package/dist/connectorKit/sources/cloudflare/mcp-tools.generated.d.ts +16 -0
  68. package/dist/connectorKit/sources/cloudflare/mcp-tools.generated.js +2 -0
  69. package/dist/connectorKit/sources/sentry/api-operations.generated.d.ts +121 -0
  70. package/dist/connectorKit/sources/sentry/api-operations.generated.js +2 -0
  71. package/dist/connectorKit/sources/sentry/cli-commands.generated.d.ts +530 -0
  72. package/dist/connectorKit/sources/sentry/cli-commands.generated.js +2 -0
  73. package/dist/connectorKit/sources/sentry/mcp-tools.generated.d.ts +32 -0
  74. package/dist/connectorKit/sources/sentry/mcp-tools.generated.js +2 -0
  75. package/dist/connectorKit/template.generated.d.ts +8 -4
  76. package/dist/connectorKit/template.generated.js +19 -6
  77. package/dist/controlPlane.generated.d.ts +11 -2
  78. package/dist/controlPlaneActions.generated.d.ts +52 -12
  79. package/dist/controlPlaneActions.generated.js +40 -11
  80. package/dist/controlPlaneCloudflare.d.ts +70 -0
  81. package/dist/controlPlaneCloudflare.js +188 -0
  82. package/dist/controlPlaneKubernetes.d.ts +72 -0
  83. package/dist/controlPlaneKubernetes.js +260 -0
  84. package/dist/controlPlaneModel.generated.d.ts +6 -0
  85. package/dist/controlPlaneNpm.generated.d.ts +83 -0
  86. package/dist/controlPlaneNpm.generated.js +307 -0
  87. package/dist/controlPlaneNpmCommands.generated.d.ts +35 -0
  88. package/dist/controlPlaneNpmCommands.generated.js +567 -0
  89. package/dist/controlPlaneNpmGuard.d.ts +44 -0
  90. package/dist/controlPlaneNpmGuard.js +210 -0
  91. package/dist/controlPlaneOffline.d.ts +1 -1
  92. package/dist/controlPlaneRailway.generated.js +2 -2
  93. package/dist/controlPlaneRailwayCli.generated.js +13 -2
  94. package/dist/controlPlaneRailwayModel.generated.d.ts +5 -0
  95. package/dist/controlPlaneRailwayModel.generated.js +15 -1
  96. package/dist/controlPlaneSentry.d.ts +68 -0
  97. package/dist/controlPlaneSentry.js +205 -0
  98. package/dist/controlPlaneTerraform.d.ts +86 -0
  99. package/dist/controlPlaneTerraform.js +273 -0
  100. package/dist/controlPlaneUnnamed.generated.d.ts +41 -2
  101. package/dist/controlPlaneUnnamed.generated.js +148 -2
  102. package/dist/cpCli.d.ts +1 -1
  103. package/dist/cpCli.js +1 -1
  104. package/dist/pluginPin.d.ts +1 -1
  105. package/dist/pluginPin.js +1 -1
  106. package/dist/terraformPlans.d.ts +45 -0
  107. package/dist/terraformPlans.js +96 -0
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/npm-shrinkwrap.json +2 -2
  111. package/package.json +1 -1
@@ -0,0 +1,204 @@
1
+ import API from "../sources/sentry/api-operations.generated.js";
2
+ import MCP from "../sources/sentry/mcp-tools.generated.js";
3
+ /* ------------------------------------------------------------------ */
4
+ /* Issues: the same body on every route that changes them */
5
+ /* ------------------------------------------------------------------ */
6
+ const RESOLVED = ["resolved", "resolvedInNextRelease", "resolvedInRelease"];
7
+ /** How Sentry's API reads a true flag in a body: `true`, `1` or `"1"`. */
8
+ const TRUE = ["true", "1"];
9
+ /** What a status change does, in the words each summary uses. */
10
+ const ISSUE_STATES = [
11
+ { status: RESOLVED, action: "sentry.issue.resolve", verb: "Resolve" },
12
+ { status: ["ignored"], action: "sentry.issue.ignore", verb: "Archive" },
13
+ { status: ["unresolved"], action: "sentry.project.change", verb: "Reopen" }
14
+ ];
15
+ /** One issue, several by id, or every one a search matches: the summaries a change of issues takes. */
16
+ function issueWords(verb, tail = "") {
17
+ return {
18
+ one: {
19
+ action: "",
20
+ summary: `${verb} issue {issue}${tail}`,
21
+ summaryElse: [`${verb} every issue matching a search${tail}`],
22
+ target: { type: "issue", key: "{issue}" }
23
+ },
24
+ many: { action: "", summary: `${verb} {#issue} issues${tail}` }
25
+ };
26
+ }
27
+ /** The body fields each issue route or tool declares (`sources/sentry/`): a rule tests only those. */
28
+ const DECLARED = new Map([
29
+ ...API.items.map((item) => [`${item.method} ${item.path}`, new Set(item.inputs.body ?? [])]),
30
+ ...MCP.items.map((tool) => [tool.name, new Set(tool.inputs?.body ?? [])])
31
+ ]);
32
+ /** The extra things the same issue call does besides its status: an assignee, a public link. */
33
+ function issueExtras(on, many, has) {
34
+ const pick = (words) => (many ? words.many : words.one);
35
+ return [
36
+ ...(has("assignedTo")
37
+ ? [{ ...pick(issueWords("Assign")), action: "sentry.issue.assign", on, when: { assignedTo: { present: true } } }]
38
+ : []),
39
+ ...(has("isPublic")
40
+ ? [{ ...pick(issueWords("Share", " publicly")), action: "sentry.project.change", on, when: { isPublic: TRUE } }]
41
+ : [])
42
+ ];
43
+ }
44
+ /**
45
+ * The rules for one route or tool that changes issues by its body: delete and discard, merge, a status, an assignee,
46
+ * a public link, else any other change (seen, bookmarked, priority). `bulk`: the route takes a list of ids. Only the
47
+ * fields the operation declares are tested.
48
+ */
49
+ export function issueRules(match, on, bulk) {
50
+ const fields = DECLARED.get(match) ?? new Set();
51
+ const has = (field) => fields.has(field);
52
+ const out = [];
53
+ for (const many of bulk ? [true, false] : [false]) {
54
+ const several = bulk ? { issue: { many } } : {};
55
+ const pick = (words) => (many ? words.many : words.one);
56
+ const extras = issueExtras(on, many, has);
57
+ const also = (parts) => (parts.length ? { also: parts } : {});
58
+ if (has("discard"))
59
+ out.push({
60
+ match,
61
+ ...pick(issueWords("Delete and discard")),
62
+ action: "sentry.issue.delete",
63
+ on,
64
+ when: { ...several, discard: TRUE }
65
+ });
66
+ if (has("merge") && many)
67
+ out.push({
68
+ match,
69
+ ...pick(issueWords("Merge")),
70
+ action: "sentry.issue.merge",
71
+ on,
72
+ when: { ...several, merge: TRUE }
73
+ });
74
+ if (has("status"))
75
+ for (const state of ISSUE_STATES)
76
+ out.push({
77
+ match,
78
+ ...pick(issueWords(state.verb)),
79
+ action: state.action,
80
+ on,
81
+ when: { ...several, status: [...state.status] },
82
+ ...also(extras)
83
+ });
84
+ if (has("assignedTo"))
85
+ out.push({
86
+ match,
87
+ ...pick(issueWords("Assign")),
88
+ action: "sentry.issue.assign",
89
+ on,
90
+ when: { ...several, assignedTo: { present: true } },
91
+ ...also(extras.filter((part) => part.action !== "sentry.issue.assign"))
92
+ });
93
+ if (has("isPublic"))
94
+ out.push({
95
+ match,
96
+ ...pick(issueWords("Share", " publicly")),
97
+ action: "sentry.project.change",
98
+ on,
99
+ when: { ...several, isPublic: TRUE }
100
+ });
101
+ out.push({
102
+ match,
103
+ ...pick(issueWords("Change")),
104
+ action: "sentry.project.change",
105
+ on,
106
+ ...(bulk ? { when: several } : {})
107
+ });
108
+ }
109
+ return out;
110
+ }
111
+ /** Deleting issues: one, several by id, or every one a search matches. Never restorable. */
112
+ export function issueDeletes(match, on, bulk) {
113
+ const words = issueWords("Delete");
114
+ return bulk
115
+ ? [
116
+ { match, ...words.many, action: "sentry.issue.delete", on, when: { issue: { many: true } } },
117
+ { match, ...words.one, action: "sentry.issue.delete", on }
118
+ ]
119
+ : [{ match, ...words.one, action: "sentry.issue.delete", on }];
120
+ }
121
+ /* ------------------------------------------------------------------ */
122
+ /* Settings that loosen data scrubbing or access */
123
+ /* ------------------------------------------------------------------ */
124
+ /** Organization and project settings: scrubbing loosened first (Shares data), then access, then anything else. */
125
+ export function settingsRules(match, on, where) {
126
+ const privacy = on === "organization" ? "sentry.org.privacy" : "sentry.project.privacy";
127
+ const other = on === "organization" ? "sentry.org.change" : "sentry.project.change";
128
+ const scrub = [
129
+ { match, action: privacy, on, when: { dataScrubber: "false" }, summary: `Turn off data scrubbing for ${where}` },
130
+ {
131
+ match,
132
+ action: privacy,
133
+ on,
134
+ when: { dataScrubberDefaults: "false" },
135
+ summary: `Turn off the default scrubbers for ${where}`
136
+ },
137
+ {
138
+ match,
139
+ action: privacy,
140
+ on,
141
+ when: { scrubIPAddresses: "false" },
142
+ summary: `Stop scrubbing IP addresses for ${where}`
143
+ },
144
+ {
145
+ match,
146
+ action: privacy,
147
+ on,
148
+ when: { "*": { keys: "^(safeFields|sensitiveFields|relayPiiConfig)$" } },
149
+ summary: `Change data scrubbing rules for ${where}`
150
+ },
151
+ {
152
+ match,
153
+ action: privacy,
154
+ on,
155
+ when: { storeCrashReports: { present: true } },
156
+ summary: `Change crash report storage for ${where}`
157
+ }
158
+ ];
159
+ if (on === "project")
160
+ return [
161
+ ...scrub,
162
+ {
163
+ match,
164
+ action: other,
165
+ on,
166
+ when: { "*": { keys: "^(allowedDomains|securityToken|securityTokenHeader)$" } },
167
+ summary: `Change who can send events to ${where}`
168
+ },
169
+ { match, action: other, on, summary: `Change project ${where}` }
170
+ ];
171
+ return [
172
+ ...scrub,
173
+ { match, action: privacy, on, when: { enhancedPrivacy: "false" }, summary: "Turn off enhanced privacy" },
174
+ {
175
+ match,
176
+ action: other,
177
+ on,
178
+ when: { require2FA: "false" },
179
+ summary: "Stop requiring two-factor sign-in"
180
+ },
181
+ { match, action: other, on, when: { allowSharedIssues: "true" }, summary: "Allow public issue links" },
182
+ {
183
+ match,
184
+ action: other,
185
+ on,
186
+ when: {
187
+ "*": {
188
+ keys: "^(openMembership|defaultRole|allowJoinRequests|eventsMemberAdmin|alertsMemberWrite|attachmentsRole|debugFilesRole|trustedRelays|hasGranularReplayPermissions|replayAccessMembers)$"
189
+ }
190
+ },
191
+ summary: "Change organization access settings"
192
+ },
193
+ { match, action: other, on, when: { cancelDeletion: "true" }, summary: "Cancel the deletion of the organization" },
194
+ { match, action: other, on, summary: "Change organization settings" }
195
+ ];
196
+ }
197
+ /** One rule: its match, action, node and summary. */
198
+ export const r = (match, action, on, summary, extra = {}) => ({
199
+ match,
200
+ action,
201
+ on,
202
+ summary,
203
+ ...extra
204
+ });
@@ -14,8 +14,9 @@ export const SUPABASE = {
14
14
  label: "Supabase",
15
15
  // 2: schema 2 (fail closed, Unclassified, reads with evidence). 3: SQL code, policy and drop-object
16
16
  // Actions after the round 2 review. 4: the 9 governed actions (2026-11-13); declared inputs. Node ids
17
- // unchanged.
18
- version: 6,
17
+ // unchanged. 7: named writes are "Other change" with per-call effects, sign-in providers kind change
18
+ // (the action model, 2026-11-20).
19
+ version: 7,
19
20
  plans: ["free", "pro", "team", "enterprise"],
20
21
  identity: "member",
21
22
  services: [
@@ -19,7 +19,7 @@ export const SUPABASE_API_RULES = [
19
19
  },
20
20
  {
21
21
  match: "DELETE /v1/branches/{branch_id_or_ref}",
22
- action: "supabase.unclassified",
22
+ action: "supabase.project.change",
23
23
  on: "branch",
24
24
  summary: "Delete branch {branch}"
25
25
  },
@@ -37,7 +37,7 @@ export const SUPABASE_API_RULES = [
37
37
  },
38
38
  {
39
39
  match: "POST /v1/branches/{branch_id_or_ref}/reset",
40
- action: "supabase.unclassified",
40
+ action: "supabase.project.change",
41
41
  on: "branch",
42
42
  summary: "Reset branch {branch}"
43
43
  },
@@ -50,13 +50,13 @@ export const SUPABASE_API_RULES = [
50
50
  {
51
51
  match: "POST /v1/projects/{ref}/branches",
52
52
  body: ["branch_name"],
53
- action: "supabase.unclassified",
53
+ action: "supabase.project.change",
54
54
  on: "project",
55
55
  summary: "Create branch {branchName}"
56
56
  },
57
57
  {
58
58
  match: "DELETE /v1/projects/{ref}/branches",
59
- action: "supabase.unclassified",
59
+ action: "supabase.project.change",
60
60
  on: "project",
61
61
  summary: "Turn off branching and delete every branch of project {ref}"
62
62
  },
@@ -70,20 +70,20 @@ export const SUPABASE_API_RULES = [
70
70
  {
71
71
  match: "POST /v1/projects",
72
72
  body: ["name", "organization_slug", "organization_id"],
73
- action: "supabase.unclassified",
73
+ action: "supabase.project.change",
74
74
  on: "organization",
75
75
  summary: "Create project {name}"
76
76
  },
77
77
  {
78
78
  match: "POST /v1/organizations",
79
79
  body: ["name"],
80
- action: "supabase.unclassified",
80
+ action: "supabase.project.change",
81
81
  on: "project",
82
82
  summary: "Create organization {name}"
83
83
  },
84
84
  {
85
85
  match: "POST /v1/organizations/{slug}/project-claim/{token}",
86
- action: "supabase.unclassified",
86
+ action: "supabase.project.change",
87
87
  on: "organization",
88
88
  summary: "Claim a project into organization {org}"
89
89
  },
@@ -128,13 +128,13 @@ export const SUPABASE_API_RULES = [
128
128
  },
129
129
  {
130
130
  match: "POST /v1/projects/{ref}/upgrade",
131
- action: "supabase.unclassified",
131
+ action: "supabase.project.change",
132
132
  on: "project",
133
133
  summary: "Upgrade Postgres on project {ref}"
134
134
  },
135
135
  {
136
136
  match: "POST /v1/projects/{ref}/readonly/temporary-disable",
137
- action: "supabase.unclassified",
137
+ action: "supabase.project.change",
138
138
  on: "project",
139
139
  summary: "Turn off read-only mode on project {ref} for 15 minutes"
140
140
  },
@@ -146,7 +146,7 @@ export const SUPABASE_API_RULES = [
146
146
  },
147
147
  {
148
148
  match: "POST /v1/projects/{ref}/claim-token",
149
- action: "supabase.unclassified",
149
+ action: "supabase.project.change",
150
150
  on: "project",
151
151
  summary: "Create a claim token for project {ref}"
152
152
  },
@@ -159,31 +159,31 @@ export const SUPABASE_API_RULES = [
159
159
  // Spend
160
160
  {
161
161
  match: "PATCH /v1/projects/{ref}/billing/addons",
162
- action: "supabase.unclassified",
162
+ action: "supabase.project.change",
163
163
  on: "project",
164
164
  summary: "Change compute or add-ons on project {ref}"
165
165
  },
166
166
  {
167
167
  match: "DELETE /v1/projects/{ref}/billing/addons/{addon_variant}",
168
- action: "supabase.unclassified",
168
+ action: "supabase.project.change",
169
169
  on: "project",
170
170
  summary: "Remove add-on {addon} from project {ref}"
171
171
  },
172
172
  {
173
173
  match: "POST /v1/projects/{ref}/read-replicas/setup",
174
- action: "supabase.unclassified",
174
+ action: "supabase.project.change",
175
175
  on: "project",
176
176
  summary: "Add a read replica to project {ref}"
177
177
  },
178
178
  {
179
179
  match: "POST /v1/projects/{ref}/read-replicas/remove",
180
- action: "supabase.unclassified",
180
+ action: "supabase.project.change",
181
181
  on: "project",
182
182
  summary: "Remove a read replica from project {ref}"
183
183
  },
184
184
  {
185
185
  match: "POST /v1/projects/{ref}/config/disk",
186
- action: "supabase.unclassified",
186
+ action: "supabase.project.change",
187
187
  on: "project",
188
188
  summary: "Change the disk of project {ref}"
189
189
  },
@@ -203,32 +203,32 @@ export const SUPABASE_API_RULES = [
203
203
  {
204
204
  match: "POST /v1/projects/{ref}/api-keys",
205
205
  body: ["name"],
206
- action: "supabase.unclassified",
206
+ action: "supabase.project.change",
207
207
  on: "api_keys",
208
208
  summary: "Create API key {name}"
209
209
  },
210
210
  {
211
211
  match: "PATCH /v1/projects/{ref}/api-keys/{id}",
212
- action: "supabase.unclassified",
212
+ action: "supabase.project.change",
213
213
  on: "api_keys",
214
214
  summary: "Update an API key of project {ref}"
215
215
  },
216
216
  {
217
217
  match: "DELETE /v1/projects/{ref}/api-keys/{id}",
218
- action: "supabase.unclassified",
218
+ action: "supabase.project.change",
219
219
  on: "api_keys",
220
220
  summary: "Delete an API key of project {ref}"
221
221
  },
222
222
  {
223
223
  match: "PUT /v1/projects/{ref}/api-keys/legacy",
224
224
  when: { enabled: true },
225
- action: "supabase.unclassified",
225
+ action: "supabase.project.change",
226
226
  on: "api_keys",
227
227
  summary: "Turn on legacy API keys for project {ref}"
228
228
  },
229
229
  {
230
230
  match: "PUT /v1/projects/{ref}/api-keys/legacy",
231
- action: "supabase.unclassified",
231
+ action: "supabase.project.change",
232
232
  on: "api_keys",
233
233
  summary: "Turn off legacy API keys for project {ref}"
234
234
  },
@@ -240,20 +240,20 @@ export const SUPABASE_API_RULES = [
240
240
  },
241
241
  {
242
242
  match: "PUT /v1/projects/{ref}/pgsodium",
243
- action: "supabase.unclassified",
243
+ action: "supabase.project.change",
244
244
  on: "project",
245
245
  summary: "Replace the root encryption key of project {ref}"
246
246
  },
247
247
  // Domains
248
248
  {
249
249
  match: "DELETE /v1/projects/{ref}/custom-hostname",
250
- action: "supabase.unclassified",
250
+ action: "supabase.project.change",
251
251
  on: "project",
252
252
  summary: "Delete the custom domain of project {ref}"
253
253
  },
254
254
  {
255
255
  match: "POST /v1/projects/{ref}/custom-hostname/initialize",
256
- action: "supabase.unclassified",
256
+ action: "supabase.project.change",
257
257
  on: "project",
258
258
  summary: "Set a custom domain for project {ref}"
259
259
  },
@@ -265,50 +265,50 @@ export const SUPABASE_API_RULES = [
265
265
  },
266
266
  {
267
267
  match: "POST /v1/projects/{ref}/custom-hostname/activate",
268
- action: "supabase.unclassified",
268
+ action: "supabase.project.change",
269
269
  on: "project",
270
270
  summary: "Activate the custom domain of project {ref}"
271
271
  },
272
272
  {
273
273
  match: "DELETE /v1/projects/{ref}/vanity-subdomain",
274
- action: "supabase.unclassified",
274
+ action: "supabase.project.change",
275
275
  on: "project",
276
276
  summary: "Delete the vanity subdomain of project {ref}"
277
277
  },
278
278
  {
279
279
  match: "POST /v1/projects/{ref}/vanity-subdomain/activate",
280
- action: "supabase.unclassified",
280
+ action: "supabase.project.change",
281
281
  on: "project",
282
282
  summary: "Activate a vanity subdomain for project {ref}"
283
283
  },
284
284
  // Network
285
285
  {
286
286
  match: "DELETE /v1/projects/{ref}/network-bans",
287
- action: "supabase.unclassified",
287
+ action: "supabase.project.change",
288
288
  on: "database",
289
289
  summary: "Remove network bans on project {ref}"
290
290
  },
291
291
  {
292
292
  match: "PATCH /v1/projects/{ref}/network-restrictions",
293
- action: "supabase.unclassified",
293
+ action: "supabase.project.change",
294
294
  on: "database",
295
295
  summary: "Change network restrictions on project {ref}"
296
296
  },
297
297
  {
298
298
  match: "POST /v1/projects/{ref}/network-restrictions/apply",
299
- action: "supabase.unclassified",
299
+ action: "supabase.project.change",
300
300
  on: "database",
301
301
  summary: "Replace network restrictions on project {ref}"
302
302
  },
303
303
  {
304
304
  match: "POST /v1/projects/{ref}/network-restrictions/review",
305
- action: "supabase.unclassified",
305
+ action: "supabase.project.change",
306
306
  on: "database",
307
307
  summary: "Review a network restriction change on project {ref}"
308
308
  },
309
309
  {
310
310
  match: "PUT /v1/projects/{ref}/ssl-enforcement",
311
- action: "supabase.unclassified",
311
+ action: "supabase.project.change",
312
312
  on: "database",
313
313
  summary: "Change SSL enforcement on project {ref}"
314
314
  },
@@ -370,37 +370,37 @@ export const SUPABASE_API_RULES = [
370
370
  // Database config
371
371
  {
372
372
  match: "PATCH /v1/projects/{ref}/postgrest",
373
- action: "supabase.unclassified",
373
+ action: "supabase.project.change",
374
374
  on: "project",
375
375
  summary: "Change Data API settings on project {ref}"
376
376
  },
377
377
  {
378
378
  match: "PATCH /v1/projects/{ref}/config/database/pooler",
379
- action: "supabase.unclassified",
379
+ action: "supabase.project.change",
380
380
  on: "project",
381
381
  summary: "Change pooler settings on project {ref}"
382
382
  },
383
383
  {
384
384
  match: "PUT /v1/projects/{ref}/config/database/postgres",
385
- action: "supabase.unclassified",
385
+ action: "supabase.project.change",
386
386
  on: "project",
387
387
  summary: "Change Postgres settings on project {ref}"
388
388
  },
389
389
  {
390
390
  match: "PATCH /v1/projects/{ref}/config/database/postgres",
391
- action: "supabase.unclassified",
391
+ action: "supabase.project.change",
392
392
  on: "project",
393
393
  summary: "Change Postgres settings on project {ref}"
394
394
  },
395
395
  {
396
396
  match: "PATCH /v1/projects/{ref}/config/realtime",
397
- action: "supabase.unclassified",
397
+ action: "supabase.project.change",
398
398
  on: "project",
399
399
  summary: "Change Realtime settings on project {ref}"
400
400
  },
401
401
  {
402
402
  match: "POST /v1/projects/{ref}/config/realtime/shutdown",
403
- action: "supabase.unclassified",
403
+ action: "supabase.project.change",
404
404
  on: "project",
405
405
  summary: "Close Realtime connections on project {ref}"
406
406
  },
@@ -445,7 +445,7 @@ export const SUPABASE_API_RULES = [
445
445
  },
446
446
  {
447
447
  match: "DELETE /v1/projects/{ref}/database/migrations",
448
- action: "supabase.unclassified",
448
+ action: "supabase.project.change",
449
449
  on: "database",
450
450
  summary: "Roll back migrations on project {ref}"
451
451
  },
@@ -459,19 +459,19 @@ export const SUPABASE_API_RULES = [
459
459
  // Backups
460
460
  {
461
461
  match: "POST /v1/projects/{ref}/database/backups/restore-pitr",
462
- action: "supabase.unclassified",
462
+ action: "supabase.project.change",
463
463
  on: "database",
464
464
  summary: "Restore project {ref} to a point in time"
465
465
  },
466
466
  {
467
467
  match: "POST /v1/projects/{ref}/database/backups/restore",
468
- action: "supabase.unclassified",
468
+ action: "supabase.project.change",
469
469
  on: "database",
470
470
  summary: "Restore a backup of project {ref}"
471
471
  },
472
472
  {
473
473
  match: "POST /v1/projects/{ref}/database/backups/undo",
474
- action: "supabase.unclassified",
474
+ action: "supabase.project.change",
475
475
  on: "database",
476
476
  summary: "Undo project {ref} to a restore point"
477
477
  },
@@ -483,7 +483,7 @@ export const SUPABASE_API_RULES = [
483
483
  },
484
484
  {
485
485
  match: "PATCH /v1/projects/{ref}/database/backups/schedule",
486
- action: "supabase.unclassified",
486
+ action: "supabase.project.change",
487
487
  on: "project",
488
488
  summary: "Change the backup schedule of project {ref}"
489
489
  },
@@ -505,7 +505,7 @@ export const SUPABASE_API_RULES = [
505
505
  also: [
506
506
  {
507
507
  when: { "*": { keys: `^(?!${PROVIDER_FIELDS.slice(1)})` } },
508
- action: "supabase.unclassified",
508
+ action: "supabase.project.change",
509
509
  on: "auth",
510
510
  summary: "Change other auth settings on project {ref}"
511
511
  }
@@ -513,7 +513,7 @@ export const SUPABASE_API_RULES = [
513
513
  },
514
514
  {
515
515
  match: "PATCH /v1/projects/{ref}/config/auth",
516
- action: "supabase.unclassified",
516
+ action: "supabase.project.change",
517
517
  on: "auth",
518
518
  summary: "Change auth settings on project {ref}"
519
519
  },
@@ -549,38 +549,38 @@ export const SUPABASE_API_RULES = [
549
549
  },
550
550
  {
551
551
  match: "POST /v1/projects/{ref}/config/auth/signing-keys/legacy",
552
- action: "supabase.unclassified",
552
+ action: "supabase.project.change",
553
553
  on: "auth",
554
554
  summary: "Import the JWT secret as a signing key on project {ref}"
555
555
  },
556
556
  {
557
557
  match: "POST /v1/projects/{ref}/config/auth/signing-keys",
558
- action: "supabase.unclassified",
558
+ action: "supabase.project.change",
559
559
  on: "auth",
560
560
  summary: "Create a JWT signing key on project {ref}"
561
561
  },
562
562
  {
563
563
  match: "PATCH /v1/projects/{ref}/config/auth/signing-keys/{id}",
564
- action: "supabase.unclassified",
564
+ action: "supabase.project.change",
565
565
  on: "auth",
566
566
  summary: "Change a JWT signing key on project {ref}"
567
567
  },
568
568
  {
569
569
  match: "DELETE /v1/projects/{ref}/config/auth/signing-keys/{id}",
570
- action: "supabase.unclassified",
570
+ action: "supabase.project.change",
571
571
  on: "auth",
572
572
  summary: "Delete a JWT signing key on project {ref}"
573
573
  },
574
574
  // Secrets (bodies are arrays, so names are not captured)
575
575
  {
576
576
  match: "POST /v1/projects/{ref}/secrets",
577
- action: "supabase.unclassified",
577
+ action: "supabase.project.change",
578
578
  on: "functions",
579
579
  summary: "Set function secrets on project {ref}"
580
580
  },
581
581
  {
582
582
  match: "DELETE /v1/projects/{ref}/secrets",
583
- action: "supabase.unclassified",
583
+ action: "supabase.project.change",
584
584
  on: "functions",
585
585
  summary: "Delete function secrets on project {ref}"
586
586
  },
@@ -618,14 +618,14 @@ export const SUPABASE_API_RULES = [
618
618
  },
619
619
  {
620
620
  match: "DELETE /v1/projects/{ref}/functions/{function_slug}",
621
- action: "supabase.unclassified",
621
+ action: "supabase.project.change",
622
622
  on: "function",
623
623
  summary: "Delete function {slug}"
624
624
  },
625
625
  // Storage
626
626
  {
627
627
  match: "PATCH /v1/projects/{ref}/config/storage",
628
- action: "supabase.unclassified",
628
+ action: "supabase.project.change",
629
629
  on: "storage",
630
630
  summary: "Change storage settings on project {ref}"
631
631
  }