auth0 6.2.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.
Files changed (122) hide show
  1. package/dist/cjs/management/Client.d.ts +3 -0
  2. package/dist/cjs/management/Client.js +45 -40
  3. package/dist/cjs/management/api/errors/UnprocessableEntityError.d.ts +5 -0
  4. package/dist/cjs/management/api/errors/UnprocessableEntityError.js +54 -0
  5. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/management/api/errors/index.js +1 -0
  7. package/dist/cjs/management/api/requests/requests.d.ts +119 -11
  8. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
  9. package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
  10. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +3 -1
  11. package/dist/cjs/management/api/resources/connections/client/Client.js +7 -1
  12. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/connections/resources/scimConfiguration/client/Client.js +3 -0
  14. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
  15. package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
  16. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +2 -0
  17. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +6 -0
  18. package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
  19. package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
  20. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  21. package/dist/cjs/management/api/resources/index.js +2 -1
  22. package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
  23. package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
  24. package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
  26. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +84 -0
  27. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +311 -0
  28. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
  29. package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
  30. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
  31. package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
  32. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
  33. package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
  34. package/dist/cjs/management/api/resources/organizationTemplates/client/Client.d.ts +106 -0
  35. package/dist/cjs/management/api/resources/organizationTemplates/client/Client.js +411 -0
  36. package/dist/cjs/management/api/resources/organizationTemplates/client/index.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/organizationTemplates/client/index.js +2 -0
  38. package/dist/cjs/management/api/resources/organizationTemplates/exports.d.ts +2 -0
  39. package/dist/cjs/management/api/resources/organizationTemplates/exports.js +21 -0
  40. package/dist/cjs/management/api/resources/organizationTemplates/index.d.ts +1 -0
  41. package/dist/cjs/management/api/resources/organizationTemplates/index.js +17 -0
  42. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
  43. package/dist/cjs/management/api/resources/organizations/client/Client.js +7 -2
  44. package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
  45. package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
  46. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/Client.d.ts +63 -0
  47. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/Client.js +232 -0
  48. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/index.d.ts +1 -0
  49. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/client/index.js +2 -0
  50. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/exports.d.ts +2 -0
  51. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/exports.js +21 -0
  52. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/index.d.ts +1 -0
  53. package/dist/cjs/management/api/resources/organizations/resources/organizationTemplate/index.js +17 -0
  54. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.d.ts +17 -0
  55. package/dist/cjs/management/api/resources/users/resources/organizations/client/Client.js +19 -0
  56. package/dist/cjs/management/api/types/types.d.ts +9066 -2089
  57. package/dist/cjs/management/api/types/types.js +1478 -160
  58. package/dist/cjs/management/version.d.ts +1 -1
  59. package/dist/cjs/management/version.js +1 -1
  60. package/dist/cjs/management/wrapper/token-provider.js +1 -1
  61. package/dist/esm/management/Client.d.mts +3 -0
  62. package/dist/esm/management/Client.mjs +5 -0
  63. package/dist/esm/management/api/errors/UnprocessableEntityError.d.mts +5 -0
  64. package/dist/esm/management/api/errors/UnprocessableEntityError.mjs +17 -0
  65. package/dist/esm/management/api/errors/index.d.mts +1 -0
  66. package/dist/esm/management/api/errors/index.mjs +1 -0
  67. package/dist/esm/management/api/requests/requests.d.mts +119 -11
  68. package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
  69. package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
  70. package/dist/esm/management/api/resources/connections/client/Client.d.mts +3 -1
  71. package/dist/esm/management/api/resources/connections/client/Client.mjs +7 -1
  72. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.d.mts +1 -0
  73. package/dist/esm/management/api/resources/connections/resources/scimConfiguration/client/Client.mjs +3 -0
  74. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
  75. package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
  76. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +2 -0
  77. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +6 -0
  78. package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
  79. package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
  80. package/dist/esm/management/api/resources/index.d.mts +1 -0
  81. package/dist/esm/management/api/resources/index.mjs +1 -0
  82. package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
  83. package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
  84. package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
  85. package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
  86. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +84 -0
  87. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +274 -0
  88. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
  89. package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
  90. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
  91. package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
  92. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
  93. package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
  94. package/dist/esm/management/api/resources/organizationTemplates/client/Client.d.mts +106 -0
  95. package/dist/esm/management/api/resources/organizationTemplates/client/Client.mjs +374 -0
  96. package/dist/esm/management/api/resources/organizationTemplates/client/index.d.mts +1 -0
  97. package/dist/esm/management/api/resources/organizationTemplates/client/index.mjs +1 -0
  98. package/dist/esm/management/api/resources/organizationTemplates/exports.d.mts +2 -0
  99. package/dist/esm/management/api/resources/organizationTemplates/exports.mjs +3 -0
  100. package/dist/esm/management/api/resources/organizationTemplates/index.d.mts +1 -0
  101. package/dist/esm/management/api/resources/organizationTemplates/index.mjs +1 -0
  102. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
  103. package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
  104. package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
  105. package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
  106. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/Client.d.mts +63 -0
  107. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/Client.mjs +195 -0
  108. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/index.d.mts +1 -0
  109. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/client/index.mjs +1 -0
  110. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/exports.d.mts +2 -0
  111. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/exports.mjs +3 -0
  112. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/index.d.mts +1 -0
  113. package/dist/esm/management/api/resources/organizations/resources/organizationTemplate/index.mjs +1 -0
  114. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.d.mts +17 -0
  115. package/dist/esm/management/api/resources/users/resources/organizations/client/Client.mjs +19 -0
  116. package/dist/esm/management/api/types/types.d.mts +9066 -2089
  117. package/dist/esm/management/api/types/types.mjs +1457 -144
  118. package/dist/esm/management/version.d.mts +1 -1
  119. package/dist/esm/management/version.mjs +1 -1
  120. package/dist/esm/management/wrapper/token-provider.mjs +1 -1
  121. package/package.json +34 -1
  122. package/reference.md +886 -39
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.2.0";
1
+ export declare const SDK_VERSION = "6.4.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "6.2.0";
4
+ exports.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: undefined }));
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,5 @@
1
+ import * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ export declare class UnprocessableEntityError extends errors.ManagementError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -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
+ }
@@ -10,3 +10,4 @@ export * from "./PreconditionFailedError.mjs";
10
10
  export * from "./ServiceUnavailableError.mjs";
