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 +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +9 -3
- data/WASM_VERSION +1 -1
- data/lib/schematic/billing/types/create_invoice_request_body.rb +2 -0
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/types/change_subscription_internal_request_body.rb +2 -0
- data/lib/schematic/types/change_subscription_request_body.rb +2 -0
- data/lib/schematic/types/company_feature_usage_export_metadata_visible_columns_item.rb +1 -0
- data/lib/schematic/types/credit_event_ledger_response_data.rb +2 -0
- data/lib/schematic/types/invoice_request_body.rb +2 -0
- data/lib/schematic/types/invoice_response_data.rb +2 -0
- data/lib/schematic/types/manage_plan_request.rb +2 -0
- data/lib/schematic/types/preview_subscription_finance_response_data.rb +2 -0
- data/lib/schematic/types/rulesengine_comparable_operator.rb +18 -0
- data/lib/schematic/types/rulesengine_condition.rb +1 -1
- data/lib/schematic/types/upcoming_invoice_response_data.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic.rb +1 -0
- data/reference.md +11 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5f68b11540e455fec79249c0a3e8a6bca7279e00ae3192f855e424eba9314c9
|
|
4
|
+
data.tar.gz: 732ed6c93fc15dd15b453fb4b873c4f1c252db187a750e6a633a76c6088feefa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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": "
|
|
16
|
+
"originGitCommit": "4ca95f7ba356ea2c3b42db5e3e78c064477b3a8d",
|
|
17
17
|
"originGitCommitIsDirty": false,
|
|
18
18
|
"invokedBy": "ci",
|
|
19
|
-
"requestedVersion": "1.5.
|
|
19
|
+
"requestedVersion": "1.5.2",
|
|
20
20
|
"ciProvider": "github",
|
|
21
|
-
"sdkVersion": "1.5.
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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.
|
|
1
|
+
0.9.0
|
data/lib/schematic/client.rb
CHANGED
|
@@ -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.
|
|
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
|
|
@@ -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
|
|
@@ -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::
|
|
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
|
data/lib/schematic/version.rb
CHANGED
|
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
|
|
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
|
|
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
|
|
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.
|
|
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-
|
|
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
|