stigg 0.1.0.pre.beta.34 → 0.1.0.pre.beta.36

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/client.rb +1 -1
  5. data/lib/stigg/models/v1/credits/consumption_consume_async_params.rb +116 -0
  6. data/lib/stigg/models/v1/credits/consumption_consume_async_response.rb +23 -0
  7. data/lib/stigg/models/v1/credits/consumption_consume_params.rb +102 -0
  8. data/lib/stigg/models/v1/credits/consumption_consume_response.rb +134 -0
  9. data/lib/stigg/models/v1/events/beta/customer_retrieve_governance_response.rb +8 -8
  10. data/lib/stigg/models/v1_beta/customers/assignment_list_params.rb +4 -4
  11. data/lib/stigg/models/v1_beta/customers/assignment_list_response.rb +12 -13
  12. data/lib/stigg/models/v1_beta/customers/assignment_upsert_params.rb +10 -10
  13. data/lib/stigg/models/v1_beta/customers/assignment_upsert_response.rb +12 -13
  14. data/lib/stigg/models/v1_beta/customers/entity_list_params.rb +9 -9
  15. data/lib/stigg/models/v1_beta/customers/entity_list_response.rb +9 -9
  16. data/lib/stigg/models/v1_beta/customers/entity_retrieve_response.rb +9 -9
  17. data/lib/stigg/models/v1_beta/customers/entity_upsert_params.rb +11 -11
  18. data/lib/stigg/models/v1_beta/customers/entity_upsert_response.rb +9 -9
  19. data/lib/stigg/resources/v1/credits/consumption.rb +94 -0
  20. data/lib/stigg/resources/v1/credits.rb +4 -0
  21. data/lib/stigg/resources/v1/events/beta/customers.rb +1 -1
  22. data/lib/stigg/resources/v1_beta/customers/assignments.rb +2 -2
  23. data/lib/stigg/resources/v1_beta/customers/entities.rb +9 -6
  24. data/lib/stigg/version.rb +1 -1
  25. data/lib/stigg.rb +5 -0
  26. data/rbi/stigg/models/v1/credits/consumption_consume_async_params.rbi +214 -0
  27. data/rbi/stigg/models/v1/credits/consumption_consume_async_response.rbi +35 -0
  28. data/rbi/stigg/models/v1/credits/consumption_consume_params.rbi +166 -0
  29. data/rbi/stigg/models/v1/credits/consumption_consume_response.rbi +232 -0
  30. data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbi +8 -8
  31. data/rbi/stigg/models/v1_beta/customers/assignment_list_params.rbi +4 -4
  32. data/rbi/stigg/models/v1_beta/customers/assignment_list_response.rbi +14 -16
  33. data/rbi/stigg/models/v1_beta/customers/assignment_upsert_params.rbi +12 -12
  34. data/rbi/stigg/models/v1_beta/customers/assignment_upsert_response.rbi +14 -16
  35. data/rbi/stigg/models/v1_beta/customers/entity_list_params.rbi +11 -11
  36. data/rbi/stigg/models/v1_beta/customers/entity_list_response.rbi +8 -8
  37. data/rbi/stigg/models/v1_beta/customers/entity_retrieve_response.rbi +8 -8
  38. data/rbi/stigg/models/v1_beta/customers/entity_upsert_params.rbi +18 -18
  39. data/rbi/stigg/models/v1_beta/customers/entity_upsert_response.rbi +8 -8
  40. data/rbi/stigg/resources/v1/credits/consumption.rbi +91 -0
  41. data/rbi/stigg/resources/v1/credits.rbi +3 -0
  42. data/rbi/stigg/resources/v1/events/beta/customers.rbi +1 -1
  43. data/rbi/stigg/resources/v1_beta/customers/assignments.rbi +2 -2
  44. data/rbi/stigg/resources/v1_beta/customers/entities.rbi +5 -5
  45. data/sig/stigg/models/v1/credits/consumption_consume_async_params.rbs +107 -0
  46. data/sig/stigg/models/v1/credits/consumption_consume_async_response.rbs +17 -0
  47. data/sig/stigg/models/v1/credits/consumption_consume_params.rbs +90 -0
  48. data/sig/stigg/models/v1/credits/consumption_consume_response.rbs +101 -0
  49. data/sig/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbs +4 -4
  50. data/sig/stigg/models/v1_beta/customers/entity_list_params.rbs +7 -7
  51. data/sig/stigg/models/v1_beta/customers/entity_list_response.rbs +5 -5
  52. data/sig/stigg/models/v1_beta/customers/entity_retrieve_response.rbs +5 -5
  53. data/sig/stigg/models/v1_beta/customers/entity_upsert_params.rbs +10 -10
  54. data/sig/stigg/models/v1_beta/customers/entity_upsert_response.rbs +5 -5
  55. data/sig/stigg/resources/v1/credits/consumption.rbs +31 -0
  56. data/sig/stigg/resources/v1/credits.rbs +2 -0
  57. data/sig/stigg/resources/v1_beta/customers/entities.rbs +1 -1
  58. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80d339977dd4c2a272f750387cdca3877af06c445be9f269c62bf34b3d726d2e
