infrawrench-sdk 1.38.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: bab1d4f43f9cae4e3f4f2eb8b99a5ddac8a84f26562880114df3869b2f6388a6
4
- data.tar.gz: 273371405a43948647ad16ea742ca3dbafeb74089e97e565b4b07b446e93196f
3
+ metadata.gz: b947da1731ed2986e31d53ed38b21083699fde4a327c386ef501b425fce652b8
4
+ data.tar.gz: 5cdc3a5f102428e5f170d88bc31ef2d8ae50ec79c180c2a2dea2bf3c28d7c45a
5
5
  SHA512:
6
- metadata.gz: 1f0d56c435c600c37461e7fcbccc7f3a8c17cb05a17f43a85c5c623d4cf49a4a2c1b8f1e7fba0c6230a203bd3b107f3a9484fb36e9870de92e11dfa7cc7269cb
7
- data.tar.gz: d94511ce18b4806e465577e7150bdba5e30882c80252620e575f1116bb60b6324d52ef302fdeb0f4d0cd5b21e167f2e4c5c1f9a3a24d4941c391c25acc48e32c
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.38.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
- 731 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.38.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.38.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.38.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.38.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.38.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.38.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
@@ -12033,6 +12033,34 @@ module Infrawrench
12033
12033
  )
12034
12034
  end
12035
12035
 
12036
+ # List what a monitor can run against
12037
+ #
12038
+ # The editor's target picker: each account with a SQL driver of its own,
12039
+ # plus the SQL-capable resources inside it — a database that is a *resource*
12040
+ # (a ClickHouse service, a D1 or Turso database, a Databricks SQL warehouse,
12041
+ # a BigQuery dataset) rather than the account's own connection. Accounts
12042
+ # with neither are omitted; a monitor pointed at one could only ever fail.
12043
+ # Pass a resource's `id` (and optionally its `resourceTypeId` — the server
12044
+ # fills it from the synced resource either way) when creating a monitor to
12045
+ # scope the query to that resource.
12046
+ #
12047
+ # GET /api/org/{orgId}/query-monitors/targets
12048
+ #
12049
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
12050
+ # constructed with.
12051
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
12052
+ # @return [Hash] Parsed JSON, shaped as `QueryMonitorTargets` — see
12053
+ # `sig/infrawrench/sdk.rbs`.
12054
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
12055
+ def targets(org_id: nil, request_options: nil)
12056
+ @transport.request(
12057
+ http_method: "GET",
12058
+ path: "/api/org/{orgId}/query-monitors/targets",
12059
+ path_params: { "orgId" => org_id },
12060
+ request_options: request_options
12061
+ )
12062
+ end
12063
+
12036
12064
  # Run a query once without saving it
12037
12065
  #
12038
12066
  # The editor's 'try it' button. Goes through the same read-only guard as a
@@ -12424,12 +12452,84 @@ module Infrawrench
12424
12452
  end
12425
12453
  end
12426
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
+
12427
12525
  # `client.resources`
12428
12526
  class ResourcesNamespace
12429
12527
  # @return [ResourcesManifestNamespace] `client.resources.manifest`
12430
12528
  attr_reader :manifest
12431
12529
  # @return [ResourcesSecretVersionsNamespace] `client.resources.secret_versions`
12432
12530
  attr_reader :secret_versions
12531
+ # @return [ResourcesSshInstallNamespace] `client.resources.ssh_install`
12532
+ attr_reader :ssh_install
12433
12533
 
12434
12534
  # @api private
12435
12535
  # @param transport [Transport]
@@ -12437,6 +12537,7 @@ module Infrawrench
12437
12537
  @transport = transport
12438
12538
  @manifest = ResourcesManifestNamespace.new(@transport)
12439
12539
  @secret_versions = ResourcesSecretVersionsNamespace.new(@transport)
12540
+ @ssh_install = ResourcesSshInstallNamespace.new(@transport)
12440
12541
  end
12441
12542
 
12442
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.38.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.38.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.38.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.38.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.38.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.38.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.38.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.38.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.38.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.38.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.38.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"
@@ -5354,6 +5363,20 @@ module Infrawrench
5354
5363
  # Spec schema: `QueryMonitorList`.
5355
5364
  type query_monitor_list = { "monitors" => Array[query_monitor] }
5356
5365
 
5366
+ # Spec schema: `QueryMonitorTargetAccount`.
5367
+ type query_monitor_target_account = {
5368
+ "id" => String,
5369
+ "name" => String,
5370
+ "accountSql" => bool,
5371
+ "resources" => Array[query_monitor_target_resource]
5372
+ }
5373
+
5374
+ # Spec schema: `QueryMonitorTargetResource`.
5375
+ type query_monitor_target_resource = { "id" => String, "name" => String, "resourceTypeId" => String, "typeName" => String }
5376
+
5377
+ # Spec schema: `QueryMonitorTargets`.
5378
+ type query_monitor_targets = { "accounts" => Array[query_monitor_target_account] }
5379
+
5357
5380
  # Spec schema: `QueryMonitorTestResult`.
5358
5381
  type query_monitor_test_result = {
5359
5382
  "value" => Numeric | nil,
@@ -5597,6 +5620,7 @@ module Infrawrench
5597
5620
  "hasDockerActions" => bool,
5598
5621
  "hasSshTerminal" => bool,
5599
5622
  "hasSftpBrowser" => bool,
5623
+ ?"supportsSshInstall" => bool,
5600
5624
  "sshHost" => String | nil,
5601
5625
  ?"sshPrivateHost" => String | nil,
5602
5626
  "defaultSshUsername" => String | nil,
@@ -5835,6 +5859,7 @@ module Infrawrench
5835
5859
  | "dedicated-inference"
5836
5860
  | "deployed-model"
5837
5861
  | "deployment"
5862
+ | "device"
5838
5863
  | "directory"
5839
5864
  | "directory-group"
5840
5865
  | "directory-user"
@@ -6817,6 +6842,39 @@ module Infrawrench
6817
6842
  # Spec schema: `SshFanoutTargetsResponse`.
6818
6843
  type ssh_fanout_targets_response = { "targets" => Array[ssh_fanout_target] }
6819
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
+
6820
6878
  # Spec schema: `SshKey`.
6821
6879
  type ssh_key = {
6822
6880
  "id" => String,
@@ -8308,6 +8366,7 @@ module Infrawrench
8308
8366
  def initialize: (Transport) -> void
8309
8367
  def create: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8310
8368
  def delete: (monitor_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
8369
+ def targets: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_targets
8311
8370
  def test: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_test_result
8312
8371
  def update: (monitor_id: String, ?org_id: String?, ?body: query_monitor_update?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8313
8372
  end
@@ -8338,9 +8397,16 @@ module Infrawrench
8338
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
8339
8398
  end
8340
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
+
8341
8406
  class ResourcesNamespace
8342
8407
  attr_reader manifest: ResourcesManifestNamespace
8343
8408
  attr_reader secret_versions: ResourcesSecretVersionsNamespace
8409
+ attr_reader ssh_install: ResourcesSshInstallNamespace
8344
8410
  def initialize: (Transport) -> void
8345
8411
  def attach: (body: attach_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
8346
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.38.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.38.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.38.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.40.0).
62
62
  test_files: []