pgbeam 0.3.7 → 0.3.9
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.cjs +49 -2
- package/dist/index.d.cts +966 -81
- package/dist/index.d.mts +966 -81
- package/dist/index.mjs +49 -2
- package/dist/operations.cjs +176 -10
- package/dist/operations.d.cts +754 -0
- package/dist/operations.d.mts +754 -0
- package/dist/operations.mjs +176 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -50,6 +50,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
50
50
|
exportAuditLogs: {
|
|
51
51
|
method: "GET",
|
|
52
52
|
path: "/v1/projects/{project_id}/audit-logs/export"
|
|
53
|
+
},
|
|
54
|
+
verifyAuditChain: {
|
|
55
|
+
method: "GET",
|
|
56
|
+
path: "/v1/projects/{project_id}/audit-logs/verify"
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
59
|
anomalies: {
|
|
@@ -224,6 +228,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
224
228
|
listRegions: {
|
|
225
229
|
method: "GET",
|
|
226
230
|
path: "/v1/regions"
|
|
231
|
+
},
|
|
232
|
+
listSelfHostEnrollments: {
|
|
233
|
+
method: "GET",
|
|
234
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments"
|
|
235
|
+
},
|
|
236
|
+
createSelfHostEnrollment: {
|
|
237
|
+
method: "POST",
|
|
238
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments"
|
|
239
|
+
},
|
|
240
|
+
revokeSelfHostEnrollment: {
|
|
241
|
+
method: "DELETE",
|
|
242
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}"
|
|
227
243
|
}
|
|
228
244
|
},
|
|
229
245
|
migrations: {
|
|
@@ -256,6 +272,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
256
272
|
dryEvalPolicy: {
|
|
257
273
|
method: "POST",
|
|
258
274
|
path: "/v1/projects/{project_id}/policy-evaluations"
|
|
275
|
+
},
|
|
276
|
+
replayPolicy: {
|
|
277
|
+
method: "POST",
|
|
278
|
+
path: "/v1/projects/{project_id}/policy-replays"
|
|
259
279
|
}
|
|
260
280
|
},
|
|
261
281
|
support: {
|
|
@@ -384,6 +404,11 @@ const operationsByPath = {
|
|
|
384
404
|
path: "/v1/projects/{project_id}/audit-logs/export",
|
|
385
405
|
operationId: "exportAuditLogs"
|
|
386
406
|
},
|
|
407
|
+
"GET /v1/projects/{project_id}/audit-logs/verify": {
|
|
408
|
+
method: "GET",
|
|
409
|
+
path: "/v1/projects/{project_id}/audit-logs/verify",
|
|
410
|
+
operationId: "verifyAuditChain"
|
|
411
|
+
},
|
|
387
412
|
"GET /v1/plans": {
|
|
388
413
|
method: "GET",
|
|
389
414
|
path: "/v1/plans",
|
|
@@ -544,6 +569,11 @@ const operationsByPath = {
|
|
|
544
569
|
path: "/v1/projects/{project_id}/policy-evaluations",
|
|
545
570
|
operationId: "dryEvalPolicy"
|
|
546
571
|
},
|
|
572
|
+
"POST /v1/projects/{project_id}/policy-replays": {
|
|
573
|
+
method: "POST",
|
|
574
|
+
path: "/v1/projects/{project_id}/policy-replays",
|
|
575
|
+
operationId: "replayPolicy"
|
|
576
|
+
},
|
|
547
577
|
"GET /v1/projects": {
|
|
548
578
|
method: "GET",
|
|
549
579
|
path: "/v1/projects",
|
|
@@ -594,6 +624,21 @@ const operationsByPath = {
|
|
|
594
624
|
path: "/v1/databases/{database_id}/replicas/{replica_id}",
|
|
595
625
|
operationId: "deleteReplica"
|
|
596
626
|
},
|
|
627
|
+
"GET /v1/organizations/{org_id}/self-host-enrollments": {
|
|
628
|
+
method: "GET",
|
|
629
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments",
|
|
630
|
+
operationId: "listSelfHostEnrollments"
|
|
631
|
+
},
|
|
632
|
+
"POST /v1/organizations/{org_id}/self-host-enrollments": {
|
|
633
|
+
method: "POST",
|
|
634
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments",
|
|
635
|
+
operationId: "createSelfHostEnrollment"
|
|
636
|
+
},
|
|
637
|
+
"DELETE /v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}": {
|
|
638
|
+
method: "DELETE",
|
|
639
|
+
path: "/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}",
|
|
640
|
+
operationId: "revokeSelfHostEnrollment"
|
|
641
|
+
},
|
|
597
642
|
"GET /v1/organizations/{org_id}/support/cases": {
|
|
598
643
|
method: "GET",
|
|
599
644
|
path: "/v1/organizations/{org_id}/support/cases",
|
|
@@ -819,13 +864,15 @@ async function parseResponseBody(response) {
|
|
|
819
864
|
if (contentType?.includes("application/json")) {
|
|
820
865
|
return response.json();
|
|
821
866
|
}
|
|
822
|
-
//
|
|
867
|
+
// Non-JSON body (e.g. text/csv from audit-log export). Parse opportunistically
|
|
868
|
+
// in case the server mislabels JSON, but fall back to the raw text so callers
|
|
869
|
+
// get the payload instead of undefined. Only an empty body is undefined.
|
|
823
870
|
const text = await response.text();
|
|
824
871
|
if (!text) return undefined;
|
|
825
872
|
try {
|
|
826
873
|
return JSON.parse(text);
|
|
827
874
|
} catch {
|
|
828
|
-
return
|
|
875
|
+
return text;
|
|
829
876
|
}
|
|
830
877
|
}
|
|
831
878
|
function sleep(ms) {
|