pgbeam 0.2.4 → 0.2.5

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.
@@ -903,6 +903,7 @@ declare const poolModeEnum: {
903
903
  type PoolModeEnumKey = (typeof poolModeEnum)[keyof typeof poolModeEnum];
904
904
  /**
905
905
  * @description Connection pool mode.
906
+ * @example transaction
906
907
  */
907
908
  type PoolMode = PoolModeEnumKey;
908
909
 
@@ -961,6 +962,7 @@ declare const SSLModeEnum: {
961
962
  type SSLModeEnumKey = (typeof SSLModeEnum)[keyof typeof SSLModeEnum];
962
963
  /**
963
964
  * @description PostgreSQL SSL connection mode.
965
+ * @example require
964
966
  */
965
967
  type SSLMode = SSLModeEnumKey;
966
968
 
@@ -1435,6 +1437,47 @@ type TestDatabaseConnectionMutationResponse = TestDatabaseConnection200;
1435
1437
  * Generated by Kubb (https://kubb.dev/).
1436
1438
  * Do not edit manually.
1437
1439
  */
1440
+ /**
1441
+ * @description DNS records the user needs to create for domain verification.
1442
+ */
1443
+ type DnsInstructions = {
1444
+ /**
1445
+ * @description The CNAME record host.
1446
+ * @type string | undefined
1447
+ */
1448
+ cname_host?: string;
1449
+ /**
1450
+ * @description The CNAME record target.
1451
+ * @type string | undefined
1452
+ */
1453
+ cname_target?: string;
1454
+ /**
1455
+ * @description The TXT record host for verification.
1456
+ * @type string | undefined
1457
+ */
1458
+ txt_host?: string;
1459
+ /**
1460
+ * @description The TXT record value for verification.
1461
+ * @type string | undefined
1462
+ */
1463
+ txt_value?: string;
1464
+ /**
1465
+ * @description The CNAME record host for ACME TLS certificate issuance.
1466
+ * @type string | undefined
1467
+ */
1468
+ acme_cname_host?: string;
1469
+ /**
1470
+ * @description The CNAME target for ACME challenge delegation.
1471
+ * @type string | undefined
1472
+ */
1473
+ acme_cname_target?: string;
1474
+ };
1475
+
1476
+ /**
1477
+ * Generated by Kubb (https://kubb.dev/).
1478
+ * Do not edit manually.
1479
+ */
1480
+
1438
1481
  /**
1439
1482
  * @description Custom database hostname attached to a project.
1440
1483
  */
@@ -1475,41 +1518,10 @@ type CustomDomain = {
1475
1518
  */
1476
1519
  dns_verification_token: string;
1477
1520
  /**
1478
- * @description DNS records the user needs to create.
1521
+ * @description DNS records the user needs to create for domain verification.
1479
1522
  * @type object | undefined
1480
1523
  */
1481
- dns_instructions?: {
1482
- /**
1483
- * @description The CNAME record host.
1484
- * @type string | undefined
1485
- */
1486
- cname_host?: string;
1487
- /**
1488
- * @description The CNAME record target.
1489
- * @type string | undefined
1490
- */
1491
- cname_target?: string;
1492
- /**
1493
- * @description The TXT record host for verification.
1494
- * @type string | undefined
1495
- */
1496
- txt_host?: string;
1497
- /**
1498
- * @description The TXT record value for verification.
1499
- * @type string | undefined
1500
- */
1501
- txt_value?: string;
1502
- /**
1503
- * @description The CNAME record host for ACME TLS certificate issuance.
1504
- * @type string | undefined
1505
- */
1506
- acme_cname_host?: string;
1507
- /**
1508
- * @description The CNAME target for ACME challenge delegation.
1509
- * @type string | undefined
1510
- */
1511
- acme_cname_target?: string;
1512
- };
1524
+ dns_instructions?: DnsInstructions;
1513
1525
  /**
1514
1526
  * @description When the custom domain was created.
1515
1527
  * @type string, date-time
@@ -1891,105 +1903,6 @@ type GetProjectInsightsQueryParams = {
1891
1903
  type GetProjectInsights200 = ProjectInsights;
1892
1904
  type GetProjectInsightsQueryResponse = GetProjectInsights200;
1893
1905
 
1894
- /**
1895
- * Generated by Kubb (https://kubb.dev/).
1896
- * Do not edit manually.
1897
- */
1898
- declare const mcpRequestJsonrpcEnum: {
1899
- readonly "2.0": "2.0";
1900
- };
1901
- type McpRequestJsonrpcEnumKey = (typeof mcpRequestJsonrpcEnum)[keyof typeof mcpRequestJsonrpcEnum];
1902
- declare const mcpRequestMethodEnum: {
1903
- readonly initialize: "initialize";
1904
- readonly "notifications/initialized": "notifications/initialized";
1905
- readonly "tools/list": "tools/list";
1906
- readonly "tools/call": "tools/call";
1907
- readonly ping: "ping";
1908
- };
1909
- type McpRequestMethodEnumKey = (typeof mcpRequestMethodEnum)[keyof typeof mcpRequestMethodEnum];
1910
- /**
1911
- * @description JSON-RPC 2.0 request envelope for MCP over Streamable HTTP.
1912
- */
1913
- type McpRequest = {
1914
- /**
1915
- * @description JSON-RPC version. Must be \"2.0\".
1916
- * @type string
1917
- */
1918
- jsonrpc: McpRequestJsonrpcEnumKey;
1919
- /**
1920
- * @description Request identifier. Omit for notifications.
1921
- * @type string | undefined
1922
- */
1923
- id?: string;
1924
- /**
1925
- * @description MCP method to invoke.
1926
- * @type string
1927
- */
1928
- method: McpRequestMethodEnumKey;
1929
- /**
1930
- * @description Method-specific parameters.
1931
- * @type object | undefined
1932
- */
1933
- params?: object;
1934
- };
1935
-
1936
- /**
1937
- * Generated by Kubb (https://kubb.dev/).
1938
- * Do not edit manually.
1939
- */
1940
- declare const mcpResponseJsonrpcEnum: {
1941
- readonly "2.0": "2.0";
1942
- };
1943
- type McpResponseJsonrpcEnumKey = (typeof mcpResponseJsonrpcEnum)[keyof typeof mcpResponseJsonrpcEnum];
1944
- /**
1945
- * @description JSON-RPC 2.0 response envelope for MCP over Streamable HTTP.
1946
- */
1947
- type McpResponse = {
1948
- /**
1949
- * @description JSON-RPC version. Always \"2.0\".
1950
- * @type string
1951
- */
1952
- jsonrpc: McpResponseJsonrpcEnumKey;
1953
- /**
1954
- * @description Mirrors the request id. Null for parse errors.
1955
- * @type string
1956
- */
1957
- id: string | null;
1958
- /**
1959
- * @description Method-specific result (present on success).
1960
- * @type object | undefined
1961
- */
1962
- result?: object;
1963
- /**
1964
- * @description JSON-RPC error (present on failure).
1965
- * @type object | undefined
1966
- */
1967
- error?: {
1968
- /**
1969
- * @description JSON-RPC error code.
1970
- * @type integer | undefined
1971
- */
1972
- code?: number;
1973
- /**
1974
- * @description Human-readable error message.
1975
- * @type string | undefined
1976
- */
1977
- message?: string;
1978
- };
1979
- };
1980
-
1981
- /**
1982
- * Generated by Kubb (https://kubb.dev/).
1983
- * Do not edit manually.
1984
- */
1985
-
1986
- /**
1987
- * @description JSON-RPC 2.0 response.
1988
- */
1989
- type McpTransport200 = McpResponse;
1990
- type McpTransportMutationRequest = McpRequest;
1991
- type McpTransportMutationResponse = McpTransport200;
1992
-
1993
1906
  /**
1994
1907
  * Generated by Kubb (https://kubb.dev/).
1995
1908
  * Do not edit manually.
@@ -2786,6 +2699,11 @@ type ListReplicasResponse = {
2786
2699
  * @type array
2787
2700
  */
2788
2701
  replicas: Replica[];
2702
+ /**
2703
+ * @description Opaque token for cursor-based pagination.
2704
+ * @type string | undefined
2705
+ */
2706
+ next_page_token?: string;
2789
2707
  };
2790
2708
 
2791
2709
  /**
@@ -3057,7 +2975,7 @@ type GetProjectUsage200 = ProjectUsageResponse;
3057
2975
  type GetProjectUsageQueryResponse = GetProjectUsage200;
3058
2976
 
3059
2977
  /**
3060
- * Generated by scripts/generate-maps.ts — do not edit manually.
2978
+ * Generated by generate-sdk-ts-maps.ts — do not edit manually.
3061
2979
  * Run: pnpm --filter pgbeam generate
3062
2980
  */
3063
2981
 
@@ -3204,12 +3122,6 @@ declare const operationsByTag: {
3204
3122
  readonly path: "/v1/regions";
3205
3123
  };
3206
3124
  };
3207
- readonly mCP: {
3208
- readonly mcpTransport: {
3209
- readonly method: "POST";
3210
- readonly path: "/v1/mcp";
3211
- };
3212
- };
3213
3125
  };
3214
3126
  declare const operationsByPath: {
3215
3127
  readonly "GET /v1/account/export": {
@@ -3307,11 +3219,6 @@ declare const operationsByPath: {
3307
3219
  readonly path: "/v1/projects/{project_id}/insights";
3308
3220
  readonly operationId: "getProjectInsights";
3309
3221
  };
3310
- readonly "POST /v1/mcp": {
3311
- readonly method: "POST";
3312
- readonly path: "/v1/mcp";
3313
- readonly operationId: "mcpTransport";
3314
- };
3315
3222
  readonly "GET /v1/organizations/{org_id}/onboarding": {
3316
3223
  readonly method: "GET";
3317
3224
  readonly path: "/v1/organizations/{org_id}/onboarding";
@@ -3501,11 +3408,6 @@ interface ApiOperations {
3501
3408
  getHealth(): Promise<GetHealthQueryResponse>;
3502
3409
  listRegions(): Promise<ListRegionsQueryResponse>;
3503
3410
  };
3504
- mCP: {
3505
- mcpTransport(params: {
3506
- body: McpTransportMutationRequest;
3507
- }): Promise<McpTransportMutationResponse>;
3508
- };
3509
3411
  }
3510
3412
  interface RequestMap {
3511
3413
  "GET /v1/account/export": {
@@ -3626,12 +3528,6 @@ interface RequestMap {
3626
3528
  };
3627
3529
  response: GetProjectInsightsQueryResponse;
3628
3530
  };
3629
- "POST /v1/mcp": {
3630
- params: {
3631
- body: McpTransportMutationRequest;
3632
- };
3633
- response: McpTransportMutationResponse;
3634
- };
3635
3531
  "GET /v1/organizations/{org_id}/onboarding": {
3636
3532
  params: {
3637
3533
  pathParams: GetOnboardingProgressPathParams;
@@ -903,6 +903,7 @@ declare const poolModeEnum: {
903
903
  type PoolModeEnumKey = (typeof poolModeEnum)[keyof typeof poolModeEnum];
904
904
  /**
905
905
  * @description Connection pool mode.
906
+ * @example transaction
906
907
  */
907
908
  type PoolMode = PoolModeEnumKey;
908
909
 
@@ -961,6 +962,7 @@ declare const SSLModeEnum: {
961
962
  type SSLModeEnumKey = (typeof SSLModeEnum)[keyof typeof SSLModeEnum];
962
963
  /**
963
964
  * @description PostgreSQL SSL connection mode.
965
+ * @example require
964
966
  */
965
967
  type SSLMode = SSLModeEnumKey;
966
968
 
@@ -1435,6 +1437,47 @@ type TestDatabaseConnectionMutationResponse = TestDatabaseConnection200;
1435
1437
  * Generated by Kubb (https://kubb.dev/).
1436
1438
  * Do not edit manually.
1437
1439
  */
1440
+ /**
1441
+ * @description DNS records the user needs to create for domain verification.
1442
+ */
1443
+ type DnsInstructions = {
1444
+ /**
1445
+ * @description The CNAME record host.
1446
+ * @type string | undefined
1447
+ */
1448
+ cname_host?: string;
1449
+ /**
1450
+ * @description The CNAME record target.
1451
+ * @type string | undefined
1452
+ */
1453
+ cname_target?: string;
1454
+ /**
1455
+ * @description The TXT record host for verification.
1456
+ * @type string | undefined
1457
+ */
1458
+ txt_host?: string;
1459
+ /**
1460
+ * @description The TXT record value for verification.
1461
+ * @type string | undefined
1462
+ */
1463
+ txt_value?: string;
1464
+ /**
1465
+ * @description The CNAME record host for ACME TLS certificate issuance.
1466
+ * @type string | undefined
1467
+ */
1468
+ acme_cname_host?: string;
1469
+ /**
1470
+ * @description The CNAME target for ACME challenge delegation.
1471
+ * @type string | undefined
1472
+ */
1473
+ acme_cname_target?: string;
1474
+ };
1475
+
1476
+ /**
1477
+ * Generated by Kubb (https://kubb.dev/).
1478
+ * Do not edit manually.
1479
+ */
1480
+
1438
1481
  /**
1439
1482
  * @description Custom database hostname attached to a project.
1440
1483
  */
@@ -1475,41 +1518,10 @@ type CustomDomain = {
1475
1518
  */
1476
1519
  dns_verification_token: string;
1477
1520
  /**
1478
- * @description DNS records the user needs to create.
1521
+ * @description DNS records the user needs to create for domain verification.
1479
1522
  * @type object | undefined
1480
1523
  */
1481
- dns_instructions?: {
1482
- /**
1483
- * @description The CNAME record host.
1484
- * @type string | undefined
1485
- */
1486
- cname_host?: string;
1487
- /**
1488
- * @description The CNAME record target.
1489
- * @type string | undefined
1490
- */
1491
- cname_target?: string;
1492
- /**
1493
- * @description The TXT record host for verification.
1494
- * @type string | undefined
1495
- */
1496
- txt_host?: string;
1497
- /**
1498
- * @description The TXT record value for verification.
1499
- * @type string | undefined
1500
- */
1501
- txt_value?: string;
1502
- /**
1503
- * @description The CNAME record host for ACME TLS certificate issuance.
1504
- * @type string | undefined
1505
- */
1506
- acme_cname_host?: string;
1507
- /**
1508
- * @description The CNAME target for ACME challenge delegation.
1509
- * @type string | undefined
1510
- */
1511
- acme_cname_target?: string;
1512
- };
1524
+ dns_instructions?: DnsInstructions;
1513
1525
  /**
1514
1526
  * @description When the custom domain was created.
1515
1527
  * @type string, date-time
@@ -1891,105 +1903,6 @@ type GetProjectInsightsQueryParams = {
1891
1903
  type GetProjectInsights200 = ProjectInsights;
1892
1904
  type GetProjectInsightsQueryResponse = GetProjectInsights200;
1893
1905
 
1894
- /**
1895
- * Generated by Kubb (https://kubb.dev/).
1896
- * Do not edit manually.
1897
- */
1898
- declare const mcpRequestJsonrpcEnum: {
1899
- readonly "2.0": "2.0";
1900
- };
1901
- type McpRequestJsonrpcEnumKey = (typeof mcpRequestJsonrpcEnum)[keyof typeof mcpRequestJsonrpcEnum];
1902
- declare const mcpRequestMethodEnum: {
1903
- readonly initialize: "initialize";
1904
- readonly "notifications/initialized": "notifications/initialized";
1905
- readonly "tools/list": "tools/list";
1906
- readonly "tools/call": "tools/call";
1907
- readonly ping: "ping";
1908
- };
1909
- type McpRequestMethodEnumKey = (typeof mcpRequestMethodEnum)[keyof typeof mcpRequestMethodEnum];
1910
- /**
1911
- * @description JSON-RPC 2.0 request envelope for MCP over Streamable HTTP.
1912
- */
1913
- type McpRequest = {
1914
- /**
1915
- * @description JSON-RPC version. Must be \"2.0\".
1916
- * @type string
1917
- */
1918
- jsonrpc: McpRequestJsonrpcEnumKey;
1919
- /**
1920
- * @description Request identifier. Omit for notifications.
1921
- * @type string | undefined
1922
- */
1923
- id?: string;
1924
- /**
1925
- * @description MCP method to invoke.
1926
- * @type string
1927
- */
1928
- method: McpRequestMethodEnumKey;
1929
- /**
1930
- * @description Method-specific parameters.
1931
- * @type object | undefined
1932
- */
1933
- params?: object;
1934
- };
1935
-
1936
- /**
1937
- * Generated by Kubb (https://kubb.dev/).
1938
- * Do not edit manually.
1939
- */
1940
- declare const mcpResponseJsonrpcEnum: {
1941
- readonly "2.0": "2.0";
1942
- };
1943
- type McpResponseJsonrpcEnumKey = (typeof mcpResponseJsonrpcEnum)[keyof typeof mcpResponseJsonrpcEnum];
1944
- /**
1945
- * @description JSON-RPC 2.0 response envelope for MCP over Streamable HTTP.
1946
- */
1947
- type McpResponse = {
1948
- /**
1949
- * @description JSON-RPC version. Always \"2.0\".
1950
- * @type string
1951
- */
1952
- jsonrpc: McpResponseJsonrpcEnumKey;
1953
- /**
1954
- * @description Mirrors the request id. Null for parse errors.
1955
- * @type string
1956
- */
1957
- id: string | null;
1958
- /**
1959
- * @description Method-specific result (present on success).
1960
- * @type object | undefined
1961
- */
1962
- result?: object;
1963
- /**
1964
- * @description JSON-RPC error (present on failure).
1965
- * @type object | undefined
1966
- */
1967
- error?: {
1968
- /**
1969
- * @description JSON-RPC error code.
1970
- * @type integer | undefined
1971
- */
1972
- code?: number;
1973
- /**
1974
- * @description Human-readable error message.
1975
- * @type string | undefined
1976
- */
1977
- message?: string;
1978
- };
1979
- };
1980
-
1981
- /**
1982
- * Generated by Kubb (https://kubb.dev/).
1983
- * Do not edit manually.
1984
- */
1985
-
1986
- /**
1987
- * @description JSON-RPC 2.0 response.
1988
- */
1989
- type McpTransport200 = McpResponse;
1990
- type McpTransportMutationRequest = McpRequest;
1991
- type McpTransportMutationResponse = McpTransport200;
1992
-
1993
1906
  /**
1994
1907
  * Generated by Kubb (https://kubb.dev/).
1995
1908
  * Do not edit manually.
@@ -2786,6 +2699,11 @@ type ListReplicasResponse = {
2786
2699
  * @type array
2787
2700
  */
2788
2701
  replicas: Replica[];
2702
+ /**
2703
+ * @description Opaque token for cursor-based pagination.
2704
+ * @type string | undefined
2705
+ */
2706
+ next_page_token?: string;
2789
2707
  };
2790
2708
 
2791
2709
  /**
@@ -3057,7 +2975,7 @@ type GetProjectUsage200 = ProjectUsageResponse;
3057
2975
  type GetProjectUsageQueryResponse = GetProjectUsage200;
3058
2976
 
3059
2977
  /**
3060
- * Generated by scripts/generate-maps.ts — do not edit manually.
2978
+ * Generated by generate-sdk-ts-maps.ts — do not edit manually.
3061
2979
  * Run: pnpm --filter pgbeam generate
3062
2980
  */
3063
2981
 
@@ -3204,12 +3122,6 @@ declare const operationsByTag: {
3204
3122
  readonly path: "/v1/regions";
3205
3123
  };
3206
3124
  };
3207
- readonly mCP: {
3208
- readonly mcpTransport: {
3209
- readonly method: "POST";
3210
- readonly path: "/v1/mcp";
3211
- };
3212
- };
3213
3125
  };
3214
3126
  declare const operationsByPath: {
3215
3127
  readonly "GET /v1/account/export": {
@@ -3307,11 +3219,6 @@ declare const operationsByPath: {
3307
3219
  readonly path: "/v1/projects/{project_id}/insights";
3308
3220
  readonly operationId: "getProjectInsights";
3309
3221
  };
3310
- readonly "POST /v1/mcp": {
3311
- readonly method: "POST";
3312
- readonly path: "/v1/mcp";
3313
- readonly operationId: "mcpTransport";
3314
- };
3315
3222
  readonly "GET /v1/organizations/{org_id}/onboarding": {
3316
3223
  readonly method: "GET";
3317
3224
  readonly path: "/v1/organizations/{org_id}/onboarding";
@@ -3501,11 +3408,6 @@ interface ApiOperations {
3501
3408
  getHealth(): Promise<GetHealthQueryResponse>;
3502
3409
  listRegions(): Promise<ListRegionsQueryResponse>;
3503
3410
  };
3504
- mCP: {
3505
- mcpTransport(params: {
3506
- body: McpTransportMutationRequest;
3507
- }): Promise<McpTransportMutationResponse>;
3508
- };
3509
3411
  }
3510
3412
  interface RequestMap {
3511
3413
  "GET /v1/account/export": {
@@ -3626,12 +3528,6 @@ interface RequestMap {
3626
3528
  };
3627
3529
  response: GetProjectInsightsQueryResponse;
3628
3530
  };
3629
- "POST /v1/mcp": {
3630
- params: {
3631
- body: McpTransportMutationRequest;
3632
- };
3633
- response: McpTransportMutationResponse;
3634
- };
3635
3531
  "GET /v1/organizations/{org_id}/onboarding": {
3636
3532
  params: {
3637
3533
  pathParams: GetOnboardingProgressPathParams;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by scripts/generate-maps.ts — do not edit manually.
2
+ * Generated by generate-sdk-ts-maps.ts — do not edit manually.
3
3
  * Run: pnpm --filter pgbeam generate
4
4
  */ const operationsByTag = {
5
5
  account: {
@@ -143,12 +143,6 @@
143
143
  method: "GET",
144
144
  path: "/v1/regions"
145
145
  }
146
- },
147
- mCP: {
148
- mcpTransport: {
149
- method: "POST",
150
- path: "/v1/mcp"
151
- }
152
146
  }
153
147
  };
154
148
  const operationsByPath = {
@@ -247,11 +241,6 @@ const operationsByPath = {
247
241
  path: "/v1/projects/{project_id}/insights",
248
242
  operationId: "getProjectInsights"
249
243
  },
250
- "POST /v1/mcp": {
251
- method: "POST",
252
- path: "/v1/mcp",
253
- operationId: "mcpTransport"
254
- },
255
244
  "GET /v1/organizations/{org_id}/onboarding": {
256
245
  method: "GET",
257
246
  path: "/v1/organizations/{org_id}/onboarding",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -51,15 +51,12 @@
51
51
  "@kubb/core": "4.36.1",
52
52
  "@kubb/plugin-oas": "4.36.1",
53
53
  "@kubb/plugin-ts": "4.36.1",
54
- "@types/js-yaml": "4.0.9",
55
54
  "bunchee": "6.9.4",
56
- "js-yaml": "4.1.1",
57
- "tsx": "4.21.0",
58
55
  "typescript": "5.9.3",
59
56
  "@pgbeam/config": "0.0.1"
60
57
  },
61
58
  "scripts": {
62
59
  "build": "bunchee",
63
- "generate": "kubb generate && node --import tsx scripts/generate-maps.ts"
60
+ "generate": "kubb generate"
64
61
  }
65
62
  }