schematichq 1.5.9 → 1.5.10

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +7 -1
  4. data/README.md +6 -2
  5. data/lib/schematic/accesstokens/types/issue_temporary_access_token_request_body.rb +2 -0
  6. data/lib/schematic/accounts/client.rb +6 -0
  7. data/lib/schematic/accounts/types/count_audit_logs_params.rb +2 -0
  8. data/lib/schematic/accounts/types/count_audit_logs_request.rb +2 -0
  9. data/lib/schematic/accounts/types/list_audit_logs_params.rb +2 -0
  10. data/lib/schematic/accounts/types/list_audit_logs_request.rb +2 -0
  11. data/lib/schematic/client.rb +1 -1
  12. data/lib/schematic/credits/leases/check.rb +1 -1
  13. data/lib/schematic/events/client.rb +112 -0
  14. data/lib/schematic/events/types/get_inference_cost_params.rb +16 -0
  15. data/lib/schematic/events/types/get_inference_cost_request.rb +13 -0
  16. data/lib/schematic/events/types/get_inference_cost_response.rb +15 -0
  17. data/lib/schematic/events/types/list_inference_cost_rates_params.rb +22 -0
  18. data/lib/schematic/events/types/list_inference_cost_rates_request.rb +19 -0
  19. data/lib/schematic/events/types/list_inference_cost_rates_response.rb +15 -0
  20. data/lib/schematic/integrationsapi/client.rb +40 -0
  21. data/lib/schematic/integrationsapi/types/get_zuora_connection_health_response.rb +15 -0
  22. data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +2 -0
  23. data/lib/schematic/planbundle/types/update_plan_bundle_request_body.rb +2 -0
  24. data/lib/schematic/schematic_client.rb +6 -1
  25. data/lib/schematic/types/audit_log_end_user_response_data.rb +13 -0
  26. data/lib/schematic/types/audit_log_list_response_data.rb +4 -0
  27. data/lib/schematic/types/audit_log_response_data.rb +4 -0
  28. data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +2 -0
  29. data/lib/schematic/types/company_subscription_response_data.rb +2 -0
  30. data/lib/schematic/types/credit_balance_export_metadata.rb +17 -0
  31. data/lib/schematic/types/data_export_metadata.rb +4 -0
  32. data/lib/schematic/types/data_export_type.rb +2 -0
  33. data/lib/schematic/types/inference_cost_rate_response_data.rb +31 -0
  34. data/lib/schematic/types/inference_cost_rate_scope.rb +14 -0
  35. data/lib/schematic/types/inference_cost_response_data.rb +21 -0
  36. data/lib/schematic/types/integration_config.rb +2 -0
  37. data/lib/schematic/types/integration_type.rb +1 -0
  38. data/lib/schematic/types/issue_temporary_access_token_response_data.rb +2 -0
  39. data/lib/schematic/types/plan_version_response_data.rb +2 -0
  40. data/lib/schematic/types/preview_subscription_change_response_data.rb +2 -0
  41. data/lib/schematic/types/publish_preview_response_data.rb +2 -0
  42. data/lib/schematic/types/renewal_destination_request_body.rb +13 -0
  43. data/lib/schematic/types/renewal_destination_response_data.rb +13 -0
  44. data/lib/schematic/types/renewal_policy.rb +1 -0
  45. data/lib/schematic/types/scheduled_checkout_response_data.rb +2 -0
  46. data/lib/schematic/types/temporary_access_token_response_data.rb +2 -0
  47. data/lib/schematic/types/user_export_metadata.rb +24 -0
  48. data/lib/schematic/types/webhook_request_type.rb +2 -0
  49. data/lib/schematic/types/zuora_connection_health.rb +15 -0
  50. data/lib/schematic/types/zuora_integration_config.rb +13 -0
  51. data/lib/schematic/version.rb +1 -1
  52. data/lib/schematic.rb +17 -0
  53. data/reference.md +231 -4
  54. metadata +19 -2
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ module InferenceCostRateScope
8
+ extend Schematic::Internal::Types::Enum
9
+
10
+ ACCOUNT = "account"
11
+ LIST_PRICE = "list_price"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class InferenceCostResponseData < Internal::Types::Model
8
+ field :by_model, -> { Internal::Types::Array[Schematic::Types::InferenceModelCostResponseData] }, optional: false, nullable: false
9
+
10
+ field :costs, -> { Internal::Types::Array[Schematic::Types::InferenceCostAmountResponseData] }, optional: false, nullable: false
11
+
12
+ field :end_time, -> { String }, optional: false, nullable: false
13
+
14
+ field :event_count, -> { Integer }, optional: false, nullable: false
15
+
16
+ field :start_time, -> { String }, optional: false, nullable: false
17
+
18
+ field :unpriced_event_count, -> { Integer }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -18,6 +18,8 @@ module Schematic
18
18
  member -> { Schematic::Types::StripeIntegrationConfig }, key: "STRIPE"