4
- data.tar.gz: 2facee5ad32bbf4bac99ab3a42e5dcb2566ccc5d7a985d7c453a9241fd85e9ec
3
+ metadata.gz: e8174994e13dfa023bdcabd912079e0521b319a6bd861ae13eaab54289c39977
4
+ data.tar.gz: ffd0b541acbb41ef6430ce8554c766bb58d35521118f25e786f13b299ecf96d8
5
5
  SHA512:
6
- metadata.gz: 9ebeb2844178122c5a3a3f8cdc23e56a18718b489f3dfab8f494aba9ff25b15d5a287fd43a250d2f9d4b037eb53eb80915e0bc0341dfde8a135a17a817896427
7
- data.tar.gz: dc1048e2f992e0f085936490e6a0d7052dafe8a8cb267da25d302e57407bdca07faee084b3beb808e50e71763eec421f48335f545591ae6c8ff8aff1b6cdf654
6
+ metadata.gz: 9b903f04ba4092e8e7258f8b6bcc4b6b04a4f9b53115e227be333172f4c9848199b514514acceb0b4c73238c2b91324e3187b7cc53689258051709bfca062a3a
7
+ data.tar.gz: 8296bee9bb201f3cc47fe68f022123e1a208cbc4b9c9668984daa9dd65cd2acb5a1d0028c7d73d6b6fb9dbbe19ce77c0f0fa65f423c04f521e48b932436a2299
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.36 (2026-07-05)
4
+
5
+ Full Changelog: [v0.1.0-beta.35...v0.1.0-beta.36](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.35...v0.1.0-beta.36)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api:** rename entity type fields to entity_type_id across governance/entities/assignments ([6669a6e](https://github.com/stiggio/stigg-ruby/commit/6669a6eb36df20c1cecb70697e467cf5fd62fadc))
10
+
11
+ ## 0.1.0-beta.35 (2026-07-01)
12
+
13
+ Full Changelog: [v0.1.0-beta.34...v0.1.0-beta.35](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.34...v0.1.0-beta.35)
14
+
15
+ ### Features
16
+
17
+ * **api:** add consumption sub-resource to credits ([91984a0](https://github.com/stiggio/stigg-ruby/commit/91984a0134e60ec1b03ed1c0ad34fdbdabea9426))
18
+
3
19
  ## 0.1.0-beta.34 (2026-06-30)
4
20
 
5
21
  Full Changelog: [v0.1.0-beta.33...v0.1.0-beta.34](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.33...v0.1.0-beta.34)
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.34"
27
+ gem "stigg", "~> 0.1.0.pre.beta.36"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
data/lib/stigg/client.rb CHANGED
@@ -53,7 +53,7 @@ module Stigg
53
53
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
54
54
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
55
55
  )
56
- base_url ||= "https://api.stigg.io"
56
+ base_url ||= "https://edge.api.stigg.io"
57
57
 
58
58
  if api_key.nil?
59
59
  raise ArgumentError.new("api_key is required, and can be set via environ: \"STIGG_API_KEY\"")
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Credits
7
+ # @see Stigg::Resources::V1::Credits::Consumption#consume_async
8
+ class ConsumptionConsumeAsyncParams < Stigg::Internal::Type::BaseModel
9
+ extend Stigg::Internal::Type::RequestParameters::Converter
10
+ include Stigg::Internal::Type::RequestParameters
11
+
12
+ # @!attribute consumptions
13
+ # The credit consumptions to report (up to 1000)
14
+ #
15
+ # @return [Array<Stigg::Models::V1::Credits::ConsumptionConsumeAsyncParams::Consumption>]
16
+ required :consumptions,
17
+ -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::Credits::ConsumptionConsumeAsyncParams::Consumption] }
18
+
19
+ # @!attribute x_account_id
20
+ #
21
+ # @return [String, nil]
22
+ optional :x_account_id, String
23
+
24
+ # @!attribute x_environment_id
25
+ #
26
+ # @return [String, nil]
27
+ optional :x_environment_id, String
28
+
29
+ # @!method initialize(consumptions:, x_account_id: nil, x_environment_id: nil, request_options: {})
30
+ # @param consumptions [Array<Stigg::Models::V1::Credits::ConsumptionConsumeAsyncParams::Consumption>] The credit consumptions to report (up to 1000)
31
+ #
32
+ # @param x_account_id [String]
33
+ #
34
+ # @param x_environment_id [String]
35
+ #
36
+ # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
37
+
38
+ class Consumption < Stigg::Internal::Type::BaseModel
39
+ # @!attribute amount
40
+ # The amount of credits to consume
41
+ #
42
+ # @return [Float]
43
+ required :amount, Float
44
+
45
+ # @!attribute currency_id
46
+ # The credit currency to consume from (required)
47
+ #
48
+ # @return [String]
49
+ required :currency_id, String, api_name: :currencyId
50
+
51
+ # @!attribute customer_id
52
+ # The customer to consume credits from (required)
53
+ #
54
+ # @return [String]
55
+ required :customer_id, String, api_name: :customerId
56
+
57
+ # @!attribute idempotency_key
58
+ # A unique key used to deduplicate the consumption (required)
59
+ #
60
+ # @return [String]
61
+ required :idempotency_key, String, api_name: :idempotencyKey
62
+
63
+ # @!attribute created_at
64
+ # Optional timestamp the consumption is attributed to
65
+ #
66
+ # @return [Time, nil]
67
+ optional :created_at, Time, api_name: :createdAt
68
+
69
+ # @!attribute dimensions
70
+ # Optional dimensions describing the consumption
71
+ #
72
+ # @return [Hash{Symbol=>String, Float, Boolean}, nil]
73
+ optional :dimensions,
74
+ -> { Stigg::Internal::Type::HashOf[union: Stigg::V1::Credits::ConsumptionConsumeAsyncParams::Consumption::Dimension] }
75
+
76
+ # @!attribute resource_id
77
+ # Optional resource the consumption is attributed to
78
+ #
79
+ # @return [String, nil]
80
+ optional :resource_id, String, api_name: :resourceId
81
+
82
+ # @!method initialize(amount:, currency_id:, customer_id:, idempotency_key:, created_at: nil, dimensions: nil, resource_id: nil)
83
+ # Request body for consuming credits directly from a wallet
84
+ #
85
+ # @param amount [Float] The amount of credits to consume
86
+ #
87
+ # @param currency_id [String] The credit currency to consume from (required)
88
+ #
89
+ # @param customer_id [String] The customer to consume credits from (required)
90
+ #
91
+ # @param idempotency_key [String] A unique key used to deduplicate the consumption (required)
92
+ #
93
+ # @param created_at [Time] Optional timestamp the consumption is attributed to
94
+ #
95
+ # @param dimensions [Hash{Symbol=>String, Float, Boolean}] Optional dimensions describing the consumption
96
+ #
97
+ # @param resource_id [String] Optional resource the consumption is attributed to
98
+
99
+ module Dimension
100
+ extend Stigg::Internal::Type::Union
101
+
102
+ variant String
103
+
104
+ variant Float
105
+
106
+ variant Stigg::Internal::Type::Boolean
107
+
108
+ # @!method self.variants
109
+ # @return [Array(String, Float, Boolean)]
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Credits
7
+ # @see Stigg::Resources::V1::Credits::Consumption#consume_async
8
+ class ConsumptionConsumeAsyncResponse < Stigg::Internal::Type::BaseModel
9
+ # @!attribute data
10
+ # Confirmation that the credit consumptions were accepted for processing
11
+ #
12
+ # @return [Object]
13
+ required :data, Stigg::Internal::Type::Unknown
14
+
15
+ # @!method initialize(data:)
16
+ # Response object
17
+ #
18
+ # @param data [Object] Confirmation that the credit consumptions were accepted for processing
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Credits
7
+ # @see Stigg::Resources::V1::Credits::Consumption#consume
8
+ class ConsumptionConsumeParams < Stigg::Internal::Type::BaseModel
9
+ extend Stigg::Internal::Type::RequestParameters::Converter
10
+ include Stigg::Internal::Type::RequestParameters
11
+
12
+ # @!attribute amount
13
+ # The amount of credits to consume
14
+ #
15
+ # @return [Float]
16
+ required :amount, Float
17
+
18
+ # @!attribute currency_id
19
+ # The credit currency to consume from (required)
20
+ #
21
+ # @return [String]
22
+ required :currency_id, String, api_name: :currencyId
23
+
24
+ # @!attribute customer_id
25
+ # The customer to consume credits from (required)
26
+ #
27
+ # @return [String]
28
+ required :customer_id, String, api_name: :customerId
29
+
30
+ # @!attribute idempotency_key
31
+ # A unique key used to deduplicate the consumption (required)
32
+ #
33
+ # @return [String]
34
+ required :idempotency_key, String, api_name: :idempotencyKey
35
+
36
+ # @!attribute created_at
37
+ # Optional timestamp the consumption is attributed to
38
+ #
39
+ # @return [Time, nil]
40
+ optional :created_at, Time, api_name: :createdAt
41
+
42
+ # @!attribute dimensions
43
+ # Optional dimensions describing the consumption
44
+ #
45
+ # @return [Hash{Symbol=>String, Float, Boolean}, nil]
46
+ optional :dimensions,
47
+ -> { Stigg::Internal::Type::HashOf[union: Stigg::V1::Credits::ConsumptionConsumeParams::Dimension] }
48
+
49
+ # @!attribute resource_id
50
+ # Optional resource the consumption is attributed to
51
+ #
52
+ # @return [String, nil]
53
+ optional :resource_id, String, api_name: :resourceId
54
+
55
+ # @!attribute x_account_id
56
+ #
57
+ # @return [String, nil]
58
+ optional :x_account_id, String
59
+
60
+ # @!attribute x_environment_id
61
+ #
62
+ # @return [String, nil]
63
+ optional :x_environment_id, String
64
+
65
+ # @!method initialize(amount:, currency_id:, customer_id:, idempotency_key:, created_at: nil, dimensions: nil, resource_id: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
66
+ # @param amount [Float] The amount of credits to consume
67
+ #
68
+ # @param currency_id [String] The credit currency to consume from (required)
69
+ #
70
+ # @param customer_id [String] The customer to consume credits from (required)
71
+ #
72
+ # @param idempotency_key [String] A unique key used to deduplicate the consumption (required)
73
+ #
74
+ # @param created_at [Time] Optional timestamp the consumption is attributed to
75
+ #
76
+ # @param dimensions [Hash{Symbol=>String, Float, Boolean}] Optional dimensions describing the consumption
77
+ #
78
+ # @param resource_id [String] Optional resource the consumption is attributed to
79
+ #
80
+ # @param x_account_id [String]
81
+ #
82
+ # @param x_environment_id [String]
83
+ #
84
+ # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
85
+
86
+ module Dimension
87
+ extend Stigg::Internal::Type::Union
88
+
89
+ variant String
90
+
91
+ variant Float
92
+
93
+ variant Stigg::Internal::Type::Boolean
94
+
95
+ # @!method self.variants
96
+ # @return [Array(String, Float, Boolean)]
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,134 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Credits
7
+ # @see Stigg::Resources::V1::Credits::Consumption#consume
8
+ class ConsumptionConsumeResponse < Stigg::Internal::Type::BaseModel
9
+ # @!attribute data
10
+ # Result of a synchronous direct credit consumption
11
+ #
12
+ # @return [Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data]
13
+ required :data, -> { Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data }
14
+
15
+ # @!method initialize(data:)
16
+ # Response object
17
+ #
18
+ # @param data [Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data] Result of a synchronous direct credit consumption
19
+
20
+ # @see Stigg::Models::V1::Credits::ConsumptionConsumeResponse#data
21
+ class Data < Stigg::Internal::Type::BaseModel
22
+ # @!attribute amount
23
+ # The amount of credits consumed
24
+ #
25
+ # @return [Float]
26
+ required :amount, Float
27
+
28
+ # @!attribute currency_id
29
+ # The credit currency the credits were consumed from
30
+ #
31
+ # @return [String]
32
+ required :currency_id, String, api_name: :currencyId
33
+
34
+ # @!attribute customer_id
35
+ # The customer the credits were consumed from
36
+ #
37
+ # @return [String]
38
+ required :customer_id, String, api_name: :customerId
39
+
40
+ # @!attribute timestamp
41
+ # The timestamp the consumption was attributed to
42
+ #
43
+ # @return [Time]
44
+ required :timestamp, Time
45
+
46
+ # @!attribute credit
47
+ # The optimistic credit balance after consumption (when sync credit consumption is
48
+ # enabled)
49
+ #
50
+ # @return [Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data::Credit, nil]
51
+ optional :credit, -> { Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data::Credit }, nil?: true
52
+
53
+ # @!attribute resource_id
54
+ # The resource the consumption was attributed to
55
+ #
56
+ # @return [String, nil]
57
+ optional :resource_id, String, api_name: :resourceId, nil?: true
58
+
59
+ # @!method initialize(amount:, currency_id:, customer_id:, timestamp:, credit: nil, resource_id: nil)
60
+ # Some parameter documentations has been truncated, see
61
+ # {Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data} for more details.
62
+ #
63
+ # Result of a synchronous direct credit consumption
64
+ #
65
+ # @param amount [Float] The amount of credits consumed
66
+ #
67
+ # @param currency_id [String] The credit currency the credits were consumed from
68
+ #
69
+ # @param customer_id [String] The customer the credits were consumed from
70
+ #
71
+ # @param timestamp [Time] The timestamp the consumption was attributed to
72
+ #
73
+ # @param credit [Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data::Credit, nil] The optimistic credit balance after consumption (when sync credit consumption is
74
+ #
75
+ # @param resource_id [String, nil] The resource the consumption was attributed to
76
+
77
+ # @see Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data#credit
78
+ class Credit < Stigg::Internal::Type::BaseModel
79
+ # @!attribute currency_id
80
+ # The credit currency identifier
81
+ #
82
+ # @return [String]
83
+ required :currency_id, String, api_name: :currencyId
84
+
85
+ # @!attribute current_usage
86
+ # The credits consumed (optimistic — includes not-yet-reconciled usage)
87
+ #
88
+ # @return [Float]
89
+ required :current_usage, Float, api_name: :currentUsage
90
+
91
+ # @!attribute timestamp
92
+ # The grant-version timestamp of this balance, used by the SDK for last-write-wins
93
+ # reconciliation
94
+ #
95
+ # @return [Time]
96
+ required :timestamp, Time
97
+
98
+ # @!attribute usage_limit
99
+ # The total credits granted
100
+ #
101
+ # @return [Float]
102
+ required :usage_limit, Float, api_name: :usageLimit
103
+
104
+ # @!attribute usage_period_end
105
+ # End of the current credit grant period (when recurring credits reset), if
106
+ # applicable
107
+ #
108
+ # @return [Time, nil]
109
+ optional :usage_period_end, Time, api_name: :usagePeriodEnd, nil?: true
110
+
111
+ # @!method initialize(currency_id:, current_usage:, timestamp:, usage_limit:, usage_period_end: nil)
112
+ # Some parameter documentations has been truncated, see
113
+ # {Stigg::Models::V1::Credits::ConsumptionConsumeResponse::Data::Credit} for more
114
+ # details.
115
+ #
116
+ # The optimistic credit balance after consumption (when sync credit consumption is
117
+ # enabled)
118
+ #
119
+ # @param currency_id [String] The credit currency identifier
120
+ #
121
+ # @param current_usage [Float] The credits consumed (optimistic — includes not-yet-reconciled usage)
122
+ #
123
+ # @param timestamp [Time] The grant-version timestamp of this balance, used by the SDK for last-write-wins
124
+ #
125
+ # @param usage_limit [Float] The total credits granted
126
+ #
127
+ # @param usage_period_end [Time, nil] End of the current credit grant period (when recurring credits reset), if applic
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
134
+ end
@@ -47,11 +47,11 @@ module Stigg
47
47
  # @return [String]
48
48
  required :entity_id, String, api_name: :entityId
49
49
 
50
- # @!attribute entity_type
50
+ # @!attribute entity_type_id
51
51
  # External id of the entity type (e.g. `team`, `user`).
52
52
  #
53
53
  # @return [String]
54
- required :entity_type, String, api_name: :entityType
54
+ required :entity_type_id, String, api_name: :entityTypeId
55
55
 
56
56
  # @!attribute parent_id
57
57
  # External id of the parent entity in the tree; `null` for a root. Use it to
@@ -95,19 +95,19 @@ module Stigg
95
95
  required :utilization, Float, nil?: true
96
96
 
97
97
  # @!attribute currency_id
98
- # The metered currency refId (present when the configured capability is a credit
98
+ # The metered currency ID (present when the configured capability is a credit
99
99
  # currency).
100
100
  #
101
101
  # @return [String, nil]
102
102
  optional :currency_id, String, api_name: :currencyId
103
103
 
104
104
  # @!attribute feature_id
105
- # The metered feature refId (present when the configured capability is a feature).
105
+ # The metered feature ID (present when the configured capability is a feature).
106
106
  #
107
107
  # @return [String, nil]
108
108
  optional :feature_id, String, api_name: :featureId
109
109
 
110
- # @!method initialize(cadence:, current_usage:, entity_id:, entity_type:, parent_id:, scope_entity_ids:, usage_limit:, usage_period_end:, usage_period_start:, utilization:, currency_id: nil, feature_id: nil)
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)
111
111
  # Some parameter documentations has been truncated, see
