schematichq 1.4.3 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +2 -2
  3. data/.fern/replay.lock +501 -2
  4. data/WASM_VERSION +1 -1
  5. data/lib/schematic/accounts/client.rb +44 -0
  6. data/lib/schematic/accounts/types/count_account_members_params.rb +15 -0
  7. data/lib/schematic/accounts/types/count_account_members_request.rb +14 -0
  8. data/lib/schematic/accounts/types/count_account_members_response.rb +12 -0
  9. data/lib/schematic/client.rb +1 -1
  10. data/lib/schematic/credits/client.rb +0 -104
  11. data/lib/schematic/integrationsapi/client.rb +99 -3
  12. data/lib/schematic/integrationsapi/types/assume_stripe_installed_response.rb +12 -0
  13. data/lib/schematic/integrationsapi/types/install_integration_response.rb +12 -0
  14. data/lib/schematic/integrationsapi/types/install_stripe_response.rb +12 -0
  15. data/lib/schematic/integrationsapi/types/{load_sample_data_set_v_2_response.rb → load_sample_data_set_response.rb} +1 -1
  16. data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +4 -0
  17. data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +4 -0
  18. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +0 -1
  19. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +0 -1
  20. data/lib/schematic/types/account_member_response_data.rb +2 -0
  21. data/lib/schematic/types/billing_credit_grant_reason.rb +1 -0
  22. data/lib/schematic/types/billing_credit_grant_response_data.rb +3 -0
  23. data/lib/schematic/types/billing_credit_grant_zeroed_out_reason.rb +1 -0
  24. data/lib/schematic/types/billing_credit_ledger_authority.rb +13 -0
  25. data/lib/schematic/types/billing_credit_view.rb +1 -0
  26. data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +1 -0
  27. data/lib/schematic/types/billing_provider_type.rb +1 -0
  28. data/lib/schematic/types/change_subscription_internal_request_body.rb +2 -0
  29. data/lib/schematic/types/change_subscription_request_body.rb +2 -0
  30. data/lib/schematic/types/checkout_data_response_data.rb +1 -0
  31. data/lib/schematic/types/checkout_field_input.rb +14 -0
  32. data/lib/schematic/types/checkout_field_response_data.rb +18 -0
  33. data/lib/schematic/types/checkout_field_value.rb +10 -0
  34. data/lib/schematic/types/checkout_field_with_value.rb +15 -0
  35. data/lib/schematic/types/checkout_settings_response_data.rb +3 -0
  36. data/lib/schematic/types/company_credit_balance_response_data.rb +2 -0
  37. data/lib/schematic/types/company_plan_credit_grant_view.rb +1 -0
  38. data/lib/schematic/types/component_hydrate_response_data.rb +1 -0
  39. data/lib/schematic/types/component_preview_response_data.rb +1 -0
  40. data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +1 -0
  41. data/lib/schematic/types/credit_company_grant_view.rb +3 -0
  42. data/lib/schematic/types/credit_event_ledger_response_data.rb +1 -0
  43. data/lib/schematic/types/credit_usage_reason.rb +15 -0
  44. data/lib/schematic/types/event_detail_response_data.rb +1 -0
  45. data/lib/schematic/types/event_response_data.rb +1 -0
  46. data/lib/schematic/types/feature_entitlement.rb +2 -0
  47. data/lib/schematic/types/install_integration_request_body.rb +14 -0
  48. data/lib/schematic/types/integration_config.rb +1 -0
  49. data/lib/schematic/types/integration_install_config.rb +18 -0
  50. data/lib/schematic/types/integration_install_response_data.rb +11 -0
  51. data/lib/schematic/types/integration_type.rb +1 -0
  52. data/lib/schematic/types/manage_plan_request.rb +1 -0
  53. data/lib/schematic/types/metronome_integration_config.rb +7 -0
  54. data/lib/schematic/types/migration_error_code.rb +1 -0
  55. data/lib/schematic/types/plan_change_response_data.rb +1 -0
  56. data/lib/schematic/types/plan_credit_grant_view.rb +1 -0
  57. data/lib/schematic/types/plan_group_detail_response_data.rb +1 -0
  58. data/lib/schematic/types/preview_subscription_change_response_data.rb +3 -0
  59. data/lib/schematic/types/rulesengine_feature_entitlement.rb +2 -0
  60. data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +1 -0
  61. data/lib/schematic/version.rb +1 -1
  62. data/lib/schematic/wasm/rulesengine.wasm +0 -0
  63. data/lib/schematic.rb +23 -15
  64. data/reference.md +386 -293
  65. metadata +19 -11
  66. data/lib/schematic/credits/types/count_credit_ledger_params.rb +0 -19
  67. data/lib/schematic/credits/types/count_credit_ledger_request.rb +0 -18
  68. data/lib/schematic/credits/types/count_credit_ledger_response.rb +0 -12
  69. data/lib/schematic/credits/types/get_enriched_credit_ledger_params.rb +0 -19
  70. data/lib/schematic/credits/types/get_enriched_credit_ledger_request.rb +0 -18
  71. data/lib/schematic/credits/types/get_enriched_credit_ledger_response.rb +0 -12
  72. data/lib/schematic/types/credit_ledger_enriched_entry_response_data.rb +0 -30
  73. data/lib/schematic/types/credit_ledger_period.rb +0 -14
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schematichq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Schematic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-01 00:00:00.000000000 Z
11
+ date: 2026-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wasmtime
@@ -62,6 +62,9 @@ files:
62
62
  - lib/schematic/accesstokens/types/issue_temporary_access_token_request_body.rb
