schematichq 1.4.0 → 1.4.1

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 (210) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -4
  3. data/lib/schematic/accounts/client.rb +76 -0
  4. data/lib/schematic/{companies/types/update_plan_trait_response.rb → accounts/types/get_account_member_response.rb} +3 -3
  5. data/lib/schematic/accounts/types/list_account_members_params.rb +15 -0
  6. data/lib/schematic/accounts/types/list_account_members_request.rb +14 -0
  7. data/lib/schematic/accounts/types/list_account_members_response.rb +12 -0
  8. data/lib/schematic/billing/types/create_billing_price_request_body.rb +1 -0
  9. data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -0
  10. data/lib/schematic/billing/types/create_meter_request_body.rb +1 -0
  11. data/lib/schematic/cache.rb +7 -4
  12. data/lib/schematic/client.rb +11 -1
  13. data/lib/schematic/companies/client.rb +8 -105
  14. data/lib/schematic/companies/types/count_companies_params.rb +1 -0
  15. data/lib/schematic/companies/types/count_companies_request.rb +1 -0
  16. data/lib/schematic/companies/types/list_companies_params.rb +1 -0
  17. data/lib/schematic/companies/types/list_companies_request.rb +1 -0
  18. data/lib/schematic/companies/types/list_plan_changes_params.rb +2 -2
  19. data/lib/schematic/companies/types/list_plan_changes_request.rb +2 -2
  20. data/lib/schematic/credits/client.rb +38 -0
  21. data/lib/schematic/credits/types/list_company_credit_balances_params.rb +12 -0
  22. data/lib/schematic/credits/types/list_company_credit_balances_request.rb +11 -0
  23. data/lib/schematic/credits/types/list_company_credit_balances_response.rb +12 -0
  24. data/lib/schematic/datastream/client.rb +28 -21
  25. data/lib/schematic/entitlements/client.rb +32 -0
  26. data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +40 -0
  27. data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -2
  28. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +2 -2
  29. data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -2
  30. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +2 -2
  31. data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +12 -0
  32. data/lib/schematic/features/client.rb +46 -14
  33. data/lib/schematic/features/types/count_features_request.rb +3 -3
  34. data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +23 -0
  35. data/lib/schematic/features/types/create_feature_request_body.rb +1 -1
  36. data/lib/schematic/features/types/list_features_request.rb +3 -3
  37. data/lib/schematic/features/types/update_feature_request_body.rb +1 -1
  38. data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +12 -0
  39. data/lib/schematic/insights/client.rb +251 -0
  40. data/lib/schematic/insights/types/get_activity_params.rb +12 -0
  41. data/lib/schematic/insights/types/get_activity_request.rb +11 -0
  42. data/lib/schematic/insights/types/get_activity_response.rb +12 -0
  43. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +15 -0
  44. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +14 -0
  45. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +12 -0
  46. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +15 -0
  47. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +14 -0
  48. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +12 -0
  49. data/lib/schematic/insights/types/get_plan_growth_params.rb +12 -0
  50. data/lib/schematic/insights/types/get_plan_growth_request.rb +11 -0
  51. data/lib/schematic/insights/types/get_plan_growth_response.rb +12 -0
  52. data/lib/schematic/{companies/types/create_plan_trait_response.rb → insights/types/get_summary_response.rb} +3 -3
  53. data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +14 -0
  54. data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +13 -0
  55. data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +12 -0
  56. data/lib/schematic/integrationsapi/client.rb +46 -0
  57. data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +12 -0
  58. data/lib/schematic/plans/client.rb +247 -2
  59. data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +15 -0
  60. data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +14 -0
  61. data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +12 -0
  62. data/lib/schematic/plans/types/count_plans_params.rb +2 -0
  63. data/lib/schematic/plans/types/count_plans_request.rb +2 -0
  64. data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +16 -0
  65. data/lib/schematic/plans/types/create_custom_plan_request_body.rb +15 -0
  66. data/lib/schematic/{companies/types/delete_plan_trait_response.rb → plans/types/create_custom_plan_response.rb} +3 -3
  67. data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +15 -0
  68. data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +14 -0
  69. data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +12 -0
  70. data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +17 -0
  71. data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +16 -0
  72. data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +12 -0
  73. data/lib/schematic/plans/types/list_plans_params.rb +2 -0
  74. data/lib/schematic/plans/types/list_plans_request.rb +2 -0
  75. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +4 -0
  76. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +15 -0
  77. data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +12 -0
  78. data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +12 -0
  79. data/lib/schematic/redis_cache.rb +5 -2
  80. data/lib/schematic/schematic_client.rb +0 -1
  81. data/lib/schematic/types/account_member_permission.rb +25 -0
  82. data/lib/schematic/types/account_member_response_data.rb +16 -0
  83. data/lib/schematic/types/{rulesengine_company_metric_month_reset.rb → account_member_role.rb} +3 -3
  84. data/lib/schematic/types/activity_entry_response_data.rb +14 -0
  85. data/lib/schematic/types/activity_response_response_data.rb +9 -0
  86. data/lib/schematic/types/api_key_create_response_data.rb +1 -0
  87. data/lib/schematic/types/api_key_response_data.rb +1 -0
  88. data/lib/schematic/types/audit_log_list_response_data.rb +1 -0
  89. data/lib/schematic/types/audit_log_response_data.rb +1 -0
  90. data/lib/schematic/types/billing_linked_resource_response_data.rb +11 -0
  91. data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +1 -0
  92. data/lib/schematic/types/billing_price_response_data.rb +1 -0
  93. data/lib/schematic/types/billing_price_view.rb +1 -0
  94. data/lib/schematic/types/billing_product_plan_response_data.rb +1 -1
  95. data/lib/schematic/types/billing_product_price_response_data.rb +1 -0
  96. data/lib/schematic/types/billing_provider_type.rb +1 -0
  97. data/lib/schematic/types/check_flag_response_data.rb +2 -2
  98. data/lib/schematic/types/checkout_subscription.rb +1 -0
  99. data/lib/schematic/types/company_credit_balance_response_data.rb +12 -0
  100. data/lib/schematic/types/company_detail_response_data.rb +1 -0
  101. data/lib/schematic/types/company_event_period_metrics_response_data.rb +2 -2
  102. data/lib/schematic/types/company_override_response_data.rb +2 -2
  103. data/lib/schematic/types/company_plan_detail_response_data.rb +7 -3
  104. data/lib/schematic/types/company_subscription_response_data.rb +1 -0
  105. data/lib/schematic/types/{condition_operator.rb → comparable_operator.rb} +4 -4
  106. data/lib/schematic/types/condition.rb +4 -4
  107. data/lib/schematic/types/condition_response_data.rb +4 -4
  108. data/lib/schematic/types/{condition_condition_type.rb → condition_type.rb} +1 -1
  109. data/lib/schematic/types/condition_view.rb +4 -4
  110. data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +1 -0
  111. data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +2 -2
  112. data/lib/schematic/types/create_entitlement_req_common.rb +2 -2
  113. data/lib/schematic/types/create_flag_request_body.rb +1 -1
  114. data/lib/schematic/types/create_or_update_condition_request_body.rb +4 -4
  115. data/lib/schematic/types/create_or_update_flag_request_body.rb +1 -1
  116. data/lib/schematic/types/create_or_update_rule_request_body.rb +1 -1
  117. data/lib/schematic/types/create_plan_request_body.rb +1 -1
  118. data/lib/schematic/types/custom_plan_activation_strategy.rb +12 -0
  119. data/lib/schematic/types/custom_plan_billing_response_data.rb +19 -0
  120. data/lib/schematic/types/custom_plan_billing_status.rb +14 -0
  121. data/lib/schematic/types/datastream_company_plan.rb +1 -0
  122. data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +11 -0
  123. data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +11 -0
  124. data/lib/schematic/types/environment_usage_point_response_data.rb +10 -0
  125. data/lib/schematic/types/feature_company_response_data.rb +3 -3
  126. data/lib/schematic/types/feature_company_user_response_data.rb +2 -2
  127. data/lib/schematic/types/feature_detail_response_data.rb +3 -1
  128. data/lib/schematic/types/feature_entitlement.rb +2 -2
  129. data/lib/schematic/types/feature_in_plan_response_data.rb +26 -0
  130. data/lib/schematic/types/feature_response_data.rb +1 -1
  131. data/lib/schematic/types/feature_usage_response_data.rb +3 -3
  132. data/lib/schematic/types/feature_view.rb +1 -1
  133. data/lib/schematic/types/flag_detail_response_data.rb +2 -1
  134. data/lib/schematic/types/flag_in_plan_response_data.rb +21 -0
  135. data/lib/schematic/types/flag_response_data.rb +1 -1
  136. data/lib/schematic/types/flag_view.rb +0 -1
  137. data/lib/schematic/types/insights_summary_response_data.rb +14 -0
  138. data/lib/schematic/types/{plan_controlled_by_type.rb → integration_type.rb} +4 -2
  139. data/lib/schematic/types/integration_webhook_url_response_data.rb +10 -0
  140. data/lib/schematic/types/{condition_metric_period.rb → metric_period.rb} +1 -1
  141. data/lib/schematic/types/{feature_entitlement_month_reset.rb → metric_period_month_reset.rb} +2 -2
  142. data/lib/schematic/types/mrr_response_data.rb +10 -0
  143. data/lib/schematic/types/plan_credit_grant_view.rb +1 -0
  144. data/lib/schematic/types/plan_detail_response_data.rb +7 -3
  145. data/lib/schematic/types/plan_entitlement_response_data.rb +3 -2
  146. data/lib/schematic/types/plan_group_plan_detail_response_data.rb +7 -3
  147. data/lib/schematic/types/plan_growth_point_response_data.rb +12 -0
  148. data/lib/schematic/types/plan_growth_response_data.rb +9 -0
  149. data/lib/schematic/types/plan_icon.rb +35 -0
  150. data/lib/schematic/types/plan_response_data.rb +3 -1
  151. data/lib/schematic/types/plan_version_response_data.rb +1 -1
  152. data/lib/schematic/types/plan_view_public_response_data.rb +7 -3
  153. data/lib/schematic/types/rule.rb +1 -1
  154. data/lib/schematic/types/rule_condition_detail_response_data.rb +4 -4
  155. data/lib/schematic/types/rule_condition_response_data.rb +4 -4
  156. data/lib/schematic/types/rule_detail_response_data.rb +1 -1
  157. data/lib/schematic/types/rule_response_data.rb +1 -1
  158. data/lib/schematic/types/{rule_rule_type.rb → rule_type.rb} +3 -3
  159. data/lib/schematic/types/rule_view.rb +1 -1
  160. data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
  161. data/lib/schematic/types/rulesengine_check_flag_result.rb +2 -2
  162. data/lib/schematic/types/rulesengine_company_metric.rb +2 -2
  163. data/lib/schematic/types/rulesengine_condition.rb +4 -4
  164. data/lib/schematic/types/{rulesengine_condition_condition_type.rb → rulesengine_condition_type.rb} +1 -1
  165. data/lib/schematic/types/rulesengine_feature_entitlement.rb +2 -2
  166. data/lib/schematic/types/{feature_entitlement_metric_period.rb → rulesengine_metric_period.rb} +1 -1
  167. data/lib/schematic/types/{condition_metric_period_month_reset.rb → rulesengine_metric_period_month_reset.rb} +2 -2
  168. data/lib/schematic/types/rulesengine_rule.rb +1 -1
  169. data/lib/schematic/types/{rulesengine_rule_rule_type.rb → rulesengine_rule_type.rb} +3 -3
  170. data/lib/schematic/types/top_feature_by_usage_response_data.rb +14 -0
  171. data/lib/schematic/types/top_features_by_usage_response_data.rb +9 -0
  172. data/lib/schematic/types/trial_status.rb +13 -0
  173. data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +1 -0
  174. data/lib/schematic/types/update_entitlement_req_common.rb +2 -2
  175. data/lib/schematic/types/update_plan_request_body.rb +1 -1
  176. data/lib/schematic/types/usage_based_entitlement_response_data.rb +2 -2
  177. data/lib/schematic/types/webhook_url.rb +10 -0
  178. data/lib/schematic/version.rb +1 -1
  179. data/lib/schematic.rb +85 -48
  180. data/reference.md +2326 -889
  181. metadata +82 -45
  182. data/lib/schematic/companies/types/create_plan_trait_request_body.rb +0 -13
  183. data/lib/schematic/companies/types/update_plan_trait_request_body.rb +0 -13
  184. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period.rb +0 -16
  185. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period_month_reset.rb +0 -14
  186. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.rb +0 -16
  187. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  188. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period.rb +0 -16
  189. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period_month_reset.rb +0 -14
  190. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.rb +0 -16
  191. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  192. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period.rb +0 -14
  193. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period_month_reset.rb +0 -12
  194. data/lib/schematic/types/create_entitlement_req_common_metric_period.rb +0 -14
  195. data/lib/schematic/types/create_entitlement_req_common_metric_period_month_reset.rb +0 -12
  196. data/lib/schematic/types/create_or_update_condition_request_body_condition_type.rb +0 -17
  197. data/lib/schematic/types/create_or_update_condition_request_body_metric_period.rb +0 -14
  198. data/lib/schematic/types/create_or_update_condition_request_body_metric_period_month_reset.rb +0 -12
  199. data/lib/schematic/types/create_or_update_condition_request_body_operator.rb +0 -18
  200. data/lib/schematic/types/create_or_update_rule_request_body_rule_type.rb +0 -15
  201. data/lib/schematic/types/rulesengine_check_flag_result_feature_usage_period.rb +0 -14
  202. data/lib/schematic/types/rulesengine_check_flag_result_rule_type.rb +0 -17
  203. data/lib/schematic/types/rulesengine_company_metric_period.rb +0 -14
  204. data/lib/schematic/types/rulesengine_condition_metric_period.rb +0 -14
  205. data/lib/schematic/types/rulesengine_condition_metric_period_month_reset.rb +0 -12
  206. data/lib/schematic/types/rulesengine_condition_operator.rb +0 -18
  207. data/lib/schematic/types/rulesengine_feature_entitlement_metric_period.rb +0 -14
  208. data/lib/schematic/types/rulesengine_feature_entitlement_month_reset.rb +0 -12
  209. data/lib/schematic/types/update_entitlement_req_common_metric_period.rb +0 -14
  210. data/lib/schematic/types/update_entitlement_req_common_metric_period_month_reset.rb +0 -12