19
19
 
20
20
  member -> { Schematic::Types::WorkOsIntegrationConfig }, key: "WORKOS"
21
+
22
+ member -> { Schematic::Types::ZuoraIntegrationConfig }, key: "ZUORA"
21
23
  end
22
24
  end
23
25
  end
@@ -13,6 +13,7 @@ module Schematic
13
13
  STRIPE = "stripe"
14
14
  UNKNOWN = "unknown"
15
15
  WORKOS = "workos"
16
+ ZUORA = "zuora"
16
17
  end
17
18
  end
18
19
  end
@@ -22,6 +22,8 @@ module Schematic
22
22
  field :token, -> { String }, optional: false, nullable: false
23
23
 
24
24
  field :updated_at, -> { String }, optional: false, nullable: false
25
+
26
+ field :user_id, -> { String }, optional: true, nullable: false
25
27
  end
26
28
  end
27
29
  end
@@ -21,6 +21,8 @@ module Schematic
21
21
 
22
22
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
23
23
 
24
+ field :renewal_destination, -> { Schematic::Types::RenewalDestinationResponseData }, optional: true, nullable: false
25
+
24
26
  field :renewal_policy, -> { Schematic::Types::RenewalPolicy }, optional: false, nullable: false
25
27
 
26
28
  field :status, -> { Schematic::Types::PlanVersionStatus }, optional: false, nullable: false
@@ -37,6 +37,8 @@ module Schematic
37
37
 
38
38
  field :trial_end, -> { String }, optional: true, nullable: false
39
39
 
40
+ field :unbilled_usage_feature_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
41
+
40
42
  field :usage_violations, -> { Internal::Types::Array[Schematic::Types::FeatureUsageResponseData] }, optional: false, nullable: false
41
43
  end
42
44
  end
@@ -23,6 +23,8 @@ module Schematic
23
23
 
24
24
  field :default_send_invoice, -> { Internal::Types::Boolean }, optional: false, nullable: false
25
25
 
26
+ field :earliest_end_date, -> { String }, optional: true, nullable: false
27
+
26
28
  field :effective_at, -> { String }, optional: true, nullable: false
27
29
 
28
30
  field :ends_at, -> { String }, optional: true, nullable: false
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class RenewalDestinationRequestBody < Internal::Types::Model
8
+ field :billing_period, -> { Schematic::Types::PlanPriceCadence }, optional: true, nullable: false
9
+
10
+ field :plan_id, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class RenewalDestinationResponseData < Internal::Types::Model
8
+ field :billing_period, -> { Schematic::Types::PlanPriceCadence }, optional: false, nullable: false
9
+
10
+ field :plan_id, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -10,6 +10,7 @@ module Schematic
10
10
  AUTO_RENEW = "auto_renew"
11
11
  EXPIRE_TO_DEFAULT = "expire_to_default"
12
12
  HOLD_WITH_GRACE = "hold_with_grace"
13
+ MIGRATE_TO_PLAN = "migrate_to_plan"
13
14
  end
14
15
  end
15
16
  end
@@ -23,6 +23,8 @@ module Schematic
23
23
 
24
24
  field :scheduled_interval, -> { String }, optional: true, nullable: false
25
25
 
26
+ field :scheduled_interval_count, -> { Integer }, optional: true, nullable: false
27
+
26
28
  field :scheduled_price, -> { Integer }, optional: true, nullable: false
27
29
 
