stigg 0.1.0.pre.alpha.26 → 0.1.0.pre.alpha.27
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/models/internal/beta/event_queue_provision_params.rb +1 -0
- data/lib/stigg/models/internal/beta/event_queue_update_params.rb +1 -0
- data/lib/stigg/models/v1/usage_history_params.rb +1 -13
- data/lib/stigg/resources/v1/customers.rb +5 -0
- data/lib/stigg/resources/v1/usage.rb +1 -7
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/internal/beta/event_queue_provision_params.rbi +5 -0
- data/rbi/stigg/models/internal/beta/event_queue_update_params.rbi +5 -0
- data/rbi/stigg/models/v1/usage_history_params.rbi +0 -13
- data/rbi/stigg/resources/v1/customers.rbi +5 -0
- data/rbi/stigg/resources/v1/usage.rbi +0 -4
- data/sig/stigg/models/internal/beta/event_queue_provision_params.rbs +2 -0
- data/sig/stigg/models/internal/beta/event_queue_update_params.rbs +2 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +0 -7
- data/sig/stigg/resources/v1/usage.rbs +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4167b88683285d0a6e0d2f20cf8624dbc8192ccc1a0da8c89b326fac85c58665
|
|
4
|
+
data.tar.gz: 61b7f97967ae4c15b49c3d992121a0789e1cc720029391c4476a9fdf333b8752
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8669ba6e467ae7fec1098fbbb77a1be518238b927a2724174db442d92c96994af87b03691fd02c038bc3a6235110283f9464e080144018d6d51d4eba7dfea16c
|
|
7
|
+
data.tar.gz: f5e3eb2d4fe2d34c9003c09fdd294ef371b81a24702e3476e8d093db48f0abce875b7842aa8fc9d5f8f6dd912973c0e383947a700060c930c76202125dcf2ec9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.27 (2026-04-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.26...v0.1.0-alpha.27)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add currency resync to event queue, remove include_inactive_subscriptions param ([e8d45d5](https://github.com/stiggio/stigg-ruby/commit/e8d45d5831d7f20ea24c32c20667f8347dba1c8d))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.26 (2026-04-09)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
24
24
|
<!-- x-release-please-start-version -->
|
|
25
25
|
|
|
26
26
|
```ruby
|
|
27
|
-
gem "stigg", "~> 0.1.0.pre.alpha.
|
|
27
|
+
gem "stigg", "~> 0.1.0.pre.alpha.27"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
<!-- x-release-please-end -->
|
|
@@ -189,6 +189,7 @@ module Stigg
|
|
|
189
189
|
EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC = :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
190
190
|
EDGE_API_PRODUCT_CACHE_DATA_RESYNC = :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
191
191
|
EDGE_API_PLAN_CACHE_DATA_RESYNC = :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
192
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC = :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
192
193
|
REPLAY_WEBHOOK_EVENT = :REPLAY_WEBHOOK_EVENT
|
|
193
194
|
SUBSCRIPTIONS_MIGRATED = :SUBSCRIPTIONS_MIGRATED
|
|
194
195
|
SUBSCRIPTIONS_MIGRATION_TRIGGERED = :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -138,6 +138,7 @@ module Stigg
|
|
|
138
138
|
EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC = :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
139
139
|
EDGE_API_PRODUCT_CACHE_DATA_RESYNC = :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
140
140
|
EDGE_API_PLAN_CACHE_DATA_RESYNC = :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
141
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC = :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
141
142
|
REPLAY_WEBHOOK_EVENT = :REPLAY_WEBHOOK_EVENT
|
|
142
143
|
SUBSCRIPTIONS_MIGRATED = :SUBSCRIPTIONS_MIGRATED
|
|
143
144
|
SUBSCRIPTIONS_MIGRATION_TRIGGERED = :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -36,23 +36,13 @@ module Stigg
|
|
|
36
36
|
# @return [String, nil]
|
|
37
37
|
optional :group_by, String
|
|
38
38
|
|
|
39
|
-
# @!attribute include_inactive_subscriptions
|
|
40
|
-
# When true, includes usage data from the most recent cancelled or expired
|
|
41
|
-
# subscription
|
|
42
|
-
#
|
|
43
|
-
# @return [Boolean, nil]
|
|
44
|
-
optional :include_inactive_subscriptions, Stigg::Internal::Type::Boolean
|
|
45
|
-
|
|
46
39
|
# @!attribute resource_id
|
|
47
40
|
# Resource id
|
|
48
41
|
#
|
|
49
42
|
# @return [String, nil]
|
|
50
43
|
optional :resource_id, String, nil?: true
|
|
51
44
|
|
|
52
|
-
# @!method initialize(customer_id:, feature_id:, start_date:, end_date: nil, group_by: nil,
|
|
53
|
-
# Some parameter documentations has been truncated, see
|
|
54
|
-
# {Stigg::Models::V1::UsageHistoryParams} for more details.
|
|
55
|
-
#
|
|
45
|
+
# @!method initialize(customer_id:, feature_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
|
|
56
46
|
# @param customer_id [String]
|
|
57
47
|
#
|
|
58
48
|
# @param feature_id [String]
|
|
@@ -63,8 +53,6 @@ module Stigg
|
|
|
63
53
|
#
|
|
64
54
|
# @param group_by [String] Criteria by which to group the usage history
|
|
65
55
|
#
|
|
66
|
-
# @param include_inactive_subscriptions [Boolean] When true, includes usage data from the most recent cancelled or expired subscri
|
|
67
|
-
#
|
|
68
56
|
# @param resource_id [String, nil] Resource id
|
|
69
57
|
#
|
|
70
58
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -237,6 +237,11 @@ module Stigg
|
|
|
237
237
|
# Retrieves the effective entitlements for a customer or resource, including
|
|
238
238
|
# feature and credit entitlements.
|
|
239
239
|
#
|
|
240
|
+
# **Warning:** This REST API endpoint lacks built-in client-side caching, fallback
|
|
241
|
+
# mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
242
|
+
# entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
243
|
+
# with caching or the Sidecar for low-latency cached responses.
|
|
244
|
+
#
|
|
240
245
|
# @overload retrieve_entitlements(id, resource_id: nil, request_options: {})
|
|
241
246
|
#
|
|
242
247
|
# @param id [String] The unique identifier of the entity
|
|
@@ -5,12 +5,9 @@ module Stigg
|
|
|
5
5
|
class V1
|
|
6
6
|
# Operations related to usage & metering
|
|
7
7
|
class Usage
|
|
8
|
-
# Some parameter documentations has been truncated, see
|
|
9
|
-
# {Stigg::Models::V1::UsageHistoryParams} for more details.
|
|
10
|
-
#
|
|
11
8
|
# Retrieves historical usage data for a customer's metered feature over time.
|
|
12
9
|
#
|
|
13
|
-
# @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil,
|
|
10
|
+
# @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
|
|
14
11
|
#
|
|
15
12
|
# @param feature_id [String] Path param: Feature id
|
|
16
13
|
#
|
|
@@ -22,8 +19,6 @@ module Stigg
|
|
|
22
19
|
#
|
|
23
20
|
# @param group_by [String] Query param: Criteria by which to group the usage history
|
|
24
21
|
#
|
|
25
|
-
# @param include_inactive_subscriptions [Boolean] Query param: When true, includes usage data from the most recent cancelled or ex
|
|
26
|
-
#
|
|
27
22
|
# @param resource_id [String, nil] Query param: Resource id
|
|
28
23
|
#
|
|
29
24
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -45,7 +40,6 @@ module Stigg
|
|
|
45
40
|
start_date: "startDate",
|
|
46
41
|
end_date: "endDate",
|
|
47
42
|
group_by: "groupBy",
|
|
48
|
-
include_inactive_subscriptions: "includeInactiveSubscriptions",
|
|
49
43
|
resource_id: "resourceId"
|
|
50
44
|
),
|
|
51
45
|
model: Stigg::Models::V1::UsageHistoryResponse,
|
data/lib/stigg/version.rb
CHANGED
|
@@ -724,6 +724,11 @@ module Stigg
|
|
|
724
724
|
:EDGE_API_PLAN_CACHE_DATA_RESYNC,
|
|
725
725
|
Stigg::Models::Internal::Beta::EventQueueProvisionParams::EventType::TaggedSymbol
|
|
726
726
|
)
|
|
727
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC =
|
|
728
|
+
T.let(
|
|
729
|
+
:EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC,
|
|
730
|
+
Stigg::Models::Internal::Beta::EventQueueProvisionParams::EventType::TaggedSymbol
|
|
731
|
+
)
|
|
727
732
|
REPLAY_WEBHOOK_EVENT =
|
|
728
733
|
T.let(
|
|
729
734
|
:REPLAY_WEBHOOK_EVENT,
|
|
@@ -539,6 +539,11 @@ module Stigg
|
|
|
539
539
|
:EDGE_API_PLAN_CACHE_DATA_RESYNC,
|
|
540
540
|
Stigg::Models::Internal::Beta::EventQueueUpdateParams::EventType::TaggedSymbol
|
|
541
541
|
)
|
|
542
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC =
|
|
543
|
+
T.let(
|
|
544
|
+
:EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC,
|
|
545
|
+
Stigg::Models::Internal::Beta::EventQueueUpdateParams::EventType::TaggedSymbol
|
|
546
|
+
)
|
|
542
547
|
REPLAY_WEBHOOK_EVENT =
|
|
543
548
|
T.let(
|
|
544
549
|
:REPLAY_WEBHOOK_EVENT,
|
|
@@ -36,14 +36,6 @@ module Stigg
|
|
|
36
36
|
sig { params(group_by: String).void }
|
|
37
37
|
attr_writer :group_by
|
|
38
38
|
|
|
39
|
-
# When true, includes usage data from the most recent cancelled or expired
|
|
40
|
-
# subscription
|
|
41
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
42
|
-
attr_reader :include_inactive_subscriptions
|
|
43
|
-
|
|
44
|
-
sig { params(include_inactive_subscriptions: T::Boolean).void }
|
|
45
|
-
attr_writer :include_inactive_subscriptions
|
|
46
|
-
|
|
47
39
|
# Resource id
|
|
48
40
|
sig { returns(T.nilable(String)) }
|
|
49
41
|
attr_accessor :resource_id
|
|
@@ -55,7 +47,6 @@ module Stigg
|
|
|
55
47
|
start_date: Time,
|
|
56
48
|
end_date: Time,
|
|
57
49
|
group_by: String,
|
|
58
|
-
include_inactive_subscriptions: T::Boolean,
|
|
59
50
|
resource_id: T.nilable(String),
|
|
60
51
|
request_options: Stigg::RequestOptions::OrHash
|
|
61
52
|
).returns(T.attached_class)
|
|
@@ -69,9 +60,6 @@ module Stigg
|
|
|
69
60
|
end_date: nil,
|
|
70
61
|
# Criteria by which to group the usage history
|
|
71
62
|
group_by: nil,
|
|
72
|
-
# When true, includes usage data from the most recent cancelled or expired
|
|
73
|
-
# subscription
|
|
74
|
-
include_inactive_subscriptions: nil,
|
|
75
63
|
# Resource id
|
|
76
64
|
resource_id: nil,
|
|
77
65
|
request_options: {}
|
|
@@ -86,7 +74,6 @@ module Stigg
|
|
|
86
74
|
start_date: Time,
|
|
87
75
|
end_date: Time,
|
|
88
76
|
group_by: String,
|
|
89
|
-
include_inactive_subscriptions: T::Boolean,
|
|
90
77
|
resource_id: T.nilable(String),
|
|
91
78
|
request_options: Stigg::RequestOptions
|
|
92
79
|
}
|
|
@@ -245,6 +245,11 @@ module Stigg
|
|
|
245
245
|
|
|
246
246
|
# Retrieves the effective entitlements for a customer or resource, including
|
|
247
247
|
# feature and credit entitlements.
|
|
248
|
+
#
|
|
249
|
+
# **Warning:** This REST API endpoint lacks built-in client-side caching, fallback
|
|
250
|
+
# mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
251
|
+
# entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
252
|
+
# with caching or the Sidecar for low-latency cached responses.
|
|
248
253
|
sig do
|
|
249
254
|
params(
|
|
250
255
|
id: String,
|
|
@@ -13,7 +13,6 @@ module Stigg
|
|
|
13
13
|
start_date: Time,
|
|
14
14
|
end_date: Time,
|
|
15
15
|
group_by: String,
|
|
16
|
-
include_inactive_subscriptions: T::Boolean,
|
|
17
16
|
resource_id: T.nilable(String),
|
|
18
17
|
request_options: Stigg::RequestOptions::OrHash
|
|
19
18
|
).returns(Stigg::Models::V1::UsageHistoryResponse)
|
|
@@ -29,9 +28,6 @@ module Stigg
|
|
|
29
28
|
end_date: nil,
|
|
30
29
|
# Query param: Criteria by which to group the usage history
|
|
31
30
|
group_by: nil,
|
|
32
|
-
# Query param: When true, includes usage data from the most recent cancelled or
|
|
33
|
-
# expired subscription
|
|
34
|
-
include_inactive_subscriptions: nil,
|
|
35
31
|
# Query param: Resource id
|
|
36
32
|
resource_id: nil,
|
|
37
33
|
request_options: {}
|
|
@@ -205,6 +205,7 @@ module Stigg
|
|
|
205
205
|
| :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
206
206
|
| :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
207
207
|
| :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
208
|
+
| :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
208
209
|
| :REPLAY_WEBHOOK_EVENT
|
|
209
210
|
| :SUBSCRIPTIONS_MIGRATED
|
|
210
211
|
| :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -324,6 +325,7 @@ module Stigg
|
|
|
324
325
|
EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC: :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
325
326
|
EDGE_API_PRODUCT_CACHE_DATA_RESYNC: :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
326
327
|
EDGE_API_PLAN_CACHE_DATA_RESYNC: :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
328
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC: :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
327
329
|
REPLAY_WEBHOOK_EVENT: :REPLAY_WEBHOOK_EVENT
|
|
328
330
|
SUBSCRIPTIONS_MIGRATED: :SUBSCRIPTIONS_MIGRATED
|
|
329
331
|
SUBSCRIPTIONS_MIGRATION_TRIGGERED: :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -135,6 +135,7 @@ module Stigg
|
|
|
135
135
|
| :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
136
136
|
| :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
137
137
|
| :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
138
|
+
| :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
138
139
|
| :REPLAY_WEBHOOK_EVENT
|
|
139
140
|
| :SUBSCRIPTIONS_MIGRATED
|
|
140
141
|
| :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -254,6 +255,7 @@ module Stigg
|
|
|
254
255
|
EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC: :EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC
|
|
255
256
|
EDGE_API_PRODUCT_CACHE_DATA_RESYNC: :EDGE_API_PRODUCT_CACHE_DATA_RESYNC
|
|
256
257
|
EDGE_API_PLAN_CACHE_DATA_RESYNC: :EDGE_API_PLAN_CACHE_DATA_RESYNC
|
|
258
|
+
EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC: :EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC
|
|
257
259
|
REPLAY_WEBHOOK_EVENT: :REPLAY_WEBHOOK_EVENT
|
|
258
260
|
SUBSCRIPTIONS_MIGRATED: :SUBSCRIPTIONS_MIGRATED
|
|
259
261
|
SUBSCRIPTIONS_MIGRATION_TRIGGERED: :SUBSCRIPTIONS_MIGRATION_TRIGGERED
|
|
@@ -8,7 +8,6 @@ module Stigg
|
|
|
8
8
|
start_date: Time,
|
|
9
9
|
end_date: Time,
|
|
10
10
|
group_by: String,
|
|
11
|
-
include_inactive_subscriptions: bool,
|
|
12
11
|
resource_id: String?
|
|
13
12
|
}
|
|
14
13
|
& Stigg::Internal::Type::request_parameters
|
|
@@ -31,10 +30,6 @@ module Stigg
|
|
|
31
30
|
|
|
32
31
|
def group_by=: (String) -> String
|
|
33
32
|
|
|
34
|
-
attr_reader include_inactive_subscriptions: bool?
|
|
35
|
-
|
|
36
|
-
def include_inactive_subscriptions=: (bool) -> bool
|
|
37
|
-
|
|
38
33
|
attr_accessor resource_id: String?
|
|
39
34
|
|
|
40
35
|
def initialize: (
|
|
@@ -43,7 +38,6 @@ module Stigg
|
|
|
43
38
|
start_date: Time,
|
|
44
39
|
?end_date: Time,
|
|
45
40
|
?group_by: String,
|
|
46
|
-
?include_inactive_subscriptions: bool,
|
|
47
41
|
?resource_id: String?,
|
|
48
42
|
?request_options: Stigg::request_opts
|
|
49
43
|
) -> void
|
|
@@ -54,7 +48,6 @@ module Stigg
|
|
|
54
48
|
start_date: Time,
|
|
55
49
|
end_date: Time,
|
|
56
50
|
group_by: String,
|
|
57
|
-
include_inactive_subscriptions: bool,
|
|
58
51
|
resource_id: String?,
|
|
59
52
|
request_options: Stigg::RequestOptions
|
|
60
53
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stigg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.alpha.
|
|
4
|
+
version: 0.1.0.pre.alpha.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stigg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|