pgbeam 0.2.9 → 0.3.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.
package/dist/index.d.cts CHANGED
@@ -438,6 +438,11 @@ type AgentCredential = {
438
438
  * @type string
439
439
  */
440
440
  last_used_at?: string | null;
441
+ /**
442
+ * @description When the credential expires and becomes unusable. Null means it never expires. Enforcement is fail-closed in the proxy the instant this time passes, before any cleanup sweep runs.
443
+ * @type string
444
+ */
445
+ expires_at?: string | null;
441
446
  /**
442
447
  * @description When the credential was created.
443
448
  * @type string
@@ -630,6 +635,11 @@ type CreateAgentCredentialRequest = {
630
635
  * @type string | undefined
631
636
  */
632
637
  principal_type?: CreateAgentCredentialRequestPrincipalTypeEnumKey;
638
+ /**
639
+ * @description Optional expiry. When set, the credential becomes unusable at this time (must be in the future). Omit or set null for a credential that never expires.
640
+ * @type string
641
+ */
642
+ expires_at?: string | null;
633
643
  };
634
644
 
635
645
  /**
@@ -1720,7 +1730,7 @@ type AuditLogEntry = {
1720
1730
  */
1721
1731
  region?: string;
1722
1732
  /**
1723
- * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed).
1733
+ * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed, credential_expired).
1724
1734
  * @type string
1725
1735
  */
1726
1736
  event: string;
@@ -1785,7 +1795,7 @@ type AuditLogEntry = {
1785
1795
  */
1786
1796
  session_id?: string;
1787
1797
  /**
1788
- * @description Statement origin (wire or mcp).
1798
+ * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1789
1799
  * @type string | undefined
1790
1800
  */
1791
1801
  source?: string;
package/dist/index.d.mts CHANGED
@@ -438,6 +438,11 @@ type AgentCredential = {
438
438
  * @type string
439
439
  */
440
440
  last_used_at?: string | null;
441
+ /**
442
+ * @description When the credential expires and becomes unusable. Null means it never expires. Enforcement is fail-closed in the proxy the instant this time passes, before any cleanup sweep runs.
443
+ * @type string
444
+ */
445
+ expires_at?: string | null;
441
446
  /**
442
447
  * @description When the credential was created.
443
448
  * @type string
@@ -630,6 +635,11 @@ type CreateAgentCredentialRequest = {
630
635
  * @type string | undefined
631
636
  */
632
637
  principal_type?: CreateAgentCredentialRequestPrincipalTypeEnumKey;
638
+ /**
639
+ * @description Optional expiry. When set, the credential becomes unusable at this time (must be in the future). Omit or set null for a credential that never expires.
640
+ * @type string
641
+ */
642
+ expires_at?: string | null;
633
643
  };
634
644
 
635
645
  /**
@@ -1720,7 +1730,7 @@ type AuditLogEntry = {
1720
1730
  */
1721
1731
  region?: string;
1722
1732
  /**
1723
- * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed).
1733
+ * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed, credential_expired).
1724
1734
  * @type string
1725
1735
  */
1726
1736
  event: string;
@@ -1785,7 +1795,7 @@ type AuditLogEntry = {
1785
1795
  */
1786
1796
  session_id?: string;
1787
1797
  /**
1788
- * @description Statement origin (wire or mcp).
1798
+ * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1789
1799
  * @type string | undefined
1790
1800
  */
1791
1801
  source?: string;
@@ -370,6 +370,11 @@ type AgentCredential = {
370
370
  * @type string
371
371
  */
372
372
  last_used_at?: string | null;
373
+ /**
374
+ * @description When the credential expires and becomes unusable. Null means it never expires. Enforcement is fail-closed in the proxy the instant this time passes, before any cleanup sweep runs.
375
+ * @type string
376
+ */
377
+ expires_at?: string | null;
373
378
  /**
374
379
  * @description When the credential was created.
375
380
  * @type string
@@ -526,6 +531,11 @@ type CreateAgentCredentialRequest = {
526
531
  * @type string | undefined
527
532
  */
528
533
  principal_type?: CreateAgentCredentialRequestPrincipalTypeEnumKey;
534
+ /**
535
+ * @description Optional expiry. When set, the credential becomes unusable at this time (must be in the future). Omit or set null for a credential that never expires.
536
+ * @type string
537
+ */
538
+ expires_at?: string | null;
529
539
  };
530
540
 
531
541
  /**
@@ -1278,7 +1288,7 @@ type AuditLogEntry = {
1278
1288
  */
1279
1289
  region?: string;
1280
1290
  /**
1281
- * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed).
1291
+ * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed, credential_expired).
1282
1292
  * @type string
1283
1293
  */
1284
1294
  event: string;
@@ -1343,7 +1353,7 @@ type AuditLogEntry = {
1343
1353
  */
1344
1354
  session_id?: string;
1345
1355
  /**
1346
- * @description Statement origin (wire or mcp).
1356
+ * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1347
1357
  * @type string | undefined
1348
1358
  */
1349
1359
  source?: string;
@@ -370,6 +370,11 @@ type AgentCredential = {
370
370
  * @type string
371
371
  */
372
372
  last_used_at?: string | null;
373
+ /**
374
+ * @description When the credential expires and becomes unusable. Null means it never expires. Enforcement is fail-closed in the proxy the instant this time passes, before any cleanup sweep runs.
375
+ * @type string
376
+ */
377
+ expires_at?: string | null;
373
378
  /**
374
379
  * @description When the credential was created.
375
380
  * @type string
@@ -526,6 +531,11 @@ type CreateAgentCredentialRequest = {
526
531
  * @type string | undefined
527
532
  */
528
533
  principal_type?: CreateAgentCredentialRequestPrincipalTypeEnumKey;
534
+ /**
535
+ * @description Optional expiry. When set, the credential becomes unusable at this time (must be in the future). Omit or set null for a credential that never expires.
536
+ * @type string
537
+ */
538
+ expires_at?: string | null;
529
539
  };
530
540
 
531
541
  /**
@@ -1278,7 +1288,7 @@ type AuditLogEntry = {
1278
1288
  */
1279
1289
  region?: string;
1280
1290
  /**
1281
- * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed).
1291
+ * @description Event type (query, blocked, masked, budget_exhausted, truncated, auth_failed, credential_expired).
1282
1292
  * @type string
1283
1293
  */
1284
1294
  event: string;
@@ -1343,7 +1353,7 @@ type AuditLogEntry = {
1343
1353
  */
1344
1354
  session_id?: string;
1345
1355
  /**
1346
- * @description Statement origin (wire or mcp).
1356
+ * @description Statement origin (wire, mcp, or control for control-plane lifecycle events).
1347
1357
  * @type string | undefined
1348
1358
  */
1349
1359
  source?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {