auth0 6.0.0.beta.4 → 6.0.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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +1 -1
- data/.fern/replay.lock +7 -1
- data/.version +1 -1
- data/CHANGELOG.md +57 -0
- data/README.md +4 -1
- data/custom.gemspec.rb +1 -1
- data/examples/ruby-api/Gemfile.lock +3 -3
- data/lib/auth0/agents/client.rb +201 -0
- data/lib/auth0/agents/types/create_agent_request_content.rb +17 -0
- data/lib/auth0/agents/types/list_agents_request_parameters.rb +13 -0
- data/lib/auth0/agents/types/patch_agent_request_parameters.rb +15 -0
- data/lib/auth0/client.rb +5 -0
- data/lib/auth0/client_grants/client.rb +2 -0
- data/lib/auth0/client_grants/organizations/client.rb +2 -0
- data/lib/auth0/client_grants/organizations/types/list_client_grant_organizations_request_parameters.rb +2 -0
- data/lib/auth0/client_grants/types/list_client_grants_request_parameters.rb +2 -0
- data/lib/auth0/connections/client.rb +2 -0
- data/lib/auth0/connections/directory_provisioning/client.rb +76 -0
- data/lib/auth0/connections/directory_provisioning/types/add_synchronized_groups_request_content.rb +15 -0
- data/lib/auth0/connections/directory_provisioning/types/delete_synchronized_groups_request_content.rb +15 -0
- data/lib/auth0/connections/directory_provisioning/types/list_synchronized_groups_request_parameters.rb +2 -0
- data/lib/auth0/connections/types/list_connections_query_parameters.rb +2 -0
- data/lib/auth0/event_streams/deliveries/client.rb +27 -17
- data/lib/auth0/flows/executions/client.rb +2 -0
- data/lib/auth0/flows/executions/types/list_flow_executions_request_parameters.rb +2 -0
- data/lib/auth0/groups/client.rb +2 -0
- data/lib/auth0/groups/types/list_groups_request_parameters.rb +2 -0
- data/lib/auth0/mixins/token_management.rb +15 -11
- data/lib/auth0/organizations/client.rb +9 -0
- data/lib/auth0/organizations/clients/client.rb +223 -0
- data/lib/auth0/organizations/clients/types/create_organization_clients_request_content.rb +15 -0
- data/lib/auth0/organizations/clients/types/delete_organization_clients_request_content.rb +15 -0
- data/lib/auth0/organizations/clients/types/list_organization_clients_request_parameters.rb +17 -0
- data/lib/auth0/organizations/clients/types/update_organization_client_request_content.rb +17 -0
- data/lib/auth0/organizations/members/client.rb +5 -1
- data/lib/auth0/organizations/members/roles/client.rb +3 -0
- data/lib/auth0/organizations/members/types/list_organization_members_request_parameters.rb +2 -0
- data/lib/auth0/organizations/roles/client.rb +5 -0
- data/lib/auth0/organizations/roles/groups/client.rb +68 -0
- data/lib/auth0/organizations/roles/groups/types/list_organization_role_groups_request_parameters.rb +21 -0
- data/lib/auth0/organizations/roles/members/client.rb +6 -0
- data/lib/auth0/organizations/types/create_organization_request_content.rb +2 -0
- data/lib/auth0/organizations/types/list_organizations_request_parameters.rb +4 -0
- data/lib/auth0/organizations/types/update_organization_request_content.rb +2 -0
- data/lib/auth0/roles/client.rb +4 -0
- data/lib/auth0/roles/types/create_role_request_content.rb +4 -0
- data/lib/auth0/roles/types/list_roles_request_parameters.rb +4 -0
- data/lib/auth0/roles/users/client.rb +5 -0
- data/lib/auth0/roles/users/types/list_role_users_request_parameters.rb +2 -0
- data/lib/auth0/types/acul_context_enum.rb +1 -0
- data/lib/auth0/types/agent_metadata.rb +23 -0
- data/lib/auth0/types/agent_response_content.rb +19 -0
- data/lib/auth0/types/conflict_schema.rb +14 -0
- data/lib/auth0/types/conflict_schema_error.rb +11 -0
- data/lib/auth0/types/connection_connected_accounts_purpose.rb +2 -0
- data/lib/auth0/types/connection_connected_accounts_purpose_xaa.rb +2 -0
- data/lib/auth0/types/create_organization_client_request_item.rb +11 -0
- data/lib/auth0/types/create_organization_clients_response_content.rb +23 -0
- data/lib/auth0/types/create_organization_response_content.rb +4 -0
- data/lib/auth0/types/create_role_response_content.rb +4 -0
- data/lib/auth0/types/event_stream_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_data.rb +23 -0
- data/lib/auth0/types/event_stream_delivery_attempt.rb +2 -0
- data/lib/auth0/types/get_organization_by_name_response_content.rb +4 -0
- data/lib/auth0/types/get_organization_client_response_content.rb +13 -0
- data/lib/auth0/types/get_organization_response_content.rb +4 -0
- data/lib/auth0/types/get_role_response_content.rb +4 -0
- data/lib/auth0/types/guardian_factor.rb +2 -0
- data/lib/auth0/types/guardian_factor_settings.rb +12 -0
- data/lib/auth0/types/list_agents_response_content.rb +11 -0
- data/lib/auth0/types/list_event_stream_deliveries_response_content.rb +11 -0
- data/lib/auth0/types/list_organization_clients_response_content.rb +11 -0
- data/lib/auth0/types/list_organization_role_groups_response_content.rb +12 -0
- data/lib/auth0/types/not_found_schema.rb +14 -0
- data/lib/auth0/types/not_found_schema_error.rb +11 -0
- data/lib/auth0/types/oauth_scope.rb +8 -0
- data/lib/auth0/types/organization.rb +4 -0
- data/lib/auth0/types/organization_client.rb +13 -0
- data/lib/auth0/types/organization_client_association.rb +11 -0
- data/lib/auth0/types/organization_client_metadata.rb +20 -0
- data/lib/auth0/types/organization_client_metadata_organization_usage_enum.rb +13 -0
- data/lib/auth0/types/role.rb +4 -0
- data/lib/auth0/types/role_group.rb +26 -0
- data/lib/auth0/types/role_type_enum.rb +12 -0
- data/lib/auth0/types/self_service_profile_sso_ticket_google_workspace_config.rb +2 -0
- data/lib/auth0/types/synchronized_group_payload.rb +6 -0
- data/lib/auth0/types/synchronized_group_selection_id.rb +9 -0
- data/lib/auth0/types/update_organization_client_response_content.rb +13 -0
- data/lib/auth0/types/update_organization_response_content.rb +4 -0
- data/lib/auth0/types/update_role_response_content.rb +4 -0
- data/lib/auth0/types/user_effective_permission_role_source_response_content.rb +4 -0
- data/lib/auth0/users/groups/client.rb +2 -0
- data/lib/auth0/users/groups/types/get_user_groups_request_parameters.rb +2 -0
- data/lib/auth0/users/permissions/client.rb +3 -0
- data/lib/auth0/users/refresh_token/client.rb +2 -0
- data/lib/auth0/users/refresh_token/types/list_refresh_tokens_request_parameters.rb +2 -0
- data/lib/auth0/users/roles/client.rb +3 -0
- data/lib/auth0/users/sessions/client.rb +2 -0
- data/lib/auth0/users/sessions/types/list_user_sessions_request_parameters.rb +2 -0
- data/lib/auth0/version.rb +1 -1
- data/lib/auth0.rb +38 -2
- data/v6_MIGRATION_GUIDE.md +1 -1
- data/wiremock/wiremock-mappings.json +592 -55
- metadata +46 -4
|
@@ -4,11 +4,15 @@ module Auth0
|
|
|
4
4
|
module Organizations
|
|
5
5
|
module Types
|
|
6
6
|
class ListOrganizationsRequestParameters < Internal::Types::Model
|
|
7
|
+
field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
|
+
|
|
7
9
|
field :from, -> { String }, optional: true, nullable: false
|
|
8
10
|
|
|
9
11
|
field :take, -> { Integer }, optional: true, nullable: false
|
|
10
12
|
|
|
11
13
|
field :sort, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :include_client_association_for, -> { String }, optional: true, nullable: false
|
|
12
16
|
end
|
|
13
17
|
end
|
|
14
18
|
end
|
|
@@ -17,6 +17,8 @@ module Auth0
|
|
|
17
17
|
field :token_quota, -> { Auth0::Types::UpdateTokenQuota }, optional: true, nullable: false
|
|
18
18
|
|
|
19
19
|
field :third_party_client_access, -> { Auth0::Types::OrganizationThirdPartyClientAccessEnum }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :is_app_entitlement_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
22
|
end
|
|
21
23
|
end
|
|
22
24
|
end
|
data/lib/auth0/roles/client.rb
CHANGED
|
@@ -26,6 +26,8 @@ module Auth0
|
|
|
26
26
|
# @option params [Integer, nil] :page
|
|
27
27
|
# @option params [Boolean, nil] :include_totals
|
|
28
28
|
# @option params [String, nil] :name_filter
|
|
29
|
+
# @option params [Auth0::Types::RoleTypeEnum, nil] :type
|
|
30
|
+
# @option params [String, nil] :owner_id
|
|
29
31
|
#
|
|
30
32
|
# @return [Auth0::Types::ListRolesOffsetPaginatedResponseContent]
|
|
31
33
|
def list(request_options: {}, **params)
|
|
@@ -35,6 +37,8 @@ module Auth0
|
|
|
35
37
|
query_params["page"] = params.fetch(:page, 0)
|
|
36
38
|
query_params["include_totals"] = params.fetch(:include_totals, true)
|
|
37
39
|
query_params["name_filter"] = params[:name_filter] if params.key?(:name_filter)
|
|
40
|
+
query_params["type"] = params[:type] if params.key?(:type)
|
|
41
|
+
query_params["owner_id"] = params[:owner_id] if params.key?(:owner_id)
|
|
38
42
|
|
|
39
43
|
Auth0::Internal::OffsetItemIterator.new(
|
|
40
44
|
initial_page: query_params["page"],
|
|
@@ -7,6 +7,10 @@ module Auth0
|
|
|
7
7
|
field :name, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :description, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
10
14
|
end
|
|
11
15
|
end
|
|
12
16
|
end
|
|
@@ -11,6 +11,10 @@ module Auth0
|
|
|
11
11
|
field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
12
|
|
|
13
13
|
field :name_filter, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
14
18
|
end
|
|
15
19
|
end
|
|
16
20
|
end
|
|
@@ -15,6 +15,9 @@ module Auth0
|
|
|
15
15
|
# Assigned to
|
|
16
16
|
# Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles).
|
|
17
17
|
#
|
|
18
|
+
# **Note**: Returns only users with direct role assignments. For groups assigned to this role, use `GET
|
|
19
|
+
# /api/v2/roles/{id}/groups`.
|
|
20
|
+
#
|
|
18
21
|
# This endpoint supports two types of pagination:
|
|
19
22
|
#
|
|
20
23
|
# - Offset pagination
|
|
@@ -41,6 +44,7 @@ module Auth0
|
|
|
41
44
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
42
45
|
# @option request_options [Integer] :timeout_in_seconds
|
|
43
46
|
# @option params [String] :id
|
|
47
|
+
# @option params [Boolean, nil] :include_totals
|
|
44
48
|
# @option params [String, nil] :from
|
|
45
49
|
# @option params [Integer, nil] :take
|
|
46
50
|
#
|
|
@@ -48,6 +52,7 @@ module Auth0
|
|
|
48
52
|
def list(request_options: {}, **params)
|
|
49
53
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
50
54
|
query_params = {}
|
|
55
|
+
query_params["include_totals"] = params.fetch(:include_totals, true)
|
|
51
56
|
query_params["from"] = params[:from] if params.key?(:from)
|
|
52
57
|
query_params["take"] = params.fetch(:take, 50)
|
|
53
58
|
|
|
@@ -7,6 +7,8 @@ module Auth0
|
|
|
7
7
|
class ListRoleUsersRequestParameters < Internal::Types::Model
|
|
8
8
|
field :id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
+
field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
|
|
10
12
|
field :from, -> { String }, optional: true, nullable: false
|
|
11
13
|
|
|
12
14
|
field :take, -> { Integer }, optional: true, nullable: false
|
|
@@ -7,6 +7,7 @@ module Auth0
|
|
|
7
7
|
|
|
8
8
|
BRANDING_SETTINGS = "branding.settings"
|
|
9
9
|
BRANDING_THEMES_DEFAULT = "branding.themes.default"
|
|
10
|
+
COUNTRY_CODES = "country_codes"
|
|
10
11
|
CLIENT_LOGO_URI = "client.logo_uri"
|
|
11
12
|
CLIENT_DESCRIPTION = "client.description"
|
|
12
13
|
ORGANIZATION_DISPLAY_NAME = "organization.display_name"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module AgentMetadata
|
|
6
|
+
# AgentMetadata is an alias for Hash
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class AgentResponseContent < Internal::Types::Model
|
|
6
|
+
field :agent_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :external_agent_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Conflict
|
|
6
|
+
class ConflictSchema < Internal::Types::Model
|
|
7
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode"
|
|
10
|
+
|
|
11
|
+
field :error, -> { Auth0::Types::ConflictSchemaError }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -7,6 +7,8 @@ module Auth0
|
|
|
7
7
|
field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :cross_app_access, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :allow_missing_user_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -7,6 +7,8 @@ module Auth0
|
|
|
7
7
|
field :cross_app_access, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
8
|
|
|
9
9
|
field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :allow_missing_user_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class CreateOrganizationClientRequestItem < Internal::Types::Model
|
|
6
|
+
field :client_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :use_for_member_access, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module CreateOrganizationClientsResponseContent
|
|
6
|
+
# CreateOrganizationClientsResponseContent is an alias for Array
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -17,6 +17,10 @@ module Auth0
|
|
|
17
17
|
|
|
18
18
|
field :third_party_client_access, -> { Auth0::Types::OrganizationThirdPartyClientAccessEnum }, optional: true, nullable: false
|
|
19
19
|
|
|
20
|
+
field :is_app_entitlement_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :client, -> { Auth0::Types::OrganizationClientAssociation }, optional: true, nullable: false
|
|
23
|
+
|
|
20
24
|
field :enabled_connections, -> { Internal::Types::Array[Auth0::Types::OrganizationEnabledConnection] }, optional: true, nullable: false
|
|
21
25
|
end
|
|
22
26
|
end
|
|
@@ -8,6 +8,10 @@ module Auth0
|
|
|
8
8
|
field :name, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
11
15
|
end
|
|
12
16
|
end
|
|
13
17
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module EventStreamCloudEventData
|
|
6
|
+
# EventStreamCloudEventData is an alias for Hash
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -16,6 +16,10 @@ module Auth0
|
|
|
16
16
|
field :token_quota, -> { Auth0::Types::TokenQuota }, optional: true, nullable: false
|
|
17
17
|
|
|
18
18
|
field :third_party_client_access, -> { Auth0::Types::OrganizationThirdPartyClientAccessEnum }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :is_app_entitlement_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :client, -> { Auth0::Types::OrganizationClientAssociation }, optional: true, nullable: false
|
|
19
23
|
end
|
|
20
24
|
end
|
|
21
25
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class GetOrganizationClientResponseContent < Internal::Types::Model
|
|
6
|
+
field :client_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :use_for_member_access, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :client, -> { Auth0::Types::OrganizationClientMetadata }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -16,6 +16,10 @@ module Auth0
|
|
|
16
16
|
field :token_quota, -> { Auth0::Types::TokenQuota }, optional: true, nullable: false
|
|
17
17
|
|
|
18
18
|
field :third_party_client_access, -> { Auth0::Types::OrganizationThirdPartyClientAccessEnum }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :is_app_entitlement_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :client, -> { Auth0::Types::OrganizationClientAssociation }, optional: true, nullable: false
|
|
19
23
|
end
|
|
20
24
|
end
|
|
21
25
|
end
|
|
@@ -8,6 +8,10 @@ module Auth0
|
|
|
8
8
|
field :name, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
11
15
|
end
|
|
12
16
|
end
|
|
13
17
|
end
|
|
@@ -8,6 +8,8 @@ module Auth0
|
|
|
8
8
|
field :trial_expired, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :name, -> { Auth0::Types::GuardianFactorNameEnum }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :settings, -> { Auth0::Types::GuardianFactorSettings }, optional: true, nullable: false
|
|
11
13
|
end
|
|
12
14
|
end
|
|
13
15
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Factor-specific settings. Only returned when include_settings=true.
|
|
6
|
+
class GuardianFactorSettings < Internal::Types::Model
|
|
7
|
+
field :otp_length, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :otp_expiration_time, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class ListAgentsResponseContent < Internal::Types::Model
|
|
6
|
+
field :agents, -> { Internal::Types::Array[Auth0::Types::AgentResponseContent] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :next_, -> { String }, optional: true, nullable: false, api_name: "next"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class ListEventStreamDeliveriesResponseContent < Internal::Types::Model
|
|
6
|
+
field :deliveries, -> { Internal::Types::Array[Auth0::Types::EventStreamDelivery] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :next_, -> { String }, optional: true, nullable: false, api_name: "next"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class ListOrganizationClientsResponseContent < Internal::Types::Model
|
|
6
|
+
field :clients, -> { Internal::Types::Array[Auth0::Types::OrganizationClient] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :next_, -> { String }, optional: true, nullable: false, api_name: "next"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Checkpoint paginated list of groups assigned to a role within an organization.
|
|
6
|
+
class ListOrganizationRoleGroupsResponseContent < Internal::Types::Model
|
|
7
|
+
field :groups, -> { Internal::Types::Array[Auth0::Types::RoleGroup] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :next_, -> { String }, optional: true, nullable: false, api_name: "next"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Not Found
|
|
6
|
+
class NotFoundSchema < Internal::Types::Model
|
|
7
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :status_code, -> { String }, optional: false, nullable: false, api_name: "statusCode"
|
|
10
|
+
|
|
11
|
+
field :error, -> { Auth0::Types::NotFoundSchemaError }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -9,6 +9,10 @@ module Auth0
|
|
|
9
9
|
READ_ACTIONS = "read:actions"
|
|
10
10
|
UPDATE_ACTIONS = "update:actions"
|
|
11
11
|
DELETE_ACTIONS = "delete:actions"
|
|
12
|
+
CREATE_AGENTS = "create:agents"
|
|
13
|
+
READ_AGENTS = "read:agents"
|
|
14
|
+
UPDATE_AGENTS = "update:agents"
|
|
15
|
+
DELETE_AGENTS = "delete:agents"
|
|
12
16
|
READ_ANOMALY_BLOCKS = "read:anomaly_blocks"
|
|
13
17
|
DELETE_ANOMALY_BLOCKS = "delete:anomaly_blocks"
|
|
14
18
|
READ_ATTACK_PROTECTION = "read:attack_protection"
|
|
@@ -241,6 +245,10 @@ module Auth0
|
|
|
241
245
|
READ_VDCS_TEMPLATES = "read:vdcs_templates"
|
|
242
246
|
UPDATE_VDCS_TEMPLATES = "update:vdcs_templates"
|
|
243
247
|
DELETE_VDCS_TEMPLATES = "delete:vdcs_templates"
|
|
248
|
+
CREATE_ORGANIZATION_CLIENTS = "create:organization_clients"
|
|
249
|
+
READ_ORGANIZATION_CLIENTS = "read:organization_clients"
|
|
250
|
+
UPDATE_ORGANIZATION_CLIENTS = "update:organization_clients"
|
|
251
|
+
DELETE_ORGANIZATION_CLIENTS = "delete:organization_clients"
|
|
244
252
|
end
|
|
245
253
|
end
|
|
246
254
|
end
|
|
@@ -16,6 +16,10 @@ module Auth0
|
|
|
16
16
|
field :token_quota, -> { Auth0::Types::TokenQuota }, optional: true, nullable: false
|
|
17
17
|
|
|
18
18
|
field :third_party_client_access, -> { Auth0::Types::OrganizationThirdPartyClientAccessEnum }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :is_app_entitlement_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :client, -> { Auth0::Types::OrganizationClientAssociation }, optional: true, nullable: false
|
|
19
23
|
end
|
|
20
24
|
end
|
|
21
25
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class OrganizationClient < Internal::Types::Model
|
|
6
|
+
field :client_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :use_for_member_access, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :client, -> { Auth0::Types::OrganizationClientMetadata }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# The organization's association with the client passed in the <code>include_client_association_for</code> query
|
|
6
|
+
# parameter.
|
|
7
|
+
class OrganizationClientAssociation < Internal::Types::Model
|
|
8
|
+
field :use_for_member_access, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Metadata about the associated client.
|
|
6
|
+
class OrganizationClientMetadata < Internal::Types::Model
|
|
7
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :app_type, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :logo_uri, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :is_first_party, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :grant_types, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :organization_usage, -> { Auth0::Types::OrganizationClientMetadataOrganizationUsageEnum }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/lib/auth0/types/role.rb
CHANGED
|
@@ -8,6 +8,10 @@ module Auth0
|
|
|
8
8
|
field :name, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
11
15
|
end
|
|
12
16
|
end
|
|
13
17
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# A group assigned to a role in the context of an organization.
|
|
6
|
+
class RoleGroup < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :external_id, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :connection_id, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :organization_id, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :tenant_name, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :created_at, -> { String }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :updated_at, -> { String }, optional: true, nullable: false
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -5,6 +5,8 @@ module Auth0
|
|
|
5
5
|
# Configuration for Google Workspace Directory Sync during the self-service flow.
|
|
6
6
|
class SelfServiceProfileSSOTicketGoogleWorkspaceConfig < Internal::Types::Model
|
|
7
7
|
field :sync_users, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :sync_groups, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
10
|
end
|
|
9
11
|
end
|
|
10
12
|
end
|
|
@@ -4,6 +4,12 @@ module Auth0
|
|
|
4
4
|
module Types
|
|
5
5
|
class SynchronizedGroupPayload < Internal::Types::Model
|
|
6
6
|
field :id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :direct_members_count, -> { Integer }, optional: true, nullable: false
|
|
7
13
|
end
|
|
8
14
|
end
|
|
9
15
|
end
|