pgbeam 0.2.4 → 0.2.6

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.
@@ -2127,6 +2040,28 @@ type UpdateOnboardingProgress200 = OnboardingProgress;
2127
2040
  type UpdateOnboardingProgressMutationRequest = UpdateOnboardingRequest;
2128
2041
  type UpdateOnboardingProgressMutationResponse = UpdateOnboardingProgress200;
2129
2042
 
2043
+ /**
2044
+ * Generated by Kubb (https://kubb.dev/).
2045
+ * Do not edit manually.
2046
+ */
2047
+ /**
2048
+ * @description An IP filtering rule with a CIDR range and optional human-readable label.
2049
+ */
2050
+ type CidrEntry = {
2051
+ /**
2052
+ * @description CIDR range in IPv4 (e.g. 203.0.113.0/24) or IPv6 (e.g. 2001:db8::/32) notation. A plain IP without prefix length defaults to /32 (IPv4) or /128 (IPv6).\n
2053
+ * @pattern ^[0-9a-fA-F.:]+(/[0-9]+)?$
2054
+ * @type string
2055
+ */
2056
+ cidr: string;
2057
+ /**
2058
+ * @description Optional human-readable label for this CIDR entry (e.g. \"Office\", \"VPC\").
2059
+ * @maxLength 100
2060
+ * @type string | undefined
2061
+ */
2062
+ label?: string;
2063
+ };
2064
+
2130
2065
  /**
2131
2066
  * Generated by Kubb (https://kubb.dev/).
2132
2067
  * Do not edit manually.
@@ -2201,26 +2136,26 @@ type Project = {
2201
2136
  * @maxLength 2147483647
2202
2137
  * @type integer | undefined, int32
2203
2138
  */
2204
- queries_per_second?: number;
2139
+ readonly queries_per_second?: number;
2205
2140
  /**
2206
2141
  * @description Burst allowance above the steady-state rate. 0 uses queries_per_second as burst.
2207
2142
  * @minLength 0
2208
2143
  * @maxLength 2147483647
2209
2144
  * @type integer | undefined, int32
2210
2145
  */
2211
- burst_size?: number;
2146
+ readonly burst_size?: number;
2212
2147
  /**
2213
2148
  * @description Maximum concurrent proxy connections. 0 means unlimited.
2214
2149
  * @minLength 0
2215
2150
  * @maxLength 2147483647
2216
2151
  * @type integer | undefined, int32
2217
2152
  */
2218
- max_connections?: number;
2153
+ readonly max_connections?: number;
2219
2154
  /**
2220
- * @description IP allowlist as CIDR ranges (e.g., [\"10.0.0.0/8\", \"203.0.113.5/32\"]). When non-empty, only connections from matching IPs are accepted. Empty array means all IPs are allowed (default).\n
2155
+ * @description IP filtering rules as CIDR ranges with optional labels. When non-empty, only connections from matching IPs are accepted. Empty array means all IPs are allowed (default). Both IPv4 (e.g. 10.0.0.0/8) and IPv6 (e.g. 2001:db8::/32) are supported.\n
2221
2156
  * @type array | undefined
2222
2157
  */
2223
- allowed_cidrs?: string[];
2158
+ allowed_cidrs?: CidrEntry[];
2224
2159
  /**
2225
2160
  * @description Number of databases attached to this project.
2226
2161
  * @type integer | undefined
@@ -2459,31 +2394,10 @@ type UpdateProjectRequest = {
2459
2394
  */
2460
2395
  status?: ProjectStatus;
2461
2396
  /**
2462
- * @description Maximum queries per second. 0 means unlimited.
2463
- * @minLength 0
2464
- * @maxLength 2147483647
2465
- * @type integer | undefined, int32
2466
- */
2467
- queries_per_second?: number;
2468
- /**
2469
- * @description Burst allowance above steady-state rate.
2470
- * @minLength 0
2471
- * @maxLength 2147483647
2472
- * @type integer | undefined, int32
2473
- */
2474
- burst_size?: number;
2475
- /**
2476
- * @description Maximum concurrent proxy connections. 0 means unlimited.
2477
- * @minLength 0
2478
- * @maxLength 2147483647
2479
- * @type integer | undefined, int32
2480
- */
2481
- max_connections?: number;
2482
- /**
2483
- * @description IP allowlist as CIDR ranges. Empty array means allow all.\n
2397
+ * @description IP filtering rules as CIDR ranges with optional labels. Empty array means allow all. Both IPv4 and IPv6 CIDR notation are supported.\n
2484
2398
  * @type array | undefined
2485
2399
  */
