infrawrench-sdk 1.90.0 → 1.92.0
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/LICENSE +1 -1
- data/README.md +3 -3
- data/infrawrench-sdk.gemspec +5 -5
- data/lib/infrawrench/client.rb +38 -4
- data/lib/infrawrench/sdk.rb +2 -2
- data/lib/infrawrench/transport.rb +2 -2
- data/lib/infrawrench/version.rb +3 -3
- data/lib/infrawrench-sdk.rb +2 -2
- data/sig/infrawrench/sdk.rbs +14 -4
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e07008bfffcd1fad78afb0cd25a2ab81e7da305a9ab4488cf06a73e117876cd
|
|
4
|
+
data.tar.gz: a3e05bfc29c29280a726a0643d3cdded8733d9f5062e8aa357a75e12a5c4a6e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3cb5dab2a8a2bcd97c195b76015ad55cf72ada6c7503d360768c331c0ce6331dd692395707914686e855b37866e6bbff94704e2a0cc2a076b6f1b225af47ff1
|
|
7
|
+
data.tar.gz: 5f6466443c82816909f956433ec207e0b3752e931d05b99eb7c9d7f73ea315d8296c8d75896f4c6ca7bd65e6ff166fc5a44c722a1c234e97dd225bb892bb24a8
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# infrawrench-sdk
|
|
2
2
|
|
|
3
|
-
Generated Ruby client for the Infrawrench API (API version `1.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `1.92.0`).
|
|
4
4
|
|
|
5
5
|
**Do not edit this gem by hand** — it is regenerated from `openapi.json` and is
|
|
6
6
|
not checked into the repository. Run
|
|
@@ -41,7 +41,7 @@ Every method takes an optional trailing `request_options:` hash (`:headers`,
|
|
|
41
41
|
Responses are the plain `Hash`/`Array` that `JSON.parse` returns, with String
|
|
42
42
|
keys spelled exactly as the wire spells them. There are no model classes — see
|
|
43
43
|
[`sig/infrawrench/sdk.rbs`](./sig/infrawrench/sdk.rbs) for the shape of every one of the
|
|
44
|
-
|
|
44
|
+
1278 schemas, as RBS type aliases that steep and TypeProf can read.
|
|
45
45
|
|
|
46
46
|
Non-2xx responses raise `Infrawrench::ApiError`, which carries `#status`,
|
|
47
47
|
the parsed `#body`, and the machine-readable `#code` when the API sends one —
|
|
@@ -85,7 +85,7 @@ push registration, and the browser auth redirects — are not generated.
|
|
|
85
85
|
|
|
86
86
|
## License
|
|
87
87
|
|
|
88
|
-
MIT — see [`LICENSE`](./LICENSE). Copyright (c) 2026 Infrawrench
|
|
88
|
+
MIT — see [`LICENSE`](./LICENSE). Copyright (c) 2026 Infrawrench Services, Inc..
|
|
89
89
|
|
|
90
90
|
Note that this client is more permissively licensed than the service it talks
|
|
91
91
|
to: the Infrawrench source is BUSL-1.1, but the generated clients are MIT so you
|
data/infrawrench-sdk.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -17,9 +17,9 @@ require_relative "lib/infrawrench/version"
|
|
|
17
17
|
Gem::Specification.new do |spec|
|
|
18
18
|
spec.name = "infrawrench-sdk"
|
|
19
19
|
spec.version = Infrawrench::VERSION
|
|
20
|
-
spec.summary = "Generated Ruby client for the Infrawrench API (v1.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v1.
|
|
22
|
-
spec.authors = ["Infrawrench
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v1.92.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.92.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
|
|
22
|
+
spec.authors = ["Infrawrench Services, Inc.", "Astrid Gealer"]
|
|
23
23
|
spec.email = ["astrid@infrawrench.com"]
|
|
24
24
|
spec.homepage = "https://infrawrench.com/docs/team-and-billing/client-sdks"
|
|
25
25
|
spec.license = "MIT"
|
data/lib/infrawrench/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -3448,14 +3448,46 @@ module Infrawrench
|
|
|
3448
3448
|
#
|
|
3449
3449
|
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
3450
3450
|
# constructed with.
|
|
3451
|
+
# @param body [Hash, nil] Request body, shaped as `SubscriptionCheckoutRequest`.
|
|
3451
3452
|
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
3452
3453
|
# @return [Hash] Parsed JSON, shaped as `StripeRedirectUrl` — see `sig/infrawrench/sdk.rbs`.
|
|
3453
3454
|
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
3454
|
-
def checkout(org_id: nil, request_options: nil)
|
|
3455
|
+
def checkout(org_id: nil, body: nil, request_options: nil)
|
|
3455
3456
|
@transport.request(
|
|
3456
3457
|
http_method: "POST",
|
|
3457
3458
|
path: "/api/org/{orgId}/billing/checkout",
|
|
3458
3459
|
path_params: { "orgId" => org_id },
|
|
3460
|
+
body: body,
|
|
3461
|
+
request_options: request_options
|
|
3462
|
+
)
|
|
3463
|
+
end
|
|
3464
|
+
|
|
3465
|
+
# Update consent on unpaid checkouts for this visitor
|
|
3466
|
+
#
|
|
3467
|
+
# Rewrites the saved analytics consent on this user's Checkout Sessions that
|
|
3468
|
+
# are not yet paid. A withdrawal reaches all of them; any other answer
|
|
3469
|
+
# reaches the matching visitor's sessions and any still pending with no
|
|
3470
|
+
# visitor id. A paid session is left as it was queued.
|
|
3471
|
+
#
|
|
3472
|
+
# _Requires permission: `billing:write`._
|
|
3473
|
+
#
|
|
3474
|
+
# POST /api/org/{orgId}/billing/measurement-consent
|
|
3475
|
+
#
|
|
3476
|
+
# Raises on 403: Forbidden
|
|
3477
|
+
#
|
|
3478
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
3479
|
+
# constructed with.
|
|
3480
|
+
# @param body [Hash] Request body, shaped as `SubscriptionCheckoutRequest`.
|
|
3481
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
3482
|
+
# @return [Hash] Parsed JSON, shaped as `RevnuConsentRefresh` — see
|
|
3483
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
3484
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
3485
|
+
def measurement_consent(body:, org_id: nil, request_options: nil)
|
|
3486
|
+
@transport.request(
|
|
3487
|
+
http_method: "POST",
|
|
3488
|
+
path: "/api/org/{orgId}/billing/measurement-consent",
|
|
3489
|
+
path_params: { "orgId" => org_id },
|
|
3490
|
+
body: body,
|
|
3459
3491
|
request_options: request_options
|
|
3460
3492
|
)
|
|
3461
3493
|
end
|
|
@@ -14721,7 +14753,9 @@ module Infrawrench
|
|
|
14721
14753
|
# Google Cloud Compute Engine. It is the data behind
|
|
14722
14754
|
# instances.infrawrench.com. Needs no scope. Use `GET
|
|
14723
14755
|
# /api/v1/instance-pricing/schema` for the columns, or the tables below;
|
|
14724
|
-
# filter `prices` on `platform` and `current`.
|
|
14756
|
+
# filter `prices` on `platform` and `current`. The Infrawrench web and
|
|
14757
|
+
# desktop apps call this path with a key built into them; that key is
|
|
14758
|
+
# licensed for those apps only, so your own code should use an API key.
|
|
14725
14759
|
#
|
|
14726
14760
|
# - `prices`: Every price the provider has listed for an instance type, one
|
|
14727
14761
|
# row per period a price held. `current = true` (equivalently `valid_to IS
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/lib/infrawrench/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
# Kept in its own file so the gemspec can read the version without loading the
|
|
16
16
|
# client — a gemspec that pulls in net/http is a gemspec that can fail to parse.
|
|
17
17
|
module Infrawrench
|
|
18
|
-
VERSION = "1.
|
|
18
|
+
VERSION = "1.92.0"
|
|
19
19
|
end
|
data/lib/infrawrench-sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/sig/infrawrench/sdk.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# infrawrench-sdk v1.
|
|
1
|
+
# infrawrench-sdk v1.92.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
2
2
|
# https://github.com/Infrawrench/Infrawrench
|
|
3
3
|
#
|
|
4
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.92.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1936,7 +1936,7 @@ module Infrawrench
|
|
|
1936
1936
|
type calendar_subscription_list = { "subscriptions" => Array[calendar_subscription] }
|
|
1937
1937
|
|
|
1938
1938
|
# Spec schema: `CapacityCheckoutRequest`.
|
|
1939
|
-
type capacity_checkout_request = { ?"quantity" => Integer }
|
|
1939
|
+
type capacity_checkout_request = { ?"quantity" => Integer, ?"measurement" => revnu_checkout_measurement }
|
|
1940
1940
|
|
|
1941
1941
|
# Spec schema: `CapacitySlot`.
|
|
1942
1942
|
type capacity_slot = {
|
|
@@ -12589,6 +12589,12 @@ module Infrawrench
|
|
|
12589
12589
|
"revertedAt" => String | nil
|
|
12590
12590
|
}
|
|
12591
12591
|
|
|
12592
|
+
# Spec schema: `RevnuCheckoutMeasurement`.
|
|
12593
|
+
type revnu_checkout_measurement = { ?"anonymousId" => String, ?"consentState" => "granted" | "denied" | "pending" }
|
|
12594
|
+
|
|
12595
|
+
# Spec schema: `RevnuConsentRefresh`.
|
|
12596
|
+
type revnu_consent_refresh = { "updated" => Integer }
|
|
12597
|
+
|
|
12592
12598
|
# Spec schema: `RightsizingListResponse`.
|
|
12593
12599
|
type rightsizing_list_response = {
|
|
12594
12600
|
"accounts" => Array[oversized_account_group],
|
|
@@ -14243,6 +14249,9 @@ module Infrawrench
|
|
|
14243
14249
|
}
|
|
14244
14250
|
| nil
|
|
14245
14251
|
|
|
14252
|
+
# Spec schema: `SubscriptionCheckoutRequest`.
|
|
14253
|
+
type subscription_checkout_request = { ?"measurement" => revnu_checkout_measurement }
|
|
14254
|
+
|
|
14246
14255
|
# Two allocation rule ids in the same org whose priorities should be swapped.
|
|
14247
14256
|
#
|
|
14248
14257
|
# Spec schema: `SwapAllocationRulesBody`.
|
|
@@ -15268,7 +15277,8 @@ module Infrawrench
|
|
|
15268
15277
|
class BillingNamespace
|
|
15269
15278
|
attr_reader capacity: BillingCapacityNamespace
|
|
15270
15279
|
def initialize: (Transport) -> void
|
|
15271
|
-
def checkout: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
|
15280
|
+
def checkout: (?org_id: String?, ?body: subscription_checkout_request?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
|
15281
|
+
def measurement_consent: (body: subscription_checkout_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> revnu_consent_refresh
|
|
15272
15282
|
def portal: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
|
15273
15283
|
def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> billing_status
|
|
15274
15284
|
end
|
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: infrawrench-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.92.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Infrawrench
|
|
7
|
+
- Infrawrench Services, Inc.
|
|
8
8
|
- Astrid Gealer
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-11-
|
|
12
|
+
date: 2026-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v1.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v1.92.0). Covers the published
|
|
15
15
|
API surface only — operations marked x-internal in the spec are not generated. No
|
|
16
16
|
runtime dependencies.
|
|
17
17
|
email:
|
|
@@ -58,5 +58,5 @@ requirements: []
|
|
|
58
58
|
rubygems_version: 3.5.22
|
|
59
59
|
signing_key:
|
|
60
60
|
specification_version: 4
|
|
61
|
-
summary: Generated Ruby client for the Infrawrench API (v1.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v1.92.0).
|
|
62
62
|
test_files: []
|