@@ -24,15 +24,15 @@ module Schematic
24
24
  field :entitlement_id, -> { String }, optional: false, nullable: false
25
25
  field :entitlement_source, -> { String }, optional: true, nullable: false
26
26
  field :entitlement_type, -> { Schematic::Types::EntitlementType }, optional: false, nullable: false
27
- field :feature, -> { Schematic::Types::FeatureDetailResponseData }, optional: true, nullable: false
27
+ field :feature, -> { Schematic::Types::FeatureInPlanResponseData }, optional: true, nullable: false
28
28
  field :has_valid_allocation, -> { Internal::Types::Boolean }, optional: true, nullable: false
29
29
  field :is_unlimited, -> { Internal::Types::Boolean }, optional: true, nullable: false
30
30
  field :metric_reset_at, -> { String }, optional: true, nullable: false
31
- field :month_reset, -> { String }, optional: true, nullable: false
31
+ field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
32
32
  field :monthly_usage_based_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
33
33
  field :overuse, -> { Integer }, optional: true, nullable: false
34
34
  field :percent_used, -> { Integer }, optional: true, nullable: false
35
- field :period, -> { String }, optional: true, nullable: false
35
+ field :period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
36
36
  field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
37
37
  field :plan_entitlement, -> { Schematic::Types::PlanEntitlementResponseData }, optional: true, nullable: false