112
112
  # {Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data} for
113
113
  # more details.
@@ -123,7 +123,7 @@ module Stigg
123
123
  #
124
124
  # @param entity_id [String] External id of the entity at this node.
125
125
  #
126
- # @param entity_type [String] External id of the entity type (e.g. `team`, `user`).
126
+ # @param entity_type_id [String] External id of the entity type (e.g. `team`, `user`).
127
127
  #
128
128
  # @param parent_id [String, nil] External id of the parent entity in the tree; `null` for a root. Use it to rebui
129
129
  #
@@ -137,9 +137,9 @@ module Stigg
137
137
  #
138
138
  # @param utilization [Float, nil] `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The cros
139
139
  #
140
- # @param currency_id [String] The metered currency refId (present when the configured capability is a credit c
140
+ # @param currency_id [String] The metered currency ID (present when the configured capability is a credit curr
141
141
  #
142
- # @param feature_id [String] The metered feature refId (present when the configured capability is a feature).
142
+ # @param feature_id [String] The metered feature ID (present when the configured capability is a feature).
143
143
  end
144
144
 
145
145
  # @see Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse#pagination
@@ -27,13 +27,13 @@ module Stigg
27
27
  optional :before, String
28
28
 
29
29
  # @!attribute capability_id
30
- # Filter assignments to a specific capability refId
30
+ # Filter assignments to a specific capability ID
31
31
  #
