schematichq 1.4.0 → 1.4.2

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 (279) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -4
  3. data/.fern/replay.lock +10 -0
  4. data/.fernignore +3 -0
  5. data/README.md +1 -1
  6. data/lib/schematic/accounts/client.rb +76 -0
  7. data/lib/schematic/accounts/types/get_account_member_response.rb +12 -0
  8. data/lib/schematic/accounts/types/list_account_members_params.rb +15 -0
  9. data/lib/schematic/accounts/types/list_account_members_request.rb +14 -0
  10. data/lib/schematic/accounts/types/list_account_members_response.rb +12 -0
  11. data/lib/schematic/billing/client.rb +6 -2
  12. data/lib/schematic/billing/types/count_billing_products_params.rb +1 -0
  13. data/lib/schematic/billing/types/count_billing_products_request.rb +1 -0
  14. data/lib/schematic/billing/types/create_billing_price_request_body.rb +2 -0
  15. data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -0
  16. data/lib/schematic/billing/types/create_meter_request_body.rb +1 -0
  17. data/lib/schematic/billing/types/list_billing_products_params.rb +1 -0
  18. data/lib/schematic/billing/types/list_billing_products_request.rb +1 -0
  19. data/lib/schematic/cache.rb +7 -4
  20. data/lib/schematic/client.rb +14 -4
  21. data/lib/schematic/companies/client.rb +8 -105
  22. data/lib/schematic/companies/types/count_companies_params.rb +1 -0
  23. data/lib/schematic/companies/types/count_companies_request.rb +1 -0
  24. data/lib/schematic/companies/types/list_companies_params.rb +1 -0
  25. data/lib/schematic/companies/types/list_companies_request.rb +1 -0
  26. data/lib/schematic/companies/types/list_plan_changes_params.rb +2 -2
  27. data/lib/schematic/companies/types/list_plan_changes_request.rb +2 -2
  28. data/lib/schematic/credits/client.rb +44 -2
  29. data/lib/schematic/credits/types/count_billing_plan_credit_grants_params.rb +1 -0
  30. data/lib/schematic/credits/types/count_billing_plan_credit_grants_request.rb +1 -0
  31. data/lib/schematic/credits/types/list_billing_plan_credit_grants_params.rb +1 -0
  32. data/lib/schematic/credits/types/list_billing_plan_credit_grants_request.rb +1 -0
  33. data/lib/schematic/credits/types/list_company_credit_balances_params.rb +12 -0
  34. data/lib/schematic/credits/types/list_company_credit_balances_request.rb +11 -0
  35. data/lib/schematic/credits/types/list_company_credit_balances_response.rb +12 -0
  36. data/lib/schematic/datastream/client.rb +28 -21
  37. data/lib/schematic/datastream/websocket_client.rb +32 -1
  38. data/lib/schematic/entitlements/client.rb +38 -2
  39. data/lib/schematic/entitlements/types/count_feature_usage_params.rb +1 -0
  40. data/lib/schematic/entitlements/types/count_feature_usage_request.rb +1 -0
  41. data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +44 -0
  42. data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -2
  43. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +6 -2
  44. data/lib/schematic/entitlements/types/list_feature_usage_params.rb +1 -0
  45. data/lib/schematic/entitlements/types/list_feature_usage_request.rb +1 -0
  46. data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -2
  47. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +6 -2
  48. data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +12 -0
  49. data/lib/schematic/event_buffer.rb +10 -2
  50. data/lib/schematic/events/client.rb +3 -1
  51. data/lib/schematic/events/types/list_events_params.rb +1 -0
  52. data/lib/schematic/events/types/list_events_request.rb +1 -0
  53. data/lib/schematic/features/client.rb +50 -14
  54. data/lib/schematic/features/types/count_features_params.rb +1 -0
  55. data/lib/schematic/features/types/count_features_request.rb +4 -3
  56. data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +23 -0
  57. data/lib/schematic/features/types/create_feature_request_body.rb +1 -1
  58. data/lib/schematic/features/types/list_features_params.rb +1 -0
  59. data/lib/schematic/features/types/list_features_request.rb +4 -3
  60. data/lib/schematic/features/types/update_feature_request_body.rb +1 -1
  61. data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +12 -0
  62. data/lib/schematic/insights/client.rb +251 -0
  63. data/lib/schematic/insights/types/get_activity_params.rb +12 -0
  64. data/lib/schematic/insights/types/get_activity_request.rb +11 -0
  65. data/lib/schematic/insights/types/get_activity_response.rb +12 -0
  66. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +15 -0
  67. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +14 -0
  68. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +12 -0
  69. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +15 -0
  70. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +14 -0
  71. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +12 -0
  72. data/lib/schematic/insights/types/get_plan_growth_params.rb +12 -0
  73. data/lib/schematic/insights/types/get_plan_growth_request.rb +11 -0
  74. data/lib/schematic/insights/types/get_plan_growth_response.rb +12 -0
  75. data/lib/schematic/{companies/types/create_plan_trait_response.rb → insights/types/get_summary_response.rb} +3 -3
  76. data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +14 -0
  77. data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +13 -0
  78. data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +12 -0
  79. data/lib/schematic/integrationsapi/client.rb +223 -0
  80. data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +12 -0
  81. data/lib/schematic/integrationsapi/types/list_integrations_params.rb +18 -0
  82. data/lib/schematic/integrationsapi/types/list_integrations_request.rb +17 -0
  83. data/lib/schematic/integrationsapi/types/list_integrations_response.rb +12 -0
  84. data/lib/schematic/integrationsapi/types/load_sample_data_set_v_2_response.rb +12 -0
  85. data/lib/schematic/integrationsapi/types/run_integration_response.rb +12 -0
  86. data/lib/schematic/integrationsapi/types/start_data_import_request_body.rb +13 -0
  87. data/lib/schematic/integrationsapi/types/start_data_import_response.rb +12 -0
  88. data/lib/schematic/{companies/types/delete_plan_trait_response.rb → integrationsapi/types/uninstall_integration_response.rb} +2 -2
  89. data/lib/schematic/planbundle/client.rb +32 -0
  90. data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +13 -0
  91. data/lib/schematic/planbundle/types/create_custom_plan_bundle_response.rb +12 -0
  92. data/lib/schematic/plans/client.rb +251 -2
  93. data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +15 -0
  94. data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +14 -0
  95. data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +12 -0
  96. data/lib/schematic/plans/types/count_plans_params.rb +3 -0
  97. data/lib/schematic/plans/types/count_plans_request.rb +3 -0
  98. data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +17 -0
  99. data/lib/schematic/plans/types/create_custom_plan_request_body.rb +15 -0
  100. data/lib/schematic/{companies/types/update_plan_trait_response.rb → plans/types/create_custom_plan_response.rb} +3 -3
  101. data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +15 -0
  102. data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +14 -0
  103. data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +12 -0
  104. data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +17 -0
  105. data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +16 -0
  106. data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +12 -0
  107. data/lib/schematic/plans/types/list_plans_params.rb +3 -0
  108. data/lib/schematic/plans/types/list_plans_request.rb +3 -0
  109. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +4 -0
  110. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +15 -0
  111. data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +12 -0
  112. data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +12 -0
  113. data/lib/schematic/redis_cache.rb +5 -2
  114. data/lib/schematic/schematic_client.rb +0 -1
  115. data/lib/schematic/types/account_member_permission.rb +25 -0
  116. data/lib/schematic/types/account_member_response_data.rb +16 -0
  117. data/lib/schematic/types/{rulesengine_company_metric_month_reset.rb → account_member_role.rb} +3 -3
  118. data/lib/schematic/types/activity_entry_response_data.rb +14 -0
  119. data/lib/schematic/types/activity_response_response_data.rb +9 -0
  120. data/lib/schematic/types/api_key_create_response_data.rb +2 -0
  121. data/lib/schematic/types/api_key_integration_response_data.rb +11 -0
  122. data/lib/schematic/types/api_key_response_data.rb +2 -0
  123. data/lib/schematic/types/audit_log_list_response_data.rb +2 -0
  124. data/lib/schematic/types/audit_log_response_data.rb +2 -0
  125. data/lib/schematic/types/billing_credit_bundle_view.rb +1 -1
  126. data/lib/schematic/types/billing_credit_view.rb +1 -0
  127. data/lib/schematic/types/billing_linked_resource_response_data.rb +11 -0
  128. data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +2 -0
  129. data/lib/schematic/types/billing_price_response_data.rb +2 -0
  130. data/lib/schematic/types/billing_price_view.rb +2 -0
  131. data/lib/schematic/types/billing_product_for_subscription_response_data.rb +1 -0
  132. data/lib/schematic/types/billing_product_plan_response_data.rb +2 -1
  133. data/lib/schematic/types/billing_product_price_response_data.rb +2 -0
  134. data/lib/schematic/types/billing_provider_type.rb +1 -0
  135. data/lib/schematic/types/billing_strategy.rb +13 -0
  136. data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
  137. data/lib/schematic/types/change_subscription_request_body.rb +1 -0
  138. data/lib/schematic/types/charge_type.rb +1 -0
  139. data/lib/schematic/types/check_flag_response_data.rb +2 -2
  140. data/lib/schematic/types/checkout_subscription.rb +1 -0
  141. data/lib/schematic/types/clerk_integration_config.rb +10 -0
  142. data/lib/schematic/types/company_credit_balance_response_data.rb +12 -0
  143. data/lib/schematic/types/company_detail_response_data.rb +1 -0
  144. data/lib/schematic/types/company_event_period_metrics_response_data.rb +2 -2
  145. data/lib/schematic/types/company_matching_criteria.rb +12 -0
  146. data/lib/schematic/types/company_override_response_data.rb +2 -2
  147. data/lib/schematic/types/company_plan_credit_grant_view.rb +40 -0
  148. data/lib/schematic/types/company_plan_detail_response_data.rb +9 -3
  149. data/lib/schematic/types/company_plan_with_billing_sub_view.rb +1 -1
  150. data/lib/schematic/types/company_subscription_response_data.rb +1 -0
  151. data/lib/schematic/types/{condition_operator.rb → comparable_operator.rb} +4 -4
  152. data/lib/schematic/types/condition.rb +4 -4
  153. data/lib/schematic/types/condition_response_data.rb +4 -4
  154. data/lib/schematic/types/{condition_condition_type.rb → condition_type.rb} +1 -1
  155. data/lib/schematic/types/condition_view.rb +4 -4
  156. data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +2 -0
  157. data/lib/schematic/types/create_custom_plan_bundle_plan_request_body.rb +12 -0
  158. data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +6 -2
  159. data/lib/schematic/types/create_entitlement_req_common.rb +2 -2
  160. data/lib/schematic/types/create_event_request_body.rb +3 -0
  161. data/lib/schematic/types/create_flag_request_body.rb +1 -1
  162. data/lib/schematic/types/create_or_update_condition_request_body.rb +4 -4
  163. data/lib/schematic/types/create_or_update_flag_request_body.rb +1 -1
  164. data/lib/schematic/types/create_or_update_rule_request_body.rb +1 -1
  165. data/lib/schematic/types/create_plan_request_body.rb +1 -1
  166. data/lib/schematic/types/credit_currency_price.rb +10 -0
  167. data/lib/schematic/types/currency_price_request_body.rb +3 -0
  168. data/lib/schematic/types/custom_plan_activation_strategy.rb +12 -0
  169. data/lib/schematic/types/custom_plan_billing_response_data.rb +19 -0
  170. data/lib/schematic/types/custom_plan_billing_status.rb +14 -0
  171. data/lib/schematic/types/data_event_payload.rb +3 -0
  172. data/lib/schematic/types/datastream_company_plan.rb +1 -0
  173. data/lib/schematic/types/duplicate_plan_entitlements_response_response_data.rb +1 -0
  174. data/lib/schematic/types/entitlement_currency_prices_response_data.rb +1 -0
  175. data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +11 -0
  176. data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +11 -0
  177. data/lib/schematic/types/environment_usage_point_response_data.rb +10 -0
  178. data/lib/schematic/types/event_detail_response_data.rb +2 -0
  179. data/lib/schematic/types/event_response_data.rb +1 -0
  180. data/lib/schematic/types/feature_company_response_data.rb +4 -3
  181. data/lib/schematic/types/feature_company_user_response_data.rb +2 -2
  182. data/lib/schematic/types/feature_detail_response_data.rb +3 -1
  183. data/lib/schematic/types/feature_entitlement.rb +2 -2
  184. data/lib/schematic/types/feature_in_plan_response_data.rb +26 -0
  185. data/lib/schematic/types/feature_response_data.rb +1 -1
  186. data/lib/schematic/types/feature_usage_response_data.rb +4 -3
  187. data/lib/schematic/types/feature_view.rb +1 -1
  188. data/lib/schematic/types/flag_detail_response_data.rb +2 -1
  189. data/lib/schematic/types/flag_in_plan_response_data.rb +21 -0
  190. data/lib/schematic/types/flag_response_data.rb +1 -1
  191. data/lib/schematic/types/flag_view.rb +0 -1
  192. data/lib/schematic/types/insights_summary_response_data.rb +14 -0
  193. data/lib/schematic/types/integration_capabilities.rb +11 -0
  194. data/lib/schematic/types/integration_config.rb +15 -0
  195. data/lib/schematic/types/integration_response_data.rb +13 -0
  196. data/lib/schematic/types/integration_state.rb +13 -0
  197. data/lib/schematic/types/{plan_controlled_by_type.rb → integration_type.rb} +4 -2
  198. data/lib/schematic/types/integration_webhook_url_response_data.rb +10 -0
  199. data/lib/schematic/types/integrations_data_set_response_data.rb +9 -0
  200. data/lib/schematic/types/integrations_list_response_data.rb +15 -0
  201. data/lib/schematic/types/integrations_response_data.rb +13 -0
  202. data/lib/schematic/types/{condition_metric_period.rb → metric_period.rb} +1 -1
  203. data/lib/schematic/types/{feature_entitlement_month_reset.rb → metric_period_month_reset.rb} +2 -2
  204. data/lib/schematic/types/mrr_response_data.rb +10 -0
  205. data/lib/schematic/types/orb_integration_config.rb +9 -0
  206. data/lib/schematic/types/plan_credit_grant_view.rb +2 -0
  207. data/lib/schematic/types/plan_currency_price_request_body.rb +1 -0
  208. data/lib/schematic/types/plan_currency_prices_response_data.rb +1 -0
  209. data/lib/schematic/types/plan_detail_response_data.rb +9 -3
  210. data/lib/schematic/types/plan_entitlement_response_data.rb +4 -2
  211. data/lib/schematic/types/plan_group_plan_detail_response_data.rb +9 -3
  212. data/lib/schematic/types/plan_growth_point_response_data.rb +12 -0
  213. data/lib/schematic/types/plan_growth_response_data.rb +9 -0
  214. data/lib/schematic/types/plan_icon.rb +35 -0
  215. data/lib/schematic/types/plan_response_data.rb +3 -1
  216. data/lib/schematic/types/plan_version_response_data.rb +1 -1
  217. data/lib/schematic/types/plan_view_public_response_data.rb +9 -3
  218. data/lib/schematic/types/rule.rb +1 -1
  219. data/lib/schematic/types/rule_condition_detail_response_data.rb +4 -4
  220. data/lib/schematic/types/rule_condition_response_data.rb +4 -4
  221. data/lib/schematic/types/rule_detail_response_data.rb +1 -1
  222. data/lib/schematic/types/rule_response_data.rb +1 -1
  223. data/lib/schematic/types/{rule_rule_type.rb → rule_type.rb} +3 -3
  224. data/lib/schematic/types/rule_view.rb +1 -1
  225. data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
  226. data/lib/schematic/types/rulesengine_check_flag_result.rb +2 -2
  227. data/lib/schematic/types/rulesengine_company_metric.rb +2 -2
  228. data/lib/schematic/types/rulesengine_condition.rb +4 -4
  229. data/lib/schematic/types/{rulesengine_condition_condition_type.rb → rulesengine_condition_type.rb} +1 -1
  230. data/lib/schematic/types/rulesengine_feature_entitlement.rb +2 -2
  231. data/lib/schematic/types/{feature_entitlement_metric_period.rb → rulesengine_metric_period.rb} +1 -1
  232. data/lib/schematic/types/{condition_metric_period_month_reset.rb → rulesengine_metric_period_month_reset.rb} +2 -2
  233. data/lib/schematic/types/rulesengine_rule.rb +1 -1
  234. data/lib/schematic/types/{rulesengine_rule_rule_type.rb → rulesengine_rule_type.rb} +3 -3
  235. data/lib/schematic/types/stripe_integration_config.rb +15 -0
  236. data/lib/schematic/types/top_feature_by_usage_response_data.rb +14 -0
  237. data/lib/schematic/types/top_features_by_usage_response_data.rb +9 -0
  238. data/lib/schematic/types/trial_status.rb +13 -0
  239. data/lib/schematic/types/update_auto_topup_override_request_body.rb +12 -0
  240. data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +2 -0
  241. data/lib/schematic/types/update_entitlement_req_common.rb +2 -2
  242. data/lib/schematic/types/update_plan_request_body.rb +1 -1
  243. data/lib/schematic/types/upsert_billing_product_request_body.rb +3 -0
  244. data/lib/schematic/types/usage_based_entitlement_request_body.rb +4 -0
  245. data/lib/schematic/types/usage_based_entitlement_response_data.rb +3 -2
  246. data/lib/schematic/types/webhook_url.rb +10 -0
  247. data/lib/schematic/version.rb +1 -1
  248. data/lib/schematic.rb +121 -57
  249. data/reference.md +2910 -886
  250. metadata +110 -45
  251. data/lib/schematic/companies/types/create_plan_trait_request_body.rb +0 -13
  252. data/lib/schematic/companies/types/update_plan_trait_request_body.rb +0 -13
  253. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period.rb +0 -16
  254. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period_month_reset.rb +0 -14
  255. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.rb +0 -16
  256. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  257. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period.rb +0 -16
  258. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period_month_reset.rb +0 -14
  259. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.rb +0 -16
  260. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  261. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period.rb +0 -14
  262. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period_month_reset.rb +0 -12
  263. data/lib/schematic/types/create_entitlement_req_common_metric_period.rb +0 -14
  264. data/lib/schematic/types/create_entitlement_req_common_metric_period_month_reset.rb +0 -12
  265. data/lib/schematic/types/create_or_update_condition_request_body_condition_type.rb +0 -17
  266. data/lib/schematic/types/create_or_update_condition_request_body_metric_period.rb +0 -14
  267. data/lib/schematic/types/create_or_update_condition_request_body_metric_period_month_reset.rb +0 -12
  268. data/lib/schematic/types/create_or_update_condition_request_body_operator.rb +0 -18
  269. data/lib/schematic/types/create_or_update_rule_request_body_rule_type.rb +0 -15
  270. data/lib/schematic/types/rulesengine_check_flag_result_feature_usage_period.rb +0 -14
  271. data/lib/schematic/types/rulesengine_check_flag_result_rule_type.rb +0 -17
  272. data/lib/schematic/types/rulesengine_company_metric_period.rb +0 -14
  273. data/lib/schematic/types/rulesengine_condition_metric_period.rb +0 -14
  274. data/lib/schematic/types/rulesengine_condition_metric_period_month_reset.rb +0 -12
  275. data/lib/schematic/types/rulesengine_condition_operator.rb +0 -18
  276. data/lib/schematic/types/rulesengine_feature_entitlement_metric_period.rb +0 -14
  277. data/lib/schematic/types/rulesengine_feature_entitlement_month_reset.rb +0 -12
  278. data/lib/schematic/types/update_entitlement_req_common_metric_period.rb +0 -14
  279. data/lib/schematic/types/update_entitlement_req_common_metric_period_month_reset.rb +0 -12