38
38
  field :price_behavior, -> { Schematic::Types::EntitlementPriceBehavior }, optional: true, nullable: false
@@ -11,8 +11,8 @@ module Schematic
11
11
  field :entitlement_type, -> { Schematic::Types::EntitlementType }, optional: false, nullable: false
12
12
  field :feature, -> { Schematic::Types::FeatureDetailResponseData }, optional: true, nullable: false
13
13
  field :metric_reset_at, -> { String }, optional: true, nullable: false
14
- field :month_reset, -> { String }, optional: true, nullable: false
15
- field :period, -> { String }, optional: true, nullable: false
14
+ field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
15
+ field :period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
16
16
  field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
17
17
  field :usage, -> { Integer }, optional: true, nullable: false
18
18
  field :user, -> { Schematic::Types::UserResponseData }, optional: true, nullable: false
@@ -3,6 +3,7 @@
3
3
  module Schematic
4
4
  module Types
5
5
  class FeatureDetailResponseData < Internal::Types::Model
6
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
6
7
  field :created_at, -> { String }, optional: false, nullable: false
7
8
  field :description, -> { String }, optional: false, nullable: false
8
9
  field :event_subtype, -> { String }, optional: true, nullable: false
@@ -12,7 +13,8 @@ module Schematic
12
13
  field :icon, -> { String }, optional: false, nullable: false