28
30
  field :started_at, -> { String }, optional: true, nullable: false
@@ -20,6 +20,8 @@ module Schematic
20
20
  field :resource_type, -> { String }, optional: false, nullable: false
21
21
 
22
22
  field :updated_at, -> { String }, optional: false, nullable: false
23
+
24
+ field :user_id, -> { String }, optional: true, nullable: false
23
25
  end
24
26
  end
25
27
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ # Exports one row per user, oldest first. Omitting every filter exports every user in the environment.
8
+ class UserExportMetadata < Internal::Types::Model
9
+ field :company_id, -> { String }, optional: true, nullable: false
10
+
11
+ field :entity_key_definition_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
12
+
13
+ field :entity_trait_definition_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
14
+
15
+ field :ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
16
+
17
+ field :notification_email_recipient_email_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
18
+
19
+ field :plan_id, -> { String }, optional: true, nullable: false
20
+
21
+ field :q, -> { String }, optional: true, nullable: false
22
+ end
23
+ end
24
+ end
@@ -21,6 +21,8 @@ module Schematic
21
21
  CREDIT_LIMIT_WARNING = "credit.limit.warning"
22
22
  CREDIT_PURCHASE_SUCCESS = "credit.purchase.success"
23
23
  CREDIT_USAGE_WARNING_REACHED = "credit.usage_warning_reached"
24
+ DATA_EXPORT_COMPLETED = "data_export.completed"
25
+ DATA_EXPORT_FAILED = "data_export.failed"
24
26
  ENTITLEMENT_LIMIT_REACHED = "entitlement.limit.reached"
25
27
  ENTITLEMENT_LIMIT_WARNING = "entitlement.limit.warning"
26
28
  ENTITLEMENT_SOFT_LIMIT_REACHED = "entitlement.soft_limit.reached"
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class ZuoraConnectionHealth < Internal::Types::Model
8
+ field :checked_at, -> { String }, optional: false, nullable: false
9
+
10
+ field :healthy, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
+
12
+ field :message, -> { String }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class ZuoraIntegrationConfig < Internal::Types::Model
8
+ field :base_url, -> { String }, optional: true, nullable: false
9
+
10
+ field :client_id, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Schematic
4
- VERSION = "1.5.9"
4
+ VERSION = "1.5.10"
5
5
  end
data/lib/schematic.rb CHANGED
@@ -208,6 +208,8 @@ require_relative "schematic/events/client"
208
208
  require_relative "schematic/events/types/create_event_batch_request_body"
209
209
  require_relative "schematic/events/types/get_event_summaries_request"
210
210
  require_relative "schematic/events/types/list_events_request"
211
+ require_relative "schematic/events/types/get_inference_cost_request"
212
+ require_relative "schematic/events/types/list_inference_cost_rates_request"
211
213
  require_relative "schematic/events/types/list_account_inference_cost_rates_request"
212
214
  require_relative "schematic/events/types/create_account_inference_cost_rate_request_body"
213
215
  require_relative "schematic/events/types/update_account_inference_cost_rate_request_body"
@@ -282,6 +284,7 @@ module Schematic
282
284
  autoload :ApiKeyResponseData, ::File.join(__dir__, "schematic/types/api_key_response_data")
283
285
  autoload :ActorType, ::File.join(__dir__, "schematic/types/actor_type")
284
286
  autoload :AuditLogCompanyResponseData, ::File.join(__dir__, "schematic/types/audit_log_company_response_data")
287
+ autoload :AuditLogEndUserResponseData, ::File.join(__dir__, "schematic/types/audit_log_end_user_response_data")
285
288
  autoload :AuditLogListResponseData, ::File.join(__dir__, "schematic/types/audit_log_list_response_data")
286
289
  autoload :AuditLogResponseData, ::File.join(__dir__, "schematic/types/audit_log_response_data")
287
290
  autoload :OnboardingMilestone, ::File.join(__dir__, "schematic/types/onboarding_milestone")
@@ -450,6 +453,7 @@ module Schematic
450
453
  autoload :WarningTierResponseData, ::File.join(__dir__, "schematic/types/warning_tier_response_data")