63
63
  - lib/schematic/accesstokens/types/issue_temporary_access_token_response.rb
64
64
  - lib/schematic/accounts/client.rb
65
+ - lib/schematic/accounts/types/count_account_members_params.rb
66
+ - lib/schematic/accounts/types/count_account_members_request.rb
67
+ - lib/schematic/accounts/types/count_account_members_response.rb
65
68
  - lib/schematic/accounts/types/count_api_keys_params.rb
66
69
  - lib/schematic/accounts/types/count_api_keys_request.rb
67
70
  - lib/schematic/accounts/types/count_api_keys_response.rb
@@ -273,9 +276,6 @@ files:
273
276
  - lib/schematic/credits/types/count_credit_event_ledger_params.rb
274
277
  - lib/schematic/credits/types/count_credit_event_ledger_request.rb
275
278
  - lib/schematic/credits/types/count_credit_event_ledger_response.rb
276
- - lib/schematic/credits/types/count_credit_ledger_params.rb
277
- - lib/schematic/credits/types/count_credit_ledger_request.rb
278
- - lib/schematic/credits/types/count_credit_ledger_response.rb
279
279
  - lib/schematic/credits/types/create_billing_credit_request_body.rb
280
280
  - lib/schematic/credits/types/create_billing_credit_response.rb
281
281
  - lib/schematic/credits/types/create_billing_plan_credit_grant_response.rb
@@ -289,9 +289,6 @@ files:
289
289
  - lib/schematic/credits/types/extend_credit_lease_request_body.rb
290
290
  - lib/schematic/credits/types/extend_credit_lease_response.rb
291
291
  - lib/schematic/credits/types/get_credit_bundle_response.rb
292
- - lib/schematic/credits/types/get_enriched_credit_ledger_params.rb
293
- - lib/schematic/credits/types/get_enriched_credit_ledger_request.rb
294
- - lib/schematic/credits/types/get_enriched_credit_ledger_response.rb
295
292
  - lib/schematic/credits/types/get_single_billing_credit_response.rb
296
293
  - lib/schematic/credits/types/get_single_billing_plan_credit_grant_response.rb
297
294
  - lib/schematic/credits/types/grant_billing_credits_to_company_response.rb
@@ -454,11 +451,14 @@ files:
454
451
  - lib/schematic/insights/types/get_top_features_by_usage_request.rb
455
452
  - lib/schematic/insights/types/get_top_features_by_usage_response.rb
456
453
  - lib/schematic/integrationsapi/client.rb
454
+ - lib/schematic/integrationsapi/types/assume_stripe_installed_response.rb
457
455
  - lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb
456
+ - lib/schematic/integrationsapi/types/install_integration_response.rb
457
+ - lib/schematic/integrationsapi/types/install_stripe_response.rb
458
458
  - lib/schematic/integrationsapi/types/list_integrations_params.rb
459
459
  - lib/schematic/integrationsapi/types/list_integrations_request.rb
460
460
  - lib/schematic/integrationsapi/types/list_integrations_response.rb
461
- - lib/schematic/integrationsapi/types/load_sample_data_set_v_2_response.rb
461
+ - lib/schematic/integrationsapi/types/load_sample_data_set_response.rb
462
462
  - lib/schematic/integrationsapi/types/run_integration_response.rb
463
463
  - lib/schematic/integrationsapi/types/start_data_import_request_body.rb
464
464
  - lib/schematic/integrationsapi/types/start_data_import_response.rb
@@ -599,6 +599,7 @@ files:
599
599
  - lib/schematic/types/billing_credit_grant_reason.rb
600
600
  - lib/schematic/types/billing_credit_grant_response_data.rb