32
32
  # @return [String, nil]
33
33
  optional :capability_id, String
34
34
 
35
35
  # @!attribute entity_id
36
- # Filter assignments to a specific entity refId
36
+ # Filter assignments to a specific entity ID
37
37
  #
38
38
  # @return [String, nil]
39
39
  optional :entity_id, String
@@ -61,9 +61,9 @@ module Stigg
61
61
  #
62
62
  # @param before [String] Return items that come before this cursor
63
63
  #
64
- # @param capability_id [String] Filter assignments to a specific capability refId
64
+ # @param capability_id [String] Filter assignments to a specific capability ID
65
65
  #
66
- # @param entity_id [String] Filter assignments to a specific entity refId
66
+ # @param entity_id [String] Filter assignments to a specific entity ID
67
67
  #
68
68
  # @param limit [Integer] Maximum number of items to return
69
69
  #
@@ -26,22 +26,21 @@ module Stigg
26
26
  required :created_at, Time, api_name: :createdAt
27
27
 
28
28
  # @!attribute entity_id
29
- # The entity refId this assignment is attached to
29
+ # The entity ID this assignment is attached to
30
30
  #
31
31
  # @return [String]
32
32
  required :entity_id, String, api_name: :entityId
33
33
 
34
34
  # @!attribute parent_id