451
454
  autoload :PlanEntitlementResponseData, ::File.join(__dir__, "schematic/types/plan_entitlement_response_data")
452
455
  autoload :PlanPriceCadence, ::File.join(__dir__, "schematic/types/plan_price_cadence")
456
+ autoload :RenewalDestinationResponseData, ::File.join(__dir__, "schematic/types/renewal_destination_response_data")
453
457
  autoload :RenewalPolicy, ::File.join(__dir__, "schematic/types/renewal_policy")
454
458
  autoload :PlanVersionResponseData, ::File.join(__dir__, "schematic/types/plan_version_response_data")
455
459
  autoload :PlanGroupPlanDetailResponseData, ::File.join(__dir__, "schematic/types/plan_group_plan_detail_response_data")
@@ -627,10 +631,12 @@ module Schematic
627
631
  autoload :CompanyFeatureUsageExportMetadataSortOrderDirection, ::File.join(__dir__, "schematic/types/company_feature_usage_export_metadata_sort_order_direction")
628
632
  autoload :CompanyFeatureUsageExportMetadataVisibleColumnsItem, ::File.join(__dir__, "schematic/types/company_feature_usage_export_metadata_visible_columns_item")
629
633
  autoload :CompanyFeatureUsageExportMetadata, ::File.join(__dir__, "schematic/types/company_feature_usage_export_metadata")
634
+ autoload :CreditBalanceExportMetadata, ::File.join(__dir__, "schematic/types/credit_balance_export_metadata")
630
635
  autoload :CreditLedgerExportMetadataEventType, ::File.join(__dir__, "schematic/types/credit_ledger_export_metadata_event_type")
631
636
  autoload :CreditLedgerExportMetadata, ::File.join(__dir__, "schematic/types/credit_ledger_export_metadata")
632
637
  autoload :EventExportMetadataEventTypesItem, ::File.join(__dir__, "schematic/types/event_export_metadata_event_types_item")
633
638
  autoload :EventExportMetadata, ::File.join(__dir__, "schematic/types/event_export_metadata")
639
+ autoload :UserExportMetadata, ::File.join(__dir__, "schematic/types/user_export_metadata")
634
640
  autoload :DataExportMetadata, ::File.join(__dir__, "schematic/types/data_export_metadata")
635
641
  autoload :DataExportOutputFileType, ::File.join(__dir__, "schematic/types/data_export_output_file_type")
636
642
  autoload :DataExportResponseData, ::File.join(__dir__, "schematic/types/data_export_response_data")
@@ -640,6 +646,9 @@ module Schematic
640
646
  autoload :EventStatus, ::File.join(__dir__, "schematic/types/event_status")
641
647
  autoload :InferenceCostSource, ::File.join(__dir__, "schematic/types/inference_cost_source")
642
648
  autoload :EventDetailResponseData, ::File.join(__dir__, "schematic/types/event_detail_response_data")
649
+ autoload :InferenceCostResponseData, ::File.join(__dir__, "schematic/types/inference_cost_response_data")
650
+ autoload :InferenceCostRateScope, ::File.join(__dir__, "schematic/types/inference_cost_rate_scope")
651
+ autoload :InferenceCostRateResponseData, ::File.join(__dir__, "schematic/types/inference_cost_rate_response_data")
643
652
  autoload :AccountInferenceCostRateResponseData, ::File.join(__dir__, "schematic/types/account_inference_cost_rate_response_data")
644
653
  autoload :OtlpEnvironmentSettingsResponseData, ::File.join(__dir__, "schematic/types/otlp_environment_settings_response_data")
645
654
  autoload :SegmentStatusResp, ::File.join(__dir__, "schematic/types/segment_status_resp")
@@ -672,6 +681,7 @@ module Schematic
672
681
  autoload :OrbIntegrationConfig, ::File.join(__dir__, "schematic/types/orb_integration_config")
673
682
  autoload :StripeIntegrationConfig, ::File.join(__dir__, "schematic/types/stripe_integration_config")
674
683
  autoload :WorkOsIntegrationConfig, ::File.join(__dir__, "schematic/types/work_os_integration_config")
684
+ autoload :ZuoraIntegrationConfig, ::File.join(__dir__, "schematic/types/zuora_integration_config")
675
685
  autoload :IntegrationConfig, ::File.join(__dir__, "schematic/types/integration_config")