601
601
  - lib/schematic/types/billing_credit_grant_zeroed_out_reason.rb
602
+ - lib/schematic/types/billing_credit_ledger_authority.rb
602
603
  - lib/schematic/types/billing_credit_ledger_response_data.rb
603
604
  - lib/schematic/types/billing_credit_response_data.rb
604
605
  - lib/schematic/types/billing_credit_rollover_policy.rb
@@ -642,6 +643,10 @@ files:
642
643
  - lib/schematic/types/check_flags_bulk_response_data.rb
643
644
  - lib/schematic/types/check_flags_response_data.rb
644
645
  - lib/schematic/types/checkout_data_response_data.rb
646
+ - lib/schematic/types/checkout_field_input.rb
647
+ - lib/schematic/types/checkout_field_response_data.rb
648
+ - lib/schematic/types/checkout_field_value.rb
649
+ - lib/schematic/types/checkout_field_with_value.rb
645
650
  - lib/schematic/types/checkout_settings_response_data.rb
646
651
  - lib/schematic/types/checkout_subscription.rb
647
652
  - lib/schematic/types/clerk_integration_config.rb
@@ -709,13 +714,12 @@ files:
709
714
  - lib/schematic/types/credit_grant_expiry_request_body.rb
710
715
  - lib/schematic/types/credit_grant_sort_order.rb
711
716
  - lib/schematic/types/credit_lease_response_data.rb
712
- - lib/schematic/types/credit_ledger_enriched_entry_response_data.rb
713
- - lib/schematic/types/credit_ledger_period.rb
714
717
  - lib/schematic/types/credit_transfer_response_data.rb
715
718
  - lib/schematic/types/credit_transfer_view.rb
716
719
  - lib/schematic/types/credit_trigger_config.rb
717
720
  - lib/schematic/types/credit_usage.rb
718
721
  - lib/schematic/types/credit_usage_aggregation.rb
722
+ - lib/schematic/types/credit_usage_reason.rb
719
723
  - lib/schematic/types/credits_auto_topup_company_summary.rb
720
724
  - lib/schematic/types/credits_auto_topup_credit_summary.rb
721
725
  - lib/schematic/types/credits_auto_topup_hard_failure.rb
@@ -786,8 +790,11 @@ files:
786
790
  - lib/schematic/types/flag_view.rb
787
791
  - lib/schematic/types/generic_preview_object.rb
788
792
  - lib/schematic/types/insights_summary_response_data.rb
793
+ - lib/schematic/types/install_integration_request_body.rb
789
794
  - lib/schematic/types/integration_capabilities.rb
790
795
  - lib/schematic/types/integration_config.rb
796
+ - lib/schematic/types/integration_install_config.rb
797
+ - lib/schematic/types/integration_install_response_data.rb
791
798
  - lib/schematic/types/integration_response_data.rb
792
799
  - lib/schematic/types/integration_state.rb
793
800
  - lib/schematic/types/integration_type.rb
@@ -808,6 +815,7 @@ files:
808
815
  - lib/schematic/types/meter_request_body.rb
809
816
  - lib/schematic/types/metric_period.rb
810
817
  - lib/schematic/types/metric_period_month_reset.rb
818
+ - lib/schematic/types/metronome_integration_config.rb
811
819
  - lib/schematic/types/migration_error_code.rb
812
820
  - lib/schematic/types/mrr_response_data.rb
