auth0 5.6.0 → 5.7.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 (24) hide show
  1. package/dist/cjs/management/api/requests/requests.d.ts +41 -2
  2. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +2 -1
  3. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +4 -2
  4. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +43 -0
  5. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +152 -0
  6. package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -1
  7. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +1 -1
  8. package/dist/cjs/management/api/types/types.d.ts +188 -37
  9. package/dist/cjs/management/api/types/types.js +99 -46
  10. package/dist/cjs/management/version.d.ts +1 -1
  11. package/dist/cjs/management/version.js +1 -1
  12. package/dist/esm/management/api/requests/requests.d.mts +41 -2
  13. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +2 -1
  14. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +4 -2
  15. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +43 -0
  16. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +152 -0
  17. package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -1
  18. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +1 -1
  19. package/dist/esm/management/api/types/types.d.mts +188 -37
  20. package/dist/esm/management/api/types/types.mjs +89 -36
  21. package/dist/esm/management/version.d.mts +1 -1
  22. package/dist/esm/management/version.mjs +1 -1
  23. package/package.json +1 -1
  24. package/reference.md +169 -1
@@ -955,6 +955,10 @@ export const ClientExternalMetadataCreatedByEnum = {
955
955
  export const ClientExternalMetadataTypeEnum = {
956
956
  Cimd: "cimd",
957
957
  };
958
+ /** Used to filter the returned client grants to include only default client grants for the specified group of clients. */
959
+ export const ClientGrantDefaultForEnum = {
960
+ ThirdPartyClients: "third_party_clients",
961
+ };
958
962
  /** Controls how organizations may be used with this grant */
959
963
  export const ClientGrantOrganizationNullableUsageEnum = {
960
964
  Deny: "deny",
@@ -972,6 +976,21 @@ export const ClientGrantSubjectTypeEnum = {
972
976
  Client: "client",
973
977
  User: "user",
974
978
  };
979
+ /** The allowed connection strategy values for the My Organization Configuration. */
980
+ export const ClientMyOrganizationConfigurationAllowedStrategiesEnum = {
981
+ Pingfederate: "pingfederate",
982
+ Adfs: "adfs",
983
+ Waad: "waad",
984
+ GoogleApps: "google-apps",
985
+ Okta: "okta",
986
+ Oidc: "oidc",
987
+ Samlp: "samlp",
988
+ };
989
+ /** The deletion behavior for this client. */
990
+ export const ClientMyOrganizationDeletionBehaviorEnum = {
991
+ Allow: "allow",
992
+ AllowIfEmpty: "allow_if_empty",
993
+ };
975
994
  /** The `selected_initiators` property contains the list of initiators to be enabled for the given application. */
976
995
  export const ClientOidcBackchannelLogoutInitiatorsEnum = {
977
996
  RpLogout: "rp-logout",
@@ -1018,6 +1037,11 @@ export const ClientOrganizationUsagePatchEnum = {
1018
1037
  Allow: "allow",
1019
1038
  Require: "require",
1020
1039
  };
1040
+ /** Controls whether Auth0 redirects users to the application's callback URL on authentication errors or in email verification flows. `open_redirect_protection` shows an error page instead of redirecting, and hides the callback domain from email templates. `allow_always` enables standard redirect behavior. Defaults to `open_redirect_protection` for third-party clients. Only applies when `is_first_party` is `false` and `third_party_security_mode` is `strict`. */
1041
+ export const ClientRedirectionPolicyEnum = {
1042
+ AllowAlways: "allow_always",
1043
+ OpenRedirectProtection: "open_redirect_protection",
1044
+ };
1021
1045
  export const ClientSessionTransferAllowedAuthenticationMethodsEnum = {
1022
1046
  Cookie: "cookie",
1023
1047
  Query: "query",
@@ -1028,6 +1052,11 @@ export const ClientSessionTransferDeviceBindingEnum = {
1028
1052
  Asn: "asn",
1029
1053
  None: "none",
1030
1054
  };
1055
+ /** Security mode for third-party clients. `strict` enforces enhanced security controls: OAuth 2.1 alignment, explicit API authorization, and a curated set of supported features. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. Set on creation and cannot be modified. */
1056
+ export const ClientThirdPartySecurityModeEnum = {
1057
+ Strict: "strict",
1058
+ Permissive: "permissive",
1059
+ };
1031
1060
  /** Defines the requested authentication method for the token endpoint. Can be `none` (public client without a client secret), `client_secret_post` (client uses HTTP POST parameters), or `client_secret_basic` (client uses HTTP Basic). */
1032
1061
  export const ClientTokenEndpointAuthMethodEnum = {
1033
1062
  None: "none",
@@ -1040,6 +1069,7 @@ export const ClientTokenEndpointAuthMethodOrNullEnum = {
1040
1069
  ClientSecretPost: "client_secret_post",
1041
1070
  ClientSecretBasic: "client_secret_basic",
1042
1071
  };
1072
+ /** Token exchange type. `on_behalf_of_token_exchange`: enables On-Behalf-Of token exchange (Generally Available). `custom_authentication`: enables custom token exchange profiles (Early Access, requires entitlement). */
1043
1073
  export const ClientTokenExchangeTypeEnum = {
1044
1074
  CustomAuthentication: "custom_authentication",
1045
1075
  OnBehalfOfTokenExchange: "on_behalf_of_token_exchange",
@@ -1065,6 +1095,11 @@ export const ConnectionDigestAlgorithmEnumSaml = {
1065
1095
  Sha1: "sha1",
1066
1096
  Sha256: "sha256",
1067
1097
  };
1098
+ /** Algorithm used for DPoP proof JWT signing. */
1099
+ export const ConnectionDpopSigningAlgEnum = {
1100
+ Es256: "ES256",
1101
+ Ed25519: "Ed25519",
1102
+ };
1068
1103
  export var ConnectionEmailEmail;
1069
1104
  (function (ConnectionEmailEmail) {
1070
1105
  /** Email template syntax type */
@@ -2195,24 +2230,28 @@ export const EventStreamActionDestinationTypeEnum = {
2195
2230
  };
2196
2231
  /** Type of event */
2197
2232
  export const EventStreamDeliveryEventTypeEnum = {
2198
- UserCreated: "user.created",
2199
- UserDeleted: "user.deleted",
2200
- UserUpdated: "user.updated",
2233
+ GroupCreated: "group.created",
2234
+ GroupDeleted: "group.deleted",
2235
+ GroupMemberAdded: "group.member.added",
2236
+ GroupMemberDeleted: "group.member.deleted",
2237
+ GroupRoleAssigned: "group.role.assigned",
2238
+ GroupRoleDeleted: "group.role.deleted",
2239
+ GroupUpdated: "group.updated",
2240
+ OrganizationConnectionAdded: "organization.connection.added",
2241
+ OrganizationConnectionRemoved: "organization.connection.removed",
2242
+ OrganizationConnectionUpdated: "organization.connection.updated",
2201
2243
  OrganizationCreated: "organization.created",
2202
- OrganizationUpdated: "organization.updated",
2203
2244
  OrganizationDeleted: "organization.deleted",
2245
+ OrganizationGroupRoleAssigned: "organization.group.role.assigned",
2246
+ OrganizationGroupRoleDeleted: "organization.group.role.deleted",
2204
2247
  OrganizationMemberAdded: "organization.member.added",
2205
2248
  OrganizationMemberDeleted: "organization.member.deleted",
2206
2249
  OrganizationMemberRoleAssigned: "organization.member.role.assigned",
2207
2250
  OrganizationMemberRoleDeleted: "organization.member.role.deleted",
2208
- OrganizationConnectionAdded: "organization.connection.added",
2209
- OrganizationConnectionUpdated: "organization.connection.updated",
2210
- OrganizationConnectionRemoved: "organization.connection.removed",
2211
- GroupCreated: "group.created",
2212
- GroupUpdated: "group.updated",
2213
- GroupDeleted: "group.deleted",
2214
- GroupMemberAdded: "group.member.added",
2215
- GroupMemberDeleted: "group.member.deleted",
2251
+ OrganizationUpdated: "organization.updated",
2252
+ UserCreated: "user.created",
2253
+ UserDeleted: "user.deleted",
2254
+ UserUpdated: "user.updated",
2216
2255
  };
2217
2256
  /** Delivery status */
2218
2257
  export const EventStreamDeliveryStatusEnum = {
@@ -2261,24 +2300,28 @@ export const EventStreamEventBridgeDestinationTypeEnum = {
2261
2300
  Eventbridge: "eventbridge",
2262
2301
  };
2263
2302
  export const EventStreamEventTypeEnum = {
2264
- UserCreated: "user.created",
2265
- UserDeleted: "user.deleted",
2266
- UserUpdated: "user.updated",
2303
+ GroupCreated: "group.created",
2304
+ GroupDeleted: "group.deleted",
2305
+ GroupMemberAdded: "group.member.added",
2306
+ GroupMemberDeleted: "group.member.deleted",
2307
+ GroupRoleAssigned: "group.role.assigned",
2308
+ GroupRoleDeleted: "group.role.deleted",
2309
+ GroupUpdated: "group.updated",
2310
+ OrganizationConnectionAdded: "organization.connection.added",
2311
+ OrganizationConnectionRemoved: "organization.connection.removed",
2312
+ OrganizationConnectionUpdated: "organization.connection.updated",
2267
2313
  OrganizationCreated: "organization.created",
2268
- OrganizationUpdated: "organization.updated",
2269
2314
  OrganizationDeleted: "organization.deleted",
2315
+ OrganizationGroupRoleAssigned: "organization.group.role.assigned",
2316
+ OrganizationGroupRoleDeleted: "organization.group.role.deleted",
2270
2317
  OrganizationMemberAdded: "organization.member.added",
2271
2318
  OrganizationMemberDeleted: "organization.member.deleted",
2272
2319
  OrganizationMemberRoleAssigned: "organization.member.role.assigned",
2273
2320
  OrganizationMemberRoleDeleted: "organization.member.role.deleted",
2274
- OrganizationConnectionAdded: "organization.connection.added",
2275
- OrganizationConnectionUpdated: "organization.connection.updated",
2276
- OrganizationConnectionRemoved: "organization.connection.removed",
2277
- GroupCreated: "group.created",
2278
- GroupUpdated: "group.updated",
2279
- GroupDeleted: "group.deleted",
2280
- GroupMemberAdded: "group.member.added",
2281
- GroupMemberDeleted: "group.member.deleted",
2321
+ OrganizationUpdated: "organization.updated",
2322
+ UserCreated: "user.created",
2323
+ UserDeleted: "user.deleted",
2324
+ UserUpdated: "user.updated",
2282
2325
  };
2283
2326
  /** Indicates whether the event stream is actively forwarding events. */
2284
2327
  export const EventStreamStatusEnum = {
@@ -2287,24 +2330,28 @@ export const EventStreamStatusEnum = {
2287
2330
  };
2288
2331
  /** The type of event this test event represents. */
2289
2332
  export const EventStreamTestEventTypeEnum = {
2290
- UserCreated: "user.created",
2291
- UserDeleted: "user.deleted",
2292
- UserUpdated: "user.updated",
2333
+ GroupCreated: "group.created",
2334
+ GroupDeleted: "group.deleted",
2335
+ GroupMemberAdded: "group.member.added",
2336
+ GroupMemberDeleted: "group.member.deleted",
2337
+ GroupRoleAssigned: "group.role.assigned",
2338
+ GroupRoleDeleted: "group.role.deleted",
2339
+ GroupUpdated: "group.updated",
2340
+ OrganizationConnectionAdded: "organization.connection.added",
2341
+ OrganizationConnectionRemoved: "organization.connection.removed",
2342
+ OrganizationConnectionUpdated: "organization.connection.updated",
2293
2343
  OrganizationCreated: "organization.created",
2294
- OrganizationUpdated: "organization.updated",
2295
2344
  OrganizationDeleted: "organization.deleted",
2345
+ OrganizationGroupRoleAssigned: "organization.group.role.assigned",
2346
+ OrganizationGroupRoleDeleted: "organization.group.role.deleted",
2296
2347
  OrganizationMemberAdded: "organization.member.added",
2297
2348
  OrganizationMemberDeleted: "organization.member.deleted",
2298
2349
  OrganizationMemberRoleAssigned: "organization.member.role.assigned",
2299
2350
  OrganizationMemberRoleDeleted: "organization.member.role.deleted",
2300
- OrganizationConnectionAdded: "organization.connection.added",
2301
- OrganizationConnectionUpdated: "organization.connection.updated",
2302
- OrganizationConnectionRemoved: "organization.connection.removed",
2303
- GroupCreated: "group.created",
2304
- GroupUpdated: "group.updated",
2305
- GroupDeleted: "group.deleted",
2306
- GroupMemberAdded: "group.member.added",
2307
- GroupMemberDeleted: "group.member.deleted",
2351
+ OrganizationUpdated: "organization.updated",
2352
+ UserCreated: "user.created",
2353
+ UserDeleted: "user.deleted",
2354
+ UserUpdated: "user.updated",
2308
2355
  };
2309
2356
  /** Type of authorization. */
2310
2357
  export const EventStreamWebhookBasicAuthMethodEnum = {
@@ -4127,12 +4174,18 @@ export const SuspiciousIpThrottlingShieldsEnum = {
4127
4174
  export const SynchronizeGroupsEnum = {
4128
4175
  All: "all",
4129
4176
  Off: "off",
4177
+ Selected: "selected",
4130
4178
  };
4131
4179
  /** Character set used to generate a User Code. Can be `base20` or `digits`. */
4132
4180
  export const TenantSettingsDeviceFlowCharset = {
4133
4181
  Base20: "base20",
4134
4182
  Digits: "digits",
4135
4183
  };
4184
+ /** Sets the `third_party_security_mode` assigned to clients created via Dynamic Client Registration. `strict` applies enhanced security controls. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. */
4185
+ export const TenantSettingsDynamicClientRegistrationSecurityMode = {
4186
+ Strict: "strict",
4187
+ Permissive: "permissive",
4188
+ };
4136
4189
  /** Profile that determines how the identity of the protected resource (i.e., API) can be specified in the OAuth endpoints when access is being requested. When set to audience (default), the audience parameter is used to specify the resource server. When set to compatibility, the audience parameter is still checked first, but if it not provided, then the resource parameter can be used to specify the resource server. */
4137
4190
  export const TenantSettingsResourceParameterProfile = {
4138
4191
  Audience: "audience",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.6.0";
1
+ export declare const SDK_VERSION = "5.7.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.6.0";
1
+ export const SDK_VERSION = "5.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -663,6 +663,7 @@ const pageableResponse = await client.clientGrants.list({
663
663
  client_id: "client_id",
664
664
  allow_any_organization: true,
665
665
  subject_type: "client",
666
+ default_for: "third_party_clients",
666
667
  });
667
668
  for await (const item of pageableResponse) {
668
669
  console.log(item);
@@ -676,6 +677,7 @@ let page = await client.clientGrants.list({
676
677
  client_id: "client_id",
677
678
  allow_any_organization: true,
678
679
  subject_type: "client",
680
+ default_for: "third_party_clients",
679
681
  });
680
682
  while (page.hasNextPage()) {
681
683
  page = page.getNextPage();
@@ -3962,7 +3964,7 @@ await client.eventStreams.update("id");
3962
3964
 
3963
3965
  ```typescript
3964
3966
  await client.eventStreams.test("id", {
3965
- event_type: "user.created",
3967
+ event_type: "group.created",
3966
3968
  });
3967
3969
  ```
3968
3970
 
@@ -15929,6 +15931,172 @@ await client.connections.directoryProvisioning.getDefaultMapping("id");
15929
15931
  </dl>
15930
15932
  </details>
15931
15933
 
15934
+ <details><summary><code>client.connections.directoryProvisioning.<a href="/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts">listSynchronizedGroups</a>(id, { ...params }) -> core.Page&lt;Management.SynchronizedGroupPayload, Management.ListSynchronizedGroupsResponseContent&gt;</code></summary>
15935
+ <dl>
15936
+ <dd>
15937
+
15938
+ #### 📝 Description
15939
+
15940
+ <dl>
15941
+ <dd>
15942
+
15943
+ <dl>
15944
+ <dd>
15945
+
15946
+ Retrieve the configured synchronized groups for a connection directory provisioning configuration.
15947
+
15948
+ </dd>
15949
+ </dl>
15950
+ </dd>
15951
+ </dl>
15952
+
15953
+ #### 🔌 Usage
15954
+
15955
+ <dl>
15956
+ <dd>
15957
+
15958
+ <dl>
15959
+ <dd>
15960
+
15961
+ ```typescript
15962
+ const pageableResponse = await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
15963
+ from: "from",
15964
+ take: 1,
15965
+ });
15966
+ for await (const item of pageableResponse) {
15967
+ console.log(item);
15968
+ }
15969
+
15970
+ // Or you can manually iterate page-by-page
15971
+ let page = await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
15972
+ from: "from",
15973
+ take: 1,
15974
+ });
15975
+ while (page.hasNextPage()) {
15976
+ page = page.getNextPage();
15977
+ }
15978
+
15979
+ // You can also access the underlying response
15980
+ const response = page.response;
15981
+ ```
15982
+
15983
+ </dd>
15984
+ </dl>
15985
+ </dd>
15986
+ </dl>
15987
+
15988
+ #### ⚙️ Parameters
15989
+
15990
+ <dl>
15991
+ <dd>
15992
+
15993
+ <dl>
15994
+ <dd>
15995
+
15996
+ **id:** `string` — The id of the connection to list synchronized groups for.
15997
+
15998
+ </dd>
15999
+ </dl>
16000
+
16001
+ <dl>
16002
+ <dd>
16003
+
16004
+ **request:** `Management.ListSynchronizedGroupsRequestParameters`
16005
+
16006
+ </dd>
16007
+ </dl>
16008
+
16009
+ <dl>
16010
+ <dd>
16011
+
16012
+ **requestOptions:** `DirectoryProvisioningClient.RequestOptions`
16013
+
16014
+ </dd>
16015
+ </dl>
16016
+ </dd>
16017
+ </dl>
16018
+
16019
+ </dd>
16020
+ </dl>
16021
+ </details>
16022
+
16023
+ <details><summary><code>client.connections.directoryProvisioning.<a href="/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts">set</a>(id, { ...params }) -> void</code></summary>
16024
+ <dl>
16025
+ <dd>
16026
+
16027
+ #### 📝 Description
16028
+
16029
+ <dl>
16030
+ <dd>
16031
+
16032
+ <dl>
16033
+ <dd>
16034
+
16035
+ Create or replace the selected groups for a connection directory provisioning configuration.
16036
+
16037
+ </dd>
16038
+ </dl>
16039
+ </dd>
16040
+ </dl>
16041
+
16042
+ #### 🔌 Usage
16043
+
16044
+ <dl>
16045
+ <dd>
16046
+
16047
+ <dl>
16048
+ <dd>
16049
+
16050
+ ```typescript
16051
+ await client.connections.directoryProvisioning.set("id", {
16052
+ groups: [
16053
+ {
16054
+ id: "id",
16055
+ },
16056
+ ],
16057
+ });
16058
+ ```
16059
+
16060
+ </dd>
16061
+ </dl>
16062
+ </dd>
16063
+ </dl>
16064
+
16065
+ #### ⚙️ Parameters
16066
+
16067
+ <dl>
16068
+ <dd>
16069
+
16070
+ <dl>
16071
+ <dd>
16072
+
16073
+ **id:** `string` — The id of the connection to create or replace synchronized groups for
16074
+
16075
+ </dd>
16076
+ </dl>
16077
+
16078
+ <dl>
16079
+ <dd>
16080
+
16081
+ **request:** `Management.ReplaceSynchronizedGroupsRequestContent`
16082
+
16083
+ </dd>
16084
+ </dl>
16085
+
16086
+ <dl>
16087
+ <dd>
16088
+
16089
+ **requestOptions:** `DirectoryProvisioningClient.RequestOptions`
16090
+
16091
+ </dd>
16092
+ </dl>
16093
+ </dd>
16094
+ </dl>
16095
+
16096
+ </dd>
16097
+ </dl>
16098
+ </details>
16099
+
15932
16100
  ## Connections ScimConfiguration
15933
16101
 
15934
16102
  <details><summary><code>client.connections.scimConfiguration.<a href="/src/management/api/resources/connections/resources/scimConfiguration/client/Client.ts">list</a>({ ...params }) -> core.Page&lt;Management.ScimConfiguration, Management.ListScimConfigurationsResponseContent&gt;</code></summary>