13
14
  field :id, -> { String }, optional: false, nullable: false
14
15
  field :lifecycle_phase, -> { Schematic::Types::FeatureLifecyclePhase }, optional: true, nullable: false
15
- field :maintainer_id, -> { String }, optional: true, nullable: false
16
+ field :maintainer, -> { Schematic::Types::AccountMemberResponseData }, optional: true, nullable: false
17
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
16
18
  field :name, -> { String }, optional: false, nullable: false
17
19
  field :plans, -> { Internal::Types::Array[Schematic::Types::PreviewObject] }, optional: false, nullable: false
18
20
  field :plural_name, -> { String }, optional: true, nullable: false
@@ -11,9 +11,9 @@ module Schematic
11
11
  field :event_name, -> { String }, optional: true, nullable: false
12
12
  field :feature_id, -> { String }, optional: false, nullable: false
13
13
  field :feature_key, -> { String }, optional: false, nullable: false
14
- field :metric_period, -> { Schematic::Types::FeatureEntitlementMetricPeriod }, optional: true, nullable: false
14
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
15
15
  field :metric_reset_at, -> { String }, optional: true, nullable: false
16
- field :month_reset, -> { Schematic::Types::FeatureEntitlementMonthReset }, optional: true, nullable: false
16
+ field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
17
17
  field :soft_limit, -> { Integer }, optional: true, nullable: false
18
18
  field :usage, -> { Integer }, optional: true, nullable: false
19
19
  field :value_type, -> { Schematic::Types::EntitlementValueType }, optional: false, nullable: false
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class FeatureInPlanResponseData < Internal::Types::Model
6
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
7
+ field :created_at, -> { String }, optional: false, nullable: false
8
+ field :description, -> { String }, optional: false, nullable: false
9
+ field :event_subtype, -> { String }, optional: true, nullable: false
10
+ field :event_summary, -> { Schematic::Types::EventSummaryResponseData }, optional: true, nullable: false
11
+ field :feature_type, -> { Schematic::Types::FeatureType }, optional: false, nullable: false
12
+ field :flags, -> { Internal::Types::Array[Schematic::Types::FlagInPlanResponseData] }, optional: false, nullable: false
13
+ field :icon, -> { String }, optional: false, nullable: false
14
+ field :id, -> { String }, optional: false, nullable: false
15
+ field :lifecycle_phase, -> { Schematic::Types::FeatureLifecyclePhase }, optional: true, nullable: false
16
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
17
+ field :name, -> { String }, optional: false, nullable: false
18
+ field :plans, -> { Internal::Types::Array[Schematic::Types::PreviewObject] }, optional: false, nullable: false
19
+ field :plural_name, -> { String }, optional: true, nullable: false
20
+ field :singular_name, -> { String }, optional: true, nullable: false
21
+ field :trait, -> { Schematic::Types::EntityTraitDefinitionResponseData }, optional: true, nullable: false
22
+ field :trait_id, -> { String }, optional: true, nullable: false
23
+ field :updated_at, -> { String }, optional: false, nullable: false
24
+ end
25
+ end
26
+ end
@@ -10,7 +10,7 @@ module Schematic
10
10
  field :icon, -> { String }, optional: false, nullable: false
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :lifecycle_phase, -> { Schematic::Types::FeatureLifecyclePhase }, optional: true, nullable: false
13
- field :maintainer_id, -> { String }, optional: true, nullable: false
13
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
14
14
  field :name, -> { String }, optional: false, nullable: false