813
821
  - lib/schematic/types/orb_integration_config.rb
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- # Input parameters
7
- class CountCreditLedgerParams < Internal::Types::Model
8
- field :billing_credit_id, -> { String }, optional: true, nullable: false
9
- field :company_id, -> { String }, optional: true, nullable: false
10
- field :end_time, -> { String }, optional: true, nullable: false
11
- field :feature_id, -> { String }, optional: true, nullable: false
12
- field :limit, -> { Integer }, optional: true, nullable: false
13
- field :offset, -> { Integer }, optional: true, nullable: false
14
- field :period, -> { Schematic::Types::CreditLedgerPeriod }, optional: true, nullable: false
15
- field :start_time, -> { String }, optional: true, nullable: false
16
- end
17
- end
18
- end
19
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- class CountCreditLedgerRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: false, nullable: false
8
- field :billing_credit_id, -> { String }, optional: true, nullable: false
9
- field :feature_id, -> { String }, optional: true, nullable: false
10
- field :period, -> { Schematic::Types::CreditLedgerPeriod }, optional: false, nullable: false
11
- field :start_time, -> { String }, optional: true, nullable: false
12
- field :end_time, -> { String }, optional: true, nullable: false
13
- field :limit, -> { Integer }, optional: true, nullable: false
14
- field :offset, -> { Integer }, optional: true, nullable: false
15
- end
16
- end
17
- end
18
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- class CountCreditLedgerResponse < Internal::Types::Model
7
- field :data, -> { Schematic::Types::CountResponse }, optional: false, nullable: false
8
- field :params, -> { Schematic::Credits::Types::CountCreditLedgerParams }, optional: false, nullable: false
9
- end
10
- end
11
- end
12
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- # Input parameters
7
- class GetEnrichedCreditLedgerParams < Internal::Types::Model
8
- field :billing_credit_id, -> { String }, optional: true, nullable: false
9
- field :company_id, -> { String }, optional: true, nullable: false
10
- field :end_time, -> { String }, optional: true, nullable: false
11
- field :feature_id, -> { String }, optional: true, nullable: false
12
- field :limit, -> { Integer }, optional: true, nullable: false
13
- field :offset, -> { Integer }, optional: true, nullable: false
14
- field :period, -> { Schematic::Types::CreditLedgerPeriod }, optional: true, nullable: false
15
- field :start_time, -> { String }, optional: true, nullable: false
16
- end
17
- end
18
- end
19
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- class GetEnrichedCreditLedgerRequest < Internal::Types::Model
7
- field :company_id, -> { String }, optional: false, nullable: false
8
- field :billing_credit_id, -> { String }, optional: true, nullable: false
9
- field :feature_id, -> { String }, optional: true, nullable: false
10
- field :period, -> { Schematic::Types::CreditLedgerPeriod }, optional: false, nullable: false
11
- field :start_time, -> { String }, optional: true, nullable: false
12
- field :end_time, -> { String }, optional: true, nullable: false
13
- field :limit, -> { Integer }, optional: true, nullable: false
14
- field :offset, -> { Integer }, optional: true, nullable: false
15
- end
16
- end
17
- end
18
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Credits
5
- module Types
6
- class GetEnrichedCreditLedgerResponse < Internal::Types::Model
7
- field :data, -> { Internal::Types::Array[Schematic::Types::CreditLedgerEnrichedEntryResponseData] }, optional: false, nullable: false
8
- field :params, -> { Schematic::Credits::Types::GetEnrichedCreditLedgerParams }, optional: false, nullable: false
9
- end
10
- end
11
- end
12
- end
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Types
5
- class CreditLedgerEnrichedEntryResponseData < Internal::Types::Model
6
- field :billing_credit_auto_topup_grant_count, -> { Integer }, optional: false, nullable: false
7
- field :billing_credit_id, -> { String }, optional: false, nullable: false
8
- field :company, -> { Schematic::Types::CompanyLedgerResponseData }, optional: true, nullable: false
9
- field :company_id, -> { String }, optional: false, nullable: false
10
- field :credit, -> { Schematic::Types::BillingCreditLedgerResponseData }, optional: true, nullable: false
11
- field :expired_grant_count, -> { Integer }, optional: false, nullable: false
12
- field :feature, -> { Schematic::Types::FeatureLedgerResponseData }, optional: true, nullable: false
13
- field :feature_id, -> { String }, optional: true, nullable: false
14
- field :first_transaction_at, -> { String }, optional: false, nullable: false
15
- field :free_grant_count, -> { Integer }, optional: false, nullable: false
16
- field :grant_count, -> { Integer }, optional: false, nullable: false
17
- field :last_transaction_at, -> { String }, optional: false, nullable: false
18
- field :manually_zeroed_count, -> { Integer }, optional: false, nullable: false
19
- field :net_change, -> { Integer }, optional: false, nullable: false
20
- field :plan_grant_count, -> { Integer }, optional: false, nullable: false
21
- field :purchased_grant_count, -> { Integer }, optional: false, nullable: false
22
- field :time_bucket, -> { String }, optional: false, nullable: false
23
- field :total_consumed, -> { Integer }, optional: false, nullable: false
24
- field :total_granted, -> { Integer }, optional: false, nullable: false
25
- field :transaction_count, -> { Integer }, optional: false, nullable: false
26
- field :usage_count, -> { Integer }, optional: false, nullable: false
27
- field :zeroed_out_count, -> { Integer }, optional: false, nullable: false
28
- end
29
- end
30
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Schematic
4
- module Types
5
- module CreditLedgerPeriod
6
- extend Schematic::Internal::Types::Enum
7
-
8
- DAILY = "daily"
9
- MONTHLY = "monthly"
10
- RAW = "raw"
11
- WEEKLY = "weekly"
12
- end
13
- end
14
- end