@@ -10,6 +10,8 @@ module Schematic
10
10
  field :auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
11
11
  field :auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
12
12
  field :auto_topup_expiry_unit_count, -> { Integer }, optional: true, nullable: false
13
+ field :auto_topup_self_service, -> { Internal::Types::Boolean }, optional: true, nullable: false
14
+ field :auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
13
15
  field :auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
14
16
  field :credit_amount, -> { Integer }, optional: false, nullable: false
15
17
  field :credit_id, -> { String }, optional: false, nullable: false
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class CreateCustomPlanBundlePlanRequestBody < Internal::Types::Model
6
+ field :company_id, -> { String }, optional: false, nullable: false
7
+ field :description, -> { String }, optional: false, nullable: false
8
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: true, nullable: false
9
+ field :name, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
@@ -9,8 +9,8 @@ module Schematic
9
9
  field :currency, -> { String }, optional: true, nullable: false
10
10
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CurrencyPriceRequestBody] }, optional: true, nullable: false
11
11
  field :feature_id, -> { String }, optional: false, nullable: false
12
- field :metric_period, -> { Schematic::Types::CreateEntitlementInBundleRequestBodyMetricPeriod }, optional: true, nullable: false
13
- field :metric_period_month_reset, -> { Schematic::Types::CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset }, optional: true, nullable: false
12
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
13
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
14
14
  field :monthly_metered_price_id, -> { String }, optional: true, nullable: false