35
- # Parent entity refId in the hierarchy, or `null` for a root.
35
+ # Parent entity ID in the hierarchy, or `null` for a root.
36
36
  #
37
37
  # @return [String, nil]
38
38
  required :parent_id, String, api_name: :parentId, nil?: true
39
39
 
40
40
  # @!attribute scope_entity_ids
41
- # Dimension-scoped sub-budget key: the set of entity refIds this budget applies
42
- # to. Empty is the node-wide budget that always matches; a non-empty set only
43
- # applies when every listed entity is present in the resolved set
44
- # (order-insensitive).
41
+ # Dimension-scoped sub-budget key: the set of entity IDs this budget applies to.
42
+ # Empty is the node-wide budget that always matches; a non-empty set only applies
43
+ # when every listed entity is present in the resolved set (order-insensitive).
45
44
  #
46
45
  # @return [Array<String>]
47
46
  required :scope_entity_ids, Stigg::Internal::Type::ArrayOf[String], api_name: :scopeEntityIds
@@ -59,13 +58,13 @@ module Stigg
59
58
  required :usage_limit, Float, api_name: :usageLimit, nil?: true
60
59
 
61
60
  # @!attribute currency_id
62
- # Currency refId this assignment grants (present for credit capabilities).
61
+ # Currency ID this assignment grants (present for credit capabilities).
63
62
  #