11
11
  export * from "./TooManyRequestsError.mjs";
12
12
  export * from "./UnauthorizedError.mjs";
13
+ export * from "./UnprocessableEntityError.mjs";
@@ -10,3 +10,4 @@ export * from "./PreconditionFailedError.mjs";
10
10
  export * from "./ServiceUnavailableError.mjs";
11
11
  export * from "./TooManyRequestsError.mjs";
12
12
  export * from "./UnauthorizedError.mjs";
13
+ export * from "./UnprocessableEntityError.mjs";
@@ -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,8 @@ 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;
508
+ cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
505
509
  }
506
510
  /**
507
511
  * @example
@@ -514,6 +518,8 @@ export interface UpdateConnectionProfileRequestContent {
514
518
  enabled_features?: Management.ConnectionProfileEnabledFeatures;
515
519
  connection_config?: Management.ConnectionProfileConfig;
516
520
  strategy_overrides?: Management.ConnectionProfileStrategyOverrides;
521
+ provisioning?: Management.ConnectionProfileProvisioning;
522
+ cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
517
523
  }
518
524
  /**
519
525
  * @example
@@ -638,7 +644,7 @@ export interface CreateCustomDomainRequestContent {
638
644
  type: Management.CustomDomainProvisioningTypeEnum;
639
645
  verification_method?: Management.CustomDomainVerificationMethodEnum;
640
646
  tls_policy?: Management.CustomDomainTlsPolicyEnum;
641
- custom_client_ip_header?: Management.CustomDomainCustomClientIpHeader | undefined;
647
+ custom_client_ip_header?: (Management.CustomDomainCustomClientIpHeader | undefined) | null;
642
648
  domain_metadata?: Management.DomainMetadata;
643
649
  /** Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. */
644
650
  relying_party_identifier?: string;
