pgbeam 0.3.9 → 0.3.10

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 CHANGED
@@ -1439,6 +1439,16 @@ type ApprovalRequest = {
1439
1439
  * @type string | undefined
1440
1440
  */
1441
1441
  statement_kind?: string;
1442
+ /**
1443
+ * @description Best-effort estimate of how many rows the statement would affect, attached by the data plane when the statement was held. Either the planner estimate from EXPLAIN or the exact count observed in a rolled-back trial execution. Null when no estimate could be made; treat it as an estimate, not a guarantee.
1444
+ * @type integer
1445
+ */
1446
+ estimated_rows?: number | null;
1447
+ /**
1448
+ * @description Relations the statement touches, from the gateway\'s parse analysis.
1449
+ * @type array | undefined
1450
+ */
1451
+ target_tables?: string[];
1442
1452
  /**
1443
1453
  * @description Current state of the approval request.
1444
1454
  * @type string
@@ -1805,11 +1815,12 @@ type AuditDecision = AuditDecisionKey | undefined;
1805
1815
  declare const auditSource: {
1806
1816
  readonly wire: "wire";
1807
1817
  readonly mcp: "mcp";
1818
+ readonly rest: "rest";
1808
1819
  readonly control: "control";
1809
1820
  };
1810
1821
  type AuditSourceKey = (typeof auditSource)[keyof typeof auditSource];
1811
1822
  /**
1812
- * @description Filter by statement origin (wire, mcp, or control).
1823
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1813
1824
  * @type string | undefined
1814
1825
  */
1815
1826
  type AuditSource = AuditSourceKey | undefined;
@@ -1910,7 +1921,7 @@ type AuditLogEntry = {
1910
1921
  */
1911
1922
  session_id?: string;
1912
1923
  /**
1913
- * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1924
+ * @description Statement origin (wire, mcp, rest, or control for control-plane lifecycle events).
1914
1925
  * @type string | undefined
1915
1926
  */
1916
1927
  source?: string;
@@ -1987,7 +1998,7 @@ type ListAuditLogsQueryEvent = string | undefined;
1987
1998
  */
1988
1999
  type ListAuditLogsQueryDecision = AuditDecisionKey | undefined;
1989
2000
  /**
1990
- * @description Filter by statement origin (wire, mcp, or control).
2001
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1991
2002
  * @type string | undefined
1992
2003
  */
1993
2004
  type ListAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -2115,7 +2126,7 @@ type ExportAuditLogsQueryEvent = string | undefined;
2115
2126
  */
2116
2127
  type ExportAuditLogsQueryDecision = AuditDecisionKey | undefined;
2117
2128
  /**
2118
- * @description Filter by statement origin (wire, mcp, or control).
2129
+ * @description Filter by statement origin (wire, mcp, rest, or control).
2119
2130
  * @type string | undefined
2120
2131
  */
2121
2132
  type ExportAuditLogsQuerySource = AuditSourceKey | undefined;
package/dist/index.d.mts CHANGED
@@ -1439,6 +1439,16 @@ type ApprovalRequest = {
1439
1439
  * @type string | undefined
1440
1440
  */
1441
1441
  statement_kind?: string;
1442
+ /**
1443
+ * @description Best-effort estimate of how many rows the statement would affect, attached by the data plane when the statement was held. Either the planner estimate from EXPLAIN or the exact count observed in a rolled-back trial execution. Null when no estimate could be made; treat it as an estimate, not a guarantee.
1444
+ * @type integer
1445
+ */
1446
+ estimated_rows?: number | null;
1447
+ /**
1448
+ * @description Relations the statement touches, from the gateway\'s parse analysis.
1449
+ * @type array | undefined
1450
+ */
1451
+ target_tables?: string[];
1442
1452
  /**
1443
1453
  * @description Current state of the approval request.
1444
1454
  * @type string
@@ -1805,11 +1815,12 @@ type AuditDecision = AuditDecisionKey | undefined;
1805
1815
  declare const auditSource: {
1806
1816
  readonly wire: "wire";
1807
1817
  readonly mcp: "mcp";
1818
+ readonly rest: "rest";
1808
1819
  readonly control: "control";
1809
1820
  };
1810
1821
  type AuditSourceKey = (typeof auditSource)[keyof typeof auditSource];
1811
1822
  /**
1812
- * @description Filter by statement origin (wire, mcp, or control).
1823
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1813
1824
  * @type string | undefined
1814
1825
  */
1815
1826
  type AuditSource = AuditSourceKey | undefined;
@@ -1910,7 +1921,7 @@ type AuditLogEntry = {
1910
1921
  */
1911
1922
  session_id?: string;
1912
1923
  /**
1913
- * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1924
+ * @description Statement origin (wire, mcp, rest, or control for control-plane lifecycle events).
1914
1925
  * @type string | undefined
1915
1926
  */
1916
1927
  source?: string;
@@ -1987,7 +1998,7 @@ type ListAuditLogsQueryEvent = string | undefined;
1987
1998
  */
1988
1999
  type ListAuditLogsQueryDecision = AuditDecisionKey | undefined;
1989
2000
  /**
1990
- * @description Filter by statement origin (wire, mcp, or control).
2001
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1991
2002
  * @type string | undefined
1992
2003
  */
1993
2004
  type ListAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -2115,7 +2126,7 @@ type ExportAuditLogsQueryEvent = string | undefined;
2115
2126
  */
2116
2127
  type ExportAuditLogsQueryDecision = AuditDecisionKey | undefined;
2117
2128
  /**
2118
- * @description Filter by statement origin (wire, mcp, or control).
2129
+ * @description Filter by statement origin (wire, mcp, rest, or control).
2119
2130
  * @type string | undefined
2120
2131
  */
2121
2132
  type ExportAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -288,7 +288,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
288
288
  ],
289
289
  "requestBodyType": "",
290
290
  "requestBodyRequired": false,
291
- "responseType": "{ approvals: ({ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" })[]; next_page_token?: string }",
291
+ "responseType": "{ approvals: ({ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] })[]; next_page_token?: string }",
292
292
  "responseStatus": "200"