15
15
  field :monthly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
16
16
  field :monthly_unit_price, -> { Integer }, optional: true, nullable: false
@@ -20,6 +20,10 @@ module Schematic
20
20
  field :plan_version_id, -> { String }, optional: true, nullable: false
21
21
  field :price_behavior, -> { Schematic::Types::EntitlementPriceBehavior }, optional: true, nullable: false
22
22
  field :price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
23
+ field :quarterly_metered_price_id, -> { String }, optional: true, nullable: false
24
+ field :quarterly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
25
+ field :quarterly_unit_price, -> { Integer }, optional: true, nullable: false
26
+ field :quarterly_unit_price_decimal, -> { String }, optional: true, nullable: false
23
27
  field :soft_limit, -> { Integer }, optional: true, nullable: false
24
28
  field :tier_mode, -> { Schematic::Types::BillingTiersMode }, optional: true, nullable: false
25
29
  field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -5,8 +5,8 @@ module Schematic
5
5
  class CreateEntitlementReqCommon < Internal::Types::Model
6
6
  field :credit_consumption_rate, -> { Integer }, optional: true, nullable: false
7
7
  field :feature_id, -> { String }, optional: false, nullable: false
8
- field :metric_period, -> { Schematic::Types::CreateEntitlementReqCommonMetricPeriod }, optional: true, nullable: false
9
- field :metric_period_month_reset, -> { Schematic::Types::CreateEntitlementReqCommonMetricPeriodMonthReset }, optional: true, nullable: false
8
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
9
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
10
10
  field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