15
15
  field :plural_name, -> { String }, optional: true, nullable: false
16
16
  field :singular_name, -> { String }, optional: true, nullable: false
@@ -22,15 +22,15 @@ module Schematic
22
22
  field :entitlement_id, -> { String }, optional: false, nullable: false
23
23
  field :entitlement_source, -> { String }, optional: true, nullable: false
24
24
  field :entitlement_type, -> { Schematic::Types::EntitlementType }, optional: false, nullable: false
25
- field :feature, -> { Schematic::Types::FeatureDetailResponseData }, optional: true, nullable: false
25
+ field :feature, -> { Schematic::Types::FeatureInPlanResponseData }, optional: true, nullable: false
26
26
  field :has_valid_allocation, -> { Internal::Types::Boolean }, optional: true, nullable: false
27
27
  field :is_unlimited, -> { Internal::Types::Boolean }, optional: true, nullable: false
28
28
  field :metric_reset_at, -> { String }, optional: true, nullable: false
29
- field :month_reset, -> { String }, optional: true, nullable: false
29
+ field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
30
30
  field :monthly_usage_based_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
31
31
  field :overuse, -> { Integer }, optional: true, nullable: false
32
32
  field :percent_used, -> { Integer }, optional: true, nullable: false
33
- field :period, -> { String }, optional: true, nullable: false
33
+ field :period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
34
34
  field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
35
35
  field :plan_entitlement, -> { Schematic::Types::PlanEntitlementResponseData }, optional: true, nullable: false
36
36
  field :price_behavior, -> { Schematic::Types::EntitlementPriceBehavior }, optional: true, nullable: false
@@ -4,6 +4,7 @@ module Schematic
4
4
  module Types
5
5
  class FeatureView < Internal::Types::Model
6
6
  field :account_id, -> { String }, optional: false, nullable: false
7
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
7
8
  field :created_at, -> { String }, optional: false, nullable: false
8
9
  field :description, -> { String }, optional: false, nullable: false
9
10
  field :event_subtype, -> { String }, optional: true, nullable: false
@@ -13,7 +14,6 @@ module Schematic
13
14
  field :icon, -> { String }, optional: false, nullable: false
14
15
  field :id, -> { String }, optional: false, nullable: false
15
16
  field :lifecycle_phase, -> { Schematic::Types::FeatureLifecyclePhase }, optional: true, nullable: false
16
- field :maintainer_id, -> { String }, optional: true, nullable: false
17
17
  field :name, -> { String }, optional: false, nullable: false
18
18
  field :plans, -> { Internal::Types::Array[Schematic::Types::PreviewObject] }, optional: false, nullable: false
19
19
  field :plural_name, -> { String }, optional: true, nullable: false
@@ -12,7 +12,8 @@ module Schematic
12
12
  field :id, -> { String }, optional: false, nullable: false
13
13
  field :key, -> { String }, optional: false, nullable: false
14
14
  field :last_checked_at, -> { String }, optional: true, nullable: false
15
- field :maintainer_id, -> { String }, optional: true, nullable: false
15
+ field :maintainer, -> { Schematic::Types::AccountMemberResponseData }, optional: true, nullable: false
16
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
16
17
  field :name, -> { String }, optional: false, nullable: false
17
18
  field :rules, -> { Internal::Types::Array[Schematic::Types::RuleDetailResponseData] }, optional: false, nullable: false
18
19
  field :updated_at, -> { String }, optional: false, nullable: false
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class FlagInPlanResponseData < Internal::Types::Model
6
+ field :created_at, -> { String }, optional: false, nullable: false
7
+ field :default_value, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+ field :description, -> { String }, optional: false, nullable: false
9
+ field :feature, -> { Schematic::Types::FeatureResponseData }, optional: true, nullable: false
10
+ field :feature_id, -> { String }, optional: true, nullable: false
11
+ field :flag_type, -> { String }, optional: false, nullable: false
12
+ field :id, -> { String }, optional: false, nullable: false
13
+ field :key, -> { String }, optional: false, nullable: false
14
+ field :last_checked_at, -> { String }, optional: true, nullable: false
15
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
16
+ field :name, -> { String }, optional: false, nullable: false
17
+ field :rules, -> { Internal::Types::Array[Schematic::Types::RuleDetailResponseData] }, optional: false, nullable: false
18
+ field :updated_at, -> { String }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -10,7 +10,7 @@ module Schematic
10
10
  field :flag_type, -> { String }, optional: false, nullable: false
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :key, -> { String }, optional: false, nullable: false
13
- field :maintainer_id, -> { String }, optional: true, nullable: false
13
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
14
14
  field :name, -> { String }, optional: false, nullable: false
15
15
  field :updated_at, -> { String }, optional: false, nullable: false
16
16
  end
@@ -13,7 +13,6 @@ module Schematic
13
13
  field :id, -> { String }, optional: false, nullable: false
14
14
  field :key, -> { String }, optional: false, nullable: false
15
15
  field :last_checked_at, -> { String }, optional: true, nullable: false
