infrawrench-sdk 1.39.0 → 1.40.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: 32f16731c7848bf7f4fe40aec4b4895ace480ff6a2165b1d9ef26e6a15aafade
4
- data.tar.gz: c8289369bc7c2beda3200c99a445bbce84302398c7fcf5ce52f0d0e1d45e3d5d
3
+ metadata.gz: b947da1731ed2986e31d53ed38b21083699fde4a327c386ef501b425fce652b8
4
+ data.tar.gz: 5cdc3a5f102428e5f170d88bc31ef2d8ae50ec79c180c2a2dea2bf3c28d7c45a
5
5
  SHA512:
6
- metadata.gz: 33e6769fb9c3fbc6135960e3646b88423e34632e94dc14ef76e68fe326ecf04f0e1af977f253fa490b2c9d7c0d6346193049f7dbf1d1d2339df2ab2c451c94bc
7
- data.tar.gz: 39531ae2ed2d6d2e020a0c2d7cad0dba92f0daa652cf36e3840b14f8f92cc33e89b4b043699660d931db27df4711fd96629eaec2454a0ff40a0153f9e4f613ad
6
+ metadata.gz: 7ec9b8a60778f4065a9ed612a9d9b6a55d574a4e365fcb00f6ed05f25263b063a82657b0ee50aa5c49c2f92bab1e8be753fe199fa4ffcb3812833e389eaf6e04
7
+ data.tar.gz: 4f972ab753fd6c041231a3ea4b1e0dadbac6b4424ac8e6e3c49a3483d5dd5f9cb12fe22e7aeaa0e6d79ab1cf73708d11186b12933baf94123d24330cfe56c27f
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.39.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.40.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
- 734 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 739 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 v1.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.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 (v1.39.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.39.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 (v1.40.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.40.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 v1.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -12452,12 +12452,84 @@ module Infrawrench
12452
12452
  end
12453
12453
  end
12454
12454
 
12455
+ # `client.resources.ssh_install`
12456
+ class ResourcesSshInstallNamespace
12457
+ # @api private
12458
+ # @param transport [Transport]
12459
+ def initialize(transport)
12460
+ @transport = transport
12461
+ end
12462
+
12463
+ # List service accounts that can enroll an SSH server
12464
+ #
12465
+ # _Requires permission: `resources:read`._
12466
+ #
12467
+ # GET /api/org/{orgId}/resources/ssh-install/accounts
12468
+ #
12469
+ # Raises on 403: Forbidden
12470
+ #
12471
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
12472
+ # constructed with.
12473
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
12474
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<SshInstallAccount>` — see
12475
+ # `sig/infrawrench/sdk.rbs`.
12476
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
12477
+ def accounts(org_id: nil, request_options: nil)
12478
+ @transport.request(
12479
+ http_method: "GET",
12480
+ path: "/api/org/{orgId}/resources/ssh-install/accounts",
12481
+ path_params: { "orgId" => org_id },
12482
+ request_options: request_options
12483
+ )
12484
+ end
12485
+
12486
+ # Install and enroll a service on an existing SSH target
12487
+ #
12488
+ # Requires resources:write and resources:execute. Uses the selected target's
12489
+ # saved SSH connection or an org SSH key. Respects change freezes and
12490
+ # host-key trust. Enrollment credentials never appear in the response or
12491
+ # audit log.
12492
+ #
12493
+ # _Requires permission: `resources:execute`._
12494
+ #
12495
+ # POST /api/org/{orgId}/resources/ssh-install
12496
+ #
12497
+ # Raises on 400: Bad request
12498
+ #
12499
+ # Raises on 403: Forbidden
12500
+ #
12501
+ # Raises on 409: SSH host-key trust is required before installation can
12502
+ # begin
12503
+ #
12504
+ # Raises on 423: Blocked by an active change freeze. Retry with the
12505
+ # `x-change-freeze-override: true` header if you hold `freezes:override`;
12506
+ # both blocks and overrides are audit-logged.
12507
+ #
12508
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
12509
+ # constructed with.
12510
+ # @param body [Hash] Request body, shaped as `SshInstallRequest`.
12511
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
12512
+ # @return [Hash] Parsed JSON, shaped as `SshInstallResult` — see `sig/infrawrench/sdk.rbs`.
12513
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
12514
+ def create(body:, org_id: nil, request_options: nil)
12515
+ @transport.request(
12516
+ http_method: "POST",
12517
+ path: "/api/org/{orgId}/resources/ssh-install",
12518
+ path_params: { "orgId" => org_id },
12519
+ body: body,
12520
+ request_options: request_options
12521
+ )
12522
+ end
12523
+ end
12524
+
12455
12525
  # `client.resources`
12456
12526
  class ResourcesNamespace
12457
12527
  # @return [ResourcesManifestNamespace] `client.resources.manifest`
12458
12528
  attr_reader :manifest
12459
12529
  # @return [ResourcesSecretVersionsNamespace] `client.resources.secret_versions`
12460
12530
  attr_reader :secret_versions
12531
+ # @return [ResourcesSshInstallNamespace] `client.resources.ssh_install`
12532
+ attr_reader :ssh_install
12461
12533
 
12462
12534
  # @api private
12463
12535
  # @param transport [Transport]
@@ -12465,6 +12537,7 @@ module Infrawrench
12465
12537
  @transport = transport
12466
12538
  @manifest = ResourcesManifestNamespace.new(@transport)
12467
12539
  @secret_versions = ResourcesSecretVersionsNamespace.new(@transport)
12540
+ @ssh_install = ResourcesSshInstallNamespace.new(@transport)
12468
12541
  end
12469
12542
 
12470
12543
  # Attach a resource onto another (e.g. disk → VM)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.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.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.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.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.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.39.0"
18
+ VERSION = "1.40.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.40.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 1.39.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.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 v1.39.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.40.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 1.39.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.40.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -360,6 +360,9 @@ module Infrawrench
360
360
  # Spec schema: `AgentRevoked`.
361
361
  type agent_revoked = { "ok" => bool, "revoked" => bool }
362
362
 
363
+ # Spec schema: `AgentServiceInstall`.
364
+ type agent_service_install = { "accountId" => String, "pluginId" => String, "message" => String, ?"address" => String }
365
+
363
366
  # Spec schema: `AgentSession`.
364
367
  type agent_session = {
365
368
  "id" => String,
@@ -371,6 +374,9 @@ module Infrawrench
371
374
  "resourceTypeId" => String,
372
375
  "tool" => "codex" | "claude-code",
373
376
  ?"surface" => "terminal" | "t3-code",
377
+ ?"serviceAccountIds" => Array[String],
378
+ ?"t3Access" => "t3-connect" | "tailscale",
379
+ ?"serviceInstalls" => Array[agent_service_install],
374
380
  "branchName" => String,
375
381
  "status" => "pending" | "provisioning" | "setting-up" | "up" | "failed" | "stopped",
376
382
  "vmResourceId" => String | nil,
@@ -386,7 +392,9 @@ module Infrawrench
386
392
  "resourceTypeId" => String,
387
393
  "tool" => "codex" | "claude-code",
388
394
  ?"surface" => "terminal" | "t3-code",
389
- "fields" => Hash[String, String]
395
+ "fields" => Hash[String, String],
396
+ ?"serviceAccountIds" => Array[String],
397
+ ?"t3Access" => "t3-connect" | "tailscale"
390
398
  }
391
399
  | nil
392
400
 
@@ -5061,6 +5069,7 @@ module Infrawrench
5061
5069
  | "scaleway"
5062
5070
  | "speechmatics"
5063
5071
  | "ssh"
5072
+ | "tailscale"
5064
5073
  | "together"
5065
5074
  | "turso"
5066
5075
  | "uploadthing"
@@ -5611,6 +5620,7 @@ module Infrawrench
5611
5620
  "hasDockerActions" => bool,
5612
5621
  "hasSshTerminal" => bool,
5613
5622
  "hasSftpBrowser" => bool,
5623
+ ?"supportsSshInstall" => bool,
5614
5624
  "sshHost" => String | nil,
5615
5625
  ?"sshPrivateHost" => String | nil,
5616
5626
  "defaultSshUsername" => String | nil,
@@ -5849,6 +5859,7 @@ module Infrawrench
5849
5859
  | "dedicated-inference"
5850
5860
  | "deployed-model"
5851
5861
  | "deployment"
5862
+ | "device"
5852
5863
  | "directory"
5853
5864
  | "directory-group"
5854
5865
  | "directory-user"
@@ -6831,6 +6842,39 @@ module Infrawrench
6831
6842
  # Spec schema: `SshFanoutTargetsResponse`.
6832
6843
  type ssh_fanout_targets_response = { "targets" => Array[ssh_fanout_target] }
6833
6844
 
6845
+ # Spec schema: `SshInstallAccount`.
6846
+ type ssh_install_account = {
6847
+ "accountId" => String,
6848
+ "displayName" => String,
6849
+ "pluginId" => String,
6850
+ "serviceName" => String,
6851
+ "description" => String,
6852
+ ?"logoSvg" => String
6853
+ }
6854
+
6855
+ # Spec schema: `SshInstallRequest`.
6856
+ type ssh_install_request = {
6857
+ "installerAccountId" => String,
6858
+ "target" => { "accountId" => String, "resourceTypeId" => String, "resourceId" => resource_id },
6859
+ ?"sshKeyId" => String,
6860
+ ?"username" => String,
6861
+ ?"port" => Integer
6862
+ }
6863
+
6864
+ # Spec schema: `SshInstallResult`.
6865
+ type ssh_install_result = { "message" => String, ?"address" => String, ?"warnings" => Array[String], ?"ref" => String }
6866
+
6867
+ # Spec schema: `SshInstallTrustRequired`.
6868
+ type ssh_install_trust_required = {
6869
+ "error" => "ssh_host_key_trust_required",
6870
+ "message" => String,
6871
+ "kind" => "unknown" | "mismatch",
6872
+ "host" => String,
6873
+ "port" => Integer,
6874
+ "presentedFingerprint" => String,
6875
+ "storedFingerprint" => String | nil
6876
+ }
6877
+
6834
6878
  # Spec schema: `SshKey`.
6835
6879
  type ssh_key = {
6836
6880
  "id" => String,
@@ -8353,9 +8397,16 @@ module Infrawrench
8353
8397
  def modify: (plugin_id: plugin_id, type_id: resource_type_id, body: secret_modify_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> secret_version_response
8354
8398
  end
8355
8399
 
8400
+ class ResourcesSshInstallNamespace
8401
+ def initialize: (Transport) -> void
8402
+ def accounts: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[ssh_install_account]
8403
+ def create: (body: ssh_install_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ssh_install_result
8404
+ end
8405
+
8356
8406
  class ResourcesNamespace
8357
8407
  attr_reader manifest: ResourcesManifestNamespace
8358
8408
  attr_reader secret_versions: ResourcesSecretVersionsNamespace
8409
+ attr_reader ssh_install: ResourcesSshInstallNamespace
8359
8410
  def initialize: (Transport) -> void
8360
8411
  def attach: (body: attach_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
8361
8412
  def cost_estimate: (body: cost_estimate_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "estimate" => cost_estimate }
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: 1.39.0
4
+ version: 1.40.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-25 00:00:00.000000000 Z
12
+ date: 2026-10-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.39.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.40.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.39.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.40.0).
62
62
  test_files: []