2486
- allowed_cidrs?: string[];
2400
+ allowed_cidrs?: CidrEntry[];
2487
2401
  };
2488
2402
 
2489
2403
  /**
@@ -2786,6 +2700,11 @@ type ListReplicasResponse = {
2786
2700
  * @type array
2787
2701
  */
2788
2702
  replicas: Replica[];
2703
+ /**
2704
+ * @description Opaque token for cursor-based pagination.
2705
+ * @type string | undefined
2706
+ */
2707
+ next_page_token?: string;
2789
2708
  };
2790
2709
 
2791
2710
  /**
@@ -3057,7 +2976,7 @@ type GetProjectUsage200 = ProjectUsageResponse;
3057
2976
  type GetProjectUsageQueryResponse = GetProjectUsage200;
3058
2977
 
3059
2978
  /**
3060
- * Generated by scripts/generate-maps.ts — do not edit manually.
2979
+ * Generated by generate-sdk-ts-maps.ts — do not edit manually.
3061
2980
  * Run: pnpm --filter pgbeam generate
3062
2981
  */
3063
2982
 
@@ -3204,12 +3123,6 @@ declare const operationsByTag: {
3204
3123
  readonly path: "/v1/regions";
3205
3124
  };
3206
3125
  };
3207
- readonly mCP: {
3208
- readonly mcpTransport: {
3209
- readonly method: "POST";
3210
- readonly path: "/v1/mcp";
3211
- };
3212
- };
3213
3126
  };
3214
3127
  declare const operationsByPath: {
3215
3128
  readonly "GET /v1/account/export": {
@@ -3307,11 +3220,6 @@ declare const operationsByPath: {
3307
3220
  readonly path: "/v1/projects/{project_id}/insights";
3308
3221
  readonly operationId: "getProjectInsights";
3309
3222
  };
3310
- readonly "POST /v1/mcp": {
3311
- readonly method: "POST";
3312
- readonly path: "/v1/mcp";
3313
- readonly operationId: "mcpTransport";
3314
- };
3315
3223
  readonly "GET /v1/organizations/{org_id}/onboarding": {
3316
3224
  readonly method: "GET";
3317
3225
  readonly path: "/v1/organizations/{org_id}/onboarding";
@@ -3501,11 +3409,6 @@ interface ApiOperations {
3501
3409
  getHealth(): Promise<GetHealthQueryResponse>;
3502
3410
  listRegions(): Promise<ListRegionsQueryResponse>;
3503
3411
  };
3504
- mCP: {
3505
- mcpTransport(params: {
3506
- body: McpTransportMutationRequest;
3507
- }): Promise<McpTransportMutationResponse>;
3508
- };
3509
3412
  }
3510
3413
  interface RequestMap {
3511
3414
  "GET /v1/account/export": {
@@ -3626,12 +3529,6 @@ interface RequestMap {
3626
3529
  };
3627
3530
  response: GetProjectInsightsQueryResponse;
3628
3531
  };
3629
- "POST /v1/mcp": {
3630
- params: {
3631
- body: McpTransportMutationRequest;
3632
- };
3633
- response: McpTransportMutationResponse;
3634
- };
3635
3532
  "GET /v1/organizations/{org_id}/onboarding": {
3636
3533
  params: {
3637
3534
  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.6",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -47,19 +47,16 @@
47
47
  ],
48
48
  "homepage": "https://pgbeam.com",
49
49
  "devDependencies": {
50
- "@kubb/cli": "4.36.1",
51
- "@kubb/core": "4.36.1",
52
- "@kubb/plugin-oas": "4.36.1",
53
- "@kubb/plugin-ts": "4.36.1",
54
- "@types/js-yaml": "4.0.9",
50
+ "@kubb/cli": "4.36.2",
51
+ "@kubb/core": "4.36.2",
52
+ "@kubb/plugin-oas": "4.36.2",
53
+ "@kubb/plugin-ts": "4.36.2",
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
  }