pgbeam 0.7.0 → 0.7.1

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.
@@ -115,6 +115,10 @@
115
115
  method: "DELETE",
116
116
  path: "/v1/projects/{project_id}/policies/{policy_id}"
117
117
  },
118
+ getPolicyStatementKinds: {
119
+ method: "GET",
120
+ path: "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds"
121
+ },
118
122
  dryEvalPolicy: {
119
123
  method: "POST",
120
124
  path: "/v1/projects/{project_id}/policy-evaluations"
@@ -881,6 +885,11 @@ const operationsByPath = {
881
885
  path: "/v1/projects/{project_id}/policies/{policy_id}",
882
886
  operationId: "deletePolicyProfile"
883
887
  },
888
+ "GET /v1/projects/{project_id}/policies/{policy_id}/statement-kinds": {
889
+ method: "GET",
890
+ path: "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds",
891
+ operationId: "getPolicyStatementKinds"
892
+ },
884
893
  "POST /v1/projects/{project_id}/policy-evaluations": {
885
894
  method: "POST",
886
895
  path: "/v1/projects/{project_id}/policy-evaluations",
@@ -115,6 +115,10 @@
115
115
  method: "DELETE",
116
116
  path: "/v1/projects/{project_id}/policies/{policy_id}"
117
117
  },
118
+ getPolicyStatementKinds: {
119
+ method: "GET",
120
+ path: "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds"
121
+ },
118
122
  dryEvalPolicy: {
119
123
  method: "POST",
120
124
  path: "/v1/projects/{project_id}/policy-evaluations"
@@ -881,6 +885,11 @@ const operationsByPath = {
881
885
  path: "/v1/projects/{project_id}/policies/{policy_id}",
882
886
  operationId: "deletePolicyProfile"
883
887
  },
888
+ "GET /v1/projects/{project_id}/policies/{policy_id}/statement-kinds": {
889
+ method: "GET",
890
+ path: "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds",
891
+ operationId: "getPolicyStatementKinds"
892
+ },
884
893
  "POST /v1/projects/{project_id}/policy-evaluations": {
885
894
  method: "POST",
886
895
  path: "/v1/projects/{project_id}/policy-evaluations",
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var operationsMap_gen = require('./operations-map.gen-fayr6b1o.cjs');
3
+ var operationsMap_gen = require('./operations-map.gen-jsbs5s0c.cjs');
4
4
 
5
5
  /**
6
6
  * Generated by generate-sdk-ts-maps.ts from backend/openapi/bundles/public.yaml — do not edit manually.
@@ -2416,6 +2416,33 @@ var operationsMap_gen = require('./operations-map.gen-fayr6b1o.cjs');
2416
2416
  "responseType": "",
2417
2417
  "responseStatus": "204"
2418
2418
  },
2419
+ "getPolicyStatementKinds": {
2420
+ "operationId": "getPolicyStatementKinds",
2421
+ "method": "GET",
2422
+ "path": "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds",
2423
+ "summary": "List the statement kinds a policy permits",
2424
+ "description": "Returns, for every statement kind the proxy classifies, whether this policy permits a statement of that kind, and when it does not, the rule and reason the proxy would refuse it with. The answer comes from the data plane's own policy engine rather than from the stored fields, so it resolves them the way enforcement does: COPY is refused whatever the allowlist says, deny beats allow, read_only is a ceiling the allowlist cannot lift, and an unclassified statement fails closed unless \"other\" is allowlisted. Each kind is judged on its own, with no relations and a WHERE clause, so table lists, masking, budgets and the other floors are not part of these verdicts.",
2425
+ "parameters": [
2426
+ {
2427
+ "name": "project_id",
2428
+ "in": "path",
2429
+ "required": true,
2430
+ "type": "string",
2431
+ "description": "Unique project identifier (prefixed, e.g. prj_xxx)."
2432
+ },
2433
+ {
2434
+ "name": "policy_id",
2435
+ "in": "path",
2436
+ "required": true,
2437
+ "type": "string",
2438
+ "description": "Unique policy profile identifier (prefixed, e.g. pol_xxx)."
2439
+ }
2440
+ ],
2441
+ "requestBodyType": "",
2442
+ "requestBodyRequired": false,
2443
+ "responseType": "{ access_mode: \"read_only\" | \"read_write\"; policy_id: string; statement_kinds: ({ allowed: boolean; kind: string; reason?: string; rule?: string })[] }",
2444
+ "responseStatus": "200"
2445
+ },
2419
2446
  "dryEvalPolicy": {
2420
2447
  "operationId": "dryEvalPolicy",
2421
2448
  "method": "POST",
@@ -1,4 +1,4 @@
1
- export { Be as ApiOperations, Bf as ApiTag, Bg as RequestMap, Bh as Route, Bi as operationsByPath, Bj as operationsByTag } from './operations-map.gen-e5eiow5k.js';
1
+ export { Bt as ApiOperations, Bu as ApiTag, Bv as RequestMap, Bw as Route, Bx as operationsByPath, By as operationsByTag } from './operations-map.gen-fa6i9ibu.js';
2
2
 
3
3
  /**
4
4
  * Generated by generate-sdk-ts-maps.ts from backend/openapi/bundles/public.yaml — do not edit manually.
@@ -1,4 +1,4 @@
1
- export { Be as ApiOperations, Bf as ApiTag, Bg as RequestMap, Bh as Route, Bi as operationsByPath, Bj as operationsByTag } from './operations-map.gen-e5eiow5k.js';
1
+ export { Bt as ApiOperations, Bu as ApiTag, Bv as RequestMap, Bw as Route, Bx as operationsByPath, By as operationsByTag } from './operations-map.gen-fa6i9ibu.js';
2
2
 
3
3
  /**
4
4
  * Generated by generate-sdk-ts-maps.ts from backend/openapi/bundles/public.yaml — do not edit manually.
@@ -1,4 +1,4 @@
1
- export { o as operationsByPath, a as operationsByTag } from './operations-map.gen-ir66wlzb.js';
1
+ export { o as operationsByPath, a as operationsByTag } from './operations-map.gen-olbk6bt4.js';
2
2
 
3
3
  /**
4
4
  * Generated by generate-sdk-ts-maps.ts from backend/openapi/bundles/public.yaml — do not edit manually.
@@ -2414,6 +2414,33 @@ export { o as operationsByPath, a as operationsByTag } from './operations-map.ge
2414
2414
  "responseType": "",
2415
2415
  "responseStatus": "204"
2416
2416
  },
2417
+ "getPolicyStatementKinds": {
2418
+ "operationId": "getPolicyStatementKinds",
2419
+ "method": "GET",
2420
+ "path": "/v1/projects/{project_id}/policies/{policy_id}/statement-kinds",
2421
+ "summary": "List the statement kinds a policy permits",
2422
+ "description": "Returns, for every statement kind the proxy classifies, whether this policy permits a statement of that kind, and when it does not, the rule and reason the proxy would refuse it with. The answer comes from the data plane's own policy engine rather than from the stored fields, so it resolves them the way enforcement does: COPY is refused whatever the allowlist says, deny beats allow, read_only is a ceiling the allowlist cannot lift, and an unclassified statement fails closed unless \"other\" is allowlisted. Each kind is judged on its own, with no relations and a WHERE clause, so table lists, masking, budgets and the other floors are not part of these verdicts.",
2423
+ "parameters": [
2424
+ {
2425
+ "name": "project_id",
2426
+ "in": "path",
2427
+ "required": true,
2428
+ "type": "string",
2429
+ "description": "Unique project identifier (prefixed, e.g. prj_xxx)."
2430
+ },
2431
+ {
2432
+ "name": "policy_id",
2433
+ "in": "path",
2434
+ "required": true,
2435
+ "type": "string",
2436
+ "description": "Unique policy profile identifier (prefixed, e.g. pol_xxx)."
2437
+ }
2438
+ ],
2439
+ "requestBodyType": "",
2440
+ "requestBodyRequired": false,
2441
+ "responseType": "{ access_mode: \"read_only\" | \"read_write\"; policy_id: string; statement_kinds: ({ allowed: boolean; kind: string; reason?: string; rule?: string })[] }",
2442
+ "responseStatus": "200"
2443
+ },
2417
2444
  "dryEvalPolicy": {
2418
2445
  "operationId": "dryEvalPolicy",
2419
2446
  "method": "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "TypeScript SDK for the PgBeam API, a Postgres proxy for safe AI agent access with policy enforcement in the wire protocol",
5
5
  "type": "module",
6
6
  "exports": {
@@ -47,13 +47,13 @@
47
47
  ],
48
48
  "homepage": "https://pgbeam.com",
49
49
  "devDependencies": {
50
- "@kubb/adapter-oas": "5.11.1",
50
+ "@kubb/adapter-oas": "5.14.3",
51
51
  "@kubb/middleware-barrel": "5.0.0-beta.35",
52
- "@kubb/plugin-ts": "5.0.14",
52
+ "@kubb/plugin-ts": "5.2.0",
53
53
  "@pgbeam/config": "0.0.1",
54
54
  "@typescript/typescript6": "6.0.2",
55
55
  "bunchee": "7.0.2",
56
- "kubb": "5.11.1",
56
+ "kubb": "5.14.3",
57
57
  "typescript": "7.0.2"
58
58
  },
59
59
  "scripts": {