pgbeam 0.2.2 → 0.2.3

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.mjs CHANGED
@@ -17,10 +17,6 @@
17
17
  }
18
18
  },
19
19
  analytics: {
20
- getOrganizationActivity: {
21
- method: "GET",
22
- path: "/v1/organizations/{org_id}/activity"
23
- },
24
20
  listPlans: {
25
21
  method: "GET",
26
22
  path: "/v1/plans"
@@ -147,6 +143,12 @@
147
143
  method: "GET",
148
144
  path: "/v1/regions"
149
145
  }
146
+ },
147
+ mCP: {
148
+ mcpTransport: {
149
+ method: "POST",
150
+ path: "/v1/mcp"
151
+ }
150
152
  }
151
153
  };
152
154
  const operationsByPath = {
@@ -155,11 +157,6 @@ const operationsByPath = {
155
157
  path: "/v1/account/export",
156
158
  operationId: "exportAccountData"
157
159
  },
158
- "GET /v1/organizations/{org_id}/activity": {
159
- method: "GET",
160
- path: "/v1/organizations/{org_id}/activity",
161
- operationId: "getOrganizationActivity"
162
- },
163
160
  "GET /v1/plans": {
164
161
  method: "GET",
165
162
  path: "/v1/plans",
@@ -250,6 +247,11 @@ const operationsByPath = {
250
247
  path: "/v1/projects/{project_id}/insights",
251
248
  operationId: "getProjectInsights"
252
249
  },
250
+ "POST /v1/mcp": {
251
+ method: "POST",
252
+ path: "/v1/mcp",
253
+ operationId: "mcpTransport"
254
+ },
253
255
  "GET /v1/organizations/{org_id}/onboarding": {
254
256
  method: "GET",
255
257
  path: "/v1/organizations/{org_id}/onboarding",
@@ -343,13 +345,13 @@ class ApiError extends Error {
343
345
  if (typeof obj.message === "string") return obj.message;
344
346
  return undefined;
345
347
  }
346
- const RETRYABLE_STATUS_CODES = new Set([
348
+ const RETRYABLE_STATUS_CODES = [
347
349
  408,
348
350
  429,
349
351
  502,
350
352
  503,
351
353
  504
352
- ]);
354
+ ];
353
355
  const DEFAULT_RETRY = {
354
356
  maxRetries: 5,
355
357
  initialDelayMs: 500,
@@ -450,7 +452,7 @@ async function fetcher(options) {
450
452
  return parseResponseBody(response);
451
453
  }
452
454
  // Non-retryable error or last attempt — throw immediately.
453
- if (!RETRYABLE_STATUS_CODES.has(response.status) || attempt === retry.maxRetries) {
455
+ if (!RETRYABLE_STATUS_CODES.includes(response.status) || attempt === retry.maxRetries) {
454
456
  const errorBody = await response.json().catch(()=>null);
455
457
  throw new ApiError(response.status, response.statusText, errorBody);
456
458
  }
@@ -19,10 +19,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
19
19
  }
20
20
  },
21
21
  analytics: {
22
- getOrganizationActivity: {
23
- method: "GET",
24
- path: "/v1/organizations/{org_id}/activity"
25
- },
26
22
  listPlans: {
27
23
  method: "GET",
28
24
  path: "/v1/plans"
@@ -149,6 +145,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
149
145
  method: "GET",
150
146
  path: "/v1/regions"
151
147
  }
148
+ },
149
+ mCP: {
150
+ mcpTransport: {
151
+ method: "POST",
152
+ path: "/v1/mcp"
153
+ }
152
154
  }
153
155
  };
154
156
  const operationsByPath = {
@@ -157,11 +159,6 @@ const operationsByPath = {
157
159
  path: "/v1/account/export",
158
160
  operationId: "exportAccountData"
159
161
  },
160
- "GET /v1/organizations/{org_id}/activity": {
161
- method: "GET",
162
- path: "/v1/organizations/{org_id}/activity",
163
- operationId: "getOrganizationActivity"
164
- },
165
162
  "GET /v1/plans": {
166
163
  method: "GET",
167
164
  path: "/v1/plans",
@@ -252,6 +249,11 @@ const operationsByPath = {
252
249
  path: "/v1/projects/{project_id}/insights",
253
250
  operationId: "getProjectInsights"
254
251
  },
252
+ "POST /v1/mcp": {
253
+ method: "POST",
254
+ path: "/v1/mcp",
255
+ operationId: "mcpTransport"
256
+ },
255
257
  "GET /v1/organizations/{org_id}/onboarding": {
256
258
  method: "GET",
257
259
  path: "/v1/organizations/{org_id}/onboarding",