676
686
  autoload :IntegrationsListResponseData, ::File.join(__dir__, "schematic/types/integrations_list_response_data")
677
687
  autoload :IntegrationWebhookUrlResponseData, ::File.join(__dir__, "schematic/types/integration_webhook_url_response_data")
@@ -684,6 +694,7 @@ module Schematic
684
694
  autoload :StripeSandboxKeysResponseData, ::File.join(__dir__, "schematic/types/stripe_sandbox_keys_response_data")
685
695
  autoload :StripeSandboxInstallResponseData, ::File.join(__dir__, "schematic/types/stripe_sandbox_install_response_data")
686
696
  autoload :StripeSandboxCountriesResponseData, ::File.join(__dir__, "schematic/types/stripe_sandbox_countries_response_data")
697
+ autoload :ZuoraConnectionHealth, ::File.join(__dir__, "schematic/types/zuora_connection_health")
687
698
  autoload :LicenseResponseData, ::File.join(__dir__, "schematic/types/license_response_data")
688
699
  autoload :CheckoutFieldResponseData, ::File.join(__dir__, "schematic/types/checkout_field_response_data")
689
700
  autoload :CheckoutSettingsResponseData, ::File.join(__dir__, "schematic/types/checkout_settings_response_data")
@@ -818,6 +829,7 @@ module Schematic
818
829
  autoload :PlanBundleEntitlementRequestBody, ::File.join(__dir__, "schematic/types/plan_bundle_entitlement_request_body")
819
830
  autoload :PlanCurrencyPriceRequestBody, ::File.join(__dir__, "schematic/types/plan_currency_price_request_body")
820
831
  autoload :PublishPlanVersionRequestBody, ::File.join(__dir__, "schematic/types/publish_plan_version_request_body")
832
+ autoload :RenewalDestinationRequestBody, ::File.join(__dir__, "schematic/types/renewal_destination_request_body")
821
833
  autoload :RuleConditionGroupResponseData, ::File.join(__dir__, "schematic/types/rule_condition_group_response_data")
822
834
  autoload :RuleConditionResponseData, ::File.join(__dir__, "schematic/types/rule_condition_response_data")
823
835
  autoload :RuleResponseData, ::File.join(__dir__, "schematic/types/rule_response_data")
@@ -1268,6 +1280,10 @@ module Schematic
1268
1280
  autoload :ListEventsResponse, ::File.join(__dir__, "schematic/events/types/list_events_response")
1269
1281
  autoload :CreateEventResponse, ::File.join(__dir__, "schematic/events/types/create_event_response")
1270
1282
  autoload :GetEventResponse, ::File.join(__dir__, "schematic/events/types/get_event_response")
1283
+ autoload :GetInferenceCostParams, ::File.join(__dir__, "schematic/events/types/get_inference_cost_params")
1284
+ autoload :GetInferenceCostResponse, ::File.join(__dir__, "schematic/events/types/get_inference_cost_response")
1285
+ autoload :ListInferenceCostRatesParams, ::File.join(__dir__, "schematic/events/types/list_inference_cost_rates_params")
1286
+ autoload :ListInferenceCostRatesResponse, ::File.join(__dir__, "schematic/events/types/list_inference_cost_rates_response")
1271
1287
  autoload :ListAccountInferenceCostRatesParams, ::File.join(__dir__, "schematic/events/types/list_account_inference_cost_rates_params")
1272
1288
  autoload :ListAccountInferenceCostRatesResponse, ::File.join(__dir__, "schematic/events/types/list_account_inference_cost_rates_response")
1273
1289
  autoload :CreateAccountInferenceCostRateResponse, ::File.join(__dir__, "schematic/events/types/create_account_inference_cost_rate_response")
@@ -1340,6 +1356,7 @@ module Schematic
1340
1356
  autoload :InstallStripeClaimableSandboxResponse, ::File.join(__dir__, "schematic/integrationsapi/types/install_stripe_claimable_sandbox_response")
1341
1357
  autoload :ListStripeSandboxCountriesResponse, ::File.join(__dir__, "schematic/integrationsapi/types/list_stripe_sandbox_countries_response")
