auth0 6.3.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +5 -4
  3. data/.fern/replay.lock +7 -1
  4. data/.version +1 -1
  5. data/CHANGELOG.md +6 -0
  6. data/examples/ruby-api/Gemfile.lock +1 -1
  7. data/lib/auth0/clients/types/create_client_request_content.rb +2 -0
  8. data/lib/auth0/experimentation/client.rb +10 -0
  9. data/lib/auth0/experimentation/experiments/client.rb +304 -0
  10. data/lib/auth0/experimentation/experiments/types/create_experiment_request_content.rb +27 -0
  11. data/lib/auth0/experimentation/experiments/types/list_experiments_request_parameters.rb +21 -0
  12. data/lib/auth0/experimentation/experiments/types/update_experiment_request_parameters.rb +25 -0
  13. data/lib/auth0/experimentation/experiments/types/update_experiment_status_request_content.rb +15 -0
  14. data/lib/auth0/experimentation/feature_flags/client.rb +280 -0
  15. data/lib/auth0/experimentation/feature_flags/types/create_feature_flag_request_content.rb +17 -0
  16. data/lib/auth0/experimentation/feature_flags/types/list_feature_flags_request_parameters.rb +19 -0
  17. data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_request_content.rb +19 -0
  18. data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_status_request_content.rb +15 -0
  19. data/lib/auth0/experimentation/feature_flags/variations/client.rb +230 -0
  20. data/lib/auth0/experimentation/feature_flags/variations/types/create_variation_request_content.rb +21 -0
  21. data/lib/auth0/experimentation/feature_flags/variations/types/update_variation_request_content.rb +23 -0
  22. data/lib/auth0/experimentation/segments/client.rb +228 -0
  23. data/lib/auth0/experimentation/segments/types/create_segment_request_content.rb +17 -0
  24. data/lib/auth0/experimentation/segments/types/list_segments_request_parameters.rb +17 -0
  25. data/lib/auth0/experimentation/segments/types/update_segment_request_content.rb +19 -0
  26. data/lib/auth0/organizations/client.rb +0 -5
  27. data/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +2 -0
  28. data/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +2 -0
  29. data/lib/auth0/types/allocation_item.rb +27 -0
  30. data/lib/auth0/types/allocation_request_item.rb +19 -0
  31. data/lib/auth0/types/{connection_deletion_behavior_enum.rb → allocation_strategy_enum.rb} +3 -3
  32. data/lib/auth0/types/async_approval_notifications_channels_enum.rb +1 -0
  33. data/lib/auth0/types/authentication_flow_enum.rb +16 -0
  34. data/lib/auth0/types/client_oidc_backchannel_logout_initiators_enum.rb +1 -0
  35. data/lib/auth0/types/client_oidc_support_allowed_scopes_enum.rb +14 -0
  36. data/lib/auth0/types/client_oidc_support_post.rb +15 -0
  37. data/lib/auth0/types/create_experiment_response_content.rb +45 -0
  38. data/lib/auth0/types/create_feature_flag_parameters.rb +23 -0
  39. data/lib/auth0/types/create_feature_flag_response_content.rb +23 -0
  40. data/lib/auth0/types/create_resource_server_response_content.rb +2 -0
  41. data/lib/auth0/types/create_segment_response_content.rb +21 -0
  42. data/lib/auth0/types/create_variation_response_content.rb +21 -0
  43. data/lib/auth0/types/{organization_deletion_behavior_enum.rb → default_config_enum.rb} +3 -3
  44. data/lib/auth0/types/experiment_list_item.rb +45 -0
  45. data/lib/auth0/types/experiment_status_enum.rb +15 -0
  46. data/lib/auth0/types/experiment_transition_status_enum.rb +14 -0
  47. data/lib/auth0/types/experiment_validation_error.rb +11 -0
  48. data/lib/auth0/types/feature_flag.rb +23 -0
  49. data/lib/auth0/types/feature_flag_config_param.rb +13 -0
  50. data/lib/auth0/types/feature_flag_config_param_type_enum.rb +15 -0
  51. data/lib/auth0/types/feature_flag_config_params.rb +23 -0
  52. data/lib/auth0/types/feature_flag_status_enum.rb +13 -0
  53. data/lib/auth0/types/feature_flag_type_enum.rb +12 -0
  54. data/lib/auth0/types/get_experiment_response_content.rb +45 -0
  55. data/lib/auth0/types/get_feature_flag_response_content.rb +23 -0
  56. data/lib/auth0/types/get_resource_server_response_content.rb +2 -0
  57. data/lib/auth0/types/get_segment_response_content.rb +21 -0
  58. data/lib/auth0/types/get_variation_response_content.rb +21 -0
  59. data/lib/auth0/types/list_experiments_response_content.rb +11 -0
  60. data/lib/auth0/types/list_feature_flags_response_content.rb +11 -0
  61. data/lib/auth0/types/list_segments_response_content.rb +11 -0
  62. data/lib/auth0/types/list_variations_response_content.rb +9 -0
  63. data/lib/auth0/types/oauth_scope.rb +3 -1
  64. data/lib/auth0/types/resource_server.rb +2 -0
  65. data/lib/auth0/types/resource_server_search_response.rb +2 -0
  66. data/lib/auth0/types/segment.rb +21 -0
  67. data/lib/auth0/types/segment_contains_expression.rb +9 -0
  68. data/lib/auth0/types/segment_ends_with_expression.rb +9 -0
  69. data/lib/auth0/types/segment_exists_expression.rb +9 -0
  70. data/lib/auth0/types/segment_match_conditions.rb +30 -0
  71. data/lib/auth0/types/segment_match_expression.rb +19 -0
  72. data/lib/auth0/types/segment_not_match_conditions.rb +30 -0
  73. data/lib/auth0/types/segment_rule.rb +11 -0
  74. data/lib/auth0/types/segment_starts_with_expression.rb +9 -0
  75. data/lib/auth0/types/segment_type_enum.rb +12 -0
  76. data/lib/auth0/types/segment_type_filter_enum.rb +12 -0
  77. data/lib/auth0/types/update_experiment_response_content.rb +45 -0
  78. data/lib/auth0/types/update_experiment_status_response_content.rb +45 -0
  79. data/lib/auth0/types/update_feature_flag_parameters.rb +23 -0
  80. data/lib/auth0/types/update_feature_flag_response_content.rb +23 -0
  81. data/lib/auth0/types/update_feature_flag_status_response_content.rb +23 -0
  82. data/lib/auth0/types/update_resource_server_response_content.rb +2 -0
  83. data/lib/auth0/types/update_segment_response_content.rb +21 -0
  84. data/lib/auth0/types/update_variation_overrides_map.rb +23 -0
  85. data/lib/auth0/types/update_variation_response_content.rb +21 -0
  86. data/lib/auth0/types/validate_experiment_response_content.rb +11 -0
  87. data/lib/auth0/types/variation.rb +21 -0
  88. data/lib/auth0/types/variation_overrides_map.rb +23 -0
  89. data/lib/auth0/users/client.rb +24 -17
  90. data/lib/auth0/version.rb +1 -1
  91. data/lib/auth0.rb +68 -9
  92. data/wiremock/wiremock-mappings.json +861 -123
  93. metadata +70 -11
  94. data/lib/auth0/organizations/organization_template/client.rb +0 -132
  95. data/lib/auth0/types/organization_template.rb +0 -39
  96. data/lib/auth0/types/organization_template_allowed_strategy_enum.rb +0 -17
  97. data/lib/auth0/types/organization_template_role_visibility_enum.rb +0 -13
  98. data/lib/auth0/types/organization_template_role_visibility_override.rb +0 -12
  99. data/lib/auth0/types/organization_template_role_visibility_policy.rb +0 -12
  100. data/lib/auth0/types/organization_template_use_for_organization_discovery.rb +0 -12
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module ExperimentStatusEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ DRAFT = "draft"
9
+ ACTIVE = "active"
10
+ PAUSED = "paused"
11
+ COMPLETED = "completed"
12
+ ARCHIVED = "archived"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module ExperimentTransitionStatusEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ ACTIVE = "active"
9
+ PAUSED = "paused"
10
+ COMPLETED = "completed"
11
+ ARCHIVED = "archived"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class ExperimentValidationError < Internal::Types::Model
6
+ field :code, -> { String }, optional: false, nullable: false
7
+
8
+ field :message, -> { String }, 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
+ class FeatureFlag < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :type, -> { Auth0::Types::FeatureFlagTypeEnum }, optional: false, nullable: false
13
+
14
+ field :status, -> { Auth0::Types::FeatureFlagStatusEnum }, optional: false, nullable: false
15
+
16
+ field :parameters, -> { Internal::Types::Hash[String, Auth0::Types::FeatureFlagConfigParam] }, optional: true, nullable: false
17
+
18
+ field :created_at, -> { String }, optional: false, nullable: false
19
+
20
+ field :updated_at, -> { String }, optional: false, nullable: false
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class FeatureFlagConfigParam < Internal::Types::Model
6
+ field :type, -> { Auth0::Types::FeatureFlagConfigParamTypeEnum }, optional: false, nullable: false
7
+
8
+ field :value, -> { Object }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module FeatureFlagConfigParamTypeEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ STRING = "string"
9
+ BOOLEAN = "boolean"
10
+ NUMBER = "number"
11
+ ARRAY = "array"
12
+ OBJECT = "object"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module FeatureFlagConfigParams
6
+ # FeatureFlagConfigParams 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,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module FeatureFlagStatusEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ DRAFT = "draft"
9
+ ACTIVE = "active"
10
+ ARCHIVED = "archived"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module FeatureFlagTypeEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ AUTH0 = "auth0"
9
+ SELF = "self"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class GetExperimentResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :feature_flag_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :feature_flag_name, -> { String }, optional: true, nullable: false
15
+
16
+ field :authentication_flow, -> { String }, optional: false, nullable: false
17
+
18
+ field :allocation_strategy, -> { Auth0::Types::AllocationStrategyEnum }, optional: false, nullable: false
19
+
20
+ field :status, -> { Auth0::Types::ExperimentStatusEnum }, optional: false, nullable: false
21
+
22
+ field :is_valid, -> { Internal::Types::Boolean }, optional: false, nullable: false
23
+
24
+ field :default_config, -> { Auth0::Types::DefaultConfigEnum }, optional: true, nullable: false
25
+
26
+ field :feature_flag_snapshot, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
27
+
28
+ field :allocations, -> { Internal::Types::Array[Auth0::Types::AllocationItem] }, optional: false, nullable: false
29
+
30
+ field :editable_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
31
+
32
+ field :levels, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false
33
+
34
+ field :current_level, -> { Integer }, optional: true, nullable: false
35
+
36
+ field :started_at, -> { String }, optional: true, nullable: false
37
+
38
+ field :ended_at, -> { String }, optional: true, nullable: false
39
+
40
+ field :created_at, -> { String }, optional: false, nullable: false
41
+
42
+ field :updated_at, -> { String }, optional: false, nullable: false
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class GetFeatureFlagResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :type, -> { Auth0::Types::FeatureFlagTypeEnum }, optional: false, nullable: false
13
+
14
+ field :status, -> { Auth0::Types::FeatureFlagStatusEnum }, optional: false, nullable: false
15
+
16
+ field :parameters, -> { Internal::Types::Hash[String, Auth0::Types::FeatureFlagConfigParam] }, optional: true, nullable: false
17
+
18
+ field :created_at, -> { String }, optional: false, nullable: false
19
+
20
+ field :updated_at, -> { String }, optional: false, nullable: false
21
+ end
22
+ end
23
+ end
@@ -41,6 +41,8 @@ module Auth0
41
41
 
