stigg 0.1.0.pre.beta.46 → 0.1.0.pre.beta.48

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/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/models/v1/contract_create_response.rb +27 -1
  5. data/lib/stigg/models/v1/contract_delete_response.rb +27 -1
  6. data/lib/stigg/models/v1/contract_list_response.rb +27 -1
  7. data/lib/stigg/models/v1/contract_retrieve_response.rb +27 -1
  8. data/lib/stigg/models/v1/contract_update_response.rb +27 -1
  9. data/lib/stigg/models/v1/credit_get_usage_response.rb +23 -2
  10. data/lib/stigg/models/v1/customer_list_contracts_response.rb +27 -1
  11. data/lib/stigg/models/v1/events/beta/customer_retrieve_governance_params.rb +3 -2
  12. data/lib/stigg/models/v1/events/beta/customer_retrieve_governance_response.rb +23 -10
  13. data/lib/stigg/models/v1_beta/customers/entity_list_response.rb +13 -1
  14. data/lib/stigg/models/v1_beta/customers/entity_retrieve_response.rb +14 -1
  15. data/lib/stigg/models/v1_beta/customers/entity_upsert_params.rb +10 -1
  16. data/lib/stigg/models/v1_beta/customers/entity_upsert_response.rb +13 -1
  17. data/lib/stigg/models/v1_beta/entity_type_list_response.rb +10 -1
  18. data/lib/stigg/models/v1_beta/entity_type_upsert_params.rb +10 -1
  19. data/lib/stigg/models/v1_beta/entity_type_upsert_response.rb +10 -1
  20. data/lib/stigg/resources/v1/events/beta/customers.rb +1 -1
  21. data/lib/stigg/version.rb +1 -1
  22. data/rbi/stigg/models/v1/contract_create_response.rbi +65 -0
  23. data/rbi/stigg/models/v1/contract_delete_response.rbi +65 -0
  24. data/rbi/stigg/models/v1/contract_list_response.rbi +65 -0
  25. data/rbi/stigg/models/v1/contract_retrieve_response.rbi +65 -0
  26. data/rbi/stigg/models/v1/contract_update_response.rbi +65 -0
  27. data/rbi/stigg/models/v1/credit_get_usage_response.rbi +28 -2
  28. data/rbi/stigg/models/v1/customer_list_contracts_response.rbi +65 -0
  29. data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_params.rbi +4 -2
  30. data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbi +30 -12
  31. data/rbi/stigg/models/v1_beta/customers/entity_list_response.rbi +10 -0
  32. data/rbi/stigg/models/v1_beta/customers/entity_retrieve_response.rbi +10 -0
  33. data/rbi/stigg/models/v1_beta/customers/entity_upsert_params.rbi +10 -0
  34. data/rbi/stigg/models/v1_beta/customers/entity_upsert_response.rbi +10 -0
  35. data/rbi/stigg/models/v1_beta/entity_type_list_response.rbi +10 -0
  36. data/rbi/stigg/models/v1_beta/entity_type_upsert_params.rbi +13 -3
  37. data/rbi/stigg/models/v1_beta/entity_type_upsert_response.rbi +10 -0
  38. data/rbi/stigg/resources/v1/events/beta/customers.rbi +2 -2
  39. data/sig/stigg/models/v1/contract_create_response.rbs +18 -0
  40. data/sig/stigg/models/v1/contract_delete_response.rbs +18 -0
  41. data/sig/stigg/models/v1/contract_list_response.rbs +18 -0
  42. data/sig/stigg/models/v1/contract_retrieve_response.rbs +18 -0
  43. data/sig/stigg/models/v1/contract_update_response.rbs +18 -0
  44. data/sig/stigg/models/v1/credit_get_usage_response.rbs +19 -4
  45. data/sig/stigg/models/v1/customer_list_contracts_response.rbs +18 -0
  46. data/sig/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbs +5 -0
  47. data/sig/stigg/models/v1_beta/customers/entity_list_response.rbs +5 -0
  48. data/sig/stigg/models/v1_beta/customers/entity_retrieve_response.rbs +5 -0
  49. data/sig/stigg/models/v1_beta/customers/entity_upsert_params.rbs +5 -0
  50. data/sig/stigg/models/v1_beta/customers/entity_upsert_response.rbs +5 -0
  51. data/sig/stigg/models/v1_beta/entity_type_list_response.rbs +5 -0
  52. data/sig/stigg/models/v1_beta/entity_type_upsert_params.rbs +8 -3
  53. data/sig/stigg/models/v1_beta/entity_type_upsert_response.rbs +5 -0
  54. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ac90cfbca704796bb6d9cbb5d5728aba303d6130c042106c4efc26a544b46e5