11
  field :value_credit_id, -> { String }, optional: true, nullable: false
12
12
  field :value_numeric, -> { Integer }, optional: true, nullable: false
@@ -3,9 +3,12 @@
3
3
  module Schematic
4
4
  module Types
5
5
  class CreateEventRequestBody < Internal::Types::Model
6
+ field :backfill, -> { Internal::Types::Boolean }, optional: true, nullable: false
6
7
  field :body, -> { Schematic::Types::EventBody }, optional: true, nullable: false
7
8
  field :event_type, -> { Schematic::Types::EventType }, optional: false, nullable: false
9
+ field :idempotency_key, -> { String }, optional: true, nullable: false
8
10
  field :sent_at, -> { String }, optional: true, nullable: false
11
+ field :trusted_client_clock, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
12
  end
10
13
  end
11
14
  end
@@ -8,7 +8,7 @@ module Schematic
8
8
  field :feature_id, -> { String }, optional: true, nullable: false
9
9
  field :flag_type, -> { String }, optional: false, nullable: false
10
10
  field :key, -> { String }, optional: false, nullable: false
11
- field :maintainer_id, -> { String }, optional: true, nullable: false
11
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  end
14
14
  end
@@ -4,15 +4,15 @@ module Schematic
4
4
  module Types
5
5
  class CreateOrUpdateConditionRequestBody < Internal::Types::Model
