auth0 6.0.0.beta.4 → 6.0.0.beta.5
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 +6 -0
- 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/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/wiremock/wiremock-mappings.json +592 -55
- metadata +38 -2
|
@@ -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
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class UpdateOrganizationClientResponseContent < 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: true, 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
|
|
@@ -9,6 +9,10 @@ module Auth0
|
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
+
field :type, -> { Auth0::Types::RoleTypeEnum }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
12
16
|
field :sources, -> { Internal::Types::Array[Auth0::Types::UserEffectivePermissionRoleSourceEnum] }, optional: true, nullable: false
|
|
13
17
|
end
|
|
14
18
|
end
|
|
@@ -23,6 +23,7 @@ module Auth0
|
|
|
23
23
|
# @option params [String] :id
|
|
24
24
|
# @option params [String, nil] :fields
|
|
25
25
|
# @option params [Boolean, nil] :include_fields
|
|
26
|
+
# @option params [Boolean, nil] :include_totals
|
|
26
27
|
# @option params [String, nil] :from
|
|
27
28
|
# @option params [Integer, nil] :take
|
|
28
29
|
#
|
|
@@ -32,6 +33,7 @@ module Auth0
|
|
|
32
33
|
query_params = {}
|
|
33
34
|
query_params["fields"] = params[:fields] if params.key?(:fields)
|
|
34
35
|
query_params["include_fields"] = params[:include_fields] if params.key?(:include_fields)
|
|
36
|
+
query_params["include_totals"] = params.fetch(:include_totals, true)
|
|
35
37
|
query_params["from"] = params[:from] if params.key?(:from)
|
|
36
38
|
query_params["take"] = params.fetch(:take, 50)
|
|
37
39
|
|
|
@@ -11,6 +11,8 @@ module Auth0
|
|
|
11
11
|
|
|
12
12
|
field :include_fields, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :from, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :take, -> { Integer }, optional: true, nullable: false
|
|
@@ -13,6 +13,9 @@ module Auth0
|
|
|
13
13
|
|
|
14
14
|
# Retrieve all permissions associated with the user.
|
|
15
15
|
#
|
|
16
|
+
# **Note**: Returns only permissions from direct assignments and directly assigned roles. For permissions a user
|
|
17
|
+
# has via group-based role assignments, use `GET /api/v2/users/{id}/effective-permissions`.
|
|
18
|
+
#
|
|
16
19
|
# @param request_options [Hash]
|
|
17
20
|
# @param params [Hash]
|
|
18
21
|
# @option request_options [String] :base_url
|
|
@@ -21,6 +21,7 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
# @option params [String] :user_id
|
|
24
|
+
# @option params [Boolean, nil] :include_totals
|
|
24
25
|
# @option params [String, nil] :from
|
|
25
26
|
# @option params [Integer, nil] :take
|
|
26
27
|
#
|
|
@@ -28,6 +29,7 @@ module Auth0
|
|
|
28
29
|
def list(request_options: {}, **params)
|
|
29
30
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
30
31
|
query_params = {}
|
|
32
|
+
query_params["include_totals"] = params.fetch(:include_totals, true)
|
|
31
33
|
query_params["from"] = params[:from] if params.key?(:from)
|
|
32
34
|
query_params["take"] = params.fetch(:take, 50)
|
|
33
35
|
|
|
@@ -7,6 +7,8 @@ module Auth0
|
|
|
7
7
|
class ListRefreshTokensRequestParameters < Internal::Types::Model
|
|
8
8
|
field :user_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
|
|
@@ -17,6 +17,9 @@ module Auth0
|
|
|
17
17
|
# Organization-specific roles, use the following endpoint: [Get user roles assigned to an Organization
|
|
18
18
|
# member](https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles).
|
|
19
19
|
#
|
|
20
|
+
# **Note**: Returns only direct role assignments. To also include group-based role assignments, use `GET
|
|
21
|
+
# /api/v2/users/{id}/effective-roles`.
|
|
22
|
+
#
|
|
20
23
|
# @param request_options [Hash]
|
|
21
24
|
# @param params [Hash]
|
|
22
25
|
# @option request_options [String] :base_url
|
|
@@ -21,6 +21,7 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
# @option params [String] :user_id
|
|
24
|
+
# @option params [Boolean, nil] :include_totals
|
|
24
25
|
# @option params [String, nil] :from
|
|
25
26
|
# @option params [Integer, nil] :take
|
|
26
27
|
#
|
|
@@ -28,6 +29,7 @@ module Auth0
|
|
|
28
29
|
def list(request_options: {}, **params)
|
|
29
30
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
30
31
|
query_params = {}
|
|
32
|
+
query_params["include_totals"] = params.fetch(:include_totals, true)
|
|
31
33
|
query_params["from"] = params[:from] if params.key?(:from)
|
|
32
34
|
query_params["take"] = params.fetch(:take, 50)
|
|
33
35
|
|
|
@@ -7,6 +7,8 @@ module Auth0
|
|
|
7
7
|
class ListUserSessionsRequestParameters < Internal::Types::Model
|
|
8
8
|
field :user_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
|