schematichq 1.5.1 → 1.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a148154577d68e12ccdcd07a3546ec7ed187e39dd3768a0cd7c9519297e08f4
4
- data.tar.gz: b5ff4f21ce1fdd2c20e98f9b89c83e253fb7e7aef795537fee19db16f15888d7
3
+ metadata.gz: d5f68b11540e455fec79249c0a3e8a6bca7279e00ae3192f855e424eba9314c9
4
+ data.tar.gz: 732ed6c93fc15dd15b453fb4b873c4f1c252db187a750e6a633a76c6088feefa
5
5
  SHA512:
6
- metadata.gz: 1313a590626a5f2414d9b7191282d72ce5ae846f4ec45f3c12c1dfee8e9f89c251724365170eaace986e72da8365f4eae993f52f0fc2fc30c264ca3be1b654dd
7
- data.tar.gz: 9599cf974ed63293f84e6b58bb8f5aac39904f981b8fde146b1b52e3d92cd6a0cca90146074d1dbe5bd533ba0f8cc2d6f9801e1f6a00e54ea2322fa56d297ed3
6
+ metadata.gz: 8a3063e0d0d534c99d77b4cbc98272953ccbc04292f67768e7323d99faeaddc69f520ac91922c7c9d695fdb2b4240643213ecbdbe75d03a249871385e7ec5386
7
+ data.tar.gz: 67d03301abfdbb17162052217094762e656afee2b0f2e4ed32244858f17f5a807c62a866281de236776d53838e40bc08fa1537cbb3794f0e4c7d081d2de0e12b
data/.fern/metadata.json CHANGED
@@ -13,10 +13,10 @@
13
13
  "webrick": ">= 1.0"
14
14
  }
15
15
  },
16
- "originGitCommit": "1d6a1c9cf0e1d72ea8ede6e7e8f84d35ffbd8be3",
16
+ "originGitCommit": "4ca95f7ba356ea2c3b42db5e3e78c064477b3a8d",
17
17
  "originGitCommitIsDirty": false,
18
18
  "invokedBy": "ci",
19
- "requestedVersion": "1.5.1",
19
+ "requestedVersion": "1.5.2",
20
20
  "ciProvider": "github",
21
- "sdkVersion": "1.5.1"
21
+ "sdkVersion": "1.5.2"
22
22
  }
data/.fern/replay.lock CHANGED
@@ -108,14 +108,20 @@ generations:
108
108
  cli_version: unknown
109
109
  generator_versions:
110
110
  fernapi/fern-ruby-sdk: 1.25.0
111
- current_generation: e22ae14fff5d0a5d3222b98154a1d1bc42b99dd8
111
+ - commit_sha: ec0eabecc3325dfe0a69590f9a2f4e52c3c18ade
112
+ tree_hash: 10ac19e0d7c216b0cf04c6620979634798d2ca8a
113
+ timestamp: 2026-09-28T10:03:35.278Z
114
+ cli_version: unknown
115
+ generator_versions:
116
+ fernapi/fern-ruby-sdk: 1.25.0
117
+ current_generation: ec0eabecc3325dfe0a69590f9a2f4e52c3c18ade
112
118
  patches:
113
119
  - id: patch-5da692c2
114
120
  content_hash: sha256:e652287219a0a709e16112ced444e6472c6fa8bdfe888edf868caaf9769a9472
115
121
  original_commit: 5da692c20aef08577d900f9a860b5f78a549418e
116
122
  original_message: inject host time into datastream wasm rules engine (SCHY-471)
117
123
  original_author: Christopher Brady <chris@schematichq.com>
118
- base_generation: e22ae14fff5d0a5d3222b98154a1d1bc42b99dd8
124
+ base_generation: ec0eabecc3325dfe0a69590f9a2f4e52c3c18ade
119
125
  files:
120
126
  - test/rules_engine_clock_test.rb
121
127
  patch_content: |
@@ -283,7 +289,7 @@ patches:
283
289
  original_commit: ee61788c5a83fce5dd5768b2536391459550d176
284
290
  original_message: fix rubocop offenses in clock regression test (SCHY-471)
285
291
  original_author: Christopher Brady <chris@schematichq.com>