293
293
  },
294
294
  "approveApprovalRequest": {
@@ -315,7 +315,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
315
315
  ],
316
316
  "requestBodyType": "{ reason?: string }",
317
317
  "requestBodyRequired": false,
318
- "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" }",
318
+ "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] }",
319
319
  "responseStatus": "200"
320
320
  },
321
321
  "rejectApprovalRequest": {
@@ -342,7 +342,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
342
342
  ],
343
343
  "requestBodyType": "{ reason?: string }",
344
344
  "requestBodyRequired": false,
345
- "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" }",
345
+ "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] }",
346
346
  "responseStatus": "200"
347
347
  },
348
348
  "listAuditLogs": {
@@ -384,8 +384,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
384
384
  "name": "source",
385
385
  "in": "query",
386
386
  "required": false,
387
- "type": "\"wire\" | \"mcp\" | \"control\"",
388
- "description": "Filter by statement origin (wire, mcp, or control)."
387
+ "type": "\"wire\" | \"mcp\" | \"rest\" | \"control\"",
388
+ "description": "Filter by statement origin (wire, mcp, rest, or control)."
389
389
  },
390
390
  {
391
391
  "name": "start",
@@ -460,8 +460,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
460
460
  "name": "source",
461
461
  "in": "query",
462
462
  "required": false,
463
- "type": "\"wire\" | \"mcp\" | \"control\"",
464
- "description": "Filter by statement origin (wire, mcp, or control)."
463
+ "type": "\"wire\" | \"mcp\" | \"rest\" | \"control\"",
464
+ "description": "Filter by statement origin (wire, mcp, rest, or control)."
465
465
  },
