auth0 6.3.0 → 6.4.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/Client.d.ts +3 -0
- package/dist/cjs/management/Client.js +45 -40
- package/dist/cjs/management/api/errors/UnprocessableEntityError.d.ts +5 -0
- package/dist/cjs/management/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/management/api/errors/index.d.ts +1 -0
- package/dist/cjs/management/api/errors/index.js +1 -0
- package/dist/cjs/management/api/requests/requests.d.ts +91 -0
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/connections/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +17 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +60 -0
- package/dist/cjs/management/api/resources/organizationTemplates/client/Client.d.ts +106 -0
- package/dist/cjs/management/api/resources/organizationTemplates/client/Client.js +411 -0
- package/dist/cjs/management/api/resources/organizationTemplates/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizationTemplates/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizationTemplates/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizationTemplates/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizationTemplates/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizationTemplates/index.js +17 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/Client.d.ts +63 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/Client.js +232 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/index.js +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/exports.js +21 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/index.js +17 -0
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +17 -0
- package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +19 -0
- package/dist/cjs/management/api/types/types.d.ts +8896 -2027
- package/dist/cjs/management/api/types/types.js +1455 -166
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/cjs/management/wrapper/token-provider.js +1 -1
- package/dist/esm/management/Client.d.mts +3 -0
- package/dist/esm/management/Client.mjs +5 -0
- package/dist/esm/management/api/errors/UnprocessableEntityError.d.mts +5 -0
- package/dist/esm/management/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/management/api/errors/index.d.mts +1 -0
- package/dist/esm/management/api/errors/index.mjs +1 -0
- package/dist/esm/management/api/requests/requests.d.mts +91 -0
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/connections/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +17 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +60 -0
- package/dist/esm/management/api/resources/organizationTemplates/client/Client.d.mts +106 -0
- package/dist/esm/management/api/resources/organizationTemplates/client/Client.mjs +374 -0
- package/dist/esm/management/api/resources/organizationTemplates/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizationTemplates/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizationTemplates/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizationTemplates/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizationTemplates/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizationTemplates/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/Client.d.mts +63 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/Client.mjs +195 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/exports.mjs +3 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/index.d.mts +1 -0
- package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/index.mjs +1 -0
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +17 -0
- package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +19 -0
- package/dist/esm/management/api/types/types.d.mts +8896 -2027
- package/dist/esm/management/api/types/types.mjs +1434 -150
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/dist/esm/management/wrapper/token-provider.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +688 -28
|
@@ -24,6 +24,7 @@ import { LogsClient } from "./api/resources/logs/client/Client.js";
|
|
|
24
24
|
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.js";
|
|
25
25
|
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.js";
|
|
26
26
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
|
|
27
|
+
import { OrganizationTemplatesClient } from "./api/resources/organizationTemplates/client/Client.js";
|
|
27
28
|
import { PromptsClient } from "./api/resources/prompts/client/Client.js";
|
|
28
29
|
import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.js";
|
|
29
30
|
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.js";
|
|
@@ -75,6 +76,7 @@ export declare class ManagementClient {
|
|
|
75
76
|
protected _logStreams: LogStreamsClient | undefined;
|
|
76
77
|
protected _logs: LogsClient | undefined;
|
|
77
78
|
protected _networkAcls: NetworkAclsClient | undefined;
|
|
79
|
+
protected _organizationTemplates: OrganizationTemplatesClient | undefined;
|
|
78
80
|
protected _organizations: OrganizationsClient | undefined;
|
|
79
81
|
protected _prompts: PromptsClient | undefined;
|
|
80
82
|
protected _rateLimitPolicies: RateLimitPoliciesClient | undefined;
|
|
@@ -122,6 +124,7 @@ export declare class ManagementClient {
|
|
|
122
124
|
get logStreams(): LogStreamsClient;
|
|
123
125
|
get logs(): LogsClient;
|
|
124
126
|
get networkAcls(): NetworkAclsClient;
|
|
127
|
+
get organizationTemplates(): OrganizationTemplatesClient;
|
|
125
128
|
get organizations(): OrganizationsClient;
|
|
126
129
|
get prompts(): PromptsClient;
|
|
127
130
|
get rateLimitPolicies(): RateLimitPoliciesClient;
|
|
@@ -70,26 +70,27 @@ const Client_js_23 = require("./api/resources/logs/client/Client.js");
|
|
|
70
70
|
const Client_js_24 = require("./api/resources/logStreams/client/Client.js");
|
|
71
71
|
const Client_js_25 = require("./api/resources/networkAcls/client/Client.js");
|
|
72
72
|
const Client_js_26 = require("./api/resources/organizations/client/Client.js");
|
|
73
|
-
const Client_js_27 = require("./api/resources/
|
|
74
|
-
const Client_js_28 = require("./api/resources/
|
|
75
|
-
const Client_js_29 = require("./api/resources/
|
|
76
|
-
const Client_js_30 = require("./api/resources/
|
|
77
|
-
const Client_js_31 = require("./api/resources/
|
|
78
|
-
const Client_js_32 = require("./api/resources/
|
|
79
|
-
const Client_js_33 = require("./api/resources/
|
|
80
|
-
const Client_js_34 = require("./api/resources/
|
|
81
|
-
const Client_js_35 = require("./api/resources/
|
|
82
|
-
const Client_js_36 = require("./api/resources/
|
|
83
|
-
const Client_js_37 = require("./api/resources/
|
|
84
|
-
const Client_js_38 = require("./api/resources/
|
|
85
|
-
const Client_js_39 = require("./api/resources/
|
|
86
|
-
const Client_js_40 = require("./api/resources/
|
|
87
|
-
const Client_js_41 = require("./api/resources/
|
|
88
|
-
const Client_js_42 = require("./api/resources/
|
|
89
|
-
const Client_js_43 = require("./api/resources/
|
|
90
|
-
const Client_js_44 = require("./api/resources/
|
|
91
|
-
const Client_js_45 = require("./api/resources/
|
|
92
|
-
const Client_js_46 = require("./api/resources/
|
|
73
|
+
const Client_js_27 = require("./api/resources/organizationTemplates/client/Client.js");
|
|
74
|
+
const Client_js_28 = require("./api/resources/prompts/client/Client.js");
|
|
75
|
+
const Client_js_29 = require("./api/resources/rateLimitPolicies/client/Client.js");
|
|
76
|
+
const Client_js_30 = require("./api/resources/refreshTokens/client/Client.js");
|
|
77
|
+
const Client_js_31 = require("./api/resources/resourceServers/client/Client.js");
|
|
78
|
+
const Client_js_32 = require("./api/resources/riskAssessments/client/Client.js");
|
|
79
|
+
const Client_js_33 = require("./api/resources/roles/client/Client.js");
|
|
80
|
+
const Client_js_34 = require("./api/resources/rules/client/Client.js");
|
|
81
|
+
const Client_js_35 = require("./api/resources/rulesConfigs/client/Client.js");
|
|
82
|
+
const Client_js_36 = require("./api/resources/selfServiceProfiles/client/Client.js");
|
|
83
|
+
const Client_js_37 = require("./api/resources/sessions/client/Client.js");
|
|
84
|
+
const Client_js_38 = require("./api/resources/stats/client/Client.js");
|
|
85
|
+
const Client_js_39 = require("./api/resources/supplementalSignals/client/Client.js");
|
|
86
|
+
const Client_js_40 = require("./api/resources/tenants/client/Client.js");
|
|
87
|
+
const Client_js_41 = require("./api/resources/tickets/client/Client.js");
|
|
88
|
+
const Client_js_42 = require("./api/resources/tokenExchangeProfiles/client/Client.js");
|
|
89
|
+
const Client_js_43 = require("./api/resources/userAttributeProfiles/client/Client.js");
|
|
90
|
+
const Client_js_44 = require("./api/resources/userBlocks/client/Client.js");
|
|
91
|
+
const Client_js_45 = require("./api/resources/userGrants/client/Client.js");
|
|
92
|
+
const Client_js_46 = require("./api/resources/users/client/Client.js");
|
|
93
|
+
const Client_js_47 = require("./api/resources/verifiableCredentials/client/Client.js");
|
|
93
94
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
94
95
|
const core = __importStar(require("./core/index.js"));
|
|
95
96
|
class ManagementClient {
|
|
@@ -154,7 +155,7 @@ class ManagementClient {
|
|
|
154
155
|
}
|
|
155
156
|
get userGrants() {
|
|
156
157
|
var _a;
|
|
157
|
-
return ((_a = this._userGrants) !== null && _a !== void 0 ? _a : (this._userGrants = new
|
|
158
|
+
return ((_a = this._userGrants) !== null && _a !== void 0 ? _a : (this._userGrants = new Client_js_45.UserGrantsClient(this._options)));
|
|
158
159
|
}
|
|
159
160
|
get groups() {
|
|
160
161
|
var _a;
|
|
@@ -180,73 +181,77 @@ class ManagementClient {
|
|
|
180
181
|
var _a;
|
|
181
182
|
return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new Client_js_25.NetworkAclsClient(this._options)));
|
|
182
183
|
}
|
|
184
|
+
get organizationTemplates() {
|
|
185
|
+
var _a;
|
|
186
|
+
return ((_a = this._organizationTemplates) !== null && _a !== void 0 ? _a : (this._organizationTemplates = new Client_js_27.OrganizationTemplatesClient(this._options)));
|
|
187
|
+
}
|
|
183
188
|
get organizations() {
|
|
184
189
|
var _a;
|
|
185
190
|
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_26.OrganizationsClient(this._options)));
|
|
186
191
|
}
|
|
187
192
|
get prompts() {
|
|
188
193
|
var _a;
|
|
189
|
-
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new
|
|
194
|
+
return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_js_28.PromptsClient(this._options)));
|
|
190
195
|
}
|
|
191
196
|
get rateLimitPolicies() {
|
|
192
197
|
var _a;
|
|
193
|
-
return ((_a = this._rateLimitPolicies) !== null && _a !== void 0 ? _a : (this._rateLimitPolicies = new
|
|
198
|
+
return ((_a = this._rateLimitPolicies) !== null && _a !== void 0 ? _a : (this._rateLimitPolicies = new Client_js_29.RateLimitPoliciesClient(this._options)));
|
|
194
199
|
}
|
|
195
200
|
get refreshTokens() {
|
|
196
201
|
var _a;
|
|
197
|
-
return ((_a = this._refreshTokens) !== null && _a !== void 0 ? _a : (this._refreshTokens = new
|
|
202
|
+
return ((_a = this._refreshTokens) !== null && _a !== void 0 ? _a : (this._refreshTokens = new Client_js_30.RefreshTokensClient(this._options)));
|
|
198
203
|
}
|
|
199
204
|
get resourceServers() {
|
|
200
205
|
var _a;
|
|
201
|
-
return ((_a = this._resourceServers) !== null && _a !== void 0 ? _a : (this._resourceServers = new
|
|
206
|
+
return ((_a = this._resourceServers) !== null && _a !== void 0 ? _a : (this._resourceServers = new Client_js_31.ResourceServersClient(this._options)));
|
|
202
207
|
}
|
|
203
208
|
get roles() {
|
|
204
209
|
var _a;
|
|
205
|
-
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new
|
|
210
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_33.RolesClient(this._options)));
|
|
206
211
|
}
|
|
207
212
|
get rules() {
|
|
208
213
|
var _a;
|
|
209
|
-
return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new
|
|
214
|
+
return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new Client_js_34.RulesClient(this._options)));
|
|
210
215
|
}
|
|
211
216
|
get rulesConfigs() {
|
|
212
217
|
var _a;
|
|
213
|
-
return ((_a = this._rulesConfigs) !== null && _a !== void 0 ? _a : (this._rulesConfigs = new
|
|
218
|
+
return ((_a = this._rulesConfigs) !== null && _a !== void 0 ? _a : (this._rulesConfigs = new Client_js_35.RulesConfigsClient(this._options)));
|
|
214
219
|
}
|
|
215
220
|
get selfServiceProfiles() {
|
|
216
221
|
var _a;
|
|
217
|
-
return ((_a = this._selfServiceProfiles) !== null && _a !== void 0 ? _a : (this._selfServiceProfiles = new
|
|
222
|
+
return ((_a = this._selfServiceProfiles) !== null && _a !== void 0 ? _a : (this._selfServiceProfiles = new Client_js_36.SelfServiceProfilesClient(this._options)));
|
|
218
223
|
}
|
|
219
224
|
get sessions() {
|
|
220
225
|
var _a;
|
|
221
|
-
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new
|
|
226
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_37.SessionsClient(this._options)));
|
|
222
227
|
}
|
|
223
228
|
get stats() {
|
|
224
229
|
var _a;
|
|
225
|
-
return ((_a = this._stats) !== null && _a !== void 0 ? _a : (this._stats = new
|
|
230
|
+
return ((_a = this._stats) !== null && _a !== void 0 ? _a : (this._stats = new Client_js_38.StatsClient(this._options)));
|
|
226
231
|
}
|
|
227
232
|
get supplementalSignals() {
|
|
228
233
|
var _a;
|
|
229
|
-
return ((_a = this._supplementalSignals) !== null && _a !== void 0 ? _a : (this._supplementalSignals = new
|
|
234
|
+
return ((_a = this._supplementalSignals) !== null && _a !== void 0 ? _a : (this._supplementalSignals = new Client_js_39.SupplementalSignalsClient(this._options)));
|
|
230
235
|
}
|
|
231
236
|
get tickets() {
|
|
232
237
|
var _a;
|
|
233
|
-
return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new
|
|
238
|
+
return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new Client_js_41.TicketsClient(this._options)));
|
|
234
239
|
}
|
|
235
240
|
get tokenExchangeProfiles() {
|
|
236
241
|
var _a;
|
|
237
|
-
return ((_a = this._tokenExchangeProfiles) !== null && _a !== void 0 ? _a : (this._tokenExchangeProfiles = new
|
|
242
|
+
return ((_a = this._tokenExchangeProfiles) !== null && _a !== void 0 ? _a : (this._tokenExchangeProfiles = new Client_js_42.TokenExchangeProfilesClient(this._options)));
|
|
238
243
|
}
|
|
239
244
|
get userAttributeProfiles() {
|
|
240
245
|
var _a;
|
|
241
|
-
return ((_a = this._userAttributeProfiles) !== null && _a !== void 0 ? _a : (this._userAttributeProfiles = new
|
|
246
|
+
return ((_a = this._userAttributeProfiles) !== null && _a !== void 0 ? _a : (this._userAttributeProfiles = new Client_js_43.UserAttributeProfilesClient(this._options)));
|
|
242
247
|
}
|
|
243
248
|
get userBlocks() {
|
|
244
249
|
var _a;
|
|
245
|
-
return ((_a = this._userBlocks) !== null && _a !== void 0 ? _a : (this._userBlocks = new
|
|
250
|
+
return ((_a = this._userBlocks) !== null && _a !== void 0 ? _a : (this._userBlocks = new Client_js_44.UserBlocksClient(this._options)));
|
|
246
251
|
}
|
|
247
252
|
get users() {
|
|
248
253
|
var _a;
|
|
249
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
254
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_46.UsersClient(this._options)));
|
|
250
255
|
}
|
|
251
256
|
get anomaly() {
|
|
252
257
|
var _a;
|
|
@@ -270,15 +275,15 @@ class ManagementClient {
|
|
|
270
275
|
}
|
|
271
276
|
get riskAssessments() {
|
|
272
277
|
var _a;
|
|
273
|
-
return ((_a = this._riskAssessments) !== null && _a !== void 0 ? _a : (this._riskAssessments = new
|
|
278
|
+
return ((_a = this._riskAssessments) !== null && _a !== void 0 ? _a : (this._riskAssessments = new Client_js_32.RiskAssessmentsClient(this._options)));
|
|
274
279
|
}
|
|
275
280
|
get tenants() {
|
|
276
281
|
var _a;
|
|
277
|
-
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new
|
|
282
|
+
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_js_40.TenantsClient(this._options)));
|
|
278
283
|
}
|
|
279
284
|
get verifiableCredentials() {
|
|
280
285
|
var _a;
|
|
281
|
-
return ((_a = this._verifiableCredentials) !== null && _a !== void 0 ? _a : (this._verifiableCredentials = new
|
|
286
|
+
return ((_a = this._verifiableCredentials) !== null && _a !== void 0 ? _a : (this._verifiableCredentials = new Client_js_47.VerifiableCredentialsClient(this._options)));
|
|
282
287
|
}
|
|
283
288
|
/**
|
|
284
289
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UnprocessableEntityError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class UnprocessableEntityError extends errors.ManagementError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "UnprocessableEntityError",
|
|
43
|
+
statusCode: 422,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = "UnprocessableEntityError";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -26,3 +26,4 @@ __exportStar(require("./PreconditionFailedError.js"), exports);
|
|
|
26
26
|
__exportStar(require("./ServiceUnavailableError.js"), exports);
|
|
27
27
|
__exportStar(require("./TooManyRequestsError.js"), exports);
|
|
28
28
|
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
29
|
+
__exportStar(require("./UnprocessableEntityError.js"), exports);
|
|
@@ -343,6 +343,7 @@ export interface CreateClientRequestContent {
|
|
|
343
343
|
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
344
344
|
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
345
345
|
express_configuration?: Management.ExpressConfiguration;
|
|
346
|
+
b2b_integration_configuration?: Management.B2BIntegrationConfiguration;
|
|
346
347
|
my_organization_configuration?: Management.ClientMyOrganizationPostConfiguration;
|
|
347
348
|
async_approval_notification_channels?: Management.ClientAsyncApprovalNotificationsChannelsApiPostConfiguration;
|
|
348
349
|
}
|
|
@@ -471,6 +472,7 @@ export interface UpdateClientRequestContent {
|
|
|
471
472
|
/** Specifies how long, in seconds, a Pushed Authorization Request URI remains valid */
|
|
472
473
|
par_request_expiry?: number | null;
|
|
473
474
|
express_configuration?: Management.ExpressConfigurationOrNull | null;
|
|
475
|
+
b2b_integration_configuration?: Management.B2BIntegrationConfiguration;
|
|
474
476
|
my_organization_configuration?: Management.ClientMyOrganizationPatchConfiguration | null;
|
|
475
477
|
async_approval_notification_channels?: (Management.ClientAsyncApprovalNotificationsChannelsApiPatchConfiguration | undefined) | null;
|
|
476
478
|
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
@@ -502,6 +504,7 @@ export interface CreateConnectionProfileRequestContent {
|
|
|
502
504
|
enabled_features?: Management.ConnectionProfileEnabledFeatures;
|
|
503
505
|
connection_config?: Management.ConnectionProfileConfig;
|
|
504
506
|
strategy_overrides?: Management.ConnectionProfileStrategyOverrides;
|
|
507
|
+
provisioning?: Management.ConnectionProfileProvisioning;
|
|
505
508
|
cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
|
|
506
509
|
}
|
|
507
510
|
/**
|
|
@@ -515,6 +518,7 @@ export interface UpdateConnectionProfileRequestContent {
|
|
|
515
518
|
enabled_features?: Management.ConnectionProfileEnabledFeatures;
|
|
516
519
|
connection_config?: Management.ConnectionProfileConfig;
|
|
517
520
|
strategy_overrides?: Management.ConnectionProfileStrategyOverrides;
|
|
521
|
+
provisioning?: Management.ConnectionProfileProvisioning;
|
|
518
522
|
cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
|
|
519
523
|
}
|
|
520
524
|
/**
|
|
@@ -1200,6 +1204,93 @@ export interface UpdateNetworkAclRequestContent {
|
|
|
1200
1204
|
priority?: number;
|
|
1201
1205
|
rule?: Management.NetworkAclRule;
|
|
1202
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* @example
|
|
1209
|
+
* {
|
|
1210
|
+
* from: "from",
|
|
1211
|
+
* take: 1
|
|
1212
|
+
* }
|
|
1213
|
+
*/
|
|
1214
|
+
export interface ListOrganizationTemplatesRequestParameters {
|
|
1215
|
+
/** Optional Id from which to start selection. */
|
|
1216
|
+
from?: string | null;
|
|
1217
|
+
/** Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. */
|
|
1218
|
+
take?: number | null;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* @example
|
|
1222
|
+
* {
|
|
1223
|
+
* name: "name",
|
|
1224
|
+
* organization_deletion_behavior: "allow",
|
|
1225
|
+
* enforce_permission_ceiling: true,
|
|
1226
|
+
* enforce_self_assignment_restriction: true
|
|
1227
|
+
* }
|
|
1228
|
+
*/
|
|
1229
|
+
export interface CreateOrganizationTemplateRequestContent {
|
|
1230
|
+
/** The name of the organization template. */
|
|
1231
|
+
name: string;
|
|
1232
|
+
/** Whether this is the default template applied to new organizations. */
|
|
1233
|
+
is_default?: boolean;
|
|
1234
|
+
organization_deletion_behavior: Management.OrganizationDeletionBehaviorEnum;
|
|
1235
|
+
connection_deletion_behavior?: Management.ConnectionDeletionBehaviorEnum;
|
|
1236
|
+
/** Whether to enforce permission ceiling for organizations using this template. */
|
|
1237
|
+
enforce_permission_ceiling: boolean;
|
|
1238
|
+
/** Whether to enforce self-assignment restrictions for organizations using this template. */
|
|
1239
|
+
enforce_self_assignment_restriction: boolean;
|
|
1240
|
+
/** The connection profile to apply to new connections. */
|
|
1241
|
+
connection_profile_id?: string | null;
|
|
1242
|
+
/** The user attribute profile to apply to organizations. */
|
|
1243
|
+
user_attribute_profile_id?: string | null;
|
|
1244
|
+
/** List of allowed connection strategies for this template. */
|
|
1245
|
+
allowed_strategies?: Management.OrganizationTemplateAllowedStrategyEnum[] | null;
|
|
1246
|
+
/** The client ID for the invitation landing page. */
|
|
1247
|
+
invitation_landing_client_id?: string | null;
|
|
1248
|
+
/** Default admin roles to assign to organization creators. */
|
|
1249
|
+
admin_roles_assignment?: string[] | null;
|
|
1250
|
+
use_for_organization_discovery?: Management.OrganizationTemplateUseForOrganizationDiscovery | null;
|
|
1251
|
+
role_visibility_policy?: Management.OrganizationTemplateRoleVisibilityPolicy | null;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* @example
|
|
1255
|
+
* {}
|
|
1256
|
+
*/
|
|
1257
|
+
export interface UpdateOrganizationTemplateRequestContent {
|
|
1258
|
+
/** The name of the organization template. */
|
|
1259
|
+
name?: string;
|
|
1260
|
+
/** Whether this is the default template applied to new organizations. */
|
|
1261
|
+
is_default?: boolean;
|
|
1262
|
+
organization_deletion_behavior?: Management.OrganizationDeletionBehaviorEnum;
|
|
1263
|
+
connection_deletion_behavior?: Management.ConnectionDeletionBehaviorEnum;
|
|
1264
|
+
/** Whether to enforce permission ceiling for organizations using this template. */
|
|
1265
|
+
enforce_permission_ceiling?: boolean;
|
|
1266
|
+
/** Whether to enforce self-assignment restrictions for organizations using this template. */
|
|
1267
|
+
enforce_self_assignment_restriction?: boolean;
|
|
1268
|
+
/** The connection profile to apply to new connections. */
|
|
1269
|
+
connection_profile_id?: string | null;
|
|
1270
|
+
/** The user attribute profile to apply to organizations. */
|
|
1271
|
+
user_attribute_profile_id?: string | null;
|
|
1272
|
+
/** List of allowed connection strategies for this template. */
|
|
1273
|
+
allowed_strategies?: Management.OrganizationTemplateAllowedStrategyEnum[] | null;
|
|
1274
|
+
/** The client ID for the invitation landing page. */
|
|
1275
|
+
invitation_landing_client_id?: string | null;
|
|
1276
|
+
/** Default admin roles to assign to organization creators. */
|
|
1277
|
+
admin_roles_assignment?: string[] | null;
|
|
1278
|
+
use_for_organization_discovery?: Management.OrganizationTemplateUseForOrganizationDiscovery | null;
|
|
1279
|
+
role_visibility_policy?: Management.OrganizationTemplateRoleVisibilityPolicy | null;
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* @example
|
|
1283
|
+
* {
|
|
1284
|
+
* from: "from",
|
|
1285
|
+
* take: 1
|
|
1286
|
+
* }
|
|
1287
|
+
*/
|
|
1288
|
+
export interface ListTemplateOrganizationsRequestParameters {
|
|
1289
|
+
/** Optional Id from which to start selection. */
|
|
1290
|
+
from?: string | null;
|
|
1291
|
+
/** Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. */
|
|
1292
|
+
take?: number | null;
|
|
1293
|
+
}
|
|
1203
1294
|
/**
|
|
1204
1295
|
* @example
|
|
1205
1296
|
* {
|
|
@@ -76,6 +76,7 @@ export declare class ConnectionsClient {
|
|
|
76
76
|
* @throws {@link Management.UnauthorizedError}
|
|
77
77
|
* @throws {@link Management.ForbiddenError}
|
|
78
78
|
* @throws {@link Management.ConflictError}
|
|
79
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
79
80
|
* @throws {@link Management.TooManyRequestsError}
|
|
80
81
|
*
|
|
81
82
|
* @example
|
|
@@ -139,6 +140,7 @@ export declare class ConnectionsClient {
|
|
|
139
140
|
* @throws {@link Management.ForbiddenError}
|
|
140
141
|
* @throws {@link Management.NotFoundError}
|
|
141
142
|
* @throws {@link Management.ConflictError}
|
|
143
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
142
144
|
* @throws {@link Management.TooManyRequestsError}
|
|
143
145
|
*
|
|
144
146
|
* @example
|
|
@@ -203,6 +203,7 @@ class ConnectionsClient {
|
|
|
203
203
|
* @throws {@link Management.UnauthorizedError}
|
|
204
204
|
* @throws {@link Management.ForbiddenError}
|
|
205
205
|
* @throws {@link Management.ConflictError}
|
|
206
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
206
207
|
* @throws {@link Management.TooManyRequestsError}
|
|
207
208
|
*
|
|
208
209
|
* @example
|
|
@@ -249,6 +250,8 @@ class ConnectionsClient {
|
|
|
249
250
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
250
251
|
case 409:
|
|
251
252
|
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
253
|
+
case 422:
|
|
254
|
+
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
252
255
|
case 429:
|
|
253
256
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
254
257
|
default:
|
|
@@ -411,6 +414,7 @@ class ConnectionsClient {
|
|
|
411
414
|
* @throws {@link Management.ForbiddenError}
|
|
412
415
|
* @throws {@link Management.NotFoundError}
|
|
413
416
|
* @throws {@link Management.ConflictError}
|
|
417
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
414
418
|
* @throws {@link Management.TooManyRequestsError}
|
|
415
419
|
*
|
|
416
420
|
* @example
|
|
@@ -456,6 +460,8 @@ class ConnectionsClient {
|
|
|
456
460
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
457
461
|
case 409:
|
|
458
462
|
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
463
|
+
case 422:
|
|
464
|
+
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
459
465
|
case 429:
|
|
460
466
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
461
467
|
default:
|
package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class ScimConfigurationClient {
|
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Management.BadRequestError}
|
|
56
56
|
* @throws {@link Management.NotFoundError}
|
|
57
|
+
* @throws {@link Management.ConflictError}
|
|
57
58
|
*
|
|
58
59
|
* @example
|
|
59
60
|
* await client.connections.scimConfiguration.create("id")
|
package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js
CHANGED
|
@@ -204,6 +204,7 @@ class ScimConfigurationClient {
|
|
|
204
204
|
*
|
|
205
205
|
* @throws {@link Management.BadRequestError}
|
|
206
206
|
* @throws {@link Management.NotFoundError}
|
|
207
|
+
* @throws {@link Management.ConflictError}
|
|
207
208
|
*
|
|
208
209
|
* @example
|
|
209
210
|
* await client.connections.scimConfiguration.create("id")
|
|
@@ -242,6 +243,8 @@ class ScimConfigurationClient {
|
|
|
242
243
|
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
243
244
|
case 404:
|
|
244
245
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
246
|
+
case 409:
|
|
247
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
245
248
|
default:
|
|
246
249
|
throw new errors.ManagementError({
|
|
247
250
|
statusCode: _response.error.statusCode,
|
|
@@ -25,6 +25,7 @@ export * as logs from "./logs/index.js";
|
|
|
25
25
|
export * as logStreams from "./logStreams/index.js";
|
|
26
26
|
export * as networkAcls from "./networkAcls/index.js";
|
|
27
27
|
export * as organizations from "./organizations/index.js";
|
|
28
|
+
export * as organizationTemplates from "./organizationTemplates/index.js";
|
|
28
29
|
export * as prompts from "./prompts/index.js";
|
|
29
30
|
export * as rateLimitPolicies from "./rateLimitPolicies/index.js";
|
|
30
31
|
export * as refreshTokens from "./refreshTokens/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.rateLimitPolicies = exports.prompts = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.agents = exports.actions = void 0;
|
|
39
|
+
exports.verifiableCredentials = exports.users = exports.userGrants = exports.userBlocks = exports.userAttributeProfiles = exports.tokenExchangeProfiles = exports.tickets = exports.tenants = exports.supplementalSignals = exports.stats = exports.sessions = exports.selfServiceProfiles = exports.rulesConfigs = exports.rules = exports.roles = exports.riskAssessments = exports.resourceServers = exports.refreshTokens = exports.rateLimitPolicies = exports.prompts = exports.organizationTemplates = exports.organizations = exports.networkAcls = exports.logStreams = exports.logs = exports.keys = exports.jobs = exports.hooks = exports.guardian = exports.groups = exports.forms = exports.flows = exports.eventStreams = exports.events = exports.emailTemplates = exports.emails = exports.deviceCredentials = exports.customDomains = exports.connections = exports.connectionProfiles = exports.clients = exports.clientGrants = exports.branding = exports.attackProtection = exports.anomaly = exports.agents = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions/index.js"));
|
|
41
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
42
42
|
exports.anomaly = __importStar(require("./anomaly/index.js"));
|
|
@@ -64,6 +64,7 @@ exports.logs = __importStar(require("./logs/index.js"));
|
|
|
64
64
|
exports.logStreams = __importStar(require("./logStreams/index.js"));
|
|
65
65
|
exports.networkAcls = __importStar(require("./networkAcls/index.js"));
|
|
66
66
|
exports.organizations = __importStar(require("./organizations/index.js"));
|
|
67
|
+
exports.organizationTemplates = __importStar(require("./organizationTemplates/index.js"));
|
|
67
68
|
exports.prompts = __importStar(require("./prompts/index.js"));
|
|
68
69
|
exports.rateLimitPolicies = __importStar(require("./rateLimitPolicies/index.js"));
|
|
69
70
|
exports.refreshTokens = __importStar(require("./refreshTokens/index.js"));
|
|
@@ -64,4 +64,21 @@ export declare class NetworkAclsClient {
|
|
|
64
64
|
*/
|
|
65
65
|
get(id: string, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.NetworkAclKey>;
|
|
66
66
|
private __get;
|
|
67
|
+
/**
|
|
68
|
+
* Delete a key used to verify HTTP Message Signatures on Network ACL rules
|
|
69
|
+
*
|
|
70
|
+
* @param {string} id - ID of the Network ACL Key to delete.
|
|
71
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link Management.BadRequestError}
|
|
74
|
+
* @throws {@link Management.UnauthorizedError}
|
|
75
|
+
* @throws {@link Management.ForbiddenError}
|
|
76
|
+
* @throws {@link Management.ConflictError}
|
|
77
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.keys.networkAcls.delete("id")
|
|
81
|
+
*/
|
|
82
|
+
delete(id: string, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
83
|
+
private __delete;
|
|
67
84
|
}
|
|
@@ -247,5 +247,65 @@ class NetworkAclsClient {
|
|
|
247
247
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/keys/network-acls/{id}");
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Delete a key used to verify HTTP Message Signatures on Network ACL rules
|
|
252
|
+
*
|
|
253
|
+
* @param {string} id - ID of the Network ACL Key to delete.
|
|
254
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
|
+
*
|
|
256
|
+
* @throws {@link Management.BadRequestError}
|
|
257
|
+
* @throws {@link Management.UnauthorizedError}
|
|
258
|
+
* @throws {@link Management.ForbiddenError}
|
|
259
|
+
* @throws {@link Management.ConflictError}
|
|
260
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* await client.keys.networkAcls.delete("id")
|
|
264
|
+
*/
|
|
265
|
+
delete(id, requestOptions) {
|
|
266
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
267
|
+
}
|
|
268
|
+
__delete(id, requestOptions) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
271
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
272
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
273
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
274
|
+
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)}`),
|
|
275
|
+
method: "DELETE",
|
|
276
|
+
headers: _headers,
|
|
277
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
278
|
+
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,
|
|
279
|
+
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,
|
|
280
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
281
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
282
|
+
logging: this._options.logging,
|
|
283
|
+
});
|
|
284
|
+
if (_response.ok) {
|
|
285
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
286
|
+
}
|
|
287
|
+
if (_response.error.reason === "status-code") {
|
|
288
|
+
switch (_response.error.statusCode) {
|
|
289
|
+
case 400:
|
|
290
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
291
|
+
case 401:
|
|
292
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
293
|
+
case 403:
|
|
294
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
295
|
+
case 409:
|
|
296
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
297
|
+
case 429:
|
|
298
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
299
|
+
default:
|
|
300
|
+
throw new errors.ManagementError({
|
|
301
|
+
statusCode: _response.error.statusCode,
|
|
302
|
+
body: _response.error.body,
|
|
303
|
+
rawResponse: _response.rawResponse,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/keys/network-acls/{id}");
|
|
308
|
+
});
|
|
309
|
+
}
|
|
250
310
|
}
|
|
251
311
|
exports.NetworkAclsClient = NetworkAclsClient;
|