6
6
  field :comparison_trait_id, -> { String }, optional: true, nullable: false
7
- field :condition_type, -> { Schematic::Types::CreateOrUpdateConditionRequestBodyConditionType }, optional: false, nullable: false
7
+ field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
8
8
  field :credit_cost, -> { Integer }, optional: true, nullable: false
9
9
  field :credit_id, -> { String }, optional: true, nullable: false
10
10
  field :event_subtype, -> { String }, optional: true, nullable: false
11
11
  field :id, -> { String }, optional: true, nullable: false
12
- field :metric_period, -> { Schematic::Types::CreateOrUpdateConditionRequestBodyMetricPeriod }, optional: true, nullable: false
13
- field :metric_period_month_reset, -> { Schematic::Types::CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset }, optional: true, nullable: false
12
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
13
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
14
14
  field :metric_value, -> { Integer }, optional: true, nullable: false
15
- field :operator, -> { Schematic::Types::CreateOrUpdateConditionRequestBodyOperator }, optional: false, nullable: false
15
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
16
16
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
17
17
  field :trait_id, -> { String }, optional: true, nullable: false
18
18
  field :trait_value, -> { String }, optional: true, nullable: false
@@ -9,7 +9,7 @@ module Schematic
9
9
  field :flag_type, -> { String }, optional: false, nullable: false
