infrawrench-sdk 1.89.0 → 1.90.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: 93f539fccce251de712d4097166cbe92c18f06f2c76a1b8244ff0bccce1ae1ce
4
- data.tar.gz: 3b6f225d112fb550618e4fe1bd8ce8f6eb534fbd9d26cc3966c85b98c307bbcd
3
+ metadata.gz: 38eed5eade96a6d4f9b8ae9ba62d7a55ce43b16f5b783832b129f0195517d8c9
4
+ data.tar.gz: 5b4241ea6a419cb3159daa54914357b405ae7ec5f7fadda8630e408dbf8cc976
5
5
  SHA512:
6
- metadata.gz: 8a293883b04c14659973f39880fc53c521fc96a815440e768ffd81c8f57bfad98a91bf6b7c63382dabe32907082f89b28ad3f8dc07285da6d5615c26249af95a
7
- data.tar.gz: efcf1262e4a89e83a13fefabe279cc8c26d8cab05e4be0af29af181d0666a1e00ad3d160d3c1c0e7e5da39143c39ac21e9ab6bfbdd4939d54a60eadd2c1b8ddd
6
+ metadata.gz: '0739de8e84e5ecd0ebaa28b9a8fca47e10eb0c71b3fb5beb8adcaf4d0e5b33fd21c09f8fa391ec82aa47478cd2ee6fb693458fb8a1c2170192b7165f116af315'
7
+ data.tar.gz: 52b72246e078c34682b67c4607ab74eb9001474881bebdf1401d793f4f68e7d2b46aa40812379a2f725a9f171a58341f117e85b17541fe90278ee11a5637c54a
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.89.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.90.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
- 1271 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 1275 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.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.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.89.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.89.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.90.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.90.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.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1781,12 +1781,57 @@ module Infrawrench
1781
1781
  end
1782
1782
  end
1783
1783
 
1784
+ # `client.agents.t3_policy`
1785
+ class AgentsT3PolicyNamespace
1786
+ # @api private
1787
+ # @param transport [Transport]
1788
+ def initialize(transport)
1789
+ @transport = transport
1790
+ end
1791
+
1792
+ # Roll the T3 Code policy out to existing servers
1793
+ #
1794
+ # Installs the organization's current T3 Code managed policy (or removes the
1795
+ # one Infrawrench installed, when there is none) on existing T3 Code
1796
+ # servers. T3 Code reads its policy only at startup: `restart: true`
1797
+ # restarts it so the policy applies now, interrupting running agent turns,
1798
+ # terminals and connected clients; `restart: false` installs the file and
1799
+ # marks the session `t3PolicyRestartPending`. Servers that already have the
1800
+ # policy, that the policy does not fit, or that are still setting up are not
1801
+ # dialled. Requires `resources:execute`.
1802
+ #
1803
+ # POST /api/org/{orgId}/agents/t3-policy/apply
1804
+ #
1805
+ # Raises on 400: Bad request
1806
+ #
1807
+ # Raises on 404: Not found
1808
+ #
1809
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1810
+ # constructed with.
1811
+ # @param body [Hash] Request body, shaped as `AgentT3PolicyApplyRequest`.
1812
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1813
+ # @return [Hash] Parsed JSON, shaped as `AgentT3PolicyApplyResult` — see
1814
+ # `sig/infrawrench/sdk.rbs`.
1815
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1816
+ def apply(body:, org_id: nil, request_options: nil)
1817
+ @transport.request(
1818
+ http_method: "POST",
1819
+ path: "/api/org/{orgId}/agents/t3-policy/apply",
1820
+ path_params: { "orgId" => org_id },
1821
+ body: body,
1822
+ request_options: request_options
1823
+ )
1824
+ end
1825
+ end
1826
+
1784
1827
  # `client.agents`
1785
1828
  class AgentsNamespace
1786
1829
  # @return [AgentsSessionsNamespace] `client.agents.sessions`
1787
1830
  attr_reader :sessions
1788
1831
  # @return [AgentsSettingsNamespace] `client.agents.settings`
1789
1832
  attr_reader :settings
1833
+ # @return [AgentsT3PolicyNamespace] `client.agents.t3_policy`
1834
+ attr_reader :t3_policy
1790
1835
 
1791
1836
  # @api private
1792
1837
  # @param transport [Transport]
@@ -1794,6 +1839,7 @@ module Infrawrench
1794
1839
  @transport = transport
1795
1840
  @sessions = AgentsSessionsNamespace.new(@transport)
1796
1841
  @settings = AgentsSettingsNamespace.new(@transport)
1842
+ @t3_policy = AgentsT3PolicyNamespace.new(@transport)
1797
1843
  end
1798
1844
 
1799
1845
  # List accounts whose plugins can create agent VMs
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.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.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.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.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.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.89.0"
18
+ VERSION = "1.90.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.90.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.89.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.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.89.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.90.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.89.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.90.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -486,6 +486,8 @@ module Infrawrench
486
486
  ?"surface" => "terminal" | "t3-code" | "nibblets",