4
- data.tar.gz: 1e95ab4fb2eb8807c6a715c7623e870847746c184c61994dced4ea17ac3aa15a
3
+ metadata.gz: 13642d061536056ffc58668cbd70d03b29d6e674df746bd74fba13ee1ccce7e3
4
+ data.tar.gz: 94c8ce8e06df686d19bddf9a1fad5c58c66f798a80abbd14e8378fdf9db47a4b
5
5
  SHA512:
6
- metadata.gz: 39598ef956be42b89e076e6aad168b5cfdb1520326a74e0f63e4092de0289834e9afc476de2b05b0075a9bb3dd40c815bcc429a5c5c489819603c2ab5f167683
7
- data.tar.gz: 5e06013a90b01e3bac1688eb069d778ea0f8816b343f958c9cda17cb6ddf662088bc605475b521e84aba14003f9a7e257619f60b311b9f9b7ddd50cc9ac50a48
6
+ metadata.gz: 33fc18b8712deebd52c722b3cfdb4a201907e001187df23eedc830761028d3a6788b0bcae7621a05dcd6612a0b6a245ca8e72f41c7d676aae4e61bc047581a01
7
+ data.tar.gz: ab1203812f2cb5c673f8d7537be9b2b27b8230db3e9f1584317611fd88456854917ff903debcfea63f5d8c993f96d2f44f85c0faab8fa772498c1642d57efb63
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.48 (2026-08-05)
4
+
5
+ Full Changelog: [v0.1.0-beta.47...v0.1.0-beta.48](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.47...v0.1.0-beta.48)
6
+
7
+ ### Features
8
+
9
+ * **api:** add display_name to entities, description to entity_types ([64cb63a](https://github.com/stiggio/stigg-ruby/commit/64cb63ae53c03e6abbba16b1bebcbd25c2d2ca00))
10
+
11
+ ## 0.1.0-beta.47 (2026-08-05)
12
+
13
+ Full Changelog: [v0.1.0-beta.46...v0.1.0-beta.47](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.46...v0.1.0-beta.47)
14
+
15
+ ### Features
16
+
17
+ * **api:** add event_count to credit_get_usage_response Series/Point models ([50c4511](https://github.com/stiggio/stigg-ruby/commit/50c4511632676df80fe380cb2d8ce0ada1bc9e4a))
18
+
3
19
  ## 0.1.0-beta.46 (2026-07-28)
4
20
 
5
21
  Full Changelog: [v0.1.0-beta.45...v0.1.0-beta.46](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.45...v0.1.0-beta.46)
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.beta.46"
27
+ gem "stigg", "~> 0.1.0.pre.beta.48"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -44,6 +44,15 @@ module Stigg
44
44
  # @return [String, nil]
45
45
  required :billing_id, String, api_name: :billingId, nil?: true
46
46
 
47
+ # @!attribute billing_state
48
+ # The current state of the contract
49
+ #
50
+ # @return [Symbol, Stigg::Models::V1::ContractCreateResponse::Data::BillingState, nil]
51
+ required :billing_state,
52
+ enum: -> { Stigg::Models::V1::ContractCreateResponse::Data::BillingState },
53
+ api_name: :billingState,
54
+ nil?: true
55
+
47
56
  # @!attribute contract_id
48
57
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
49
58
  #
@@ -120,7 +129,7 @@ module Stigg
120
129
  required :subscriptions,
121
130
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractCreateResponse::Data::Subscription] }
122
131
 
123
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
132
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
124
133
  # Some parameter documentations has been truncated, see
125
134
  # {Stigg::Models::V1::ContractCreateResponse::Data} for more details.
126
135
  #
@@ -134,6 +143,8 @@ module Stigg
134
143
  #
135
144
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
136
145
  #
146
+ # @param billing_state [Symbol, Stigg::Models::V1::ContractCreateResponse::Data::BillingState, nil] The current state of the contract
147
+ #
137
148
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
138
149
  #
139
150
  # @param created_at [Time, nil] The date the contract was created
@@ -156,6 +167,21 @@ module Stigg
156
167
  #
157
168
  # @param subscriptions [Array<Stigg::Models::V1::ContractCreateResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
158
169
 
170
+ # The current state of the contract
171
+ #
172
+ # @see Stigg::Models::V1::ContractCreateResponse::Data#billing_state
173
+ module BillingState
174
+ extend Stigg::Internal::Type::Enum
175
+
176
+ DRAFT = :DRAFT
177
+ ACTIVE = :ACTIVE
178
+ CANCELED = :CANCELED
179
+ END_BILLING = :END_BILLING
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+
159
185
  # @see Stigg::Models::V1::ContractCreateResponse::Data#latest_invoice
160
186
  class LatestInvoice < Stigg::Internal::Type::BaseModel
161
187
  # @!attribute billing_id
@@ -44,6 +44,15 @@ module Stigg
44
44
  # @return [String, nil]
45
45
  required :billing_id, String, api_name: :billingId, nil?: true
46
46
 
47
+ # @!attribute billing_state
48
+ # The current state of the contract
49
+ #
50
+ # @return [Symbol, Stigg::Models::V1::ContractDeleteResponse::Data::BillingState, nil]
51
+ required :billing_state,
52
+ enum: -> { Stigg::Models::V1::ContractDeleteResponse::Data::BillingState },
53
+ api_name: :billingState,
54
+ nil?: true
55
+
47
56
  # @!attribute contract_id
48
57
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
49
58
  #
@@ -120,7 +129,7 @@ module Stigg
120
129
  required :subscriptions,
121
130
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractDeleteResponse::Data::Subscription] }
122
131
 
