infrawrench-sdk 0.20.0 → 0.21.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: 5b2aa57bcc2fbd17de00c520a3c60b34f37d8694384a7c608a105971a0c002d3
4
- data.tar.gz: 7dad27d88aee603b8cc6bded0d97184e06b1d5f38c74d21e3f7ef5a8300df1fb
3
+ metadata.gz: eb80de89d191177fb33592a005ee0797a350546085193711921f9d6256f323c1
4
+ data.tar.gz: f30aecb0d29c23f341a860fba9e46cb6c67b58a860e88df1e029a05837a95e55
5
5
  SHA512:
6
- metadata.gz: f7a1f587ef4f96872c9ad53cdc0d278e1d40351239c73fe157333fe9e6a5c3c8b3cf5367049e847e32993b4eda826fd11318ab1a839969b38dbaae30cd1cb985
7
- data.tar.gz: be96a48198f36e1ecc606fbfe402d61fae7cfba652f43682863d31f97d94b3bd8241d16d1226999aa2d81ec837b310976a0fc2afe580167d74c0d4fbe859a09a
6
+ metadata.gz: 22ada180851878d88c1f711bbf68359279f2d5819399cb4b19e784a73b96b325a6e26cdf502265edaf4acd2e412c154c724dcdd838eaf177d2135dc53abc14bb
7
+ data.tar.gz: b10a4a2db6c35b6cd423d6bddc5fedfa451cbf12a9f3ce7ceaaf5b53d446e485d6a38cac1649c2127adf302142817ae8307e05b5423370974039b4a2916e39d1
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.20.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.21.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
- 230 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 232 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.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.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.20.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.20.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.21.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.21.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.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -5267,6 +5267,100 @@ module Infrawrench
5267
5267
  end
5268
5268
  end
5269
5269
 