286
- base_generation: e22ae14fff5d0a5d3222b98154a1d1bc42b99dd8
292
+ base_generation: ec0eabecc3325dfe0a69590f9a2f4e52c3c18ade
287
293
  files:
288
294
  - test/rules_engine_clock_test.rb
289
295
  patch_content: |
data/WASM_VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.9.0
@@ -32,6 +32,8 @@ module Schematic
32
32
 
33
33
  field :subtotal, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :total, -> { Integer }, optional: true, nullable: false
36
+
35
37
  field :url, -> { String }, optional: true, nullable: false
36
38
  end
37
39
  end
@@ -42,7 +42,7 @@ module Schematic
42
42
  @raw_client = Schematic::Internal::Http::RawClient.new(
43
43
  base_url: base_url || Schematic::Environment::DEFAULT,
44
44
  headers: {
45
- "User-Agent" => "schematichq/1.5.1",
45
+ "User-Agent" => "schematichq/1.5.2",
46
46
  "X-Fern-Language" => "Ruby",
47
47
  "X-Schematic-Api-Key" => api_key.to_s
48
48
  },
@@ -15,6 +15,8 @@ module Schematic
15
15
 
16
16
  field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
17
17
 
18
+ field :currency, -> { String }, optional: true, nullable: false
19
+
18
20
  field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
19
21
 
20
22
  field :new_plan_id, -> { String }, optional: false, nullable: false
@@ -13,6 +13,8 @@ module Schematic
13
13
 
14
14
  field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
15
15
 
16
+ field :currency, -> { String }, optional: true, nullable: false
17
+
16
18
  field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
17
19
 
18
20
  field :new_plan_id, -> { String }, optional: false, nullable: false
@@ -9,6 +9,7 @@ module Schematic
9
9
  SUBSCRIPTION = "subscription"
10
10
  USERS = "users"
11
11
  LAST_SEEN_AT = "last_seen_at"
12
+ CREATED_AT = "created_at"
12
13
  end
13
14
  end
14
15
  end
@@ -67,6 +67,8 @@ module Schematic
67
67
 
68
68
  field :usage_reason, -> { Schematic::Types::CreditUsageReason }, optional: true, nullable: false
69
69
 
70
+ field :user_id, -> { String }, optional: true, nullable: false
71
+
70
72
  field :zeroed_out_reason, -> { Schematic::Types::BillingCreditGrantZeroedOutReason }, optional: true, nullable: false
71
73
  end
72
74
  end
@@ -29,6 +29,8 @@ module Schematic
29
29
 
30
30
  field :subtotal, -> { Integer }, optional: false, nullable: false
31
31
 
32
+ field :total, -> { Integer }, optional: true, nullable: false
33
+
32
34
  field :url, -> { String }, optional: true, nullable: false
33
35
  end
34
36
  end
@@ -41,6 +41,8 @@ module Schematic
41
41
 
42
42
  field :subtotal, -> { Integer }, optional: false, nullable: false
43
43
 
44
+ field :total, -> { Integer }, optional: true, nullable: false
45
+
44
46
  field :updated_at, -> { String }, optional: false, nullable: false
45
47
 
46
48
  field :url, -> { String }, optional: true, nullable: false
@@ -29,6 +29,8 @@ module Schematic
29
29
 
30
30
  field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
31
31
 
32
+ field :currency, -> { String }, optional: true, nullable: false
33
+
32
34
  field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
33
35
 
34
36
  field :days_until_due, -> { Integer }, optional: true, nullable: false
@@ -5,6 +5,8 @@ module Schematic
5
5
  class PreviewSubscriptionFinanceResponseData < Internal::Types::Model
6
6
  field :amount_off, -> { Integer }, optional: false, nullable: false
7
7
 
8
+ field :currency, -> { String }, optional: false, nullable: false
9
+
8
10
  field :discount_amount, -> { Integer }, optional: false, nullable: false
9
11
 
10
12
  field :discounts, -> { Internal::Types::Array[Schematic::Types::PreviewSubscriptionDiscountResponseData] }, optional: false, nullable: false
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module RulesengineComparableOperator
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ EQ = "eq"
9
+ GT = "gt"
10
+ GTE = "gte"
11
+ IS_EMPTY = "is_empty"
12
+ LT = "lt"
13
+ LTE = "lte"
14
+ NOT_EMPTY = "not_empty"
15
+ NE = "ne"
16
+ end
17
+ end
18
+ end
@@ -25,7 +25,7 @@ module Schematic
25
25
 
26
26
  field :metric_value, -> { Integer }, optional: true, nullable: false
27
27
 
28
- field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
28
+ field :operator, -> { Schematic::Types::RulesengineComparableOperator }, optional: false, nullable: false
29
29
 
30
30
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
31
31
 
@@ -39,6 +39,8 @@ module Schematic
39
39
 
40
40
  field :subtotal, -> { Integer }, optional: false, nullable: false
41
41
 
42
+ field :total, -> { Integer }, optional: true, nullable: false
43
+
42
44
  field :updated_at, -> { String }, optional: false, nullable: false
43
45
 
44
46
  field :url, -> { String }, optional: true, nullable: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Schematic
4
- VERSION = "1.5.1"
4
+ VERSION = "1.5.2"
5
5
  end
Binary file
data/lib/schematic.rb CHANGED
@@ -869,6 +869,7 @@ require_relative "schematic/types/rulesengine_feature_entitlement"
869
869
  require_relative "schematic/types/rulesengine_rule_type"
870
870
  require_relative "schematic/types/rulesengine_check_flag_result"
871
871
  require_relative "schematic/types/rulesengine_company_metric"
872
+ require_relative "schematic/types/rulesengine_comparable_operator"
872
873
  require_relative "schematic/types/rulesengine_condition_type"
873
874
  require_relative "schematic/types/rulesengine_entity_type"
874
875
  require_relative "schematic/types/rulesengine_trait_definition_comparable_type"
data/reference.md CHANGED
@@ -2235,6 +2235,14 @@ client.billing.upsert_invoice(
2235
2235
  <dl>
2236
2236
  <dd>
2237
2237
 
2238
+ **total:** `Integer`
2239
+
2240
+ </dd>
2241
+ </dl>
2242
+
2243
+ <dl>
2244
+ <dd>
2245
+
2238
2246
  **url:** `String`
2239
2247
 
2240
2248
  </dd>
@@ -13699,7 +13707,7 @@ client.entitlements.create_plan_entitlement(
13699
13707
  <dl>
13700
13708
  <dd>
13701
13709
 
13702
- **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
13710
+ **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.
13703
13711
 
13704
13712
  </dd>
13705
13713
  </dl>
@@ -14062,7 +14070,7 @@ client.entitlements.update_plan_entitlement(
14062
14070
  <dl>
14063
14071
  <dd>
14064
14072
 
14065
- **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
14073
+ **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.
14066
14074
 
14067
14075
  </dd>
14068
14076
  </dl>
@@ -14460,7 +14468,7 @@ client.entitlements.upsert_plan_entitlement_for_billing_product(
14460
14468
  <dl>
14461
14469
  <dd>
14462
14470
 
14463
- **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use.
14471
+ **usage_quantity:** `Integer` — The committed unit quantity for this entitlement. For custom plans this is the minimum the company is contractually committed to: the company can buy more, and finalizing a new plan version sets the subscription quantity to the larger of this value and what the subscription already holds. For standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements.
14464
14472
 
14465
14473
  </dd>
14466
14474
  </dl>
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.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Schematic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-21 00:00:00.000000000 Z
11
+ date: 2026-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wasmtime
@@ -1061,6 +1061,7 @@ files:
1061
1061
  - lib/schematic/types/rulesengine_check_flag_result.rb
1062
1062
  - lib/schematic/types/rulesengine_company.rb
1063
1063
  - lib/schematic/types/rulesengine_company_metric.rb
1064
+ - lib/schematic/types/rulesengine_comparable_operator.rb
1064
1065
  - lib/schematic/types/rulesengine_condition.rb
1065
1066
  - lib/schematic/types/rulesengine_condition_group.rb
1066
1067
  - lib/schematic/types/rulesengine_condition_type.rb