16
- field :maintainer_id, -> { String }, optional: true, nullable: false
17
16
  field :name, -> { String }, optional: false, nullable: false
18
17
  field :rules, -> { Internal::Types::Array[Schematic::Types::RuleView] }, optional: false, nullable: false
19
18
  field :updated_at, -> { String }, optional: false, nullable: false
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class InsightsSummaryResponseData < Internal::Types::Model
6
+ field :active_credits, -> { Integer }, optional: false, nullable: false
7
+ field :mrr, -> { Internal::Types::Array[Schematic::Types::MrrResponseData] }, optional: false, nullable: false
8
+ field :paid_companies, -> { Integer }, optional: false, nullable: false
9
+ field :total_companies, -> { Integer }, optional: false, nullable: false
10
+ field :total_features, -> { Integer }, optional: false, nullable: false
11
+ field :total_plans, -> { Integer }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
@@ -2,11 +2,13 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module PlanControlledByType
5
+ module IntegrationType
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- SCHEMATIC = "schematic"
8
+ CLERK = "clerk"
9
+ ORB = "orb"
9
10
  STRIPE = "stripe"
11
+ UNKNOWN = "unknown"
10
12
  end
11
13
  end
12
14
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationWebhookUrlResponseData < Internal::Types::Model
6
+ field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
7
+ field :url, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module ConditionMetricPeriod
5
+ module MetricPeriod
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
8
  ALL_TIME = "all_time"
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module FeatureEntitlementMonthReset
5
+ module MetricPeriodMonthReset
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- FIRST_OF_MONTH = "first_of_month"
9
8
  BILLING_CYCLE = "billing_cycle"
9
+ FIRST_OF_MONTH = "first_of_month"
10
10
  end
11
11
  end
12
12
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class MrrResponseData < Internal::Types::Model
6
+ field :amount, -> { Integer }, optional: false, nullable: false
7
+ field :currency, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -9,6 +9,7 @@ module Schematic
9
9
  field :billing_credit_auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
10
10
  field :billing_credit_auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
11
11
  field :billing_credit_auto_topup_expiry_unit_count, -> { Integer }, optional: true, nullable: false
12
+ field :billing_credit_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
12
13
  field :billing_credit_auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
13
14
  field :created_at, -> { String }, optional: false, nullable: false
14
15
  field :credit, -> { Schematic::Types::BillingCreditView }, optional: true, nullable: false
@@ -5,16 +5,20 @@ module Schematic
5
5
  class PlanDetailResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
9
10
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
11
  field :company_count, -> { Integer }, optional: false, nullable: false
11
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
12
+ field :company_id, -> { String }, optional: true, nullable: false
13
+ field :company_name, -> { String }, optional: true, nullable: false
14
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
15
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
12
16
  field :created_at, -> { String }, optional: false, nullable: false
13
17
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
14
18
  field :description, -> { String }, optional: false, nullable: false
15
19
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
16
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
17
- field :icon, -> { String }, optional: false, nullable: false
20
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
21
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
18
22
  field :id, -> { String }, optional: false, nullable: false
19
23
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
20
24
  field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -3,6 +3,7 @@
3
3
  module Schematic
4
4
  module Types
5
5
  class PlanEntitlementResponseData < Internal::Types::Model
6
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
6
7
  field :billing_threshold, -> { Integer }, optional: true, nullable: false
7
8
  field :consumption_rate, -> { Integer }, optional: true, nullable: false
8
9
  field :created_at, -> { String }, optional: false, nullable: false
@@ -13,8 +14,8 @@ module Schematic
13
14
  field :id, -> { String }, optional: false, nullable: false
14
15
  field :metered_monthly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
15
16
  field :metered_yearly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
16
- field :metric_period, -> { String }, optional: true, nullable: false
17
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
17
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
18
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
18
19
  field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
19
20
  field :plan_id, -> { String }, optional: false, nullable: false
20
21
  field :price_behavior, -> { Schematic::Types::EntitlementPriceBehavior }, optional: true, nullable: false
@@ -5,19 +5,23 @@ module Schematic
5
5
  class PlanGroupPlanDetailResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
9
10
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
11
  field :company_count, -> { Integer }, optional: false, nullable: false
12
+ field :company_id, -> { String }, optional: true, nullable: false
13
+ field :company_name, -> { String }, optional: true, nullable: false
11
14
  field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
12
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
15
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
16
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
13
17
  field :created_at, -> { String }, optional: false, nullable: false
14
18
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
15
19
  field :custom_plan_config, -> { Schematic::Types::CustomPlanViewConfigResponseData }, optional: true, nullable: false
16
20
  field :description, -> { String }, optional: false, nullable: false
17
21
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
18
22
  field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
19
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
20
- field :icon, -> { String }, optional: false, nullable: false
23
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
24
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
21
25
  field :id, -> { String }, optional: false, nullable: false
22
26
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
23
27
  field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class PlanGrowthPointResponseData < Internal::Types::Model