64
63
  # @return [String, nil]
65
64
  optional :currency_id, String, api_name: :currencyId
66
65
 
67
66
  # @!attribute feature_id
68
- # Feature refId this assignment grants (present for feature capabilities).
67
+ # Feature ID this assignment grants (present for feature capabilities).
69
68
  #
70
69
  # @return [String, nil]
71
70
  optional :feature_id, String, api_name: :featureId
@@ -84,19 +83,19 @@ module Stigg
84
83
  #
85
84
  # @param created_at [Time] Timestamp of when the record was created
86
85
  #
87
- # @param entity_id [String] The entity refId this assignment is attached to
86
+ # @param entity_id [String] The entity ID this assignment is attached to
88
87
  #
89
- # @param parent_id [String, nil] Parent entity refId in the hierarchy, or `null` for a root.
88
+ # @param parent_id [String, nil] Parent entity ID in the hierarchy, or `null` for a root.
90
89
  #
91
- # @param scope_entity_ids [Array<String>] Dimension-scoped sub-budget key: the set of entity refIds this budget applies to
90
+ # @param scope_entity_ids [Array<String>] Dimension-scoped sub-budget key: the set of entity IDs this budget applies to. E
92
91
  #
93
92
  # @param updated_at [Time] Timestamp of when the record was last updated