123
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
132
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
124
133
  # Some parameter documentations has been truncated, see
125
134
  # {Stigg::Models::V1::ContractDeleteResponse::Data} for more details.
126
135
  #
@@ -134,6 +143,8 @@ module Stigg
134
143
  #
135
144
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
136
145
  #
146
+ # @param billing_state [Symbol, Stigg::Models::V1::ContractDeleteResponse::Data::BillingState, nil] The current state of the contract
147
+ #
137
148
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
138
149
  #
139
150
  # @param created_at [Time, nil] The date the contract was created
@@ -156,6 +167,21 @@ module Stigg
156
167
  #
157
168
  # @param subscriptions [Array<Stigg::Models::V1::ContractDeleteResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
158
169
 
170
+ # The current state of the contract
171
+ #
172
+ # @see Stigg::Models::V1::ContractDeleteResponse::Data#billing_state
173
+ module BillingState
174
+ extend Stigg::Internal::Type::Enum
175
+
176
+ DRAFT = :DRAFT
177
+ ACTIVE = :ACTIVE
178
+ CANCELED = :CANCELED
179
+ END_BILLING = :END_BILLING
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+
159
185
  # @see Stigg::Models::V1::ContractDeleteResponse::Data#latest_invoice
160
186
  class LatestInvoice < Stigg::Internal::Type::BaseModel
161
187
  # @!attribute billing_id
@@ -31,6 +31,15 @@ module Stigg
31
31
  # @return [String, nil]
32
32
  required :billing_id, String, api_name: :billingId, nil?: true
33
33
 
34
+ # @!attribute billing_state
35
+ # The current state of the contract
36
+ #
37
+ # @return [Symbol, Stigg::Models::V1::ContractListResponse::BillingState, nil]
38
+ required :billing_state,
39
+ enum: -> { Stigg::Models::V1::ContractListResponse::BillingState },
40
+ api_name: :billingState,
41
+ nil?: true
42
+
34
43
  # @!attribute contract_id
35
44
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
36
45
  #
@@ -107,7 +116,7 @@ module Stigg
107
116
  required :subscriptions,
108
117
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractListResponse::Subscription] }
109
118
 
110
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
119
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
111
120
  # Some parameter documentations has been truncated, see
112
121
  # {Stigg::Models::V1::ContractListResponse} for more details.
113
122
  #
@@ -121,6 +130,8 @@ module Stigg
121
130
  #