466
466
  {
467
467
  "name": "start",
@@ -1102,6 +1102,16 @@ type ApprovalRequest = {
1102
1102
  * @type string | undefined
1103
1103
  */
1104
1104
  statement_kind?: string;
1105
+ /**
1106
+ * @description Best-effort estimate of how many rows the statement would affect, attached by the data plane when the statement was held. Either the planner estimate from EXPLAIN or the exact count observed in a rolled-back trial execution. Null when no estimate could be made; treat it as an estimate, not a guarantee.
1107
+ * @type integer
1108
+ */
1109
+ estimated_rows?: number | null;
1110
+ /**
1111
+ * @description Relations the statement touches, from the gateway\'s parse analysis.
1112
+ * @type array | undefined
1113
+ */
1114
+ target_tables?: string[];
1105
1115
  /**
1106
1116
  * @description Current state of the approval request.
1107
1117
  * @type string
@@ -1347,6 +1357,7 @@ type AuditDecisionKey = (typeof auditDecision)[keyof typeof auditDecision];
1347
1357
  declare const auditSource: {
1348
1358
  readonly wire: "wire";
1349
1359
  readonly mcp: "mcp";
1360
+ readonly rest: "rest";
1350
1361
  readonly control: "control";
1351
1362
  };
1352
1363
  type AuditSourceKey = (typeof auditSource)[keyof typeof auditSource];
@@ -1447,7 +1458,7 @@ type AuditLogEntry = {
1447
1458
  */
1448
1459
  session_id?: string;
1449
1460
  /**
1450
- * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1461
+ * @description Statement origin (wire, mcp, rest, or control for control-plane lifecycle events).
1451
1462
  * @type string | undefined
1452
1463
  */
1453
1464
  source?: string;
@@ -1524,7 +1535,7 @@ type ListAuditLogsQueryEvent = string | undefined;
1524
1535
  */
1525
1536
  type ListAuditLogsQueryDecision = AuditDecisionKey | undefined;
1526
1537
  /**
1527
- * @description Filter by statement origin (wire, mcp, or control).
1538
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1528
1539
  * @type string | undefined
1529
1540
  */
1530
1541
  type ListAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -1616,7 +1627,7 @@ type ExportAuditLogsQueryEvent = string | undefined;
1616
1627
  */
1617
1628
  type ExportAuditLogsQueryDecision = AuditDecisionKey | undefined;
1618
1629
  /**
1619
- * @description Filter by statement origin (wire, mcp, or control).
1630
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1620
1631
  * @type string | undefined
1621
1632
  */
1622
1633
  type ExportAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -1102,6 +1102,16 @@ type ApprovalRequest = {
1102
1102
  * @type string | undefined
1103
1103
  */
1104
1104
  statement_kind?: string;
1105
+ /**
1106
+ * @description Best-effort estimate of how many rows the statement would affect, attached by the data plane when the statement was held. Either the planner estimate from EXPLAIN or the exact count observed in a rolled-back trial execution. Null when no estimate could be made; treat it as an estimate, not a guarantee.
1107
+ * @type integer
1108
+ */
1109
+ estimated_rows?: number | null;
1110
+ /**
1111
+ * @description Relations the statement touches, from the gateway\'s parse analysis.
1112
+ * @type array | undefined
1113
+ */
1114
+ target_tables?: string[];
1105
1115
  /**
1106
1116
  * @description Current state of the approval request.
1107
1117
  * @type string
@@ -1347,6 +1357,7 @@ type AuditDecisionKey = (typeof auditDecision)[keyof typeof auditDecision];
1347
1357
  declare const auditSource: {
1348
1358
  readonly wire: "wire";
1349
1359
  readonly mcp: "mcp";
1360
+ readonly rest: "rest";
1350
1361
  readonly control: "control";
1351
1362
  };
1352
1363
  type AuditSourceKey = (typeof auditSource)[keyof typeof auditSource];
@@ -1447,7 +1458,7 @@ type AuditLogEntry = {
1447
1458
  */
1448
1459
  session_id?: string;
1449
1460
  /**
1450
- * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1461
+ * @description Statement origin (wire, mcp, rest, or control for control-plane lifecycle events).
1451
1462
  * @type string | undefined
1452
1463
  */
1453
1464
  source?: string;
@@ -1524,7 +1535,7 @@ type ListAuditLogsQueryEvent = string | undefined;
1524
1535
  */
1525
1536
  type ListAuditLogsQueryDecision = AuditDecisionKey | undefined;
1526
1537
  /**
1527
- * @description Filter by statement origin (wire, mcp, or control).
1538
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1528
1539
  * @type string | undefined
1529
1540
  */
1530
1541
  type ListAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -1616,7 +1627,7 @@ type ExportAuditLogsQueryEvent = string | undefined;
1616
1627
  */
1617
1628
  type ExportAuditLogsQueryDecision = AuditDecisionKey | undefined;
1618
1629
  /**
1619
- * @description Filter by statement origin (wire, mcp, or control).
1630
+ * @description Filter by statement origin (wire, mcp, rest, or control).
1620
1631
  * @type string | undefined
1621
1632
  */
1622
1633
  type ExportAuditLogsQuerySource = AuditSourceKey | undefined;
@@ -286,7 +286,7 @@
286
286
  ],
287
287
  "requestBodyType": "",
288
288
  "requestBodyRequired": false,
289
- "responseType": "{ approvals: ({ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" })[]; next_page_token?: string }",
289
+ "responseType": "{ approvals: ({ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] })[]; next_page_token?: string }",
290
290
  "responseStatus": "200"