10
10
  field :id, -> { String }, optional: true, nullable: false
11
11
  field :key, -> { String }, optional: false, nullable: false
12
- field :maintainer_id, -> { String }, optional: true, nullable: false
12
+ field :maintainer_account_member_id, -> { String }, optional: true, nullable: false
13
13
  field :name, -> { String }, optional: false, nullable: false
14
14
  end
15
15
  end
@@ -8,7 +8,7 @@ module Schematic
8
8
  field :id, -> { String }, optional: true, nullable: false
9
9
  field :name, -> { String }, optional: false, nullable: false
10
10
  field :priority, -> { Integer }, optional: false, nullable: false
11
- field :rule_type, -> { Schematic::Types::CreateOrUpdateRuleRequestBodyRuleType }, optional: true, nullable: false
11
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: true, nullable: false
12
12
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
13
13
  end
14
14
  end
@@ -4,7 +4,7 @@ module Schematic
4
4
  module Types
5
5
  class CreatePlanRequestBody < Internal::Types::Model
6
6
  field :description, -> { String }, optional: false, nullable: false
7
- field :icon, -> { String }, optional: true, nullable: false
7
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: true, nullable: false
8
8
  field :name, -> { String }, optional: false, nullable: false
9
9
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
10
10
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class CreditCurrencyPrice < Internal::Types::Model
6
+ field :currency, -> { String }, optional: false, nullable: false
7
+ field :price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
8
+ end
9
+ end
10
+ end
@@ -7,6 +7,9 @@ module Schematic
7
7
  field :monthly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