122
131
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
123
132
  #
133
+ # @param billing_state [Symbol, Stigg::Models::V1::ContractListResponse::BillingState, nil] The current state of the contract
134
+ #
124
135
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
125
136
  #
126
137
  # @param created_at [Time, nil] The date the contract was created
@@ -143,6 +154,21 @@ module Stigg
143
154
  #
144
155
  # @param subscriptions [Array<Stigg::Models::V1::ContractListResponse::Subscription>] The custom subscriptions attached to this contract (empty when none)
145
156
 
157
+ # The current state of the contract
158
+ #
159
+ # @see Stigg::Models::V1::ContractListResponse#billing_state
160
+ module BillingState
161
+ extend Stigg::Internal::Type::Enum
162
+
163
+ DRAFT = :DRAFT
164
+ ACTIVE = :ACTIVE
165
+ CANCELED = :CANCELED
166
+ END_BILLING = :END_BILLING
167
+
168
+ # @!method self.values
169
+ # @return [Array<Symbol>]
170
+ end
171
+
146
172
  # @see Stigg::Models::V1::ContractListResponse#latest_invoice
147
173
  class LatestInvoice < Stigg::Internal::Type::BaseModel
148
174
  # @!attribute billing_id
@@ -44,6 +44,15 @@ module Stigg
44
44
  # @return [String, nil]
45
45
  required :billing_id, String, api_name: :billingId, nil?: true
46
46
 
47
+ # @!attribute billing_state
48
+ # The current state of the contract
49
+ #
50
+ # @return [Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState, nil]
51
+ required :billing_state,
52
+ enum: -> { Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState },
53
+ api_name: :billingState,
54
+ nil?: true
55
+
47
56
  # @!attribute contract_id
48
57
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
49
58
  #
@@ -120,7 +129,7 @@ module Stigg
120
129
  required :subscriptions,
121
130
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription] }
122
131
 
123
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
132
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
124
133
  # Some parameter documentations has been truncated, see
125
134
  # {Stigg::Models::V1::ContractRetrieveResponse::Data} for more details.
126
135
  #
@@ -134,6 +143,8 @@ module Stigg
134
143
  #
135
144
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
136
145
  #
146
+ # @param billing_state [Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState, nil] The current state of the contract
147
+ #
137
148
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
138
149
  #
139
150
  # @param created_at [Time, nil] The date the contract was created
@@ -156,6 +167,21 @@ module Stigg
156
167
  #
157
168
  # @param subscriptions [Array<Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
158
169
 
170
+ # The current state of the contract
171
+ #
172
+ # @see Stigg::Models::V1::ContractRetrieveResponse::Data#billing_state
173
+ module BillingState
174
+ extend Stigg::Internal::Type::Enum
175
+
176
+ DRAFT = :DRAFT
177
+ ACTIVE = :ACTIVE
178
+ CANCELED = :CANCELED
179
+ END_BILLING = :END_BILLING
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+
159
185
  # @see Stigg::Models::V1::ContractRetrieveResponse::Data#latest_invoice
160
186
  class LatestInvoice < Stigg::Internal::Type::BaseModel
161
187
  # @!attribute billing_id
@@ -44,6 +44,15 @@ module Stigg
44
44
  # @return [String, nil]
45
45
  required :billing_id, String, api_name: :billingId, nil?: true
46
46
 
47
+ # @!attribute billing_state
48
+ # The current state of the contract
49
+ #
50
+ # @return [Symbol, Stigg::Models::V1::ContractUpdateResponse::Data::BillingState, nil]
51
+ required :billing_state,
52
+ enum: -> { Stigg::Models::V1::ContractUpdateResponse::Data::BillingState },
53
+ api_name: :billingState,
54
+ nil?: true
55
+
47
56
  # @!attribute contract_id
48
57
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
49
58
  #
@@ -120,7 +129,7 @@ module Stigg
120
129
  required :subscriptions,
121
130
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractUpdateResponse::Data::Subscription] }
122
131
 
123
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
132
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
124
133
  # Some parameter documentations has been truncated, see
125
134
  # {Stigg::Models::V1::ContractUpdateResponse::Data} for more details.
126
135
  #
@@ -134,6 +143,8 @@ module Stigg
134
143
  #
135
144
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
136
145
  #