42
42
  field :consent_policy, -> { Auth0::Types::ResourceServerConsentPolicyEnum }, optional: true, nullable: false
43
43
 
44
+ field :require_consent_non_repudiation, -> { Internal::Types::Boolean }, optional: true, nullable: false
45
+
44
46
  field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
45
47
 
46
48
  field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class GetSegmentResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :type, -> { Auth0::Types::SegmentTypeEnum }, optional: false, nullable: false
13
+
14
+ field :rules, -> { Internal::Types::Array[Auth0::Types::SegmentRule] }, optional: false, nullable: false
15
+
16
+ field :created_at, -> { String }, optional: false, nullable: false
17
+
18
+ field :updated_at, -> { String }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class GetVariationResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :feature_flag_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :name, -> { String }, optional: false, nullable: false
11
+
12
+ field :description, -> { String }, optional: true, nullable: false
13
+
14
+ field :overrides, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
15
+
16
+ field :created_at, -> { String }, optional: false, nullable: false
17
+
18
+ field :updated_at, -> { String }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class ListExperimentsResponseContent < Internal::Types::Model
6
+ field :experiments, -> { Internal::Types::Array[Auth0::Types::ExperimentListItem] }, 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 ListFeatureFlagsResponseContent < Internal::Types::Model
6
+ field :feature_flags, -> { Internal::Types::Array[Auth0::Types::FeatureFlag] }, 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 ListSegmentsResponseContent < Internal::Types::Model
6
+ field :segments, -> { Internal::Types::Array[Auth0::Types::Segment] }, 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,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class ListVariationsResponseContent < Internal::Types::Model
6
+ field :variations, -> { Internal::Types::Array[Auth0::Types::Variation] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -89,7 +89,10 @@ module Auth0
89
89
  UPDATE_EVENT_STREAMS = "update:event_streams"
90
90
  DELETE_EVENT_STREAMS = "delete:event_streams"
91
91
  READ_EVENTS = "read:events"
92
+ CREATE_EXPERIMENTATION = "create:experimentation"
93
+ READ_EXPERIMENTATION = "read:experimentation"
92
94
  UPDATE_EXPERIMENTATION = "update:experimentation"
95
+ DELETE_EXPERIMENTATION = "delete:experimentation"
93
96
  CREATE_FLOWS = "create:flows"
94
97
  READ_FLOWS = "read:flows"
95
98
  UPDATE_FLOWS = "update:flows"
@@ -250,7 +253,6 @@ module Auth0
250
253
  READ_ORGANIZATION_CLIENTS = "read:organization_clients"
251
254
  UPDATE_ORGANIZATION_CLIENTS = "update:organization_clients"
252
255
  DELETE_ORGANIZATION_CLIENTS = "delete:organization_clients"
253
- READ_ORGANIZATION_TEMPLATES = "read:organization_templates"
254
256
  CREATE_NETWORK_ACL_KEYS = "create:network_acl_keys"
255
257
  READ_NETWORK_ACL_KEYS = "read:network_acl_keys"
256
258
  DELETE_NETWORK_ACL_KEYS = "delete:network_acl_keys"
@@ -41,6 +41,8 @@ module Auth0
41
41
 
42
42
  field :consent_policy, -> { Auth0::Types::ResourceServerConsentPolicyEnum }, optional: true, nullable: false
43
43
 
44
+ field :require_consent_non_repudiation, -> { Internal::Types::Boolean }, optional: true, nullable: false
45
+
44
46
  field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
45
47
 
46
48
  field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false
@@ -39,6 +39,8 @@ module Auth0
39
39
 
40
40
  field :consent_policy, -> { Auth0::Types::ResourceServerConsentPolicyEnum }, optional: true, nullable: false
41
41
 
42
+ field :require_consent_non_repudiation, -> { Internal::Types::Boolean }, optional: true, nullable: false
43
+
42
44
  field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
43
45
 
44
46
  field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class Segment < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :type, -> { Auth0::Types::SegmentTypeEnum }, optional: false, nullable: false
13
+
14
+ field :rules, -> { Internal::Types::Array[Auth0::Types::SegmentRule] }, optional: false, nullable: false
15
+
16
+ field :created_at, -> { String }, optional: false, nullable: false
17
+
18
+ field :updated_at, -> { String }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentContainsExpression < Internal::Types::Model
6
+ field :contains, -> { Internal::Types::Array[String] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentEndsWithExpression < Internal::Types::Model
6
+ field :ends_with, -> { Internal::Types::Array[String] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentExistsExpression < Internal::Types::Model
6
+ field :exists, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ # Attribute conditions that must match.
6
+ class SegmentMatchConditions < Internal::Types::Model
7
+ field :client_id, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
8
+
9
+ field :connection, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
10
+
11
+ field :connection_type, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
12
+
13
+ field :organization_id, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
14
+
15
+ field :domain, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
16
+
17
+ field :device_type, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
18
+
19
+ field :browser, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
20
+
21
+ field :platform, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
22
+
23
+ field :user_agent, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
24
+
25
+ field :country, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
26
+
27
+ field :region, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentMatchExpression < Internal::Types::Model
6
+ extend Auth0::Internal::Types::Union
7
+
8
+ member -> { Internal::Types::Array[String] }
9
+
10
+ member -> { Auth0::Types::SegmentContainsExpression }
11
+
12
+ member -> { Auth0::Types::SegmentStartsWithExpression }
13
+
14
+ member -> { Auth0::Types::SegmentEndsWithExpression }
15
+
16
+ member -> { Auth0::Types::SegmentExistsExpression }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ # Attribute conditions that must not match.
6
+ class SegmentNotMatchConditions < Internal::Types::Model
7
+ field :client_id, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
8
+
9
+ field :connection, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
10
+
11
+ field :connection_type, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
12
+
13
+ field :organization_id, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
14
+
15
+ field :domain, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
16
+
17
+ field :device_type, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
18
+
19
+ field :browser, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
20
+
21
+ field :platform, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
22
+
23
+ field :user_agent, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
24
+
25
+ field :country, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
26
+
27
+ field :region, -> { Auth0::Types::SegmentMatchExpression }, optional: true, nullable: false
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentRule < Internal::Types::Model
6
+ field :match, -> { Auth0::Types::SegmentMatchConditions }, optional: true, nullable: false
7
+
8
+ field :not_match, -> { Auth0::Types::SegmentNotMatchConditions }, optional: true, nullable: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SegmentStartsWithExpression < Internal::Types::Model
6
+ field :starts_with, -> { Internal::Types::Array[String] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module SegmentTypeEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ SELF = "self"
9
+ AUTH0 = "auth0"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module SegmentTypeFilterEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ AUTH0 = "auth0"
9
+ SELF = "self"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class UpdateExperimentResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :feature_flag_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :feature_flag_name, -> { String }, optional: true, nullable: false
15
+
16
+ field :authentication_flow, -> { String }, optional: false, nullable: false
17
+
18
+ field :allocation_strategy, -> { Auth0::Types::AllocationStrategyEnum }, optional: false, nullable: false
19
+
20
+ field :status, -> { Auth0::Types::ExperimentStatusEnum }, optional: false, nullable: false
21
+
22
+ field :is_valid, -> { Internal::Types::Boolean }, optional: false, nullable: false
23
+
24
+ field :default_config, -> { Auth0::Types::DefaultConfigEnum }, optional: true, nullable: false
25
+
26
+ field :feature_flag_snapshot, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
27
+
28
+ field :allocations, -> { Internal::Types::Array[Auth0::Types::AllocationItem] }, optional: false, nullable: false
29
+
30
+ field :editable_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
31
+
32
+ field :levels, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false
33
+
34
+ field :current_level, -> { Integer }, optional: true, nullable: false
35
+
36
+ field :started_at, -> { String }, optional: true, nullable: false
37
+
38
+ field :ended_at, -> { String }, optional: true, nullable: false
39
+
40
+ field :created_at, -> { String }, optional: false, nullable: false
41
+
42
+ field :updated_at, -> { String }, optional: false, nullable: false
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class UpdateExperimentStatusResponseContent < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :description, -> { String }, optional: true, nullable: false
11
+
12
+ field :feature_flag_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :feature_flag_name, -> { String }, optional: true, nullable: false
15
+
16
+ field :authentication_flow, -> { String }, optional: false, nullable: false
17
+
18
+ field :allocation_strategy, -> { Auth0::Types::AllocationStrategyEnum }, optional: false, nullable: false
19
+
20
+ field :status, -> { Auth0::Types::ExperimentStatusEnum }, optional: false, nullable: false
21
+
22
+ field :is_valid, -> { Internal::Types::Boolean }, optional: false, nullable: false
23
+
24
+ field :default_config, -> { Auth0::Types::DefaultConfigEnum }, optional: true, nullable: false
25
+
26
+ field :feature_flag_snapshot, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
27
+
28
+ field :allocations, -> { Internal::Types::Array[Auth0::Types::AllocationItem] }, optional: false, nullable: false
29
+
30
+ field :editable_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
31
+
32
+ field :levels, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false
33
+
34
+ field :current_level, -> { Integer }, optional: true, nullable: false
35
+
36
+ field :started_at, -> { String }, optional: true, nullable: false
37
+
38
+ field :ended_at, -> { String }, optional: true, nullable: false
39
+
40
+ field :created_at, -> { String }, optional: false, nullable: false
41
+
42
+ field :updated_at, -> { String }, optional: false, nullable: false
43
+ end
44
+ end
45
+ end