1342
1358
  autoload :UninstallIntegrationResponse, ::File.join(__dir__, "schematic/integrationsapi/types/uninstall_integration_response")
1359
+ autoload :GetZuoraConnectionHealthResponse, ::File.join(__dir__, "schematic/integrationsapi/types/get_zuora_connection_health_response")
1343
1360
  end
1344
1361
  end
1345
1362
 
data/reference.md CHANGED
@@ -479,6 +479,7 @@ client.accounts.list_audit_logs(
479
479
  actor_type: "api_key",
480
480
  company_id: "company_id",
481
481
  end_time: "2024-01-15T09:30:00Z",
482
+ end_user_id: "end_user_id",
482
483
  environment_id: "environment_id",
483
484
  q: "q",
484
485
  start_time: "2024-01-15T09:30:00Z",
@@ -523,6 +524,14 @@ client.accounts.list_audit_logs(
523
524
  <dl>
524
525
  <dd>
525
526
 
527
+ **end_user_id:** `String` — Only entries made with a temporary access token issued for this user
528
+
529
+ </dd>
530
+ </dl>
531
+
532
+ <dl>
533
+ <dd>
534
+
526
535
  **environment_id:** `String`
527
536
 
528
537
  </dd>
@@ -640,6 +649,7 @@ client.accounts.count_audit_logs(
640
649
  actor_type: "api_key",
641
650
  company_id: "company_id",
642
651
  end_time: "2024-01-15T09:30:00Z",
652
+ end_user_id: "end_user_id",
643
653
  environment_id: "environment_id",
644
654
  q: "q",
645
655
  start_time: "2024-01-15T09:30:00Z",
@@ -684,6 +694,14 @@ client.accounts.count_audit_logs(
684
694
  <dl>
685
695
  <dd>
686
696
 
697
+ **end_user_id:** `String` — Only entries made with a temporary access token issued for this user
698
+
699
+ </dd>
700
+ </dl>
701
+
702
+ <dl>
703
+ <dd>
704
+
687
705
  **environment_id:** `String`
688
706
 
689
707
  </dd>
@@ -15523,7 +15541,7 @@ client.entitlements.create_plan_entitlement(
15523
15541
  <dl>
15524
15542
  <dd>
15525
15543
 
15526
- **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
15544
+ **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. A monthly allowance on a plan with a quarterly or yearly price is billed monthly instead, because the provider would apply one allowance to the whole period; an allowance that resets daily or weekly is refused when Stripe bills the overage. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
15527
15545
 
15528
15546
  </dd>
15529
15547
  </dl>
@@ -15918,7 +15936,7 @@ client.entitlements.update_plan_entitlement(
15918
15936
  <dl>
15919
15937
  <dd>
15920
15938
 
15921
- **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
15939
+ **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. A monthly allowance on a plan with a quarterly or yearly price is billed monthly instead, because the provider would apply one allowance to the whole period; an allowance that resets daily or weekly is refused when Stripe bills the overage. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
15922
15940
 
15923
15941
  </dd>
15924
15942
  </dl>
@@ -16316,7 +16334,7 @@ client.entitlements.upsert_plan_entitlement_for_billing_product(
16316
16334
  <dl>
16317
16335
  <dd>
16318
16336
 
16319
- **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
16337
+ **overage_billing_cadence:** `Schematic::Types::BillingArrearsCadence` — How often overage charges are assessed and invoiced. Defaults to end_of_billing_period, where the billing provider aggregates usage over the subscription's own period and bills it at period end. A monthly allowance on a plan with a quarterly or yearly price is billed monthly instead, because the provider would apply one allowance to the whole period; an allowance that resets daily or weekly is refused when Stripe bills the overage. Set to monthly or quarterly to have overage assessed each month or quarter and billed on its own invoice, which is the point of the setting on annual plans. A quarter charges each month's usage against that month's allowance. Only applies to overage price behavior.
16320
16338
 
16321
16339
  </dd>
16322
16340
  </dl>
@@ -19503,6 +19521,14 @@ client.planbundle.create_custom_plan_bundle(
19503
19521
  <dl>
19504
19522
  <dd>
19505
19523
 
19524
+ **renewal_destination:** `Schematic::Types::RenewalDestinationRequestBody` — Where the company moves at term end when renewal_policy is migrate_to_plan. Required for that policy and refused for any other.
19525
+
19526
+ </dd>
19527
+ </dl>
19528
+
19529
+ <dl>
19530
+ <dd>
19531
+
19506
19532
  **renewal_policy:** `Schematic::Types::RenewalPolicy`
19507
19533
 
19508
19534
  </dd>
@@ -19695,6 +19721,14 @@ client.planbundle.update_plan_bundle(
19695
19721
  <dl>
19696
19722
  <dd>
19697
19723
 
19724
+ **renewal_destination:** `Schematic::Types::RenewalDestinationRequestBody` — Where the company moves at term end when the version's renewal_policy is migrate_to_plan. Left out, the version keeps the destination it has; refused for any other policy.
19725
+
19726
+ </dd>
19727
+ </dl>
19728
+
19729
+ <dl>
19730
+ <dd>
19731
+
19698
19732
  **renewal_policy:** `Schematic::Types::RenewalPolicy`
19699
19733
 
19700
19734
  </dd>
@@ -20596,6 +20630,151 @@ client.events.get_event(event_id: "event_id")
20596
20630
  </dl>
20597
20631
 
20598
20632
 
20633
+ </dd>
20634
+ </dl>
20635
+ </details>
20636
+
20637
+ <details><summary><code>client.events.<a href="/lib/schematic/events/client.rb">get_inference_cost</a>() -> Schematic::Events::Types::GetInferenceCostResponse</code></summary>
20638
+ <dl>
20639
+ <dd>
20640
+
20641
+ #### 🔌 Usage
20642
+
20643
+ <dl>
20644
+ <dd>
20645
+
20646
+ <dl>
20647
+ <dd>
20648
+
20649
+ ```ruby
20650
+ client.events.get_inference_cost(
20651
+ end_time: "2024-01-15T09:30:00Z",
20652
+ start_time: "2024-01-15T09:30:00Z"
20653
+ )
20654
+ ```
20655
+ </dd>
20656
+ </dl>
20657
+ </dd>
20658
+ </dl>
20659
+
20660
+ #### ⚙️ Parameters
20661
+
20662
+ <dl>
20663
+ <dd>
20664
+
20665
+ <dl>
20666
+ <dd>
20667
+
20668
+ **end_time:** `String` — End of the window (exclusive). Pass together with start_time; when both are omitted, the current calendar month in UTC is used
20669
+
20670
+ </dd>
20671
+ </dl>
20672
+
20673
+ <dl>
20674
+ <dd>
20675
+
20676
+ **start_time:** `String` — Start of the window (inclusive). Pass together with end_time; when both are omitted, the current calendar month in UTC is used
20677
+
20678
+ </dd>
20679
+ </dl>
20680
+
20681
+ <dl>
20682
+ <dd>
20683
+
20684
+ **request_options:** `Schematic::Events::RequestOptions`
20685
+
20686
+ </dd>
20687
+ </dl>
20688
+ </dd>
20689
+ </dl>
20690
+
20691
+
20692
+ </dd>
20693
+ </dl>
20694
+ </details>
20695
+
20696
+ <details><summary><code>client.events.<a href="/lib/schematic/events/client.rb">list_inference_cost_rates</a>() -> Schematic::Events::Types::ListInferenceCostRatesResponse</code></summary>
20697
+ <dl>
20698
+ <dd>
20699
+
20700
+ #### 🔌 Usage
20701
+
20702
+ <dl>
20703
+ <dd>
20704
+
20705
+ <dl>
20706
+ <dd>
20707
+
20708
+ ```ruby
20709
+ client.events.list_inference_cost_rates(
20710
+ provider: "provider",
20711
+ response_model: "response_model",
20712
+ scope: "account",
20713
+ limit: 1000000,
20714
+ offset: 1000000
20715
+ )
20716
+ ```
20717
+ </dd>
20718
+ </dl>
20719
+ </dd>
20720
+ </dl>
20721
+
20722
+ #### ⚙️ Parameters
20723
+
20724
+ <dl>
20725
+ <dd>
20726
+
20727
+ <dl>
20728
+ <dd>
20729
+
20730
+ **provider:** `String`
20731
+
20732
+ </dd>
20733
+ </dl>
20734
+
20735
+ <dl>
20736
+ <dd>
20737
+
20738
+ **response_model:** `String`
20739
+
20740
+ </dd>
20741
+ </dl>
20742
+
20743
+ <dl>
20744
+ <dd>
20745
+
20746
+ **scope:** `Schematic::Types::InferenceCostRateScope` — Only list rates from this sheet: list_price for Schematic's list prices, account for the environment's own rate sheet.
20747
+
20748
+ </dd>
20749
+ </dl>
20750
+
20751
+ <dl>
20752
+ <dd>
20753
+
20754
+ **limit:** `Integer` — Page limit (default 100)
20755
+
20756
+ </dd>
20757
+ </dl>
20758
+
20759
+ <dl>
20760
+ <dd>
20761
+
20762
+ **offset:** `Integer` — Page offset (default 0)
20763
+
20764
+ </dd>
20765
+ </dl>
20766
+
20767
+ <dl>
20768
+ <dd>
20769
+
20770
+ **request_options:** `Schematic::Events::RequestOptions`
20771
+
20772
+ </dd>
20773
+ </dl>
20774
+ </dd>
20775
+ </dl>
20776
+
20777
+
20599
20778
  </dd>
20600
20779
  </dl>
20601
20780
  </details>
@@ -23672,6 +23851,46 @@ client.integrationsapi.uninstall_integration(integration_id: "integration_id")
23672
23851
  </dl>
23673
23852
 
23674
23853
 
23854
+ </dd>
23855
+ </dl>
23856
+ </details>
23857
+
23858
+ <details><summary><code>client.integrationsapi.<a href="/lib/schematic/integrationsapi/client.rb">get_zuora_connection_health</a>() -> Schematic::Integrationsapi::Types::GetZuoraConnectionHealthResponse</code></summary>
23859
+ <dl>
23860
+ <dd>
23861
+
23862
+ #### 🔌 Usage
23863
+
23864
+ <dl>
23865
+ <dd>
23866
+
23867
+ <dl>
23868
+ <dd>
23869
+
23870
+ ```ruby
23871
+ client.integrationsapi.get_zuora_connection_health
23872
+ ```
23873
+ </dd>
23874
+ </dl>
23875
+ </dd>
23876
+ </dl>
23877
+
23878
+ #### ⚙️ Parameters
23879
+
23880
+ <dl>
23881
+ <dd>
23882
+
23883
+ <dl>
23884
+ <dd>
23885
+
23886
+ **request_options:** `Schematic::Integrationsapi::RequestOptions`
23887
+
23888
+ </dd>
23889
+ </dl>
23890
+ </dd>
23891
+ </dl>
23892
+
23893
+
23675
23894
  </dd>
23676
23895
  </dl>
23677
23896
  </details>
@@ -25896,7 +26115,7 @@ client.accesstokens.issue_temporary_access_token(
25896
26115
  <dl>
25897
26116
  <dd>
25898
26117
 
25899
- **lookup:** `Internal::Types::Hash[String, String]`
26118
+ **lookup:** `Internal::Types::Hash[String, String]` — Key-value pairs that identify the company the token is for, such as {"id": "your-company-id"}.
25900
26119
 
25901
26120
  </dd>
25902
26121
  </dl>
@@ -25912,6 +26131,14 @@ client.accesstokens.issue_temporary_access_token(
25912
26131
  <dl>
25913
26132
  <dd>
25914
26133
 
26134
+ **user_lookup:** `Internal::Types::Hash[String, String]` — Optional key-value pairs that identify the user of your app the token is for, such as {"email": "user@example.com"}. The user must belong to the company named by lookup. Writes made with the token are attributed to this user in the audit log; the token's access is the same either way.
26135
+
26136
+ </dd>
26137
+ </dl>
26138
+
26139
+ <dl>
26140
+ <dd>
26141
+
25915
26142
  **request_options:** `Schematic::Accesstokens::RequestOptions`
25916
26143
 
25917
26144
  </dd>