146
+ # @param billing_state [Symbol, Stigg::Models::V1::ContractUpdateResponse::Data::BillingState, nil] The current state of the contract
147
+ #
137
148
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
138
149
  #
139
150
  # @param created_at [Time, nil] The date the contract was created
@@ -156,6 +167,21 @@ module Stigg
156
167
  #
157
168
  # @param subscriptions [Array<Stigg::Models::V1::ContractUpdateResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
158
169
 
170
+ # The current state of the contract
171
+ #
172
+ # @see Stigg::Models::V1::ContractUpdateResponse::Data#billing_state
173
+ module BillingState
174
+ extend Stigg::Internal::Type::Enum
175
+
176
+ DRAFT = :DRAFT
177
+ ACTIVE = :ACTIVE
178
+ CANCELED = :CANCELED
179
+ END_BILLING = :END_BILLING
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+
159
185
  # @see Stigg::Models::V1::ContractUpdateResponse::Data#latest_invoice
160
186
  class LatestInvoice < Stigg::Internal::Type::BaseModel
161
187
  # @!attribute billing_id
@@ -126,6 +126,14 @@ module Stigg
126
126
  end
127
127
 
128
128
  class Series < Stigg::Internal::Type::BaseModel
129
+ # @!attribute event_count
130
+ # Number of distinct usage events that consumed credits in this series. This count
131
+ # is not additive across series, because an event matched by several meters
132
+ # appears in more than one series.
133
+ #
134
+ # @return [Float]
135
+ required :event_count, Float, api_name: :eventCount
136
+
129
137
  # @!attribute feature_id
130
138
  # The feature ID; null when grouping by dimensions only
131
139
  #
@@ -158,9 +166,14 @@ module Stigg
158
166
  optional :tags,
159
167
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag] }
160
168
 
161
- # @!method initialize(feature_id:, feature_name:, points:, total_credits:, tags: nil)
169
+ # @!method initialize(event_count:, feature_id:, feature_name:, points:, total_credits:, tags: nil)
170
+ # Some parameter documentations has been truncated, see
171
+ # {Stigg::Models::V1::CreditGetUsageResponse::Data::Series} for more details.
172
+ #
162
173
  # Credit usage data for a single feature
163
174
  #
175
+ # @param event_count [Float] Number of distinct usage events that consumed credits in this series. This count
176
+ #
164
177
  # @param feature_id [String, nil] The feature ID; null when grouping by dimensions only
165
178
  #
166
179
  # @param feature_name [String, nil] The display name of the feature; null when grouping by dimensions only
@@ -172,6 +185,12 @@ module Stigg
172
185
  # @param tags [Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag>] Dimension key/value pairs identifying this series when groupBy is applied
173
186
 
174
187
  class Point < Stigg::Internal::Type::BaseModel
188
+ # @!attribute event_count
189
+ # Number of distinct usage events that consumed credits in this time bucket
190
+ #
191
+ # @return [Float]
192
+ required :event_count, Float, api_name: :eventCount
193
+
175
194
  # @!attribute timestamp
176
195
  # The timestamp of the data point
177
196
  #
@@ -184,9 +203,11 @@ module Stigg
184
203
  # @return [Float]
185
204
  required :value, Float
186
205
 
187
- # @!method initialize(timestamp:, value:)
206
+ # @!method initialize(event_count:, timestamp:, value:)
188
207
  # A single data point in the credit usage time series
189
208
  #
209
+ # @param event_count [Float] Number of distinct usage events that consumed credits in this time bucket
210
+ #
190
211
  # @param timestamp [Time] The timestamp of the data point
191
212
  #
192
213
  # @param value [Float] The credit usage value at this point
@@ -43,6 +43,15 @@ module Stigg
43
43
  # @return [String, nil]
44
44
  required :billing_id, String, api_name: :billingId, nil?: true
45
45
 
46
+ # @!attribute billing_state
47
+ # The current state of the contract
48
+ #
49
+ # @return [Symbol, Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState, nil]
50
+ required :billing_state,
51
+ enum: -> { Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState },
52
+ api_name: :billingState,
53
+ nil?: true
54
+
46
55
  # @!attribute contract_id
47
56
  # The Stigg contract ref ID (the key used to fetch/update/delete this contract)
48
57
  #
