schematichq 1.4.4 → 1.4.6

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +2 -2
  3. data/.fern/replay.lock +25 -1
  4. data/WASM_VERSION +1 -1
  5. data/lib/schematic/billing/client.rb +102 -2
  6. data/lib/schematic/billing/types/delete_billing_coupon_response.rb +12 -0
  7. data/lib/schematic/billing/types/delete_billing_customer_response.rb +12 -0
  8. data/lib/schematic/billing/types/delete_billing_invoice_response.rb +12 -0
  9. data/lib/schematic/billing/types/list_billing_prices_params.rb +1 -0
  10. data/lib/schematic/billing/types/list_billing_prices_request.rb +1 -0
  11. data/lib/schematic/billing/types/list_billing_product_prices_params.rb +1 -0
  12. data/lib/schematic/billing/types/list_billing_product_prices_request.rb +1 -0
  13. data/lib/schematic/client.rb +1 -1
  14. data/lib/schematic/credits/client.rb +0 -104
  15. data/lib/schematic/datastream/merge.rb +3 -4
  16. data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +3 -0
  17. data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +3 -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_permission.rb +0 -1
  21. data/lib/schematic/types/billing_credit_grant_zeroed_out_reason.rb +1 -0
  22. data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
  23. data/lib/schematic/types/change_subscription_request_body.rb +1 -0
  24. data/lib/schematic/types/check_flags_response_data.rb +1 -0
  25. data/lib/schematic/types/checkout_settings_response_data.rb +3 -0
  26. data/lib/schematic/types/company_credit_balance.rb +11 -0
  27. data/lib/schematic/types/company_subscription_response_data.rb +1 -0
  28. data/lib/schematic/types/feature_entitlement.rb +4 -0
  29. data/lib/schematic/types/plan_change_response_data.rb +1 -0
  30. data/lib/schematic/types/preview_subscription_change_response_data.rb +3 -0
  31. data/lib/schematic/types/rulesengine_feature_entitlement.rb +4 -0
  32. data/lib/schematic/types/test_webhook_response_data.rb +10 -0
  33. data/lib/schematic/version.rb +1 -1
  34. data/lib/schematic/wasm/rulesengine.wasm +0 -0
  35. data/lib/schematic/webhooks/client.rb +37 -0
  36. data/lib/schematic/webhooks/types/send_test_webhook_action_response.rb +12 -0
  37. data/lib/schematic/webhooks/types/test_webhook_request_body.rb +12 -0
  38. data/lib/schematic.rb +10 -11
  39. data/reference.md +383 -322
  40. metadata +9 -10
  41. data/lib/schematic/credits/types/count_credit_ledger_params.rb +0 -19
  42. data/lib/schematic/credits/types/count_credit_ledger_request.rb +0 -18
  43. data/lib/schematic/credits/types/count_credit_ledger_response.rb +0 -12
  44. data/lib/schematic/credits/types/get_enriched_credit_ledger_params.rb +0 -19
  45. data/lib/schematic/credits/types/get_enriched_credit_ledger_request.rb +0 -18
  46. data/lib/schematic/credits/types/get_enriched_credit_ledger_response.rb +0 -12
  47. data/lib/schematic/types/credit_ledger_enriched_entry_response_data.rb +0 -30
  48. 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.4
4
+ version: 1.4.6
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-08 00:00:00.000000000 Z
11
+ date: 2026-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wasmtime
@@ -114,6 +114,9 @@ files:
114
114
  - lib/schematic/billing/types/create_invoice_request_body.rb
115
115
  - lib/schematic/billing/types/create_meter_request_body.rb
116
116
  - lib/schematic/billing/types/create_payment_method_request_body.rb
117
+ - lib/schematic/billing/types/delete_billing_coupon_response.rb
118
+ - lib/schematic/billing/types/delete_billing_customer_response.rb
119
+ - lib/schematic/billing/types/delete_billing_invoice_response.rb
117
120
  - lib/schematic/billing/types/delete_billing_product_response.rb
118
121
  - lib/schematic/billing/types/delete_payment_method_by_external_id_response.rb
