auth0 6.2.0 → 6.3.0
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/cjs/management/api/requests/requests.d.ts +28 -11
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/connections/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
- package/dist/cjs/management/api/types/types.d.ts +148 -40
- package/dist/cjs/management/api/types/types.js +51 -22
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +28 -11
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/connections/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
- package/dist/esm/management/api/types/types.d.mts +148 -40
- package/dist/esm/management/api/types/types.mjs +35 -6
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +190 -3
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { CustomSigningClient } from "../resources/customSigning/client/Client.mjs";
|
|
4
4
|
import { EncryptionClient } from "../resources/encryption/client/Client.mjs";
|
|
5
|
+
import { NetworkAclsClient } from "../resources/networkAcls/client/Client.mjs";
|
|
5
6
|
import { SigningClient } from "../resources/signing/client/Client.mjs";
|
|
6
7
|
export class KeysClient {
|
|
7
8
|
constructor(options) {
|
|
@@ -15,6 +16,10 @@ export class KeysClient {
|
|
|
15
16
|
var _a;
|
|
16
17
|
return ((_a = this._encryption) !== null && _a !== void 0 ? _a : (this._encryption = new EncryptionClient(this._options)));
|
|
17
18
|
}
|
|
19
|
+
get networkAcls() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new NetworkAclsClient(this._options)));
|
|
22
|
+
}
|
|
18
23
|
get signing() {
|
|
19
24
|
var _a;
|
|
20
25
|
return ((_a = this._signing) !== null && _a !== void 0 ? _a : (this._signing = new SigningClient(this._options)));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as Management from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace NetworkAclsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class NetworkAclsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<NetworkAclsClient.Options>;
|
|
12
|
+
constructor(options: NetworkAclsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending.
|
|
15
|
+
*
|
|
16
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @throws {@link Management.BadRequestError}
|
|
19
|
+
* @throws {@link Management.UnauthorizedError}
|
|
20
|
+
* @throws {@link Management.ForbiddenError}
|
|
21
|
+
* @throws {@link Management.NotFoundError}
|
|
22
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.keys.networkAcls.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.GetAllKeysNetworkAclsResponseContent>;
|
|
28
|
+
private __list;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new key used to verify HTTP Message Signatures on Network ACL rules.
|
|
31
|
+
*
|
|
32
|
+
* @param {Management.CreateKeysNetworkAclsRequestContent} request
|
|
33
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link Management.BadRequestError}
|
|
36
|
+
* @throws {@link Management.UnauthorizedError}
|
|
37
|
+
* @throws {@link Management.ForbiddenError}
|
|
38
|
+
* @throws {@link Management.ConflictError}
|
|
39
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.keys.networkAcls.create({
|
|
43
|
+
* name: "name",
|
|
44
|
+
* alg: "hmac-sha256",
|
|
45
|
+
* value: "value"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
create(request: Management.CreateKeysNetworkAclsRequestContent, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.CreateKeysNetworkAclsResponseContent>;
|
|
49
|
+
private __create;
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} id - ID of the Network ACL Key to retrieve.
|
|
54
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link Management.BadRequestError}
|
|
57
|
+
* @throws {@link Management.UnauthorizedError}
|
|
58
|
+
* @throws {@link Management.ForbiddenError}
|
|
59
|
+
* @throws {@link Management.NotFoundError}
|
|
60
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.keys.networkAcls.get("id")
|
|
64
|
+
*/
|
|
65
|
+
get(id: string, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.NetworkAclKey>;
|
|
66
|
+
private __get;
|
|
67
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
13
|
+
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
14
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
|
+
import * as Management from "../../../../../index.mjs";
|
|
18
|
+
export class NetworkAclsClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending.
|
|
24
|
+
*
|
|
25
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link Management.BadRequestError}
|
|
28
|
+
* @throws {@link Management.UnauthorizedError}
|
|
29
|
+
* @throws {@link Management.ForbiddenError}
|
|
30
|
+
* @throws {@link Management.NotFoundError}
|
|
31
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.keys.networkAcls.list()
|
|
35
|
+
*/
|
|
36
|
+
list(requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__list(requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
42
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
43
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
45
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "keys/network-acls"),
|
|
46
|
+
method: "GET",
|
|
47
|
+
headers: _headers,
|
|
48
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
49
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
50
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
51
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
52
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
53
|
+
logging: this._options.logging,
|
|
54
|
+
});
|
|
55
|
+
if (_response.ok) {
|
|
56
|
+
return {
|
|
57
|
+
data: _response.body,
|
|
58
|
+
rawResponse: _response.rawResponse,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 400:
|
|
64
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
65
|
+
case 401:
|
|
66
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
67
|
+
case 403:
|
|
68
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
69
|
+
case 404:
|
|
70
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
71
|
+
case 429:
|
|
72
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
73
|
+
default:
|
|
74
|
+
throw new errors.ManagementError({
|
|
75
|
+
statusCode: _response.error.statusCode,
|
|
76
|
+
body: _response.error.body,
|
|
77
|
+
rawResponse: _response.rawResponse,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/keys/network-acls");
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Create a new key used to verify HTTP Message Signatures on Network ACL rules.
|
|
86
|
+
*
|
|
87
|
+
* @param {Management.CreateKeysNetworkAclsRequestContent} request
|
|
88
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link Management.BadRequestError}
|
|
91
|
+
* @throws {@link Management.UnauthorizedError}
|
|
92
|
+
* @throws {@link Management.ForbiddenError}
|
|
93
|
+
* @throws {@link Management.ConflictError}
|
|
94
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await client.keys.networkAcls.create({
|
|
98
|
+
* name: "name",
|
|
99
|
+
* alg: "hmac-sha256",
|
|
100
|
+
* value: "value"
|
|
101
|
+
* })
|
|
102
|
+
*/
|
|
103
|
+
create(request, requestOptions) {
|
|
104
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
105
|
+
}
|
|
106
|
+
__create(request, requestOptions) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
109
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
110
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
111
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
112
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "keys/network-acls"),
|
|
113
|
+
method: "POST",
|
|
114
|
+
headers: _headers,
|
|
115
|
+
contentType: "application/json",
|
|
116
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
117
|
+
requestType: "json",
|
|
118
|
+
body: request,
|
|
119
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
120
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
121
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
122
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
123
|
+
logging: this._options.logging,
|
|
124
|
+
});
|
|
125
|
+
if (_response.ok) {
|
|
126
|
+
return {
|
|
127
|
+
data: _response.body,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (_response.error.reason === "status-code") {
|
|
132
|
+
switch (_response.error.statusCode) {
|
|
133
|
+
case 400:
|
|
134
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 401:
|
|
136
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 403:
|
|
138
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 409:
|
|
140
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 429:
|
|
142
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
143
|
+
default:
|
|
144
|
+
throw new errors.ManagementError({
|
|
145
|
+
statusCode: _response.error.statusCode,
|
|
146
|
+
body: _response.error.body,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/keys/network-acls");
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules.
|
|
156
|
+
*
|
|
157
|
+
* @param {string} id - ID of the Network ACL Key to retrieve.
|
|
158
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
159
|
+
*
|
|
160
|
+
* @throws {@link Management.BadRequestError}
|
|
161
|
+
* @throws {@link Management.UnauthorizedError}
|
|
162
|
+
* @throws {@link Management.ForbiddenError}
|
|
163
|
+
* @throws {@link Management.NotFoundError}
|
|
164
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* await client.keys.networkAcls.get("id")
|
|
168
|
+
*/
|
|
169
|
+
get(id, requestOptions) {
|
|
170
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
|
|
171
|
+
}
|
|
172
|
+
__get(id, requestOptions) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
175
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
176
|
+
let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
177
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
178
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `keys/network-acls/${core.url.encodePathParam(id)}`),
|
|
179
|
+
method: "GET",
|
|
180
|
+
headers: _headers,
|
|
181
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
182
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
183
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
184
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
185
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
186
|
+
logging: this._options.logging,
|
|
187
|
+
});
|
|
188
|
+
if (_response.ok) {
|
|
189
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
190
|
+
}
|
|
191
|
+
if (_response.error.reason === "status-code") {
|
|
192
|
+
switch (_response.error.statusCode) {
|
|
193
|
+
case 400:
|
|
194
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
195
|
+
case 401:
|
|
196
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
197
|
+
case 403:
|
|
198
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
199
|
+
case 404:
|
|
200
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
201
|
+
case 429:
|
|
202
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
203
|
+
default:
|
|
204
|
+
throw new errors.ManagementError({
|
|
205
|
+
statusCode: _response.error.statusCode,
|
|
206
|
+
body: _response.error.body,
|
|
207
|
+
rawResponse: _response.rawResponse,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/keys/network-acls/{id}");
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|