@@ -119,7 +128,7 @@ module Stigg
119
128
  required :subscriptions,
120
129
  -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CustomerListContractsResponse::Data::Subscription] }
121
130
 
122
- # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
131
+ # @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
123
132
  # Some parameter documentations has been truncated, see
124
133
  # {Stigg::Models::V1::CustomerListContractsResponse::Data} for more details.
125
134
  #
@@ -133,6 +142,8 @@ module Stigg
133
142
  #
134
143
  # @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
135
144
  #
145
+ # @param billing_state [Symbol, Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState, nil] The current state of the contract
146
+ #
136
147
  # @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
137
148
  #
138
149
  # @param created_at [Time, nil] The date the contract was created
@@ -155,6 +166,21 @@ module Stigg
155
166
  #
156
167
  # @param subscriptions [Array<Stigg::Models::V1::CustomerListContractsResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
157
168
 
169
+ # The current state of the contract
170
+ #
171
+ # @see Stigg::Models::V1::CustomerListContractsResponse::Data#billing_state
172
+ module BillingState
173
+ extend Stigg::Internal::Type::Enum
174
+
175
+ DRAFT = :DRAFT
176
+ ACTIVE = :ACTIVE
177
+ CANCELED = :CANCELED
178
+ END_BILLING = :END_BILLING
179
+
180
+ # @!method self.values
181
+ # @return [Array<Symbol>]
182
+ end
183
+
158
184
  # @see Stigg::Models::V1::CustomerListContractsResponse::Data#latest_invoice
159
185
  class LatestInvoice < Stigg::Internal::Type::BaseModel
160
186
  # @!attribute billing_id
@@ -29,7 +29,8 @@ module Stigg
29
29
  optional :currency_ids, Stigg::Internal::Type::ArrayOf[String]
30
30
 
31
31
  # @!attribute entity_id_search
32
- # Case-insensitive substring match on the entity id (`%`/`_` matched literally).
32
+ # Case-insensitive substring match on the entity id or its display name (`%`/`_`
33
+ # matched literally).
33
34
  #
34
35
  # @return [String, nil]
35
36
  optional :entity_id_search, String
@@ -104,7 +105,7 @@ module Stigg
104
105
  #
105
106
  # @param currency_ids [Array<String>] Currency ids to include, repeated per value (e.g. `?currencyIds=credits`). Omit
106
107
  #
107
- # @param entity_id_search [String] Case-insensitive substring match on the entity id (`%`/`_` matched literally).
108
+ # @param entity_id_search [String] Case-insensitive substring match on the entity id or its display name (`%`/`_` m
108
109
  #
109
110
  # @param entity_type_ids [Array<String>] Filter to one or more entity types, repeated per value (e.g. `?entityTypeIds=tea
110
111
  #
@@ -41,6 +41,13 @@ module Stigg
41
41
  # @return [Float, nil]
42
42
  required :current_usage, Float, api_name: :currentUsage, nil?: true
43
43
 
44
+ # @!attribute display_name
45
+ # Human-readable name of the entity, or null when none is set (display the entity
46
+ # id instead).
47
+ #
48
+ # @return [String, nil]
49
+ required :display_name, String, api_name: :displayName, nil?: true
50
+
44
51
  # @!attribute entity_id
45
52
  # External id of the entity at this node.
46
53
  #
@@ -54,8 +61,10 @@ module Stigg
54
61
  required :entity_type_id, String, api_name: :entityTypeId
55
62
 
56
63
  # @!attribute parent_id
57
- # External id of the parent entity in the tree; `null` for a root. Use it to
58
- # rebuild the tree.
64
+ # External id of the parent entity in the tree. `null` means the entity is either
65
+ # a root or not yet placed in the hierarchy — placement rides on an assignment, so
66
+ # an entity with no limits set has no parent yet. Both render at the top level;
67
+ # use it to rebuild the tree.
59
68
  #
60
69
  # @return [String, nil]
61
70
  required :parent_id, String, api_name: :parentId, nil?: true
@@ -74,15 +83,17 @@ module Stigg
74
83
  required :usage_limit, Float, api_name: :usageLimit, nil?: true
75
84
 
76
85
  # @!attribute usage_period_end