94
93
  #
95
94
  # @param usage_limit [Float, nil] Maximum usage allowed within one cadence window
96
95
  #
97
- # @param currency_id [String] Currency refId this assignment grants (present for credit capabilities).
96
+ # @param currency_id [String] Currency ID this assignment grants (present for credit capabilities).
98
97
  #
99
- # @param feature_id [String] Feature refId this assignment grants (present for feature capabilities).
98
+ # @param feature_id [String] Feature ID this assignment grants (present for feature capabilities).
100
99
  end
101
100
  end
102
101
  end
@@ -44,7 +44,7 @@ module Stigg
44
44
 
45
45
  class Assignment < Stigg::Internal::Type::BaseModel
46
46
  # @!attribute entity_id
47
- # The entity refId this assignment is attached to
47
+ # The entity ID this assignment is attached to
48
48
  #
49
49
  # @return [String]
50
50
  required :entity_id, String, api_name: :entityId
@@ -57,22 +57,22 @@ module Stigg
57
57
  optional :cadence, String
58
58
 
59
59
  # @!attribute currency_id
60
- # Currency refId this assignment grants (credit budgets). Mutually exclusive with
60
+ # Currency ID this assignment grants (credit budgets). Mutually exclusive with
61
61
  # `featureId`.
62
62
  #
