infrawrench-sdk 0.36.0 → 0.38.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/README.md +2 -2
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +49 -2
- 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 +37 -5
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 904a369810bd53e6ad0a59311ab1dc5fb027658af8b643486c0ab1e291913f64
|
|
4
|
+
data.tar.gz: 3e70e739566a7802895f2b147fea8ccaf35ff3a1a0abd1d0db71dc72974c8afa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83aa8a1513e6bb16ea567eb5270eb7b8ffbe54df191173b6ba1d283d3f31f19cf75d936dac447db0f7350ea3a224f69bd30fe6bc0269ff2220591bcaa92ca287
|
|
7
|
+
data.tar.gz: 38e05c8b9b79c2ecea1fda173479b3b95e710db7ed4228a021adda56ba77fc75628d212f42e4b1fd290cb33d807d45e8abb3fd9a0a56b213529c6eccc6155bb2
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# infrawrench-sdk
|
|
2
2
|
|
|
3
|
-
Generated Ruby client for the Infrawrench API (API version `0.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `0.38.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
|
+
353 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 —
|
data/infrawrench-sdk.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -17,8 +17,8 @@ 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 (v0.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v0.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v0.38.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.38.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
|
|
22
22
|
spec.authors = ["Infrawrench LLC", "Astrid Gealer"]
|
|
23
23
|
spec.email = ["astrid@infrawrench.com"]
|
|
24
24
|
spec.homepage = "https://infrawrench.com/docs/team-and-billing/client-sdks"
|
data/lib/infrawrench/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1009,12 +1009,59 @@ module Infrawrench
|
|
|
1009
1009
|
end
|
|
1010
1010
|
end
|
|
1011
1011
|
|
|
1012
|
+
# `client.billing.capacity`
|
|
1013
|
+
class BillingCapacityNamespace
|
|
1014
|
+
# @api private
|
|
1015
|
+
# @param transport [Transport]
|
|
1016
|
+
def initialize(transport)
|
|
1017
|
+
@transport = transport
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
# Start a Stripe Checkout session for prepaid capacity slots
|
|
1021
|
+
#
|
|
1022
|
+
# A capacity slot is one seat bought outright for a fixed term instead of
|
|
1023
|
+
# rented monthly, and it grants paid-plan access on its own. This is a
|
|
1024
|
+
# one-time payment, so the seats are granted by the
|
|
1025
|
+
# `checkout.session.completed` webhook once Stripe confirms the payment — a
|
|
1026
|
+
# 200 here only means the buyer was sent to a payment page. Rejected with
|
|
1027
|
+
# 400 for complimentary organizations, and 503 when the deployment has no
|
|
1028
|
+
# one-time capacity price configured.
|
|
1029
|
+
#
|
|
1030
|
+
# POST /api/org/{orgId}/billing/capacity/checkout
|
|
1031
|
+
#
|
|
1032
|
+
# Raises on 400: Bad request
|
|
1033
|
+
#
|
|
1034
|
+
# Raises on 500: Server error
|
|
1035
|
+
#
|
|
1036
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
1037
|
+
#
|
|
1038
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1039
|
+
# constructed with.
|
|
1040
|
+
# @param body [Hash, nil] Request body, shaped as `CapacityCheckoutRequest`.
|
|
1041
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1042
|
+
# @return [Hash] Parsed JSON, shaped as `StripeRedirectUrl` — see `sig/infrawrench/sdk.rbs`.
|
|
1043
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1044
|
+
def checkout(org_id: nil, body: nil, request_options: nil)
|
|
1045
|
+
@transport.request(
|
|
1046
|
+
http_method: "POST",
|
|
1047
|
+
path: "/api/org/{orgId}/billing/capacity/checkout",
|
|
1048
|
+
path_params: { "orgId" => org_id },
|
|
1049
|
+
body: body,
|
|
1050
|
+
request_options: request_options
|
|
1051
|
+
)
|
|
1052
|
+
end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1012
1055
|
# `client.billing`
|
|
1013
1056
|
class BillingNamespace
|
|
1057
|
+
# @return [BillingCapacityNamespace] `client.billing.capacity`
|
|
1058
|
+
attr_reader :capacity
|
|
1059
|
+
|
|
1014
1060
|
# @api private
|
|
1015
1061
|
# @param transport [Transport]
|
|
1016
1062
|
def initialize(transport)
|
|
1017
1063
|
@transport = transport
|
|
1064
|
+
@capacity = BillingCapacityNamespace.new(@transport)
|
|
1018
1065
|
end
|
|
1019
1066
|
|
|
1020
1067
|
# Start a Stripe Checkout session
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.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 = "0.
|
|
18
|
+
VERSION = "0.38.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.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 v0.
|
|
1
|
+
# infrawrench-sdk v0.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
2
2
|
# https://github.com/Infrawrench/Infrawrench
|
|
3
3
|
#
|
|
4
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.38.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -142,6 +142,7 @@ module Infrawrench
|
|
|
142
142
|
"pluginId" => String,
|
|
143
143
|
"resourceTypeId" => String,
|
|
144
144
|
"tool" => "codex" | "claude-code",
|
|
145
|
+
?"surface" => "terminal" | "t3-code",
|
|
145
146
|
"branchName" => String,
|
|
146
147
|
"status" => "pending" | "provisioning" | "setting-up" | "up" | "failed" | "stopped",
|
|
147
148
|
"vmResourceId" => String | nil,
|
|
@@ -156,6 +157,7 @@ module Infrawrench
|
|
|
156
157
|
"pluginId" => String,
|
|
157
158
|
"resourceTypeId" => String,
|
|
158
159
|
"tool" => "codex" | "claude-code",
|
|
160
|
+
?"surface" => "terminal" | "t3-code",
|
|
159
161
|
"fields" => Hash[String, String]
|
|
160
162
|
}
|
|
161
163
|
| nil
|
|
@@ -300,7 +302,7 @@ module Infrawrench
|
|
|
300
302
|
type bastion_status = "pending" | "active" | "revoked"
|
|
301
303
|
|
|
302
304
|
# Spec schema: `BillingStatus`.
|
|
303
|
-
type billing_status = { "complimentary" => bool, "subscription" => subscription }
|
|
305
|
+
type billing_status = { "complimentary" => bool, "subscription" => subscription, "capacity" => capacity_status }
|
|
304
306
|
|
|
305
307
|
# Spec schema: `BudgetAlertEvent`.
|
|
306
308
|
type budget_alert_event = {
|
|
@@ -368,6 +370,29 @@ module Infrawrench
|
|
|
368
370
|
"placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }]
|
|
369
371
|
}
|
|
370
372
|
|
|
373
|
+
# Spec schema: `CapacityCheckoutRequest`.
|
|
374
|
+
type capacity_checkout_request = { ?"quantity" => Integer }
|
|
375
|
+
|
|
376
|
+
# Spec schema: `CapacitySlot`.
|
|
377
|
+
type capacity_slot = {
|
|
378
|
+
"id" => String,
|
|
379
|
+
"quantity" => Integer,
|
|
380
|
+
"status" => "active" | "refunded",
|
|
381
|
+
"startsAt" => String,
|
|
382
|
+
"expiresAt" => String,
|
|
383
|
+
"termMonths" => Integer,
|
|
384
|
+
"amountPaidCents" => Integer | nil
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
# Spec schema: `CapacityStatus`.
|
|
388
|
+
type capacity_status = {
|
|
389
|
+
"purchasable" => bool,
|
|
390
|
+
"termMonths" => Integer,
|
|
391
|
+
"priceUsd" => Integer,
|
|
392
|
+
"seats" => Integer,
|
|
393
|
+
"slots" => Array[capacity_slot]
|
|
394
|
+
}
|
|
395
|
+
|
|
371
396
|
# Spec schema: `ChangeFreeze`.
|
|
372
397
|
type change_freeze = {
|
|
373
398
|
"id" => String,
|
|
@@ -590,7 +615,7 @@ module Infrawrench
|
|
|
590
615
|
|
|
591
616
|
# Spec schema: `CreateAgentSession`.
|
|
592
617
|
type create_agent_session = {
|
|
593
|
-
"repo" => String,
|
|
618
|
+
?"repo" => String,
|
|
594
619
|
?"projectName" => String,
|
|
595
620
|
?"workspaceName" => String,
|
|
596
621
|
"settings" => agent_settings & Hash[String, untyped]
|
|
@@ -2724,7 +2749,8 @@ module Infrawrench
|
|
|
2724
2749
|
"error" => String,
|
|
2725
2750
|
"code" => "seat_limit_reached",
|
|
2726
2751
|
"seatCount" => Integer,
|
|
2727
|
-
"seatsUsed" => Integer
|
|
2752
|
+
"seatsUsed" => Integer,
|
|
2753
|
+
"canAddSeat" => bool
|
|
2728
2754
|
}
|
|
2729
2755
|
|
|
2730
2756
|
# Spec schema: `SecretAccessRequest`.
|
|
@@ -3476,7 +3502,13 @@ module Infrawrench
|
|
|
3476
3502
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[bastion]
|
|
3477
3503
|
end
|
|
3478
3504
|
|
|
3505
|
+
class BillingCapacityNamespace
|
|
3506
|
+
def initialize: (Transport) -> void
|
|
3507
|
+
def checkout: (?org_id: String?, ?body: capacity_checkout_request?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
|
3508
|
+
end
|
|
3509
|
+
|
|
3479
3510
|
class BillingNamespace
|
|
3511
|
+
attr_reader capacity: BillingCapacityNamespace
|
|
3480
3512
|
def initialize: (Transport) -> void
|
|
3481
3513
|
def checkout: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
|
3482
3514
|
def portal: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: infrawrench-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.38.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Infrawrench LLC
|
|
@@ -9,9 +9,9 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-08-
|
|
12
|
+
date: 2026-08-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v0.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v0.38.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 (v0.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v0.38.0).
|
|
62
62
|
test_files: []
|