291
291
  },
292
292
  "approveApprovalRequest": {
@@ -313,7 +313,7 @@
313
313
  ],
314
314
  "requestBodyType": "{ reason?: string }",
315
315
  "requestBodyRequired": false,
316
- "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" }",
316
+ "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] }",
317
317
  "responseStatus": "200"
318
318
  },
319
319
  "rejectApprovalRequest": {
@@ -340,7 +340,7 @@
340
340
  ],
341
341
  "requestBodyType": "{ reason?: string }",
342
342
  "requestBodyRequired": false,
343
- "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\" }",
343
+ "responseType": "{ credential_id?: string; decided_at?: string; decided_by?: string; estimated_rows?: number; expires_at: string; id: string; normalized_sql?: string; policy_profile_id: string; project_id: string; reason?: string; region?: string; requested_at: string; session_id?: string; sql: string; statement_kind?: string; status: \"pending\" | \"approved\" | \"rejected\" | \"expired\" | \"executed\" | \"failed\"; target_tables?: string[] }",
344
344
  "responseStatus": "200"
345
345
  },
346
346
  "listAuditLogs": {
@@ -382,8 +382,8 @@
382
382
  "name": "source",
383
383
  "in": "query",
384
384
  "required": false,
385
- "type": "\"wire\" | \"mcp\" | \"control\"",
386
- "description": "Filter by statement origin (wire, mcp, or control)."
385
+ "type": "\"wire\" | \"mcp\" | \"rest\" | \"control\"",
386
+ "description": "Filter by statement origin (wire, mcp, rest, or control)."
387
387
  },
388
388
  {
389
389
  "name": "start",
@@ -458,8 +458,8 @@
458
458
  "name": "source",
459
459
  "in": "query",
460
460
  "required": false,
461
- "type": "\"wire\" | \"mcp\" | \"control\"",
462
- "description": "Filter by statement origin (wire, mcp, or control)."
461
+ "type": "\"wire\" | \"mcp\" | \"rest\" | \"control\"",
462
+ "description": "Filter by statement origin (wire, mcp, rest, or control)."
463
463
  },
464
464
  {
465
465
  "name": "start",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {