auth0 6.4.0 → 7.1.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/README.md +20 -15
- package/dist/cjs/index.d.ts +0 -2
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/lib/errors.d.ts +0 -18
- package/dist/cjs/lib/errors.js +1 -25
- package/dist/cjs/lib/middleware/auth0-client-telemetry.d.ts +3 -7
- package/dist/cjs/lib/middleware/auth0-client-telemetry.js +1 -25
- package/dist/cjs/lib/models.d.ts +0 -24
- package/dist/cjs/lib/models.js +0 -53
- package/dist/cjs/management/Client.d.ts +5 -5
- package/dist/cjs/management/Client.js +28 -28
- package/dist/cjs/management/api/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/management/api/errors/GatewayTimeoutError.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 +112 -88
- package/dist/cjs/management/api/resources/experimentation/client/Client.d.ts +12 -0
- package/dist/cjs/management/api/resources/experimentation/client/Client.js +16 -0
- package/dist/cjs/management/api/resources/experimentation/exports.d.ts +3 -0
- package/dist/cjs/management/api/resources/experimentation/exports.js +22 -0
- package/dist/cjs/management/api/resources/experimentation/index.d.ts +2 -0
- package/dist/cjs/management/api/resources/experimentation/index.js +18 -0
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts +34 -0
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js +131 -0
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/index.js +2 -0
- package/dist/cjs/management/api/resources/experimentation/resources/experiments/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/exports.js +2 -2
- package/dist/cjs/management/api/resources/experimentation/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/experimentation/resources/index.js +37 -0
- package/dist/cjs/management/api/resources/guardian/client/Client.d.ts +40 -1
- package/dist/cjs/management/api/resources/guardian/client/Client.js +172 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +11 -6
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/Client.d.ts +46 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/Client.js +181 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/index.js +2 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/exports.js +21 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/index.d.ts +1 -0
- package/dist/cjs/{lib → management/api/resources/guardian/resources/factors/resources/email}/index.js +1 -2
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.ts +33 -0
- package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +122 -0
- package/dist/cjs/management/api/resources/index.d.ts +1 -1
- package/dist/cjs/management/api/resources/index.js +2 -2
- package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +36 -0
- package/dist/cjs/management/api/resources/organizations/client/Client.js +104 -0
- package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +29 -0
- package/dist/cjs/management/api/resources/resourceServers/client/Client.js +103 -0
- package/dist/cjs/management/api/types/types.d.ts +226 -51
- package/dist/cjs/management/api/types/types.js +37 -36
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/cjs/management/wrapper/ManagementClient.d.ts +9 -2
- package/dist/cjs/management/wrapper/ManagementClient.js +0 -1
- package/dist/cjs/management/wrapper/token-provider.d.ts +4 -2
- package/dist/cjs/management/wrapper/token-provider.js +142 -11
- package/dist/cjs/utils.d.ts +0 -18
- package/dist/cjs/utils.js +1 -32
- package/dist/esm/index.d.mts +0 -2
- package/dist/esm/index.mjs +0 -2
- package/dist/esm/lib/errors.d.mts +0 -18
- package/dist/esm/lib/errors.mjs +0 -22
- package/dist/esm/lib/middleware/auth0-client-telemetry.d.mts +3 -7
- package/dist/esm/lib/middleware/auth0-client-telemetry.mjs +1 -25
- package/dist/esm/lib/models.d.mts +0 -24
- package/dist/esm/lib/models.mjs +1 -49
- package/dist/esm/management/Client.d.mts +5 -5
- package/dist/esm/management/Client.mjs +7 -7
- package/dist/esm/management/api/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/management/api/errors/GatewayTimeoutError.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 +112 -88
- package/dist/esm/management/api/resources/experimentation/client/Client.d.mts +12 -0
- package/dist/esm/management/api/resources/experimentation/client/Client.mjs +12 -0
- package/dist/esm/management/api/resources/experimentation/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/experimentation/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/experimentation/exports.d.mts +3 -0
- package/dist/esm/management/api/resources/experimentation/exports.mjs +4 -0
- package/dist/esm/management/api/resources/experimentation/index.d.mts +2 -0
- package/dist/esm/management/api/resources/experimentation/index.mjs +2 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.d.mts +34 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.mjs +94 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/experimentation/resources/experiments/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/exports.mjs +1 -1
- package/dist/esm/management/api/resources/experimentation/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/experimentation/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/guardian/client/Client.d.mts +40 -1
- package/dist/esm/management/api/resources/guardian/client/Client.mjs +139 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/Client.d.mts +46 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/Client.mjs +144 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/exports.mjs +3 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/index.d.mts +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/index.mjs +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.mts +33 -0
- package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +122 -0
- package/dist/esm/management/api/resources/index.d.mts +1 -1
- package/dist/esm/management/api/resources/index.mjs +1 -1
- package/dist/esm/management/api/resources/organizations/client/Client.d.mts +36 -0
- package/dist/esm/management/api/resources/organizations/client/Client.mjs +104 -0
- package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +29 -0
- package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +103 -0
- package/dist/esm/management/api/types/types.d.mts +226 -51
- package/dist/esm/management/api/types/types.mjs +34 -33
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/dist/esm/management/wrapper/ManagementClient.d.mts +9 -2
- package/dist/esm/management/wrapper/ManagementClient.mjs +0 -1
- package/dist/esm/management/wrapper/token-provider.d.mts +4 -2
- package/dist/esm/management/wrapper/token-provider.mjs +142 -11
- package/dist/esm/utils.d.mts +0 -18
- package/dist/esm/utils.mjs +0 -30
- package/package.json +45 -23
- package/reference.md +654 -389
- package/dist/cjs/auth/backchannel.d.ts +0 -158
- package/dist/cjs/auth/backchannel.js +0 -135
- package/dist/cjs/auth/base-auth-api.d.ts +0 -41
- package/dist/cjs/auth/base-auth-api.js +0 -109
- package/dist/cjs/auth/client-authentication.d.ts +0 -27
- package/dist/cjs/auth/client-authentication.js +0 -82
- package/dist/cjs/auth/database.d.ts +0 -157
- package/dist/cjs/auth/database.js +0 -94
- package/dist/cjs/auth/id-token-validator.d.ts +0 -18
- package/dist/cjs/auth/id-token-validator.js +0 -158
- package/dist/cjs/auth/index.d.ts +0 -65
- package/dist/cjs/auth/index.js +0 -80
- package/dist/cjs/auth/oauth.d.ts +0 -462
- package/dist/cjs/auth/oauth.js +0 -280
- package/dist/cjs/auth/passwordless.d.ts +0 -165
- package/dist/cjs/auth/passwordless.js +0 -173
- package/dist/cjs/auth/tokenExchange.d.ts +0 -166
- package/dist/cjs/auth/tokenExchange.js +0 -74
- package/dist/cjs/lib/index.d.ts +0 -3
- package/dist/cjs/lib/runtime.d.ts +0 -61
- package/dist/cjs/lib/runtime.js +0 -222
- package/dist/cjs/management/api/resources/organizationTemplates/client/Client.d.ts +0 -106
- package/dist/cjs/management/api/resources/organizationTemplates/client/Client.js +0 -411
- package/dist/cjs/management/api/resources/organizationTemplates/exports.d.ts +0 -2
- package/dist/cjs/userinfo/index.d.ts +0 -87
- package/dist/cjs/userinfo/index.js +0 -104
- package/dist/esm/auth/backchannel.d.mts +0 -158
- package/dist/esm/auth/backchannel.mjs +0 -131
- package/dist/esm/auth/base-auth-api.d.mts +0 -41
- package/dist/esm/auth/base-auth-api.mjs +0 -103
- package/dist/esm/auth/client-authentication.d.mts +0 -27
- package/dist/esm/auth/client-authentication.mjs +0 -45
- package/dist/esm/auth/database.d.mts +0 -157
- package/dist/esm/auth/database.mjs +0 -90
- package/dist/esm/auth/id-token-validator.d.mts +0 -18
- package/dist/esm/auth/id-token-validator.mjs +0 -120
- package/dist/esm/auth/index.d.mts +0 -65
- package/dist/esm/auth/index.mjs +0 -60
- package/dist/esm/auth/oauth.d.mts +0 -462
- package/dist/esm/auth/oauth.mjs +0 -276
- package/dist/esm/auth/passwordless.d.mts +0 -165
- package/dist/esm/auth/passwordless.mjs +0 -169
- package/dist/esm/auth/tokenExchange.d.mts +0 -166
- package/dist/esm/auth/tokenExchange.mjs +0 -70
- package/dist/esm/lib/index.d.mts +0 -3
- package/dist/esm/lib/index.mjs +0 -2
- package/dist/esm/lib/runtime.d.mts +0 -61
- package/dist/esm/lib/runtime.mjs +0 -201
- package/dist/esm/management/api/resources/organizationTemplates/client/Client.d.mts +0 -106
- package/dist/esm/management/api/resources/organizationTemplates/client/Client.mjs +0 -374
- package/dist/esm/management/api/resources/organizationTemplates/exports.d.mts +0 -2
- package/dist/esm/userinfo/index.d.mts +0 -87
- package/dist/esm/userinfo/index.mjs +0 -98
- /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation}/client/index.d.ts +0 -0
- /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation}/client/index.js +0 -0
- /package/dist/{esm/management/api/resources/organizationTemplates/client/index.d.mts → cjs/management/api/resources/experimentation/resources/experiments/client/index.d.ts} +0 -0
- /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.d.ts +0 -0
- /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.js +0 -0
- /package/dist/{esm/management/api/resources/organizationTemplates/client/index.mjs → cjs/management/api/resources/guardian/resources/factors/resources/email/client/index.d.ts} +0 -0
- /package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.d.mts +0 -0
- /package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.mjs +0 -0
|
@@ -340,6 +340,7 @@ export interface CreateClientRequestContent {
|
|
|
340
340
|
/** The identifier of the resource server that this client is linked to. */
|
|
341
341
|
resource_server_identifier?: string;
|
|
342
342
|
identity_assertion_authorization_grant?: Management.CreateIdentityAssertionAuthorizationGrant;
|
|
343
|
+
anonymous_sessions?: Management.CreateAnonymousSessions;
|
|
343
344
|
third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
|
|
344
345
|
redirection_policy?: Management.ClientRedirectionPolicyEnum;
|
|
345
346
|
express_configuration?: Management.ExpressConfiguration;
|
|
@@ -438,6 +439,7 @@ export interface UpdateClientRequestContent {
|
|
|
438
439
|
custom_login_page_preview?: string;
|
|
439
440
|
token_quota?: Management.UpdateTokenQuota | null;
|
|
440
441
|
identity_assertion_authorization_grant?: Management.UpdateIdentityAssertionAuthorizationGrant | null;
|
|
442
|
+
anonymous_sessions?: Management.UpdateAnonymousSessions | null;
|
|
441
443
|
/** Form template for WS-Federation protocol */
|
|
442
444
|
form_template?: string;
|
|
443
445
|
addons?: Management.ClientAddons;
|
|
@@ -699,7 +701,7 @@ export interface ListDeviceCredentialsRequestParameters {
|
|
|
699
701
|
user_id?: string | null;
|
|
700
702
|
/** client_id of the devices to retrieve. */
|
|
701
703
|
client_id?: string | null;
|
|
702
|
-
/** Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`.
|
|
704
|
+
/** Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. */
|
|
703
705
|
type?: Management.DeviceCredentialTypeEnum | null;
|
|
704
706
|
}
|
|
705
707
|
/**
|
|
@@ -1024,6 +1026,25 @@ export interface ListGroupsRequestParameters {
|
|
|
1024
1026
|
/** Number of results per page. Defaults to 50. */
|
|
1025
1027
|
take?: number | null;
|
|
1026
1028
|
}
|
|
1029
|
+
/**
|
|
1030
|
+
* @example
|
|
1031
|
+
* {
|
|
1032
|
+
* display_remember_me_checkbox: true,
|
|
1033
|
+
* remember_me_default_value: true,
|
|
1034
|
+
* mfa_session_inactivity_timeout: 1,
|
|
1035
|
+
* mfa_session_overall_timeout: 1
|
|
1036
|
+
* }
|
|
1037
|
+
*/
|
|
1038
|
+
export interface SetGuardianSettingsRequestContent {
|
|
1039
|
+
/** Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. */
|
|
1040
|
+
display_remember_me_checkbox: boolean;
|
|
1041
|
+
/** Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. */
|
|
1042
|
+
remember_me_default_value: boolean;
|
|
1043
|
+
/** Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. */
|
|
1044
|
+
mfa_session_inactivity_timeout: number;
|
|
1045
|
+
/** Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. */
|
|
1046
|
+
mfa_session_overall_timeout: number;
|
|
1047
|
+
}
|
|
1027
1048
|
/**
|
|
1028
1049
|
* @example
|
|
1029
1050
|
* {
|
|
@@ -1204,93 +1225,6 @@ export interface UpdateNetworkAclRequestContent {
|
|
|
1204
1225
|
priority?: number;
|
|
1205
1226
|
rule?: Management.NetworkAclRule;
|
|
1206
1227
|
}
|
|
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
|
-
}
|
|
1294
1228
|
/**
|
|
1295
1229
|
* @example
|
|
1296
1230
|
* {
|
|
@@ -1333,6 +1267,28 @@ export interface CreateOrganizationRequestContent {
|
|
|
1333
1267
|
/** Whether app entitlement is active for this organization. */
|
|
1334
1268
|
is_app_entitlement_active?: boolean;
|
|
1335
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @example
|
|
1272
|
+
* {
|
|
1273
|
+
* q: "q",
|
|
1274
|
+
* parser: "scim",
|
|
1275
|
+
* take: 1,
|
|
1276
|
+
* from: "from",
|
|
1277
|
+
* sort: "name"
|
|
1278
|
+
* }
|
|
1279
|
+
*/
|
|
1280
|
+
export interface SearchOrganizationsRequestParameters {
|
|
1281
|
+
/** Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or. <br /><br /><b>Supported Fields</b>:<ul><li><i>id</i> - Organization ID (case-sensitive, exact match)</li><li><i>name</i> - Organization name (supports contains, starts-with, ends-with operators; sortable)</li><li><i>display_name</i> - Organization display name (supports contains, starts-with, ends-with operators; sortable)</li><li><i>created_at</i> - Creation timestamp (supports date range operators; sortable)</li><li><i>metadata.{key}</i> - Filter by organization metadata key-value pairs</li></ul>Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. */
|
|
1282
|
+
q?: string | null;
|
|
1283
|
+
/** Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). */
|
|
1284
|
+
parser?: Management.SearchParserEnum | null;
|
|
1285
|
+
/** Maximum number of results to return per page (1-100). Defaults to 50. */
|
|
1286
|
+
take?: number | null;
|
|
1287
|
+
/** Cursor for the next page of results. Use the value from the next field in the previous response. */
|
|
1288
|
+
from?: string | null;
|
|
1289
|
+
/** Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. */
|
|
1290
|
+
sort?: Management.OrganizationSortFieldEnum | null;
|
|
1291
|
+
}
|
|
1336
1292
|
/**
|
|
1337
1293
|
* @example
|
|
1338
1294
|
* {}
|
|
@@ -1504,6 +1460,8 @@ export interface CreateResourceServerRequestContent {
|
|
|
1504
1460
|
allow_online_access_with_ephemeral_sessions?: boolean;
|
|
1505
1461
|
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
|
|
1506
1462
|
token_lifetime?: number;
|
|
1463
|
+
/** Expiration value (in seconds) for anonymous-session access tokens issued for this API. */
|
|
1464
|
+
token_lifetime_for_anonymous_access_tokens?: number | null;
|
|
1507
1465
|
token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
|
|
1508
1466
|
/** Whether to skip user consent for applications flagged as first party (true) or not (false). */
|
|
1509
1467
|
skip_consent_for_verifiable_first_party_clients?: boolean;
|
|
@@ -1516,6 +1474,34 @@ export interface CreateResourceServerRequestContent {
|
|
|
1516
1474
|
subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization;
|
|
1517
1475
|
authorization_policy?: Management.ResourceServerAuthorizationPolicy | null;
|
|
1518
1476
|
}
|
|
1477
|
+
/**
|
|
1478
|
+
* @example
|
|
1479
|
+
* {
|
|
1480
|
+
* q: "q",
|
|
1481
|
+
* parser: "scim",
|
|
1482
|
+
* fields: "fields",
|
|
1483
|
+
* include_fields: true,
|
|
1484
|
+
* take: 1,
|
|
1485
|
+
* from: "from",
|
|
1486
|
+
* sort: "identifier"
|
|
1487
|
+
* }
|
|
1488
|
+
*/
|
|
1489
|
+
export interface SearchResourceServersRequestParameters {
|
|
1490
|
+
/** Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or. <br /><br /><b>Supported Fields</b>:<ul><li><i>id</i> - Filter by resource server ID</li><li><i>identifier</i> - Filter by resource server identifier</li><li><i>name</i> - Filter by resource server name</li><li><i>updated_at</i> - Filter by last update date</li></ul>Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. */
|
|
1491
|
+
q?: string | null;
|
|
1492
|
+
/** Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). */
|
|
1493
|
+
parser?: Management.SearchParserEnum | null;
|
|
1494
|
+
/** Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. */
|
|
1495
|
+
fields?: string | null;
|
|
1496
|
+
/** Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. */
|
|
1497
|
+
include_fields?: boolean | null;
|
|
1498
|
+
/** Maximum number of results to return per page (1-100). Defaults to 50. */
|
|
1499
|
+
take?: number | null;
|
|
1500
|
+
/** Cursor for the next page of results. Use the value from the next field in the previous response. */
|
|
1501
|
+
from?: string | null;
|
|
1502
|
+
/** Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. */
|
|
1503
|
+
sort?: Management.ResourceServerSortFieldEnum | null;
|
|
1504
|
+
}
|
|
1519
1505
|
/**
|
|
1520
1506
|
* @example
|
|
1521
1507
|
* {
|
|
@@ -1548,6 +1534,8 @@ export interface UpdateResourceServerRequestContent {
|
|
|
1548
1534
|
allow_online_access_with_ephemeral_sessions?: boolean;
|
|
1549
1535
|
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
|
|
1550
1536
|
token_lifetime?: number;
|
|
1537
|
+
/** Expiration value (in seconds) for anonymous-session access tokens issued for this API. */
|
|
1538
|
+
token_lifetime_for_anonymous_access_tokens?: number | null;
|
|
1551
1539
|
token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
|
|
1552
1540
|
/** Whether authorization policies are enforced (true) or not enforced (false). */
|
|
1553
1541
|
enforce_policies?: boolean;
|
|
@@ -2834,6 +2822,16 @@ export interface CreateEventStreamRedeliveryRequestContent {
|
|
|
2834
2822
|
/** Filter by event type */
|
|
2835
2823
|
event_types?: Management.EventStreamEventTypeEnum[];
|
|
2836
2824
|
}
|
|
2825
|
+
/**
|
|
2826
|
+
* @example
|
|
2827
|
+
* {
|
|
2828
|
+
* target_level: 1
|
|
2829
|
+
* }
|
|
2830
|
+
*/
|
|
2831
|
+
export interface AdvanceRampRequestContent {
|
|
2832
|
+
/** The target percentage level from the experiment schedule. Must be the immediate next level. */
|
|
2833
|
+
target_level: number;
|
|
2834
|
+
}
|
|
2837
2835
|
/**
|
|
2838
2836
|
* @example
|
|
2839
2837
|
* {
|
|
@@ -2966,6 +2964,19 @@ export interface SetGuardianFactorRequestContent {
|
|
|
2966
2964
|
/** Whether this factor is enabled (true) or disabled (false). */
|
|
2967
2965
|
enabled: boolean;
|
|
2968
2966
|
}
|
|
2967
|
+
/**
|
|
2968
|
+
* @example
|
|
2969
|
+
* {
|
|
2970
|
+
* otp_length: 1,
|
|
2971
|
+
* otp_expiration_time: 1
|
|
2972
|
+
* }
|
|
2973
|
+
*/
|
|
2974
|
+
export interface SetEmailFactorSettingsRequestContent {
|
|
2975
|
+
/** The length of the OTP code. */
|
|
2976
|
+
otp_length: number;
|
|
2977
|
+
/** The OTP expiration time in seconds. */
|
|
2978
|
+
otp_expiration_time: number;
|
|
2979
|
+
}
|
|
2969
2980
|
/**
|
|
2970
2981
|
* @example
|
|
2971
2982
|
* {
|
|
@@ -2999,6 +3010,19 @@ export interface SetGuardianFactorsProviderPhoneTwilioRequestContent {
|
|
|
2999
3010
|
export interface SetGuardianFactorsProviderPhoneRequestContent {
|
|
3000
3011
|
provider: Management.GuardianFactorsProviderSmsProviderEnum;
|
|
3001
3012
|
}
|
|
3013
|
+
/**
|
|
3014
|
+
* @example
|
|
3015
|
+
* {
|
|
3016
|
+
* otp_length: 1,
|
|
3017
|
+
* otp_expiration_time: 1
|
|
3018
|
+
* }
|
|
3019
|
+
*/
|
|
3020
|
+
export interface SetPhoneFactorSettingsRequestContent {
|
|
3021
|
+
/** The length of the OTP code. */
|
|
3022
|
+
otp_length: number;
|
|
3023
|
+
/** The OTP expiration time in seconds. */
|
|
3024
|
+
otp_expiration_time: number;
|
|
3025
|
+
}
|
|
3002
3026
|
/**
|
|
3003
3027
|
* @example
|
|
3004
3028
|
* {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import { ExperimentsClient } from "../resources/experiments/client/Client.js";
|
|
4
|
+
export declare namespace ExperimentationClient {
|
|
5
|
+
type Options = BaseClientOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare class ExperimentationClient {
|
|
8
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ExperimentationClient.Options>;
|
|
9
|
+
protected _experiments: ExperimentsClient | undefined;
|
|
10
|
+
constructor(options: ExperimentationClient.Options);
|
|
11
|
+
get experiments(): ExperimentsClient;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExperimentationClient = void 0;
|
|
5
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
6
|
+
const Client_js_1 = require("../resources/experiments/client/Client.js");
|
|
7
|
+
class ExperimentationClient {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
10
|
+
}
|
|
11
|
+
get experiments() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._experiments) !== null && _a !== void 0 ? _a : (this._experiments = new Client_js_1.ExperimentsClient(this._options)));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ExperimentationClient = ExperimentationClient;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ExperimentationClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ExperimentationClient", { enumerable: true, get: function () { return Client_js_1.ExperimentationClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../../../index.js";
|
|
5
|
+
export declare namespace ExperimentsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ExperimentsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ExperimentsClient.Options>;
|
|
12
|
+
constructor(options: ExperimentsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} id - The ID of the experiment to advance.
|
|
17
|
+
* @param {Management.AdvanceRampRequestContent} request
|
|
18
|
+
* @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link Management.BadRequestError}
|
|
21
|
+
* @throws {@link Management.UnauthorizedError}
|
|
22
|
+
* @throws {@link Management.ForbiddenError}
|
|
23
|
+
* @throws {@link Management.NotFoundError}
|
|
24
|
+
* @throws {@link Management.ConflictError}
|
|
25
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.experimentation.experiments.advanceRamp("id", {
|
|
29
|
+
* target_level: 1
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
advanceRamp(id: string, request: Management.AdvanceRampRequestContent, requestOptions?: ExperimentsClient.RequestOptions): core.HttpResponsePromise<Management.AdvanceRampResponseContent>;
|
|
33
|
+
private __advanceRamp;
|
|
34
|
+
}
|
package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ExperimentsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
49
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const Management = __importStar(require("../../../../../index.js"));
|
|
54
|
+
class ExperimentsClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} id - The ID of the experiment to advance.
|
|
62
|
+
* @param {Management.AdvanceRampRequestContent} request
|
|
63
|
+
* @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Management.BadRequestError}
|
|
66
|
+
* @throws {@link Management.UnauthorizedError}
|
|
67
|
+
* @throws {@link Management.ForbiddenError}
|
|
68
|
+
* @throws {@link Management.NotFoundError}
|
|
69
|
+
* @throws {@link Management.ConflictError}
|
|
70
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.experimentation.experiments.advanceRamp("id", {
|
|
74
|
+
* target_level: 1
|
|
75
|
+
* })
|
|
76
|
+
*/
|
|
77
|
+
advanceRamp(id, request, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__advanceRamp(id, request, requestOptions));
|
|
79
|
+
}
|
|
80
|
+
__advanceRamp(id, request, requestOptions) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
86
|
+
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, `experimentation/experiments/${core.url.encodePathParam(id)}/advance-ramp`),
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers: _headers,
|
|
89
|
+
contentType: "application/json",
|
|
90
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
91
|
+
requestType: "json",
|
|
92
|
+
body: request,
|
|
93
|
+
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,
|
|
94
|
+
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,
|
|
95
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
96
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
97
|
+
logging: this._options.logging,
|
|
98
|
+
});
|
|
99
|
+
if (_response.ok) {
|
|
100
|
+
return {
|
|
101
|
+
data: _response.body,
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
if (_response.error.reason === "status-code") {
|
|
106
|
+
switch (_response.error.statusCode) {
|
|
107
|
+
case 400:
|
|
108
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 401:
|
|
110
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 403:
|
|
112
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 404:
|
|
114
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 409:
|
|
116
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 429:
|
|
118
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
119
|
+
default:
|
|
120
|
+
throw new errors.ManagementError({
|
|
121
|
+
statusCode: _response.error.statusCode,
|
|
122
|
+
body: _response.error.body,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/experimentation/experiments/{id}/advance-ramp");
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.ExperimentsClient = ExperimentsClient;
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.ExperimentsClient = void 0;
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "ExperimentsClient", { enumerable: true, get: function () { return Client_js_1.ExperimentsClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as experiments from "./experiments/index.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.experiments = void 0;
|
|
37
|
+
exports.experiments = __importStar(require("./experiments/index.js"));
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../index.js";
|
|
3
5
|
import { EnrollmentsClient } from "../resources/enrollments/client/Client.js";
|
|
4
6
|
import { FactorsClient } from "../resources/factors/client/Client.js";
|
|
5
7
|
import { PoliciesClient } from "../resources/policies/client/Client.js";
|
|
6
8
|
export declare namespace GuardianClient {
|
|
7
9
|
type Options = BaseClientOptions;
|
|
10
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
11
|
+
}
|
|
8
12
|
}
|
|
9
13
|
export declare class GuardianClient {
|
|
10
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<GuardianClient.Options>;
|
|
@@ -15,4 +19,39 @@ export declare class GuardianClient {
|
|
|
15
19
|
get enrollments(): EnrollmentsClient;
|
|
16
20
|
get factors(): FactorsClient;
|
|
17
21
|
get policies(): PoliciesClient;
|
|
22
|
+
/**
|
|
23
|
+
* TODO: Link this endpoint to relevant documentation when available.
|
|
24
|
+
*
|
|
25
|
+
* @param {GuardianClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link Management.UnauthorizedError}
|
|
28
|
+
* @throws {@link Management.ForbiddenError}
|
|
29
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.guardian.get()
|
|
33
|
+
*/
|
|
34
|
+
get(requestOptions?: GuardianClient.RequestOptions): core.HttpResponsePromise<Management.GetGuardianSettingsResponseContent>;
|
|
35
|
+
private __get;
|
|
36
|
+
/**
|
|
37
|
+
* Update a tenant's guardian settings such as Remember Me
|
|
38
|
+
*
|
|
39
|
+
* @param {Management.SetGuardianSettingsRequestContent} request
|
|
40
|
+
* @param {GuardianClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link Management.BadRequestError}
|
|
43
|
+
* @throws {@link Management.UnauthorizedError}
|
|
44
|
+
* @throws {@link Management.ForbiddenError}
|
|
45
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.guardian.set({
|
|
49
|
+
* display_remember_me_checkbox: true,
|
|
50
|
+
* remember_me_default_value: true,
|
|
51
|
+
* mfa_session_inactivity_timeout: 1,
|
|
52
|
+
* mfa_session_overall_timeout: 1
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
set(request: Management.SetGuardianSettingsRequestContent, requestOptions?: GuardianClient.RequestOptions): core.HttpResponsePromise<Management.SetGuardianSettingsResponseContent>;
|
|
56
|
+
private __set;
|
|
18
57
|
}
|