Skip to content

Commit 172e598

Browse files
feat(api): api update (#111)
1 parent f87af8c commit 172e598

14 files changed

+19
-45
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml

lib/orb/models/alert.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ class Threshold < Orb::BaseModel
201201
#
202202
# The type of alert. This must be a valid alert type.
203203
class Type < Orb::Enum
204-
USAGE_EXCEEDED = :usage_exceeded
205-
COST_EXCEEDED = :cost_exceeded
206204
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
207205
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
208206
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered
207+
USAGE_EXCEEDED = :usage_exceeded
208+
COST_EXCEEDED = :cost_exceeded
209209

210210
finalize!
211211

lib/orb/models/alert_create_for_customer_params.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class AlertCreateForCustomerParams < Orb::BaseModel
4141
#
4242
# The type of alert to create. This must be a valid alert type.
4343
class Type < Orb::Enum
44-
USAGE_EXCEEDED = :usage_exceeded
45-
COST_EXCEEDED = :cost_exceeded
4644
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
4745
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
4846
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered

lib/orb/models/alert_create_for_external_customer_params.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class AlertCreateForExternalCustomerParams < Orb::BaseModel
4141
#
4242
# The type of alert to create. This must be a valid alert type.
4343
class Type < Orb::Enum
44-
USAGE_EXCEEDED = :usage_exceeded
45-
COST_EXCEEDED = :cost_exceeded
4644
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
4745
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
4846
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered

lib/orb/models/alert_create_for_subscription_params.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ class Threshold < Orb::BaseModel
6161
class Type < Orb::Enum
6262
USAGE_EXCEEDED = :usage_exceeded
6363
COST_EXCEEDED = :cost_exceeded
64-
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
65-
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
66-
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered
6764

6865
finalize!
6966

rbi/lib/orb/models/alert.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,11 @@ module Orb
280280
class Type < Orb::Enum
281281
abstract!
282282

283-
USAGE_EXCEEDED = :usage_exceeded
284-
COST_EXCEEDED = :cost_exceeded
285283
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
286284
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
287285
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered
286+
USAGE_EXCEEDED = :usage_exceeded
287+
COST_EXCEEDED = :cost_exceeded
288288

289289
sig { override.returns(T::Array[Symbol]) }
290290
def self.values

rbi/lib/orb/models/alert_create_for_customer_params.rbi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ module Orb
6262
class Type < Orb::Enum
6363
abstract!
6464

65-
USAGE_EXCEEDED = :usage_exceeded
66-
COST_EXCEEDED = :cost_exceeded
6765
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
6866
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
6967
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered

rbi/lib/orb/models/alert_create_for_external_customer_params.rbi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ module Orb
6262
class Type < Orb::Enum
6363
abstract!
6464

65-
USAGE_EXCEEDED = :usage_exceeded
66-
COST_EXCEEDED = :cost_exceeded
6765
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
6866
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
6967
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered

rbi/lib/orb/models/alert_create_for_subscription_params.rbi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ module Orb
8282

8383
USAGE_EXCEEDED = :usage_exceeded
8484
COST_EXCEEDED = :cost_exceeded
85-
CREDIT_BALANCE_DEPLETED = :credit_balance_depleted
86-
CREDIT_BALANCE_DROPPED = :credit_balance_dropped
87-
CREDIT_BALANCE_RECOVERED = :credit_balance_recovered
8885

8986
sig { override.returns(T::Array[Symbol]) }
9087
def self.values

sig/orb/models/alert.rbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ module Orb
132132
end
133133

134134
type type_ =
135-
:usage_exceeded
136-
| :cost_exceeded
137-
| :credit_balance_depleted
135+
:credit_balance_depleted
138136
| :credit_balance_dropped
139137
| :credit_balance_recovered
138+
| :usage_exceeded
139+
| :cost_exceeded
140140

141141
class Type < Orb::Enum
142-
USAGE_EXCEEDED: :usage_exceeded
143-
COST_EXCEEDED: :cost_exceeded
144142
CREDIT_BALANCE_DEPLETED: :credit_balance_depleted
145143
CREDIT_BALANCE_DROPPED: :credit_balance_dropped
146144
CREDIT_BALANCE_RECOVERED: :credit_balance_recovered
145+
USAGE_EXCEEDED: :usage_exceeded
146+
COST_EXCEEDED: :cost_exceeded
147147

148148
def self.values: -> ::Array[Orb::Models::Alert::type_]
149149
end

0 commit comments

Comments
 (0)