8
8
  field :monthly_unit_price, -> { Integer }, optional: true, nullable: false
9
9
  field :monthly_unit_price_decimal, -> { String }, optional: true, nullable: false
10
+ field :quarterly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
11
+ field :quarterly_unit_price, -> { Integer }, optional: true, nullable: false
12
+ field :quarterly_unit_price_decimal, -> { String }, optional: true, nullable: false
10
13
  field :yearly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
11
14
  field :yearly_unit_price, -> { Integer }, optional: true, nullable: false
12
15
  field :yearly_unit_price_decimal, -> { String }, optional: true, nullable: false
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module CustomPlanActivationStrategy
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ ON_PAYMENT = "on_payment"
9
+ ON_PUBLISH = "on_publish"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class CustomPlanBillingResponseData < Internal::Types::Model
6
+ field :activation_strategy, -> { Schematic::Types::CustomPlanActivationStrategy }, optional: false, nullable: false
7
+ field :company_id, -> { String }, optional: false, nullable: false
8
+ field :created_at, -> { String }, optional: false, nullable: false
9
+ field :days_until_due, -> { Integer }, optional: false, nullable: false
10
+ field :id, -> { String }, optional: false, nullable: false
11
+ field :paid_at, -> { String }, optional: true, nullable: false
12
+ field :plan_id, -> { String }, optional: false, nullable: false
13
+ field :published_at, -> { String }, optional: true, nullable: false
14
+ field :status, -> { Schematic::Types::CustomPlanBillingStatus }, optional: false, nullable: false
15
+ field :stripe_invoice_url, -> { String }, optional: true, nullable: false
16
+ field :updated_at, -> { String }, optional: false, nullable: false
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module CustomPlanBillingStatus
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ ACTIVE = "active"
9
+ EXPIRED = "expired"
10
+ PAID = "paid"
11
+ PENDING = "pending"
12
+ end
13
+ end
14
+ end
@@ -4,8 +4,11 @@ module Schematic
4
4
  module Types
5
5
  class DataEventPayload < Internal::Types::Model
6
6
  field :api_key, -> { String }, optional: false, nullable: false
7
+ field :backfill, -> { Internal::Types::Boolean }, optional: true, nullable: false
7
8
  field :body, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
9
+ field :idempotency_key, -> { String }, optional: true, nullable: false
8
10
  field :sent_at, -> { String }, optional: true, nullable: false
11
+ field :trusted_client_clock, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
12
  field :type, -> { Schematic::Types::EventType }, optional: false, nullable: false
10
13
  end
11
14
  end
@@ -6,6 +6,7 @@ module Schematic
6
6
  field :id, -> { String }, optional: false, nullable: false
7
7
  field :name, -> { String }, optional: false, nullable: false
8
8
  field :trial_end_date, -> { String }, optional: true, nullable: false
9
+ field :trial_status, -> { Schematic::Types::TrialStatus }, optional: true, nullable: false
9
10
  end
10
11
  end
11
12
  end
@@ -4,6 +4,7 @@ module Schematic
4
4
  module Types
5
5
  class DuplicatePlanEntitlementsResponseResponseData < Internal::Types::Model
6
6
  field :data, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
7
+ field :issues, -> { Internal::Types::Array[Schematic::Types::PlanIssueResponseData] }, optional: false, nullable: false
7
8
  field :skipped, -> { Internal::Types::Array[Schematic::Types::SkippedEntitlementResponseData] }, optional: false, nullable: false
8
9
  end
9
10
  end