63
63
  # @return [String, nil]
64
64
  optional :currency_id, String, api_name: :currencyId
65
65
 
66
66
  # @!attribute feature_id
67
- # Feature refId this assignment grants. Mutually exclusive with `currencyId`.
67
+ # Feature ID this assignment grants. Mutually exclusive with `currencyId`.
68
68
  #
69
69
  # @return [String, nil]
70
70
  optional :feature_id, String, api_name: :featureId
71
71
 
72
72
  # @!attribute parent_id
73
- # Parent entity refId in the hierarchy. Omit to leave the current parent untouched
74
- # (a new node defaults to a root); `null` detaches to a root; a refId sets or
75
- # changes the parent. Reparenting an existing node is leaf-only.
73
+ # Parent entity ID in the hierarchy. Omit to leave the current parent untouched (a
74
+ # new node defaults to a root); `null` detaches to a root; an ID sets or changes
75
+ # the parent. Reparenting an existing node is leaf-only.
76
76
  #
77
77
  # @return [String, nil]
78
78
  optional :parent_id, String, api_name: :parentId, nil?: true
@@ -99,15 +99,15 @@ module Stigg
99
99
  # `cadence` are required; on update they may be omitted individually to preserve
100
100
  # the existing value.
101
101
  #
102
- # @param entity_id [String] The entity refId this assignment is attached to
102
+ # @param entity_id [String] The entity ID this assignment is attached to
103
103
  #
104
104
  # @param cadence [String] Usage-reset cadence (required on create) as an ISO-8601 single-unit duration, e.
105
105
  #
106
- # @param currency_id [String] Currency refId this assignment grants (credit budgets). Mutually exclusive with
106
+ # @param currency_id [String] Currency ID this assignment grants (credit budgets). Mutually exclusive with `fe
107
107
  #
108
- # @param feature_id [String] Feature refId this assignment grants. Mutually exclusive with `currencyId`.
108
+ # @param feature_id [String] Feature ID this assignment grants. Mutually exclusive with `currencyId`.
109
109
  #
110
- # @param parent_id [String, nil] Parent entity refId in the hierarchy. Omit to leave the current parent untouched
110
+ # @param parent_id [String, nil] Parent entity ID in the hierarchy. Omit to leave the current parent untouched (a
111
111
  #
112
112
  # @param scope_entity_ids [Array<String>]
113
113
  #