pgbeam 0.3.6 → 0.3.7
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.
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/operations.cjs +10 -10
- package/dist/operations.d.cts +24 -0
- package/dist/operations.d.mts +24 -0
- package/dist/operations.mjs +10 -10
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2427,6 +2427,16 @@ type OrganizationPlan = {
|
|
|
2427
2427
|
* @type number
|
|
2428
2428
|
*/
|
|
2429
2429
|
spend_limit?: number | null;
|
|
2430
|
+
/**
|
|
2431
|
+
* @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
|
|
2432
|
+
* @type boolean | undefined
|
|
2433
|
+
*/
|
|
2434
|
+
spend_capped?: boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* @description When the spend cap was applied. Null when not capped.
|
|
2437
|
+
* @type string
|
|
2438
|
+
*/
|
|
2439
|
+
spend_capped_at?: string | null;
|
|
2430
2440
|
/**
|
|
2431
2441
|
* @description Effective usage limits enforced for an organization plan.
|
|
2432
2442
|
* @type object
|
|
@@ -6317,6 +6327,13 @@ type PolicyProfile = {
|
|
|
6317
6327
|
* @type integer | undefined
|
|
6318
6328
|
*/
|
|
6319
6329
|
egress_bytes_per_day?: number;
|
|
6330
|
+
/**
|
|
6331
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
6332
|
+
* @minLength 0
|
|
6333
|
+
* @default 0
|
|
6334
|
+
* @type integer | undefined
|
|
6335
|
+
*/
|
|
6336
|
+
max_affected_rows?: number;
|
|
6320
6337
|
/**
|
|
6321
6338
|
* @description When the policy profile was created.
|
|
6322
6339
|
* @type string
|
|
@@ -6581,6 +6598,13 @@ type PolicyProfileInput = {
|
|
|
6581
6598
|
* @type integer | undefined
|
|
6582
6599
|
*/
|
|
6583
6600
|
egress_bytes_per_day?: number;
|
|
6601
|
+
/**
|
|
6602
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
6603
|
+
* @minLength 0
|
|
6604
|
+
* @default 0
|
|
6605
|
+
* @type integer | undefined
|
|
6606
|
+
*/
|
|
6607
|
+
max_affected_rows?: number;
|
|
6584
6608
|
};
|
|
6585
6609
|
|
|
6586
6610
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -2427,6 +2427,16 @@ type OrganizationPlan = {
|
|
|
2427
2427
|
* @type number
|
|
2428
2428
|
*/
|
|
2429
2429
|
spend_limit?: number | null;
|
|
2430
|
+
/**
|
|
2431
|
+
* @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
|
|
2432
|
+
* @type boolean | undefined
|
|
2433
|
+
*/
|
|
2434
|
+
spend_capped?: boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* @description When the spend cap was applied. Null when not capped.
|
|
2437
|
+
* @type string
|
|
2438
|
+
*/
|
|
2439
|
+
spend_capped_at?: string | null;
|
|
2430
2440
|
/**
|
|
2431
2441
|
* @description Effective usage limits enforced for an organization plan.
|
|
2432
2442
|
* @type object
|
|
@@ -6317,6 +6327,13 @@ type PolicyProfile = {
|
|
|
6317
6327
|
* @type integer | undefined
|
|
6318
6328
|
*/
|
|
6319
6329
|
egress_bytes_per_day?: number;
|
|
6330
|
+
/**
|
|
6331
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
6332
|
+
* @minLength 0
|
|
6333
|
+
* @default 0
|
|
6334
|
+
* @type integer | undefined
|
|
6335
|
+
*/
|
|
6336
|
+
max_affected_rows?: number;
|
|
6320
6337
|
/**
|
|
6321
6338
|
* @description When the policy profile was created.
|
|
6322
6339
|
* @type string
|
|
@@ -6581,6 +6598,13 @@ type PolicyProfileInput = {
|
|
|
6581
6598
|
* @type integer | undefined
|
|
6582
6599
|
*/
|
|
6583
6600
|
egress_bytes_per_day?: number;
|
|
6601
|
+
/**
|
|
6602
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
6603
|
+
* @minLength 0
|
|
6604
|
+
* @default 0
|
|
6605
|
+
* @type integer | undefined
|
|
6606
|
+
*/
|
|
6607
|
+
max_affected_rows?: number;
|
|
6584
6608
|
};
|
|
6585
6609
|
|
|
6586
6610
|
/**
|
package/dist/operations.cjs
CHANGED
|
@@ -512,7 +512,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
512
512
|
],
|
|
513
513
|
"requestBodyType": "",
|
|
514
514
|
"requestBodyRequired": false,
|
|
515
|
-
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
515
|
+
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
516
516
|
"responseStatus": "200"
|
|
517
517
|
},
|
|
518
518
|
"getVercelInstallation": {
|
|
@@ -552,7 +552,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
552
552
|
],
|
|
553
553
|
"requestBodyType": "{ spend_limit?: number }",
|
|
554
554
|
"requestBodyRequired": true,
|
|
555
|
-
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
555
|
+
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
556
556
|
"responseStatus": "200"
|
|
557
557
|
},
|
|
558
558
|
"submitCancellationFeedback": {
|
|
@@ -1179,7 +1179,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1179
1179
|
],
|
|
1180
1180
|
"requestBodyType": "",
|
|
1181
1181
|
"requestBodyRequired": false,
|
|
1182
|
-
"responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
|
|
1182
|
+
"responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
|
|
1183
1183
|
"responseStatus": "200"
|
|
1184
1184
|
},
|
|
1185
1185
|
"createPolicyProfile": {
|
|
@@ -1197,9 +1197,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1197
1197
|
"description": "Unique project identifier (prefixed, e.g. prj_xxx)."
|
|
1198
1198
|
}
|
|
1199
1199
|
],
|
|
1200
|
-
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1200
|
+
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1201
1201
|
"requestBodyRequired": true,
|
|
1202
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1202
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1203
1203
|
"responseStatus": "201"
|
|
1204
1204
|
},
|
|
1205
1205
|
"getPolicyProfile": {
|
|
@@ -1226,7 +1226,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1226
1226
|
],
|
|
1227
1227
|
"requestBodyType": "",
|
|
1228
1228
|
"requestBodyRequired": false,
|
|
1229
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1229
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1230
1230
|
"responseStatus": "200"
|
|
1231
1231
|
},
|
|
1232
1232
|
"updatePolicyProfile": {
|
|
@@ -1251,9 +1251,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1251
1251
|
"description": "Unique policy profile identifier (prefixed, e.g. pol_xxx)."
|
|
1252
1252
|
}
|
|
1253
1253
|
],
|
|
1254
|
-
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1254
|
+
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1255
1255
|
"requestBodyRequired": true,
|
|
1256
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1256
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1257
1257
|
"responseStatus": "200"
|
|
1258
1258
|
},
|
|
1259
1259
|
"deletePolicyProfile": {
|
|
@@ -1288,7 +1288,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1288
1288
|
"method": "POST",
|
|
1289
1289
|
"path": "/v1/projects/{project_id}/policy-evaluations",
|
|
1290
1290
|
"summary": "Dry-eval a policy against a SQL statement",
|
|
1291
|
-
"description": "Evaluates a single SQL statement against a policy
|
|
1291
|
+
"description": "Evaluates a single SQL statement against a policy (either a draft policy supplied inline or an existing policy referenced by id) and returns the decision the proxy would make: allow, block, mask, or row-filter. The evaluation reuses the data plane's own policy engine (the same parser, allow/block rules, row-filter rewriter, and masking analysis enforced on live agent sessions), so a what-if verdict matches real enforcement. Stateful checks a single-statement preview cannot model (per-region query and egress budgets, human approvals, and rollback/sandbox write routing) are reported as informational notes, not verdicts. This is a pure compute endpoint; it does not connect to the upstream database and persists nothing.",
|
|
1292
1292
|
"parameters": [
|
|
1293
1293
|
{
|
|
1294
1294
|
"name": "project_id",
|
|
@@ -1298,7 +1298,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
1298
1298
|
"description": "Unique project identifier (prefixed, e.g. prj_xxx)."
|
|
1299
1299
|
}
|
|
1300
1300
|
],
|
|
1301
|
-
"requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
|
|
1301
|
+
"requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
|
|
1302
1302
|
"requestBodyRequired": true,
|
|
1303
1303
|
"responseType": "{ hint?: string; masked_columns?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\" })[]; notes?: string[]; reason: string; rewritten_sql?: string; row_filter_predicate?: string; rule: string; verdict: \"allow\" | \"block\" | \"mask\" | \"row-filter\" }",
|
|
1304
1304
|
"responseStatus": "200"
|
package/dist/operations.d.cts
CHANGED
|
@@ -1857,6 +1857,16 @@ type OrganizationPlan = {
|
|
|
1857
1857
|
* @type number
|
|
1858
1858
|
*/
|
|
1859
1859
|
spend_limit?: number | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
|
|
1862
|
+
* @type boolean | undefined
|
|
1863
|
+
*/
|
|
1864
|
+
spend_capped?: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* @description When the spend cap was applied. Null when not capped.
|
|
1867
|
+
* @type string
|
|
1868
|
+
*/
|
|
1869
|
+
spend_capped_at?: string | null;
|
|
1860
1870
|
/**
|
|
1861
1871
|
* @description Effective usage limits enforced for an organization plan.
|
|
1862
1872
|
* @type object
|
|
@@ -4796,6 +4806,13 @@ type PolicyProfile = {
|
|
|
4796
4806
|
* @type integer | undefined
|
|
4797
4807
|
*/
|
|
4798
4808
|
egress_bytes_per_day?: number;
|
|
4809
|
+
/**
|
|
4810
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
4811
|
+
* @minLength 0
|
|
4812
|
+
* @default 0
|
|
4813
|
+
* @type integer | undefined
|
|
4814
|
+
*/
|
|
4815
|
+
max_affected_rows?: number;
|
|
4799
4816
|
/**
|
|
4800
4817
|
* @description When the policy profile was created.
|
|
4801
4818
|
* @type string
|
|
@@ -5024,6 +5041,13 @@ type PolicyProfileInput = {
|
|
|
5024
5041
|
* @type integer | undefined
|
|
5025
5042
|
*/
|
|
5026
5043
|
egress_bytes_per_day?: number;
|
|
5044
|
+
/**
|
|
5045
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
5046
|
+
* @minLength 0
|
|
5047
|
+
* @default 0
|
|
5048
|
+
* @type integer | undefined
|
|
5049
|
+
*/
|
|
5050
|
+
max_affected_rows?: number;
|
|
5027
5051
|
};
|
|
5028
5052
|
|
|
5029
5053
|
/**
|
package/dist/operations.d.mts
CHANGED
|
@@ -1857,6 +1857,16 @@ type OrganizationPlan = {
|
|
|
1857
1857
|
* @type number
|
|
1858
1858
|
*/
|
|
1859
1859
|
spend_limit?: number | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* @description Whether the organization has hit its spend limit and agent access is paused at the proxy. Lifts automatically when usage resets for the new billing period, or immediately when the spend limit is raised or removed.
|
|
1862
|
+
* @type boolean | undefined
|
|
1863
|
+
*/
|
|
1864
|
+
spend_capped?: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* @description When the spend cap was applied. Null when not capped.
|
|
1867
|
+
* @type string
|
|
1868
|
+
*/
|
|
1869
|
+
spend_capped_at?: string | null;
|
|
1860
1870
|
/**
|
|
1861
1871
|
* @description Effective usage limits enforced for an organization plan.
|
|
1862
1872
|
* @type object
|
|
@@ -4796,6 +4806,13 @@ type PolicyProfile = {
|
|
|
4796
4806
|
* @type integer | undefined
|
|
4797
4807
|
*/
|
|
4798
4808
|
egress_bytes_per_day?: number;
|
|
4809
|
+
/**
|
|
4810
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
4811
|
+
* @minLength 0
|
|
4812
|
+
* @default 0
|
|
4813
|
+
* @type integer | undefined
|
|
4814
|
+
*/
|
|
4815
|
+
max_affected_rows?: number;
|
|
4799
4816
|
/**
|
|
4800
4817
|
* @description When the policy profile was created.
|
|
4801
4818
|
* @type string
|
|
@@ -5024,6 +5041,13 @@ type PolicyProfileInput = {
|
|
|
5024
5041
|
* @type integer | undefined
|
|
5025
5042
|
*/
|
|
5026
5043
|
egress_bytes_per_day?: number;
|
|
5044
|
+
/**
|
|
5045
|
+
* @description Hard cap on rows a single write (INSERT/UPDATE/DELETE) may affect. A write whose affected-row count would exceed this is executed inside a transaction, checked, and rolled back so nothing persists, then blocked. Enforced independently of human approval. 0 means unlimited.
|
|
5046
|
+
* @minLength 0
|
|
5047
|
+
* @default 0
|
|
5048
|
+
* @type integer | undefined
|
|
5049
|
+
*/
|
|
5050
|
+
max_affected_rows?: number;
|
|
5027
5051
|
};
|
|
5028
5052
|
|
|
5029
5053
|
/**
|
package/dist/operations.mjs
CHANGED
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
],
|
|
511
511
|
"requestBodyType": "",
|
|
512
512
|
"requestBodyRequired": false,
|
|
513
|
-
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
513
|
+
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
514
514
|
"responseStatus": "200"
|
|
515
515
|
},
|
|
516
516
|
"getVercelInstallation": {
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
],
|
|
551
551
|
"requestBodyType": "{ spend_limit?: number }",
|
|
552
552
|
"requestBodyRequired": true,
|
|
553
|
-
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
553
|
+
"responseType": "{ billing_provider?: \"stripe\" | \"vercel\" | \"aws\" | \"manual\"; created_at?: string; current_period_end?: string; custom_pricing?: boolean; enabled?: boolean; limits: { bytes_per_month: number; included_seats: number; max_connections: number; max_databases: number; max_projects: number; max_query_shapes: number; queries_per_day: number; queries_per_second: number }; org_id: string; plan: \"starter\" | \"pro\" | \"scale\" | \"enterprise\"; spend_capped?: boolean; spend_capped_at?: string; spend_limit?: number; subscription_status?: \"none\" | \"active\" | \"trialing\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"incomplete\" | \"incomplete_expired\" | \"paused\"; updated_at?: string }",
|
|
554
554
|
"responseStatus": "200"
|
|
555
555
|
},
|
|
556
556
|
"submitCancellationFeedback": {
|
|
@@ -1177,7 +1177,7 @@
|
|
|
1177
1177
|
],
|
|
1178
1178
|
"requestBodyType": "",
|
|
1179
1179
|
"requestBodyRequired": false,
|
|
1180
|
-
"responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
|
|
1180
|
+
"responseType": "{ next_page_token?: string; policies: ({ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" })[] }",
|
|
1181
1181
|
"responseStatus": "200"
|
|
1182
1182
|
},
|
|
1183
1183
|
"createPolicyProfile": {
|
|
@@ -1195,9 +1195,9 @@
|
|
|
1195
1195
|
"description": "Unique project identifier (prefixed, e.g. prj_xxx)."
|
|
1196
1196
|
}
|
|
1197
1197
|
],
|
|
1198
|
-
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1198
|
+
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1199
1199
|
"requestBodyRequired": true,
|
|
1200
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1200
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1201
1201
|
"responseStatus": "201"
|
|
1202
1202
|
},
|
|
1203
1203
|
"getPolicyProfile": {
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
],
|
|
1225
1225
|
"requestBodyType": "",
|
|
1226
1226
|
"requestBodyRequired": false,
|
|
1227
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1227
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1228
1228
|
"responseStatus": "200"
|
|
1229
1229
|
},
|
|
1230
1230
|
"updatePolicyProfile": {
|
|
@@ -1249,9 +1249,9 @@
|
|
|
1249
1249
|
"description": "Unique policy profile identifier (prefixed, e.g. pol_xxx)."
|
|
1250
1250
|
}
|
|
1251
1251
|
],
|
|
1252
|
-
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1252
|
+
"requestBodyType": "{ access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1253
1253
|
"requestBodyRequired": true,
|
|
1254
|
-
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1254
|
+
"responseType": "{ access_mode: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; created_at: string; egress_bytes_per_day?: number; id: string; masking_rules: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; project_id: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist: string[]; table_denylist: string[]; updated_at: string; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }",
|
|
1255
1255
|
"responseStatus": "200"
|
|
1256
1256
|
},
|
|
1257
1257
|
"deletePolicyProfile": {
|
|
@@ -1286,7 +1286,7 @@
|
|
|
1286
1286
|
"method": "POST",
|
|
1287
1287
|
"path": "/v1/projects/{project_id}/policy-evaluations",
|
|
1288
1288
|
"summary": "Dry-eval a policy against a SQL statement",
|
|
1289
|
-
"description": "Evaluates a single SQL statement against a policy
|
|
1289
|
+
"description": "Evaluates a single SQL statement against a policy (either a draft policy supplied inline or an existing policy referenced by id) and returns the decision the proxy would make: allow, block, mask, or row-filter. The evaluation reuses the data plane's own policy engine (the same parser, allow/block rules, row-filter rewriter, and masking analysis enforced on live agent sessions), so a what-if verdict matches real enforcement. Stateful checks a single-statement preview cannot model (per-region query and egress budgets, human approvals, and rollback/sandbox write routing) are reported as informational notes, not verdicts. This is a pure compute endpoint; it does not connect to the upstream database and persists nothing.",
|
|
1290
1290
|
"parameters": [
|
|
1291
1291
|
{
|
|
1292
1292
|
"name": "project_id",
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
"description": "Unique project identifier (prefixed, e.g. prj_xxx)."
|
|
1297
1297
|
}
|
|
1298
1298
|
],
|
|
1299
|
-
"requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
|
|
1299
|
+
"requestBodyType": "{ policy?: { access_mode?: \"read_only\" | \"read_write\"; approval_auto_max_rows?: number; approval_mode?: \"off\" | \"writes\" | \"ddl\" | \"all\"; approval_timeout_seconds?: number; budget_queries_per_day?: number; budget_queries_per_hour?: number; egress_bytes_per_day?: number; masking_rules?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\"; table: string })[]; max_affected_rows?: number; max_rows?: number; migration_safety?: \"off\" | \"warn\" | \"block\"; name: string; row_filters?: ({ predicate: string; table: string })[]; statement_rules?: { allow?: string[]; deny?: string[] }; statement_timeout_ms?: number; table_allowlist?: string[]; table_denylist?: string[]; write_mode?: \"normal\" | \"rollback\" | \"sandbox\" }; policy_id?: string; sql: string }",
|
|
1300
1300
|
"requestBodyRequired": true,
|
|
1301
1301
|
"responseType": "{ hint?: string; masked_columns?: ({ column: string; kind: \"redact\" | \"null\" | \"hash\" })[]; notes?: string[]; reason: string; rewritten_sql?: string; row_filter_predicate?: string; rule: string; verdict: \"allow\" | \"block\" | \"mask\" | \"row-filter\" }",
|
|
1302
1302
|
"responseStatus": "200"
|