119
122
  - lib/schematic/billing/types/delete_product_price_response.rb
@@ -276,9 +279,6 @@ files:
276
279
  - lib/schematic/credits/types/count_credit_event_ledger_params.rb
277
280
  - lib/schematic/credits/types/count_credit_event_ledger_request.rb
278
281
  - lib/schematic/credits/types/count_credit_event_ledger_response.rb
279
- - lib/schematic/credits/types/count_credit_ledger_params.rb
280
- - lib/schematic/credits/types/count_credit_ledger_request.rb
281
- - lib/schematic/credits/types/count_credit_ledger_response.rb
282
282
  - lib/schematic/credits/types/create_billing_credit_request_body.rb
283
283
  - lib/schematic/credits/types/create_billing_credit_response.rb
284
284
  - lib/schematic/credits/types/create_billing_plan_credit_grant_response.rb
@@ -292,9 +292,6 @@ files:
292
292
  - lib/schematic/credits/types/extend_credit_lease_request_body.rb
293
293
  - lib/schematic/credits/types/extend_credit_lease_response.rb
294
294
  - lib/schematic/credits/types/get_credit_bundle_response.rb
295
- - lib/schematic/credits/types/get_enriched_credit_ledger_params.rb
296
- - lib/schematic/credits/types/get_enriched_credit_ledger_request.rb
297
- - lib/schematic/credits/types/get_enriched_credit_ledger_response.rb
298
295
  - lib/schematic/credits/types/get_single_billing_credit_response.rb
299
296
  - lib/schematic/credits/types/get_single_billing_plan_credit_grant_response.rb
300
297
  - lib/schematic/credits/types/grant_billing_credits_to_company_response.rb
@@ -656,6 +653,7 @@ files:
656
653
  - lib/schematic/types/checkout_settings_response_data.rb
657
654
  - lib/schematic/types/checkout_subscription.rb
658
655
  - lib/schematic/types/clerk_integration_config.rb
656
+ - lib/schematic/types/company_credit_balance.rb
659
657
  - lib/schematic/types/company_credit_balance_response_data.rb
660
658
  - lib/schematic/types/company_detail_response_data.rb
661
659
  - lib/schematic/types/company_event_period_metrics_response_data.rb
@@ -720,8 +718,6 @@ files:
720
718
  - lib/schematic/types/credit_grant_expiry_request_body.rb
721
719
  - lib/schematic/types/credit_grant_sort_order.rb
722
720
  - lib/schematic/types/credit_lease_response_data.rb
723
- - lib/schematic/types/credit_ledger_enriched_entry_response_data.rb
724
- - lib/schematic/types/credit_ledger_period.rb
725
721
  - lib/schematic/types/credit_transfer_response_data.rb
726
722
  - lib/schematic/types/credit_transfer_view.rb
727
723
  - lib/schematic/types/credit_trigger_config.rb
@@ -924,6 +920,7 @@ files:
924
920
  - lib/schematic/types/subscription_type.rb
925
921
  - lib/schematic/types/temporary_access_token_resource_type.rb
926
922
  - lib/schematic/types/temporary_access_token_response_data.rb
923
+ - lib/schematic/types/test_webhook_response_data.rb
927
924
  - lib/schematic/types/time_series_granularity.rb
928
925
  - lib/schematic/types/top_feature_by_usage_response_data.rb
929
926
  - lib/schematic/types/top_features_by_usage_response_data.rb
@@ -982,6 +979,8 @@ files:
982
979
  - lib/schematic/webhooks/types/list_webhooks_params.rb
983
980
  - lib/schematic/webhooks/types/list_webhooks_request.rb
984
981
  - lib/schematic/webhooks/types/list_webhooks_response.rb
982
+ - lib/schematic/webhooks/types/send_test_webhook_action_response.rb
983
+ - lib/schematic/webhooks/types/test_webhook_request_body.rb
985
984
  - lib/schematic/webhooks/types/update_webhook_request_body.rb
986
985
  - lib/schematic/webhooks/types/update_webhook_response.rb
987
986
  - lib/schematichq.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