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
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.
|
|
1
|
+
export declare const SDK_VERSION = "6.4.0";
|
|
@@ -17,7 +17,7 @@ class TokenProvider {
|
|
|
17
17
|
this.options = options;
|
|
18
18
|
this.expiresAt = 0;
|
|
19
19
|
this.accessToken = "";
|
|
20
|
-
this.authenticationClient = new index_js_1.AuthenticationClient(Object.assign(Object.assign({}, options), { headers:
|
|
20
|
+
this.authenticationClient = new index_js_1.AuthenticationClient(Object.assign(Object.assign({}, options), { headers: options.headers }));
|
|
21
21
|
}
|
|
22
22
|
getAccessToken() {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -24,6 +24,7 @@ import { LogsClient } from "./api/resources/logs/client/Client.mjs";
|
|
|
24
24
|
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.mjs";
|
|
25
25
|
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.mjs";
|
|
26
26
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
27
|
+
import { OrganizationTemplatesClient } from "./api/resources/organizationTemplates/client/Client.mjs";
|
|
27
28
|
import { PromptsClient } from "./api/resources/prompts/client/Client.mjs";
|
|
28
29
|
import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.mjs";
|
|
29
30
|
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.mjs";
|
|
@@ -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;
|
|
@@ -34,6 +34,7 @@ import { LogsClient } from "./api/resources/logs/client/Client.mjs";
|
|
|
34
34
|
import { LogStreamsClient } from "./api/resources/logStreams/client/Client.mjs";
|
|
35
35
|
import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.mjs";
|
|
36
36
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
37
|
+
import { OrganizationTemplatesClient } from "./api/resources/organizationTemplates/client/Client.mjs";
|
|
37
38
|
import { PromptsClient } from "./api/resources/prompts/client/Client.mjs";
|
|
38
39
|
import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.mjs";
|
|
39
40
|
import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.mjs";
|
|
@@ -144,6 +145,10 @@ export class ManagementClient {
|
|
|
144
145
|
var _a;
|
|
145
146
|
return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new NetworkAclsClient(this._options)));
|
|
146
147
|
}
|
|
148
|
+
get organizationTemplates() {
|
|
149
|
+
var _a;
|
|
150
|
+
return ((_a = this._organizationTemplates) !== null && _a !== void 0 ? _a : (this._organizationTemplates = new OrganizationTemplatesClient(this._options)));
|
|
151
|
+
}
|
|
147
152
|
get organizations() {
|
|
148
153
|
var _a;
|
|
149
154
|
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new OrganizationsClient(this._options)));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class UnprocessableEntityError extends errors.ManagementError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "UnprocessableEntityError",
|
|
7
|
+
statusCode: 422,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = "UnprocessableEntityError";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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
|
|
@@ -167,6 +167,7 @@ export class ConnectionsClient {
|
|
|
167
167
|
* @throws {@link Management.UnauthorizedError}
|
|
168
168
|
* @throws {@link Management.ForbiddenError}
|
|
169
169
|
* @throws {@link Management.ConflictError}
|
|
170
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
170
171
|
* @throws {@link Management.TooManyRequestsError}
|
|
171
172
|
*
|
|
172
173
|
* @example
|
|
@@ -213,6 +214,8 @@ export class ConnectionsClient {
|
|
|
213
214
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
214
215
|
case 409:
|
|
215
216
|
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
217
|
+
case 422:
|
|
218
|
+
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
216
219
|
case 429:
|
|
217
220
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
218
221
|
default:
|
|
@@ -375,6 +378,7 @@ export class ConnectionsClient {
|
|
|
375
378
|
* @throws {@link Management.ForbiddenError}
|
|
376
379
|
* @throws {@link Management.NotFoundError}
|
|
377
380
|
* @throws {@link Management.ConflictError}
|
|
381
|
+
* @throws {@link Management.UnprocessableEntityError}
|
|
378
382
|
* @throws {@link Management.TooManyRequestsError}
|
|
379
383
|
*
|
|
380
384
|
* @example
|
|
@@ -420,6 +424,8 @@ export class ConnectionsClient {
|
|
|
420
424
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
421
425
|
case 409:
|
|
422
426
|
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 422:
|
|
428
|
+
throw new Management.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
423
429
|
case 429:
|
|
424
430
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
425
431
|
default:
|
|
@@ -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/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs
CHANGED
|
@@ -168,6 +168,7 @@ export class ScimConfigurationClient {
|
|
|
168
168
|
*
|
|
169
169
|
* @throws {@link Management.BadRequestError}
|
|
170
170
|
* @throws {@link Management.NotFoundError}
|
|
171
|
+
* @throws {@link Management.ConflictError}
|
|
171
172
|
*
|
|
172
173
|
* @example
|
|
173
174
|
* await client.connections.scimConfiguration.create("id")
|
|
@@ -206,6 +207,8 @@ export class ScimConfigurationClient {
|
|
|
206
207
|
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
207
208
|
case 404:
|
|
208
209
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
210
|
+
case 409:
|
|
211
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
209
212
|
default:
|
|
210
213
|
throw new errors.ManagementError({
|
|
211
214
|
statusCode: _response.error.statusCode,
|
|
@@ -25,6 +25,7 @@ export * as logs from "./logs/index.mjs";
|
|
|
25
25
|
export * as logStreams from "./logStreams/index.mjs";
|
|
26
26
|
export * as networkAcls from "./networkAcls/index.mjs";
|
|
27
27
|
export * as organizations from "./organizations/index.mjs";
|
|
28
|
+
export * as organizationTemplates from "./organizationTemplates/index.mjs";
|
|
28
29
|
export * as prompts from "./prompts/index.mjs";
|
|
29
30
|
export * as rateLimitPolicies from "./rateLimitPolicies/index.mjs";
|
|
30
31
|
export * as refreshTokens from "./refreshTokens/index.mjs";
|
|
@@ -25,6 +25,7 @@ export * as logs from "./logs/index.mjs";
|
|
|
25
25
|
export * as logStreams from "./logStreams/index.mjs";
|
|
26
26
|
export * as networkAcls from "./networkAcls/index.mjs";
|
|
27
27
|
export * as organizations from "./organizations/index.mjs";
|
|
28
|
+
export * as organizationTemplates from "./organizationTemplates/index.mjs";
|
|
28
29
|
export * as prompts from "./prompts/index.mjs";
|
|
29
30
|
export * as rateLimitPolicies from "./rateLimitPolicies/index.mjs";
|
|
30
31
|
export * as refreshTokens from "./refreshTokens/index.mjs";
|
|
@@ -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
|
}
|
|
@@ -211,4 +211,64 @@ export class NetworkAclsClient {
|
|
|
211
211
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/keys/network-acls/{id}");
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Delete a key used to verify HTTP Message Signatures on Network ACL rules
|
|
216
|
+
*
|
|
217
|
+
* @param {string} id - ID of the Network ACL Key to delete.
|
|
218
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
219
|
+
*
|
|
220
|
+
* @throws {@link Management.BadRequestError}
|
|
221
|
+
* @throws {@link Management.UnauthorizedError}
|
|
222
|
+
* @throws {@link Management.ForbiddenError}
|
|
223
|
+
* @throws {@link Management.ConflictError}
|
|
224
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* await client.keys.networkAcls.delete("id")
|
|
228
|
+
*/
|
|
229
|
+
delete(id, requestOptions) {
|
|
230
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
|
|
231
|
+
}
|
|
232
|
+
__delete(id, requestOptions) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
235
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
236
|
+
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);
|
|
237
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
238
|
+
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)}`),
|
|
239
|
+
method: "DELETE",
|
|
240
|
+
headers: _headers,
|
|
241
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
242
|
+
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,
|
|
243
|
+
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,
|
|
244
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
246
|
+
logging: this._options.logging,
|
|
247
|
+
});
|
|
248
|
+
if (_response.ok) {
|
|
249
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
250
|
+
}
|
|
251
|
+
if (_response.error.reason === "status-code") {
|
|
252
|
+
switch (_response.error.statusCode) {
|
|
253
|
+
case 400:
|
|
254
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
255
|
+
case 401:
|
|
256
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
257
|
+
case 403:
|
|
258
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
259
|
+
case 409:
|
|
260
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
261
|
+
case 429:
|
|
262
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
263
|
+
default:
|
|
264
|
+
throw new errors.ManagementError({
|
|
265
|
+
statusCode: _response.error.statusCode,
|
|
266
|
+
body: _response.error.body,
|
|
267
|
+
rawResponse: _response.rawResponse,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/keys/network-acls/{id}");
|
|
272
|
+
});
|
|
273
|
+
}
|
|
214
274
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 OrganizationTemplatesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class OrganizationTemplatesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationTemplatesClient.Options>;
|
|
12
|
+
constructor(options: OrganizationTemplatesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (`id`) in ascending order.
|
|
15
|
+
*
|
|
16
|
+
* @param {Management.ListOrganizationTemplatesRequestParameters} request
|
|
17
|
+
* @param {OrganizationTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link Management.BadRequestError}
|
|
20
|
+
* @throws {@link Management.UnauthorizedError}
|
|
21
|
+
* @throws {@link Management.ForbiddenError}
|
|
22
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.organizationTemplates.list({
|
|
26
|
+
* from: "from",
|
|
27
|
+
* take: 1
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
list(request?: Management.ListOrganizationTemplatesRequestParameters, requestOptions?: OrganizationTemplatesClient.RequestOptions): Promise<core.Page<Management.OrganizationTemplate, Management.ListOrganizationTemplatesPaginatedResponseContent>>;
|
|
31
|
+
/**
|
|
32
|
+
* Create an Organization Template.
|
|
33
|
+
*
|
|
34
|
+
* @param {Management.CreateOrganizationTemplateRequestContent} request
|
|
35
|
+
* @param {OrganizationTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Management.BadRequestError}
|
|
38
|
+
* @throws {@link Management.UnauthorizedError}
|
|
39
|
+
* @throws {@link Management.ForbiddenError}
|
|
40
|
+
* @throws {@link Management.ConflictError}
|
|
41
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.organizationTemplates.create({
|
|
45
|
+
* name: "name",
|
|
46
|
+
* organization_deletion_behavior: "allow",
|
|
47
|
+
* enforce_permission_ceiling: true,
|
|
48
|
+
* enforce_self_assignment_restriction: true
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
create(request: Management.CreateOrganizationTemplateRequestContent, requestOptions?: OrganizationTemplatesClient.RequestOptions): core.HttpResponsePromise<Management.OrganizationTemplate>;
|
|
52
|
+
private __create;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve details about a single Organization Template specified by ID.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} id - Organization Template identifier.
|
|
57
|
+
* @param {OrganizationTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link Management.UnauthorizedError}
|
|
60
|
+
* @throws {@link Management.ForbiddenError}
|
|
61
|
+
* @throws {@link Management.NotFoundError}
|
|
62
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.organizationTemplates.get("id")
|
|
66
|
+
*/
|
|
67
|
+
get(id: string, requestOptions?: OrganizationTemplatesClient.RequestOptions): core.HttpResponsePromise<Management.OrganizationTemplate>;
|
|
68
|
+
private __get;
|
|
69
|
+
/**
|
|
70
|
+
* Update the details of a specific Organization Template.
|
|
71
|
+
*
|
|
72
|
+
* @param {string} id - Organization Template identifier.
|
|
73
|
+
* @param {Management.UpdateOrganizationTemplateRequestContent} request
|
|
74
|
+
* @param {OrganizationTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Management.BadRequestError}
|
|
77
|
+
* @throws {@link Management.UnauthorizedError}
|
|
78
|
+
* @throws {@link Management.ForbiddenError}
|
|
79
|
+
* @throws {@link Management.NotFoundError}
|
|
80
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.organizationTemplates.update("id")
|
|
84
|
+
*/
|
|
85
|
+
update(id: string, request?: Management.UpdateOrganizationTemplateRequestContent, requestOptions?: OrganizationTemplatesClient.RequestOptions): core.HttpResponsePromise<Management.OrganizationTemplate>;
|
|
86
|
+
private __update;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (`id`) in ascending order.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} id - The ID of the organization template.
|
|
91
|
+
* @param {Management.ListTemplateOrganizationsRequestParameters} request
|
|
92
|
+
* @param {OrganizationTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link Management.BadRequestError}
|
|
95
|
+
* @throws {@link Management.UnauthorizedError}
|
|
96
|
+
* @throws {@link Management.ForbiddenError}
|
|
97
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.organizationTemplates.listOrganizations("id", {
|
|
101
|
+
* from: "from",
|
|
102
|
+
* take: 1
|
|
103
|
+
* })
|
|
104
|
+
*/
|
|
105
|
+
listOrganizations(id: string, request?: Management.ListTemplateOrganizationsRequestParameters, requestOptions?: OrganizationTemplatesClient.RequestOptions): Promise<core.Page<Management.OrganizationTemplateAssignedOrganization, Management.ListTemplateOrganizationsPaginatedResponseContent>>;
|
|
106
|
+
}
|