5270
+ # `client.workflow_approvals`
5271
+ class WorkflowApprovalsNamespace
5272
+ # @api private
5273
+ # @param transport [Transport]
5274
+ def initialize(transport)
5275
+ @transport = transport
5276
+ end
5277
+
5278
+ # Approve a pending workflow approval request
5279
+ #
5280
+ # The suspended run resumes within a few seconds of the decision landing.
5281
+ #
5282
+ # _Requires permission: `dashboards:write`._
5283
+ #
5284
+ # POST /api/org/{orgId}/workflow-approvals/{id}/approve
5285
+ #
5286
+ # Raises on 404: Not found
5287
+ #
5288
+ # Raises on 409: Conflict
5289
+ #
5290
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5291
+ # constructed with.
5292
+ # @param id [String]
5293
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5294
+ # @return [Hash] Parsed JSON, shaped as `WorkflowApproval` — see `sig/infrawrench/sdk.rbs`.
5295
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5296
+ def approve(id:, org_id: nil, request_options: nil)
5297
+ @transport.request(
5298
+ http_method: "POST",
5299
+ path: "/api/org/{orgId}/workflow-approvals/{id}/approve",
5300
+ path_params: { "orgId" => org_id, "id" => id },
5301
+ request_options: request_options
5302
+ )
5303
+ end
5304
+
5305
+ # Deny a pending workflow approval request
5306
+ #
5307
+ # Denial fails the waiting `infra.waitForApproval(...)` call in the run.
5308
+ #
5309
+ # _Requires permission: `dashboards:write`._
5310
+ #
5311
+ # POST /api/org/{orgId}/workflow-approvals/{id}/deny
5312
+ #
5313
+ # Raises on 404: Not found
5314
+ #
5315
+ # Raises on 409: Conflict
5316
+ #
5317
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5318
+ # constructed with.
5319
+ # @param id [String]
5320
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5321
+ # @return [Hash] Parsed JSON, shaped as `WorkflowApproval` — see `sig/infrawrench/sdk.rbs`.
5322
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5323
+ def deny(id:, org_id: nil, request_options: nil)
5324
+ @transport.request(
5325
+ http_method: "POST",
5326
+ path: "/api/org/{orgId}/workflow-approvals/{id}/deny",
5327
+ path_params: { "orgId" => org_id, "id" => id },
5328
+ request_options: request_options
5329
+ )
5330
+ end
5331
+
5332
+ # List workflow approval requests
5333
+ #
5334
+ # Approval requests raised by `infra.waitForApproval(...)` inside workflow
5335
+ # runs, newest first. Filter with `status=pending` to build an approvals
5336
+ # inbox.
5337
+ #
5338
+ # _Requires permission: `dashboards:read`._
5339
+ #
5340
+ # GET /api/org/{orgId}/workflow-approvals
5341
+ #
5342
+ # Raises on 400: Bad request
5343
+ #
5344
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5345
+ # constructed with.
5346
+ # @param status [String, nil]
5347
+ # @param workflow_id [String, nil]
5348
+ # @param run_id [String, nil]
5349
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5350
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<WorkflowApproval>` — see
5351
+ # `sig/infrawrench/sdk.rbs`.
5352
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5353
+ def list(org_id: nil, status: nil, workflow_id: nil, run_id: nil, request_options: nil)
5354
+ @transport.request(
5355
+ http_method: "GET",
5356
+ path: "/api/org/{orgId}/workflow-approvals",
5357
+ path_params: { "orgId" => org_id },
5358
+ query: { "status" => status, "workflowId" => workflow_id, "runId" => run_id },
5359
+ request_options: request_options
5360
+ )
5361
+ end
5362
+ end
5363
+
5270
5364
  # A client for the Infrawrench API.
5271
5365
  #
5272
5366
  # client = Infrawrench::APIV1Client.new(
@@ -5345,6 +5439,8 @@ module Infrawrench
5345
5439
  attr_reader :storage
5346
5440
  # @return [TeamNamespace] `client.team`
5347
5441
  attr_reader :team
5442
+ # @return [WorkflowApprovalsNamespace] `client.workflow_approvals`
5443
+ attr_reader :workflow_approvals
5348
5444
 
5349
5445
  # @param options [Hash] Client configuration — `:base_url`, `:api_key`,
5350
5446
  # `:org_id`, `:headers`, `:timeout`, `:open_timeout` and `:http_handler`.
@@ -5384,6 +5480,7 @@ module Infrawrench
5384
5480
  @ssh_tunnels = SshTunnelsNamespace.new(@transport)
5385
5481
  @storage = StorageNamespace.new(@transport)
5386
5482
  @team = TeamNamespace.new(@transport)
5483
+ @workflow_approvals = WorkflowApprovalsNamespace.new(@transport)
5387
5484
  end
5388
5485
  end
5389
5486
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.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.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.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.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.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.20.0"
18
+ VERSION = "0.21.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.21.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.20.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.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.20.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.21.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.20.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.21.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -2246,6 +2246,24 @@ module Infrawrench
2246
2246
  # Spec schema: `ValidateTabsResponse`.
2247
2247
  type validate_tabs_response = { "validTabIds" => Array[String] }
2248
2248
 
2249
+ # Spec schema: `WorkflowApproval`.
2250
+ type workflow_approval = {
2251
+ "id" => String,
2252
+ "workflowId" => String,
2253
+ "workflowName" => String | nil,
2254
+ "runId" => String,
2255
+ "title" => String,
2256
+ "message" => String,
2257
+ "status" => workflow_approval_status,
2258
+ "expiresAt" => String,
2259
+ "decidedAt" => String | nil,
2260
+ "decidedByName" => String | nil,
2261
+ "createdAt" => String
2262
+ }
2263
+
2264
+ # Spec schema: `WorkflowApprovalStatus`.
2265
+ type workflow_approval_status = "pending" | "approved" | "denied" | "expired"
2266
+
2249
2267
  # Spec schema: `WorkflowPinRequest`.
2250
2268
  type workflow_pin_request = { "dashboardId" => String, "workflowId" => String }
2251
2269
 
@@ -2670,6 +2688,13 @@ module Infrawrench
2670
2688
  def permissions: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> permission_catalog
2671
2689
  end
2672
2690
 
2691
+ class WorkflowApprovalsNamespace
2692
+ def initialize: (Transport) -> void
2693
+ def approve: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_approval
2694
+ def deny: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_approval
2695
+ def list: (?org_id: String?, ?status: workflow_approval_status?, ?workflow_id: String?, ?run_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow_approval]
2696
+ end
2697
+
2673
2698
  class APIV1Client
2674
2699
  attr_reader transport: Transport
2675
2700
  attr_reader accounts: AccountsNamespace
@@ -2705,6 +2730,7 @@ module Infrawrench
2705
2730
  attr_reader ssh_tunnels: SshTunnelsNamespace
2706
2731
  attr_reader storage: StorageNamespace
2707
2732
  attr_reader team: TeamNamespace
2733
+ attr_reader workflow_approvals: WorkflowApprovalsNamespace
2708
2734
  def initialize: (**untyped) -> void
2709
2735
  end
2710
2736
  end
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.20.0
4
+ version: 0.21.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-07-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.20.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.21.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.20.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.21.0).
62
62
  test_files: []