6
+ field :month, -> { String }, optional: false, nullable: false
7
+ field :plan_id, -> { String }, optional: false, nullable: false
8
+ field :plan_name, -> { String }, optional: false, nullable: false
9
+ field :subscribers, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class PlanGrowthResponseData < Internal::Types::Model
6
+ field :points, -> { Internal::Types::Array[Schematic::Types::PlanGrowthPointResponseData] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module PlanIcon
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ AMBER = "amber"
9
+ BLUE = "blue"
10
+ BLUE_GRAY = "blueGray"
11
+ BLUE_GREEN = "blueGreen"
12
+ CYAN = "cyan"
13
+ EMERALD = "emerald"
14
+ FUCHSIA = "fuchsia"
15
+ GRAY = "gray"
16
+ GREEN = "green"
17
+ INDIGO = "indigo"
18
+ LIGHT_BLUE = "lightBlue"
19
+ LIME = "lime"
20
+ ORANGE = "orange"
21
+ PINK = "pink"
22
+ PURPLE = "purple"
23
+ RED = "red"
24
+ RED_ORANGE = "redOrange"
25
+ ROSE = "rose"
26
+ SKY = "sky"
27
+ SLATE = "slate"
28
+ TEAL = "teal"
29
+ TRUE_GRAY = "trueGray"
30
+ VIOLET = "violet"
31
+ WARM_GRAY = "warmGray"
32
+ YELLOW = "yellow"
33
+ end
34
+ end
35
+ end
@@ -4,9 +4,11 @@ module Schematic
4
4
  module Types
5
5
  class PlanResponseData < Internal::Types::Model
6
6
  field :audience_type, -> { String }, optional: true, nullable: false
7
+ field :company_id, -> { String }, optional: true, nullable: false
8
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
7
9
  field :created_at, -> { String }, optional: false, nullable: false
8
10
  field :description, -> { String }, optional: false, nullable: false
9
- field :icon, -> { String }, optional: false, nullable: false
11
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
10
12
  field :id, -> { String }, optional: false, nullable: false
11
13
  field :name, -> { String }, optional: false, nullable: false
12
14
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
@@ -6,7 +6,7 @@ module Schematic
6
6
  field :created_at, -> { String }, optional: false, nullable: false
7
7
  field :description, -> { String }, optional: false, nullable: false
8
8
  field :environment_id, -> { String }, optional: false, nullable: false
9
- field :icon, -> { String }, optional: false, nullable: false
9
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
10
10
  field :id, -> { String }, optional: false, nullable: false
11
11
  field :name, -> { String }, optional: false, nullable: false
12
12
  field :original_plan_id, -> { String }, optional: true, nullable: false
@@ -5,11 +5,15 @@ module Schematic
5
5
  class PlanViewPublicResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
9
10
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
11
  field :company_count, -> { Integer }, optional: false, nullable: false
12
+ field :company_id, -> { String }, optional: true, nullable: false
13
+ field :company_name, -> { String }, optional: true, nullable: false
11
14
  field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
12
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
15
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
16
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
13
17
  field :created_at, -> { String }, optional: false, nullable: false
14
18
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
15
19
  field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -17,8 +21,8 @@ module Schematic
17
21
  field :description, -> { String }, optional: false, nullable: false
18
22
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
19
23
  field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
20
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
21
- field :icon, -> { String }, optional: false, nullable: false
24
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
25
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
22
26
  field :id, -> { String }, optional: false, nullable: false
23
27
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanCreditGrantView] }, optional: false, nullable: false
24
28
  field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -11,7 +11,7 @@ module Schematic
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  field :priority, -> { Integer }, optional: false, nullable: false
14
- field :rule_type, -> { Schematic::Types::RuleRuleType }, optional: false, nullable: false
14
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
15
15
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
16
  end
17
17
  end
@@ -6,16 +6,16 @@ module Schematic
6
6
  field :comparison_trait, -> { Schematic::Types::EntityTraitDefinitionResponseData }, optional: true, nullable: false
7
7
  field :comparison_trait_id, -> { String }, optional: true, nullable: false
8
8
  field :condition_group_id, -> { String }, optional: true, nullable: false
9
- field :condition_type, -> { String }, optional: false, nullable: false
9
+ field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
10
10
  field :created_at, -> { String }, optional: false, nullable: false
11
11
  field :environment_id, -> { String }, optional: false, nullable: false
12
12
  field :event_subtype, -> { String }, optional: true, nullable: false
13
13
  field :flag_id, -> { String }, optional: true, nullable: false
14
14
  field :id, -> { String }, optional: false, nullable: false
15
- field :metric_period, -> { String }, optional: true, nullable: false
16
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
15
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
16
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
17
17
  field :metric_value, -> { Integer }, optional: true, nullable: false
18
- field :operator, -> { String }, optional: false, nullable: false
18
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
19
19
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
20
20
  field :resources, -> { Internal::Types::Array[Schematic::Types::PreviewObjectResponseData] }, optional: false, nullable: false
21
21
  field :rule_id, -> { String }, optional: false, nullable: false
@@ -5,16 +5,16 @@ module Schematic
5
5
  class RuleConditionResponseData < Internal::Types::Model
6
6
  field :comparison_trait_id, -> { String }, optional: true, nullable: false
7
7
  field :condition_group_id, -> { String }, optional: true, nullable: false