77
- # Exclusive end of the cadence period — when usage resets; `null` once the period
78
- # has rolled over.
86
+ # Exclusive end of the cadence period in progress now — when usage resets. `null`
87
+ # when the node has no usage configuration, or when a stored cadence cannot be
88
+ # parsed.
79
89
  #
80
90
  # @return [Time, nil]
81
91
  required :usage_period_end, Time, api_name: :usagePeriodEnd, nil?: true
82
92
 
83
93
  # @!attribute usage_period_start
84
- # Start of the cadence period the usage snapshot belongs to; `null` once the
85
- # period has rolled over.
94
+ # Start of the cadence period in progress now, derived from the cadence and the
95
+ # assignment anchor — it stays correct across a rollover. `null` when the node has
96
+ # no usage configuration, or when a stored cadence cannot be parsed.
86
97
  #
87
98
  # @return [Time, nil]
88
99
  required :usage_period_start, Time, api_name: :usagePeriodStart, nil?: true
@@ -107,7 +118,7 @@ module Stigg
107
118
  # @return [String, nil]
108
119
  optional :feature_id, String, api_name: :featureId
109
120
 
110
- # @!method initialize(cadence:, current_usage:, entity_id:, entity_type_id:, parent_id:, scope_entity_ids:, usage_limit:, usage_period_end:, usage_period_start:, utilization:, currency_id: nil, feature_id: nil)
121
+ # @!method initialize(cadence:, current_usage:, display_name:, entity_id:, entity_type_id:, parent_id:, scope_entity_ids:, usage_limit:, usage_period_end:, usage_period_start:, utilization:, currency_id: nil, feature_id: nil)
111
122
  # Some parameter documentations has been truncated, see
112
123
  # {Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data} for
113
124
  # more details.
@@ -121,19 +132,21 @@ module Stigg
121
132
  #
122
133
  # @param current_usage [Float, nil] Usage consumed in the current cadence period (may lag the live counter by a shor
123
134
  #
135
+ # @param display_name [String, nil] Human-readable name of the entity, or null when none is set (display the entity
136
+ #
124
137
  # @param entity_id [String] External id of the entity at this node.
125
138
  #
126
139
  # @param entity_type_id [String] External id of the entity type (e.g. `team`, `user`).
127
140
  #
128
- # @param parent_id [String, nil] External id of the parent entity in the tree; `null` for a root. Use it to rebui
141
+ # @param parent_id [String, nil] External id of the parent entity in the tree. `null` means the entity is either
129
142
  #
130
143
  # @param scope_entity_ids [Array<String>] The configuration scope (entity ids). Empty is the node-wide configuration; a no
131
144
  #
132
145
  # @param usage_limit [Float, nil] Hard usage limit for this node per cadence period.
133
146
  #
134
- # @param usage_period_end [Time, nil] Exclusive end of the cadence period — when usage resets; `null` once the period
147
+ # @param usage_period_end [Time, nil] Exclusive end of the cadence period in progress now — when usage resets. `null`
135
148
  #
136
- # @param usage_period_start [Time, nil] Start of the cadence period the usage snapshot belongs to; `null` once the perio
149
+ # @param usage_period_start [Time, nil] Start of the cadence period in progress now, derived from the cadence and the as
137
150
  #
138
151
  # @param utilization [Float, nil] `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The cros
139
152
  #
@@ -24,6 +24,13 @@ module Stigg
24
24
  # @return [Time]
25
25
  required :created_at, Time, api_name: :createdAt
26
26
 
27
+ # @!attribute display_name
28
+ # Human-readable name for the entity, or null when none is set — in which case
29
+ # clients display the entity ID
30
+ #
31
+ # @return [String, nil]
32
+ required :display_name, String, api_name: :displayName, nil?: true
33
+
27
34
  # @!attribute entity_type_id
28
35
  # The entity type identifier this entity instantiates
29
36
  #
@@ -42,7 +49,10 @@ module Stigg
42
49
  # @return [Time]
43
50
  required :updated_at, Time, api_name: :updatedAt
44
51
 
45
- # @!method initialize(id:, archived_at:, created_at:, entity_type_id:, metadata:, updated_at:)
52
+ # @!method initialize(id:, archived_at:, created_at:, display_name:, entity_type_id:, metadata:, updated_at:)
53
+ # Some parameter documentations has been truncated, see
54
+ # {Stigg::Models::V1Beta::Customers::EntityListResponse} for more details.
55
+ #
46
56
  # A stored entity instance tracked by the governance service for a given customer
