infrawrench-sdk 0.36.0 → 0.37.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5b83963377c47a643f58e820ba309e9591a74f25be105dd863c715fdff709af
4
- data.tar.gz: 0d26c505bc7b8c9c4a9cd4ac1111a0062b5618fb81b99d8428f1167af1b5bb92
3
+ metadata.gz: 5cb4fd087934e064162ee4e97119edbf364eab8d549cd7958e5b2a0b5ebf349f
4
+ data.tar.gz: ace71bc57faf8c209bba9865df08cf82890d938ee63ee04ccda4ef1e995a6ed1
5
5
  SHA512:
6
- metadata.gz: ee189a373f9f7756f9d29e4c6089f6f64bc190d4c42ec9ae9c1056c09833ed5a7840c076b3b73c7947ab3d65235d41701ca8254a8d5d2cfe0417063fbaa93bb6
7
- data.tar.gz: 6cc40b5ad4dcf801c65e0683c34f1112129b5dd9e089bb7e2abd286780fccf6170e2acc6816385f78a69b774648029b553d0466401ca70ac682e2b5ef1ec616b
6
+ metadata.gz: 9da3aa395621109fcfeab946bdbaf8daa40b9293f15ba072bd0aa49da18a43ba4f4651ee195070ba0ba6623df61b7e8454beaa48377eb00236115e6807bd58ed
7
+ data.tar.gz: 68126cb612b548c20d5efe21ee6e72d0ad12922e0c5ec907cdc96b359d9d55e35e507b6fa24776d6b0b7dc12b5da1ac21feab281d46ee1702229e412a72f5e44
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.36.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.37.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
- 350 schemas, as RBS type aliases that steep and TypeProf can read.
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 —
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.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.36.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.36.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
20
+ spec.summary = "Generated Ruby client for the Infrawrench API (v0.37.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.37.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"
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.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
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.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.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.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.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.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.36.0"
18
+ VERSION = "0.37.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.37.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.36.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1,7 +1,7 @@
1
- # infrawrench-sdk v0.36.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.37.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.36.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.37.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -300,7 +300,7 @@ module Infrawrench
300
300
  type bastion_status = "pending" | "active" | "revoked"
301
301
 
302
302
  # Spec schema: `BillingStatus`.
303
- type billing_status = { "complimentary" => bool, "subscription" => subscription }
303
+ type billing_status = { "complimentary" => bool, "subscription" => subscription, "capacity" => capacity_status }
304
304
 
305
305
  # Spec schema: `BudgetAlertEvent`.
306
306
  type budget_alert_event = {
@@ -368,6 +368,29 @@ module Infrawrench
368
368
  "placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }]
369
369
  }
370
370
 
371
+ # Spec schema: `CapacityCheckoutRequest`.
372
+ type capacity_checkout_request = { ?"quantity" => Integer }
373
+
374
+ # Spec schema: `CapacitySlot`.
375
+ type capacity_slot = {
376
+ "id" => String,
377
+ "quantity" => Integer,
378
+ "status" => "active" | "refunded",
379
+ "startsAt" => String,
380
+ "expiresAt" => String,
381
+ "termMonths" => Integer,
382
+ "amountPaidCents" => Integer | nil
383
+ }
384
+
385
+ # Spec schema: `CapacityStatus`.
386
+ type capacity_status = {
387
+ "purchasable" => bool,
388
+ "termMonths" => Integer,
389
+ "priceUsd" => Integer,
390
+ "seats" => Integer,
391
+ "slots" => Array[capacity_slot]
392
+ }
393
+
371
394
  # Spec schema: `ChangeFreeze`.
372
395
  type change_freeze = {
373
396
  "id" => String,
@@ -2724,7 +2747,8 @@ module Infrawrench
2724
2747
  "error" => String,
2725
2748
  "code" => "seat_limit_reached",
2726
2749
  "seatCount" => Integer,
2727
- "seatsUsed" => Integer
2750
+ "seatsUsed" => Integer,
2751
+ "canAddSeat" => bool
2728
2752
  }
2729
2753
 
2730
2754
  # Spec schema: `SecretAccessRequest`.
@@ -3476,7 +3500,13 @@ module Infrawrench
3476
3500
  def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[bastion]
3477
3501
  end
3478
3502
 
3503
+ class BillingCapacityNamespace
3504
+ def initialize: (Transport) -> void
3505
+ def checkout: (?org_id: String?, ?body: capacity_checkout_request?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
3506
+ end
3507
+
3479
3508
  class BillingNamespace
3509
+ attr_reader capacity: BillingCapacityNamespace
3480
3510
  def initialize: (Transport) -> void
3481
3511
  def checkout: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> stripe_redirect_url
3482
3512
  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.36.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infrawrench LLC
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2026-08-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.36.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.37.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.36.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.37.0).
62
62
  test_files: []