487
487
  ?"serviceAccountIds" => Array[String],
488
488
  ?"t3Access" => "t3-connect" | "tailscale",
489
+ ?"t3Policy" => t3_code_policy & untyped,
490
+ ?"t3PolicyRestartPending" => bool,
489
491
  ?"serviceInstalls" => Array[agent_service_install],
490
492
  ?"agentLinkId" => String | nil,
491
493
  "branchName" => String,
@@ -505,10 +507,24 @@ module Infrawrench
505
507
  ?"surface" => "terminal" | "t3-code" | "nibblets",
506
508
  "fields" => Hash[String, String],
507
509
  ?"serviceAccountIds" => Array[String],
508
- ?"t3Access" => "t3-connect" | "tailscale"
510
+ ?"t3Access" => "t3-connect" | "tailscale",
511
+ ?"t3Policy" => t3_code_policy
509
512
  }
510
513
  | nil
511
514
 
515
+ # Spec schema: `AgentT3PolicyApplyRequest`.
516
+ type agent_t3_policy_apply_request = { "restart" => bool, ?"sessionId" => String }
517
+
518
+ # Spec schema: `AgentT3PolicyApplyResult`.
519
+ type agent_t3_policy_apply_result = {
520
+ "servers" => Array[{
521
+ "sessionId" => String,
522
+ "projectName" => String,
523
+ "outcome" => "applied" | "installed" | "unchanged" | "skipped" | "setting-up" | "failed",
524
+ ?"message" => String
525
+ }]
526
+ }
527
+
512
528
  # Spec schema: `AgentVmAccount`.
513
529
  type agent_vm_account = {
514
530
  "accountId" => String,
@@ -14301,6 +14317,41 @@ module Infrawrench
14301
14317
  ?"enabled" => bool
14302
14318
  }
14303
14319
 
14320
+ # The organization's T3 Code managed policy, installed on every T3 Code server
14321
+ # (`/etc/t3code/policy.json`). On save: omit to keep the stored policy, `null`
14322
+ # to remove it. A new T3 Code session is refused when the policy does not
14323
+ # allow its tool or turns off the T3 Connect it is reached through.
14324
+ #
14325
+ # Spec schema: `T3CodePolicy`.
14326
+ type t3_code_policy = {
14327
+ "schemaVersion" => Numeric,
14328
+ "organization" => String,
14329
+ ?"supportUrl" => String,
14330
+ ?"settings" => Hash[String, { ?"value" => untyped, "locked" => bool }],
14331
+ ?"limits" => {
14332
+ ?"maxRuntimeMode" => "approval-required" | "auto-accept-edits" | "auto" | "full-access",
14333
+ ?"clients" => Array["desktop" | "local-browser" | "remote"],
14334
+ ?"connect" => bool,
14335
+ ?"webhookTasks" => bool,
14336
+ ?"telemetry" => bool,
14337
+ ?"browserCookieImport" => bool,
14338
+ ?"providers" => {
14339
+ ?"allowedDrivers" => Array[String],
14340
+ ?"instances" => Hash[String, t3_code_policy_provider_instance]
14341
+ },
14342
+ ?"updates" => { "mode" => "auto" | "off", ?"feedUrl" => String, ?"allowNightly" => bool }
14343
+ }
14344
+ }
14345
+ | nil
14346
+
14347
+ # Spec schema: `T3CodePolicyProviderInstance`.
14348
+ type t3_code_policy_provider_instance = {
14349
+ "locked" => bool,
14350
+ ?"environment" => Array[{ "name" => String, "value" => String }],
14351
+ ?"binaryPath" => String,
14352
+ ?"launchArgs" => String
14353
+ }
14354
+
14304
14355
  # Spec schema: `TabTarget`.
14305
14356
  type tab_target = {
14306
14357
  "kind" => "dashboard"
@@ -15061,9 +15112,15 @@ module Infrawrench
15061
15112
  def update: (body: (agent_settings & Hash[String, untyped]), ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> (agent_settings & Hash[String, untyped])
15062
15113
  end
15063
15114
 
15115
+ class AgentsT3PolicyNamespace
15116
+ def initialize: (Transport) -> void
15117
+ def apply: (body: agent_t3_policy_apply_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_t3_policy_apply_result
15118
+ end
15119
+
15064
15120
  class AgentsNamespace
15065
15121
  attr_reader sessions: AgentsSessionsNamespace
15066
15122
  attr_reader settings: AgentsSettingsNamespace
15123
+ attr_reader t3_policy: AgentsT3PolicyNamespace
15067
15124
  def initialize: (Transport) -> void
15068
15125
  def accounts: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[agent_vm_account]
15069
15126
  def link_scopes: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_linkable_scopes
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.89.0
4
+ version: 1.90.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-11-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.89.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.90.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.89.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.90.0).
62
62
  test_files: []