47
57
  #
48
58
  # @param id [String] The unique identifier for the entity
@@ -51,6 +61,8 @@ module Stigg
51
61
  #
52
62
  # @param created_at [Time] Timestamp of when the record was created
53
63
  #
64
+ # @param display_name [String, nil] Human-readable name for the entity, or null when none is set — in which case cli
65
+ #
54
66
  # @param entity_type_id [String] The entity type identifier this entity instantiates
55
67
  #
56
68
  # @param metadata [Hash{Symbol=>String}] Free-form key/value metadata attached to the entity
@@ -37,6 +37,13 @@ module Stigg
37
37
  # @return [Time]
38
38
  required :created_at, Time, api_name: :createdAt
39
39
 
40
+ # @!attribute display_name
41
+ # Human-readable name for the entity, or null when none is set — in which case
42
+ # clients display the entity ID
43
+ #
44
+ # @return [String, nil]
45
+ required :display_name, String, api_name: :displayName, nil?: true
46
+
40
47
  # @!attribute entity_type_id
41
48
  # The entity type identifier this entity instantiates
42
49
  #
@@ -55,7 +62,11 @@ module Stigg
55
62
  # @return [Time]
56
63
  required :updated_at, Time, api_name: :updatedAt
57
64
 
58
- # @!method initialize(id:, archived_at:, created_at:, entity_type_id:, metadata:, updated_at:)
65
+ # @!method initialize(id:, archived_at:, created_at:, display_name:, entity_type_id:, metadata:, updated_at:)
66
+ # Some parameter documentations has been truncated, see
67
+ # {Stigg::Models::V1Beta::Customers::EntityRetrieveResponse::Data} for more
68
+ # details.
69
+ #
59
70
  # A stored entity instance tracked by the governance service for a given customer
60
71
  #
61
72
  # @param id [String] The unique identifier for the entity
@@ -64,6 +75,8 @@ module Stigg
64
75
  #
65
76
  # @param created_at [Time] Timestamp of when the record was created
66
77
  #
78
+ # @param display_name [String, nil] Human-readable name for the entity, or null when none is set — in which case cli
79
+ #
67
80
  # @param entity_type_id [String] The entity type identifier this entity instantiates
68
81
  #
69
82
  # @param metadata [Hash{Symbol=>String}] Free-form key/value metadata attached to the entity
@@ -49,6 +49,13 @@ module Stigg
49
49
  # @return [String]
50
50
  required :id, String
51
51
 
52
+ # @!attribute display_name
53
+ # Human-readable name for the entity. Omit to preserve the stored value, or send
54
+ # an empty string or null to clear it.
55
+ #
56
+ # @return [String, nil]
57
+ optional :display_name, String, api_name: :displayName, nil?: true
58
+
52
59
  # @!attribute entity_type_id
53
60
  # The entity type ID this entity instantiates. Required when creating a new
54
61
  # entity; on a re-upsert may be omitted to preserve the existing type. Governance
@@ -64,7 +71,7 @@ module Stigg
64
71
  # @return [Hash{Symbol=>String}, nil]
65
72
  optional :metadata, Stigg::Internal::Type::HashOf[String]
66
73
 
67
- # @!method initialize(id:, entity_type_id: nil, metadata: nil)
74
+ # @!method initialize(id:, display_name: nil, entity_type_id: nil, metadata: nil)
68
75
  # Some parameter documentations has been truncated, see
69
76
  # {Stigg::Models::V1Beta::Customers::EntityUpsertParams::Entity} for more details.
70
77
  #
@@ -72,6 +79,8 @@ module Stigg
72
79
  #
73
80
  # @param id [String] The unique identifier for the entity
74
81
  #
82
+ # @param display_name [String, nil] Human-readable name for the entity. Omit to preserve the stored value, or send a
83
+ #
75
84
  # @param entity_type_id [String] The entity type ID this entity instantiates. Required when creating a new entity
76
85
  #
77
86
  # @param metadata [Hash{Symbol=>String}] Free-form key/value metadata. Patch semantics: empty-string value removes a key,