8
- field :condition_type, -> { String }, optional: false, nullable: false
8
+ field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
9
9
  field :created_at, -> { String }, optional: false, nullable: false
10
10
  field :environment_id, -> { String }, optional: false, nullable: false
11
11
  field :event_subtype, -> { String }, optional: true, nullable: false
12
12
  field :flag_id, -> { String }, optional: true, nullable: false
13
13
  field :id, -> { String }, optional: false, nullable: false
14
- field :metric_period, -> { String }, optional: true, nullable: false
15
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
14
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
15
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
16
16
  field :metric_value, -> { Integer }, optional: true, nullable: false
17
- field :operator, -> { String }, optional: false, nullable: false
17
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
18
18
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
19
19
  field :rule_id, -> { String }, optional: false, nullable: false
20
20
  field :trait_entity_type, -> { Schematic::Types::EntityType }, optional: true, nullable: false
@@ -11,7 +11,7 @@ module Schematic
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  field :priority, -> { Integer }, optional: false, nullable: false
14
- field :rule_type, -> { String }, optional: false, nullable: false
14
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
15
15
  field :updated_at, -> { String }, optional: false, nullable: false
16
16
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
17
17
  end
@@ -9,7 +9,7 @@ module Schematic
9
9
  field :id, -> { String }, optional: false, nullable: false
10
10
  field :name, -> { String }, optional: false, nullable: false
11
11
  field :priority, -> { Integer }, optional: false, nullable: false
12
- field :rule_type, -> { String }, optional: false, nullable: false
12
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
13
13
  field :updated_at, -> { String }, optional: false, nullable: false
14
14
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
15
15
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module RuleRuleType
5
+ module RuleType
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- DEFAULT = "default"
9
- GLOBAL_OVERRIDE = "global_override"
10
8
  COMPANY_OVERRIDE = "company_override"
11
9
  COMPANY_OVERRIDE_USAGE_EXCEEDED = "company_override_usage_exceeded"
10
+ DEFAULT = "default"
11
+ GLOBAL_OVERRIDE = "global_override"
12
12
  PLAN_ENTITLEMENT = "plan_entitlement"
13
13
  PLAN_ENTITLEMENT_USAGE_EXCEEDED = "plan_entitlement_usage_exceeded"
14
14
  STANDARD = "standard"
@@ -12,7 +12,7 @@ module Schematic
12
12
  field :id, -> { String }, optional: false, nullable: false
13
13
  field :name, -> { String }, optional: false, nullable: false
14
14
  field :priority, -> { Integer }, optional: false, nullable: false
15
- field :rule_type, -> { String }, optional: false, nullable: false
15
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
16
16
  field :updated_at, -> { String }, optional: false, nullable: false
17
17
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
18
18
  end
@@ -5,7 +5,7 @@ module Schematic
5
5
  module RulesEngineSchemaVersion
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- V_5_F_633_CC_3 = "v5f633cc3"
8
+ VF_05_BF_5_DA = "vf05bf5da"
9
9
  PLACEHOLDER_FOR_FERN_COMPATIBILITY = "placeholder-for-fern-compatibility"
10
10
  end
11
11
  end
@@ -9,13 +9,13 @@ module Schematic
9
9
  field :feature_allocation, -> { Integer }, optional: true, nullable: false
10
10
  field :feature_usage, -> { Integer }, optional: true, nullable: false
11
11
  field :feature_usage_event, -> { String }, optional: true, nullable: false
12
- field :feature_usage_period, -> { Schematic::Types::RulesengineCheckFlagResultFeatureUsagePeriod }, optional: true, nullable: false
12
+ field :feature_usage_period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: true, nullable: false
13
13
  field :feature_usage_reset_at, -> { String }, optional: true, nullable: false
14
14
  field :flag_id, -> { String }, optional: true, nullable: false
15
15
  field :flag_key, -> { String }, optional: false, nullable: false
16
16
  field :reason, -> { String }, optional: false, nullable: false
17
17
  field :rule_id, -> { String }, optional: true, nullable: false
18
- field :rule_type, -> { Schematic::Types::RulesengineCheckFlagResultRuleType }, optional: true, nullable: false
18
+ field :rule_type, -> { Schematic::Types::RulesengineRuleType }, optional: true, nullable: false
19
19
  field :user_id, -> { String }, optional: true, nullable: false
20
20
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
21
21
  end
@@ -8,8 +8,8 @@ module Schematic
8
8
  field :created_at, -> { String }, optional: false, nullable: false
9
9
  field :environment_id, -> { String }, optional: false, nullable: false
10
10
  field :event_subtype, -> { String }, optional: false, nullable: false
11
- field :month_reset, -> { Schematic::Types::RulesengineCompanyMetricMonthReset }, optional: false, nullable: false
12
- field :period, -> { Schematic::Types::RulesengineCompanyMetricPeriod }, optional: false, nullable: false
11
+ field :month_reset, -> { Schematic::Types::RulesengineMetricPeriodMonthReset }, optional: false, nullable: false
12
+ field :period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: false, nullable: false
13
13
  field :valid_until, -> { String }, optional: true, nullable: false
14
14
  field :value, -> { Integer }, optional: false, nullable: false
15
15
  end