@@ -660,7 +666,7 @@ export interface SetDefaultCustomDomainRequestContent {
660
666
  export interface UpdateCustomDomainRequestContent {
661
667
  /** recommended includes TLS 1.2 */
662
668
  tls_policy?: Management.CustomDomainTlsPolicyEnum;
663
- custom_client_ip_header?: Management.CustomDomainCustomClientIpHeader | undefined;
669
+ custom_client_ip_header?: (Management.CustomDomainCustomClientIpHeader | undefined) | null;
664
670
  domain_metadata?: Management.DomainMetadata;
665
671
  /** Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. */
666
672
  relying_party_identifier?: string | null;
@@ -941,13 +947,13 @@ export interface GetFormRequestParameters {
941
947
  */
942
948
  export interface UpdateFormRequestContent {
943
949
  name?: string;
944
- messages?: Management.FormMessagesNullable | undefined;
945
- languages?: Management.FormLanguagesNullable | undefined;
946
- translations?: Management.FormTranslationsNullable | undefined;
947
- nodes?: Management.FormNodeListNullable | undefined;
948
- start?: Management.FormStartNodeNullable | undefined;
949
- ending?: Management.FormEndingNodeNullable | undefined;
950
- style?: Management.FormStyleNullable | undefined;
950
+ messages?: (Management.FormMessagesNullable | undefined) | null;
951
+ languages?: (Management.FormLanguagesNullable | undefined) | null;
952
+ translations?: (Management.FormTranslationsNullable | undefined) | null;
953
+ nodes?: (Management.FormNodeListNullable | undefined) | null;
954
+ start?: (Management.FormStartNodeNullable | undefined) | null;
955
+ ending?: (Management.FormEndingNodeNullable | undefined) | null;
956
+ style?: (Management.FormStyleNullable | undefined) | null;
951
957
  }
952
958
  /**
953
959
  * @example
@@ -1198,6 +1204,93 @@ export interface UpdateNetworkAclRequestContent {
1198
1204
  priority?: number;
1199
1205
  rule?: Management.NetworkAclRule;
1200
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
+ }
1201
1294
  /**
1202
1295
  * @example
1203
1296
  * {
@@ -1638,7 +1731,7 @@ export interface UpdateSelfServiceProfileRequestContent {
1638
1731
  /** The name of the self-service Profile. */
1639
1732
  name?: string;
1640
1733
  description?: (Management.SelfServiceProfileDescription | undefined) | null;
1641
- branding?: Management.SelfServiceProfileBranding | undefined;
1734
+ branding?: (Management.SelfServiceProfileBranding | undefined) | null;
1642
1735
  /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */
1643
1736
  allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[];
1644
1737
  user_attributes?: (Management.SelfServiceProfileUserAttributes | undefined) | null;
@@ -1801,7 +1894,7 @@ export interface CreateUserAttributeProfileRequestContent {
1801
1894
  */
1802
1895
  export interface UpdateUserAttributeProfileRequestContent {
1803
1896
  name?: Management.UserAttributeProfileName;
1804
- user_id?: Management.UserAttributeProfilePatchUserId | undefined;
1897
+ user_id?: (Management.UserAttributeProfilePatchUserId | undefined) | null;
1805
1898
  user_attributes?: Management.UserAttributeProfileUserAttributes;
1806
1899
  }
1807
1900
  /**
@@ -3143,6 +3236,21 @@ export interface ImportEncryptionKeyRequestContent {
3143
3236
  /** Base64 encoded ciphertext of key material wrapped by public wrapping key. */
3144
3237
  wrapped_key: string;
3145
3238
  }
3239
+ /**
3240
+ * @example
3241
+ * {
3242
+ * name: "name",
3243
+ * alg: "hmac-sha256",
3244
+ * value: "value"
3245
+ * }
3246
+ */
3247
+ export interface CreateKeysNetworkAclsRequestContent {
3248
+ /** Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. */
3249
+ name: string;
3250
+ alg: Management.NetworkAclKeyAlgorithmEnum;
3251
+ /** Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. */
3252
+ value: string;
3253
+ }
3146
3254
  /**
3147
3255
  * @example
3148
3256
  * {
@@ -30,7 +30,7 @@ export declare class ClientsClient {
30
30
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
31
31
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
32
32
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
33
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
33
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
34
34
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
35
35
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
36
36
  * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
@@ -165,7 +165,7 @@ export declare class ClientsClient {
165
165
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
166
166
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
167
167
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
168
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
168
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
169
169
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
170
170
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
171
171
  * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
@@ -43,7 +43,7 @@ export class ClientsClient {
43
43
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
44
44
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
45
45
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
46
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
46
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
47
47
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
48
48
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
49
49
  * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
@@ -404,7 +404,7 @@ export class ClientsClient {
404
404
  * `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
405
405
  * `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
406
406
  * `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
407
- * `custom_login_page_off`, `sso`, `addons`, `form_template`,
407
+ * `custom_login_page_on`, `sso`, `addons`, `form_template`,
408
408
  * `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
409
409
  * `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
410
410
  * `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
@@ -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
@@ -128,7 +129,7 @@ export declare class ConnectionsClient {
128
129
  /**
129
130
  * Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
130
131
  *
131
- * **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
132
+ * **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
132
133
  *
133
134
  * @param {string} id - The id of the connection to update
134
135
  * @param {Management.UpdateConnectionRequestContent} request
@@ -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:
@@ -364,7 +367,7 @@ export class ConnectionsClient {
364
367
  /**
365
368
  * Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
366
369
  *
367
- * **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
370
+ * **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
368
371
  *
369
372
  * @param {string} id - The id of the connection to update
370
373
  * @param {Management.UpdateConnectionRequestContent} request
@@ -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")
@@ -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,
@@ -77,6 +77,7 @@ export declare class FlowsClient {
77
77
  * @throws {@link Management.UnauthorizedError}
78
78
  * @throws {@link Management.ForbiddenError}
79
79
  * @throws {@link Management.NotFoundError}
80
+ * @throws {@link Management.ConflictError}
80
81
  * @throws {@link Management.TooManyRequestsError}
81
82
  *
82
83
  * @example
@@ -89,6 +90,7 @@ export declare class FlowsClient {
89
90
  * @param {Management.UpdateFlowRequestContent} request
90
91
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
91
92
  *
93
+ * @throws {@link Management.BadRequestError}
92
94
  * @throws {@link Management.UnauthorizedError}
93
95
  * @throws {@link Management.ForbiddenError}
94
96
  * @throws {@link Management.NotFoundError}
@@ -261,6 +261,7 @@ export class FlowsClient {
261
261
  * @throws {@link Management.UnauthorizedError}
262
262
  * @throws {@link Management.ForbiddenError}
263
263
  * @throws {@link Management.NotFoundError}
264
+ * @throws {@link Management.ConflictError}
264
265
  * @throws {@link Management.TooManyRequestsError}
265
266
  *
266
267
  * @example
@@ -298,6 +299,8 @@ export class FlowsClient {
298
299
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
299
300
  case 404:
300
301
  throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
302
+ case 409:
303
+ throw new Management.ConflictError(_response.error.body, _response.rawResponse);
301
304
  case 429:
302
305
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
303
306
  default:
@@ -316,6 +319,7 @@ export class FlowsClient {
316
319
  * @param {Management.UpdateFlowRequestContent} request
317
320
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
318
321
  *
322
+ * @throws {@link Management.BadRequestError}
319
323
  * @throws {@link Management.UnauthorizedError}
320
324
  * @throws {@link Management.ForbiddenError}
321
325
  * @throws {@link Management.NotFoundError}
@@ -351,6 +355,8 @@ export class FlowsClient {
351
355
  }
352
356
  if (_response.error.reason === "status-code") {
353
357
  switch (_response.error.statusCode) {
358
+ case 400:
359
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
354
360
  case 401:
355
361
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
356
362
  case 403:
@@ -18,6 +18,7 @@ export declare class ExecutionsClient {
18
18
  * @throws {@link Management.BadRequestError}
19
19
  * @throws {@link Management.UnauthorizedError}
20
20
  * @throws {@link Management.ForbiddenError}
21
+ * @throws {@link Management.NotFoundError}
21
22
  * @throws {@link Management.TooManyRequestsError}
22
23
  *
23
24
  * @example
@@ -37,6 +38,7 @@ export declare class ExecutionsClient {
37
38
  * @throws {@link Management.BadRequestError}
38
39
  * @throws {@link Management.UnauthorizedError}
39
40
  * @throws {@link Management.ForbiddenError}
41
+ * @throws {@link Management.NotFoundError}
40
42
  * @throws {@link Management.TooManyRequestsError}
41
43
  *
42
44
  * @example
@@ -27,6 +27,7 @@ export class ExecutionsClient {
27
27
  * @throws {@link Management.BadRequestError}
28
28
  * @throws {@link Management.UnauthorizedError}
29
29
  * @throws {@link Management.ForbiddenError}
30
+ * @throws {@link Management.NotFoundError}
30
31
  * @throws {@link Management.TooManyRequestsError}
31
32
  *
32
33
  * @example
@@ -77,6 +78,8 @@ export class ExecutionsClient {
77
78
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
78
79
  case 403:
79
80
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
81
+ case 404:
82
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
80
83
  case 429:
81
84
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
82
85
  default:
@@ -110,6 +113,7 @@ export class ExecutionsClient {
110
113
  * @throws {@link Management.BadRequestError}
111
114
  * @throws {@link Management.UnauthorizedError}
112
115
  * @throws {@link Management.ForbiddenError}
116
+ * @throws {@link Management.NotFoundError}
113
117
  * @throws {@link Management.TooManyRequestsError}
114
118
  *
115
119
  * @example
@@ -158,6 +162,8 @@ export class ExecutionsClient {
158
162
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
159
163
  case 403:
160
164
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
165
+ case 404:
166
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
161
167
  case 429:
162
168
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
163
169
  default:
@@ -81,8 +81,10 @@ export declare class FormsClient {
81
81
  * @param {Management.UpdateFormRequestContent} request
82
82
  * @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
83
83
  *
84
+ * @throws {@link Management.BadRequestError}
84
85
  * @throws {@link Management.UnauthorizedError}
85
86
  * @throws {@link Management.ForbiddenError}
87
+ * @throws {@link Management.NotFoundError}
86
88
  * @throws {@link Management.TooManyRequestsError}
87
89
  *
88
90
  * @example
@@ -301,8 +301,10 @@ export class FormsClient {
301
301
  * @param {Management.UpdateFormRequestContent} request
302
302
  * @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
303
303
  *
304
+ * @throws {@link Management.BadRequestError}
304
305
  * @throws {@link Management.UnauthorizedError}
305
306
  * @throws {@link Management.ForbiddenError}
307
+ * @throws {@link Management.NotFoundError}
306
308
  * @throws {@link Management.TooManyRequestsError}
307
309
  *
308
310
  * @example
@@ -335,10 +337,14 @@ export class FormsClient {
335
337
  }
336
338
  if (_response.error.reason === "status-code") {
337
339
  switch (_response.error.statusCode) {
340
+ case 400:
341
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
338
342
  case 401:
339
343
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
340
344
  case 403:
341
345
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
346
+ case 404:
347
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
342
348
  case 429:
343
349
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
344
350
  default:
@@ -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";
@@ -2,6 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } 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 declare namespace KeysClient {
7
8
  type Options = BaseClientOptions;
@@ -10,9 +11,11 @@ export declare class KeysClient {
10
11
  protected readonly _options: NormalizedClientOptionsWithAuth<KeysClient.Options>;
11
12
  protected _customSigning: CustomSigningClient | undefined;
12
13
  protected _encryption: EncryptionClient | undefined;
14
+ protected _networkAcls: NetworkAclsClient | undefined;
13
15
  protected _signing: SigningClient | undefined;
14
16
  constructor(options: KeysClient.Options);
15
17
  get customSigning(): CustomSigningClient;
16
18
  get encryption(): EncryptionClient;
19
+ get networkAcls(): NetworkAclsClient;
17
20
  get signing(): SigningClient;
18
21
  }
@@ -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)));