@@ -5,6 +5,7 @@ module Schematic
5
5
  class EntitlementCurrencyPricesResponseData < Internal::Types::Model
6
6
  field :currency, -> { String }, optional: false, nullable: false
7
7
  field :monthly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
8
+ field :quarterly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
8
9
  field :yearly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
9
10
  end
10
11
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class EnvironmentFeatureUsageTimeSeriesResponseData < Internal::Types::Model
6
+ field :event_subtype, -> { String }, optional: false, nullable: false
7
+ field :feature_id, -> { String }, optional: false, nullable: false
8
+ field :points, -> { Internal::Types::Array[Schematic::Types::EnvironmentUsagePointResponseData] }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class EnvironmentTraitUsageTimeSeriesResponseData < Internal::Types::Model
6
+ field :feature_id, -> { String }, optional: false, nullable: false
7
+ field :points, -> { Internal::Types::Array[Schematic::Types::EnvironmentUsagePointResponseData] }, optional: false, nullable: false
8
+ field :trait_definition_id, -> { String }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class EnvironmentUsagePointResponseData < Internal::Types::Model
6
+ field :timestamp, -> { String }, optional: false, nullable: false
7
+ field :usage, -> { Integer }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -4,6 +4,7 @@ module Schematic
4
4
  module Types
5
5
  class EventDetailResponseData < Internal::Types::Model
6
6
  field :api_key, -> { String }, optional: true, nullable: false
7
+ field :api_key_view, -> { Schematic::Types::ApiKeyResponseData }, optional: true, nullable: false
7
8
  field :body, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
8
9
  field :body_preview, -> { String }, optional: false, nullable: false
9
10
  field :captured_at, -> { String }, optional: false, nullable: false
@@ -15,6 +16,7 @@ module Schematic
15
16
  field :feature_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
16
17
  field :features, -> { Internal::Types::Array[Schematic::Types::PreviewObject] }, optional: false, nullable: false
17
18
  field :id, -> { String }, optional: false, nullable: false
19
+ field :idempotency_key, -> { String }, optional: true, nullable: false
18
20
  field :loaded_at, -> { String }, optional: true, nullable: false
19
21
  field :processed_at, -> { String }, optional: true, nullable: false
20
22
  field :quantity, -> { Integer }, optional: false, nullable: false
@@ -13,6 +13,7 @@ module Schematic
13
13
  field :error_message, -> { String }, optional: true, nullable: false
14
14
  field :feature_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
15
15
  field :id, -> { String }, optional: false, nullable: false
16
+ field :idempotency_key, -> { String }, optional: true, nullable: false
16
17
  field :loaded_at, -> { String }, optional: true, nullable: false
17
18
  field :processed_at, -> { String }, optional: true, nullable: false
18
19
  field :quantity, -> { Integer }, optional: false, nullable: false
@@ -24,18 +24,19 @@ 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
39
+ field :quarterly_usage_based_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
39
40
  field :soft_limit, -> { Integer }, optional: true, nullable: false
40
41
  field :usage, -> { Integer }, optional: true, nullable: false
41
42
  field :yearly_usage_based_price, -> { Schematic::Types::BillingPriceView }, 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,18 +22,19 @@ 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
37
+ field :quarterly_usage_based_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
37
38
  field :soft_limit, -> { Integer }, optional: true, nullable: false
38
39
  field :usage, -> { Integer }, optional: true, nullable: false
39
40
  field :yearly_usage_based_price, -> { Schematic::Types::BillingPriceView }, 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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationCapabilities < Internal::Types::Model
6
+ field :author_plans, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
+ field :checkout, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+ field :edit_billing, -> { Internal::Types::Boolean }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationConfig < Internal::Types::Model
6
+ extend Schematic::Internal::Types::Union
7
+
8
+ discriminant :type
9
+
10
+ member -> { Schematic::Types::ClerkIntegrationConfig }, key: "CLERK"
11
+ member -> { Schematic::Types::OrbIntegrationConfig }, key: "ORB"
12
+ member -> { Schematic::Types::StripeIntegrationConfig }, key: "STRIPE"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationResponseData < Internal::Types::Model
6
+ field :created_at, -> { String }, optional: false, nullable: false
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ field :state, -> { Schematic::Types::IntegrationState }, optional: false, nullable: false
9
+ field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
10
+ field :updated_at, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module IntegrationState
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ ACTIVE = "active"
9
+ CREATED = "created"
10
+ PENDING = "pending"
11
+ end
12
+ end
13
+ 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