pgbeam 0.2.0 → 0.2.2

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.
@@ -1051,6 +1051,14 @@ type PoolConfig = {
1051
1051
  * @type string
1052
1052
  */
1053
1053
  pool_mode: PoolMode;
1054
+ /**
1055
+ * @description Maximum concurrent upstream connections per pool.
1056
+ * @minLength 1
1057
+ * @maxLength 10000
1058
+ * @default 200
1059
+ * @type integer | undefined
1060
+ */
1061
+ max_active?: number;
1054
1062
  };
1055
1063
 
1056
1064
  /**
@@ -1129,7 +1137,7 @@ type Database = {
1129
1137
  */
1130
1138
  role?: DatabaseRole;
1131
1139
  /**
1132
- * @description AWS region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1140
+ * @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1133
1141
  * @type string | undefined
1134
1142
  */
1135
1143
  pool_region?: string;
@@ -1267,7 +1275,7 @@ type CreateDatabaseRequest = {
1267
1275
  */
1268
1276
  role?: DatabaseRole;
1269
1277
  /**
1270
- * @description AWS region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1278
+ * @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1271
1279
  * @type string | undefined
1272
1280
  */
1273
1281
  pool_region?: string;
@@ -1381,7 +1389,7 @@ type UpdateDatabaseRequest = {
1381
1389
  */
1382
1390
  role?: DatabaseRole;
1383
1391
  /**
1384
- * @description AWS region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1392
+ * @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
1385
1393
  * @type string | undefined
1386
1394
  */
1387
1395
  pool_region?: string;
@@ -2115,6 +2123,12 @@ type ProjectStatus = ProjectStatusEnumKey;
2115
2123
  * Do not edit manually.
2116
2124
  */
2117
2125
 
2126
+ declare const projectCloudEnum: {
2127
+ readonly aws: "aws";
2128
+ readonly azure: "azure";
2129
+ readonly gcp: "gcp";
2130
+ };
2131
+ type ProjectCloudEnumKey = (typeof projectCloudEnum)[keyof typeof projectCloudEnum];
2118
2132
  /**
2119
2133
  * @description Project configuration and current control-plane state.
2120
2134
  */
@@ -2148,7 +2162,12 @@ type Project = {
2148
2162
  */
2149
2163
  tags?: string[];
2150
2164
  /**
2151
- * @description Proxy hostname for connecting through PgBeam (e.g., myproject.gw.pgbeam.app).
2165
+ * @description Cloud provider where the project runs.
2166
+ * @type string | undefined
2167
+ */
2168
+ readonly cloud?: ProjectCloudEnumKey;
2169
+ /**
2170
+ * @description Proxy hostname for connecting through PgBeam (e.g., myproject.aws.pgbeam.app).
2152
2171
  * @type string | undefined
2153
2172
  */
2154
2173
  readonly proxy_host?: string;
@@ -2276,6 +2295,12 @@ type ListProjectsQueryResponse = ListProjects200;
2276
2295
  * Do not edit manually.
2277
2296
  */
2278
2297
 
2298
+ declare const createProjectRequestCloudEnum: {
2299
+ readonly aws: "aws";
2300
+ readonly azure: "azure";
2301
+ readonly gcp: "gcp";
2302
+ };
2303
+ type CreateProjectRequestCloudEnumKey = (typeof createProjectRequestCloudEnum)[keyof typeof createProjectRequestCloudEnum];
2279
2304
  /**
2280
2305
  * @description Request body for creating a project and its primary database.
2281
2306
  */
@@ -2306,6 +2331,12 @@ type CreateProjectRequest = {
2306
2331
  * @type array | undefined
2307
2332
  */
2308
2333
  tags?: string[];
2334
+ /**
2335
+ * @description Cloud provider for the project.
2336
+ * @default "aws"
2337
+ * @type string | undefined
2338
+ */
2339
+ cloud?: CreateProjectRequestCloudEnumKey;
2309
2340
  /**
2310
2341
  * @description Request body for registering an upstream database.
2311
2342
  * @type object
@@ -2579,6 +2610,12 @@ type GetProjectMetricsQueryResponse = GetProjectMetrics200;
2579
2610
  * Generated by Kubb (https://kubb.dev/).
2580
2611
  * Do not edit manually.
2581
2612
  */
2613
+ declare const regionProviderEnum: {
2614
+ readonly aws: "aws";
2615
+ readonly azure: "azure";
2616
+ readonly gcp: "gcp";
2617
+ };
2618
+ type RegionProviderEnumKey = (typeof regionProviderEnum)[keyof typeof regionProviderEnum];
2582
2619
  declare const regionStatusEnum: {
2583
2620
  readonly active: "active";
2584
2621
  readonly draining: "draining";
@@ -2603,7 +2640,7 @@ type Region = {
2603
2640
  * @description Cloud provider.
2604
2641
  * @type string
2605
2642
  */
2606
- provider: string;
2643
+ provider: RegionProviderEnumKey;
2607
2644
  /**
2608
2645
  * @description Region operational status.
2609
2646
  * @type string
package/package.json CHANGED
@@ -1,21 +1,34 @@
1
1
  {
2
2
  "name": "pgbeam",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript SDK for the PgBeam API — globally distributed PostgreSQL proxy platform",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
8
8
  ".": {
9
- "import": "./dist/index.mjs",
10
- "types": "./dist/index.d.mts"
9
+ "import": {
10
+ "types": "./dist/index.d.mts",
11
+ "default": "./dist/index.mjs"
12
+ },
13
+ "require": {
14
+ "types": "./dist/index.d.cts",
15
+ "default": "./dist/index.cjs"
16
+ }
11
17
  },
12
18
  "./operations": {
13
- "import": "./dist/operations.mjs",
14
- "types": "./dist/operations.d.mts"
19
+ "import": {
20
+ "types": "./dist/operations.d.mts",
21
+ "default": "./dist/operations.mjs"
22
+ },
23
+ "require": {
24
+ "types": "./dist/operations.d.cts",
25
+ "default": "./dist/operations.cjs"
26
+ }
15
27
  }
16
28
  },
17
- "main": "./dist/index.mjs",
18
- "types": "./dist/index.d.mts",
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.mjs",
31
+ "types": "./dist/index.d.cts",
19
32
  "publishConfig": {
20
33
  "access": "public"
21
34
  },
@@ -34,10 +47,10 @@
34
47
  ],
35
48
  "homepage": "https://pgbeam.com",
36
49
  "devDependencies": {
37
- "@kubb/cli": "4.33.2",
38
- "@kubb/core": "4.33.2",
39
- "@kubb/plugin-oas": "4.33.2",
40
- "@kubb/plugin-ts": "4.33.2",
50
+ "@kubb/cli": "4.33.5",
51
+ "@kubb/core": "4.33.5",
52
+ "@kubb/plugin-oas": "4.33.5",
53
+ "@kubb/plugin-ts": "4.33.5",
41
54
  "@types/js-yaml": "4.0.9",
42
55
  "bunchee": "6.9.4",
43
56
  "js-yaml": "4.1.1",