infrawrench-sdk 1.30.0 → 1.31.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: 1fea7bb06c3006769b2b4e677cdc1c258e941c2d43b0c0884691b72bc8a46afd
4
- data.tar.gz: 7f45fb1dcf6324a973fa00f78712367234f4f9b3028cc8a2d1a24939bf242c26
3
+ metadata.gz: 6b9949aa079c143a23690ba5fa79798a1432feced3cce42a39bfba2f9a626c90
4
+ data.tar.gz: 70f71ff7e4cf680c9c9363d9d61bdb3d753e6c6c0f70aa6cb04363ccbf9842e5
5
5
  SHA512:
6
- metadata.gz: d1cd4a850642b81afdfa0eb3ba3f7797e95eb35314d5f062f3108e805366df6bbcc75a007cb3e26ed0dfcbe069b04ad67a87575d49879cf5ed86c9ed319955df
7
- data.tar.gz: 91fb4571a51a4c71231cf2bc15a3464fd53ffa18685fb41de005ab17cac4a00f97de3d4f023eaa1d57586f33681ef4692ec960e943eefcd8be19934d533d2a23
6
+ metadata.gz: 25404cf3021a1f519e36207932834a902b6748ef3a6214623a850145819b3eb71756201e7371b382de5c35dbfc63ef32bb45078b7e954546d18abca28014aaae
7
+ data.tar.gz: b34d1eddb479f2aae4a28876d788c90269bb3afab12251a009db2bfd7f1b14972dfbfc7b3964a58bdf40c76ae65ef525bd117d388642160c9246781f119bfcf2
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.30.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.31.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
- 689 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 698 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.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.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.30.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.30.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.31.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.31.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.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1594,6 +1594,87 @@ module Infrawrench
1594
1594
  end
1595
1595
  end
1596
1596
 
1597
+ # `client.apps`
1598
+ class AppsNamespace
1599
+ # @api private
1600
+ # @param transport [Transport]
1601
+ def initialize(transport)
1602
+ @transport = transport
1603
+ end
1604
+
1605
+ # Check whether a host can run Linux applications
1606
+ #
1607
+ # Runs a read-only shell probe over SSH and reports what the host is
1608
+ # missing, plus the packages and commands that would fix it. A POST because
1609
+ # it opens a connection to the named host and must never be cached — its
1610
+ # whole value is saying what the host is now.
1611
+ #
1612
+ # POST /api/org/{orgId}/apps/check
1613
+ #
1614
+ # Raises on 400: Bad request
1615
+ #
1616
+ # Raises on 404: Not found
1617
+ #
1618
+ # Raises on 409: The host key is new or has changed; trust it and retry
1619
+ #
1620
+ # Raises on 502: The host could not be reached or probed
1621
+ #
1622
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1623
+ # constructed with.
1624
+ # @param body [Hash] Request body, shaped as `LinuxAppHostTarget`.
1625
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1626
+ # @return [Hash] Parsed JSON, shaped as `LinuxAppHostCheck` — see `sig/infrawrench/sdk.rbs`.
1627
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1628
+ def check(body:, org_id: nil, request_options: nil)
1629
+ @transport.request(
1630
+ http_method: "POST",
1631
+ path: "/api/org/{orgId}/apps/check",
1632
+ path_params: { "orgId" => org_id },
1633
+ body: body,
1634
+ request_options: request_options
1635
+ )
1636
+ end
1637
+
1638
+ # Install what a host needs to run Linux applications
1639
+ #
1640
+ # Installs the named requirements using the host's own package manager, then
1641
+ # re-probes and reports what the host now is. Takes requirement ids, never
1642
+ # commands — the commands are derived server-side from a fresh probe. Needs
1643
+ # root or passwordless sudo on the host, respects change freezes, and is
1644
+ # audited as `linux_app.host_setup`.
1645
+ #
1646
+ # Responds with `application/x-ndjson`: one `{"line":"…"}` per line of
1647
+ # package-manager output, then a final `{"outcome":{…}}`. A failure arrives
1648
+ # as `{"error":"…"}` inside the stream, because the status line has already
1649
+ # been sent by then.
1650
+ #
1651
+ # POST /api/org/{orgId}/apps/setup
1652
+ #
1653
+ # Raises on 400: Bad request
1654
+ #
1655
+ # Raises on 404: Not found
1656
+ #
1657
+ # Raises on 409: A change freeze is in effect, or the host key needs
1658
+ # trusting
1659
+ #
1660
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1661
+ # constructed with.
1662
+ # @param body [Hash] Request body, shaped as `LinuxAppSetupRequest`.
1663
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1664
+ # @return [Hash] Parsed JSON, shaped as `LinuxAppSetupEvent` — see
1665
+ # `sig/infrawrench/sdk.rbs`.
1666
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1667
+ def setup(body:, org_id: nil, request_options: nil)
1668
+ @transport.request(
1669
+ http_method: "POST",
1670
+ path: "/api/org/{orgId}/apps/setup",
1671
+ path_params: { "orgId" => org_id },
1672
+ body: body,
1673
+ request_options: request_options
1674
+ )
1675
+ end
1676
+ end
1677
+
1597
1678
  # `client.artifacts`
1598
1679
  class ArtifactsNamespace
1599
1680
  # @api private
@@ -15646,6 +15727,8 @@ module Infrawrench
15646
15727
  attr_reader :alert_rules
15647
15728
  # @return [ApiKeysNamespace] `client.api_keys`
15648
15729
  attr_reader :api_keys
15730
+ # @return [AppsNamespace] `client.apps`
15731
+ attr_reader :apps
15649
15732
  # @return [ArtifactsNamespace] `client.artifacts`
15650
15733
  attr_reader :artifacts
15651
15734
  # @return [AssociationsNamespace] `client.associations`
@@ -15830,6 +15913,7 @@ module Infrawrench
15830
15913
  @agents = AgentsNamespace.new(@transport)
15831
15914
  @alert_rules = AlertRulesNamespace.new(@transport)
15832
15915
  @api_keys = ApiKeysNamespace.new(@transport)
15916
+ @apps = AppsNamespace.new(@transport)
15833
15917
  @artifacts = ArtifactsNamespace.new(@transport)
15834
15918
  @associations = AssociationsNamespace.new(@transport)
15835
15919
  @audit_logs = AuditLogsNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.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.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.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.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.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.30.0"
18
+ VERSION = "1.31.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.31.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.30.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.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.30.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.31.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.30.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.31.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -3822,6 +3822,69 @@ module Infrawrench
3822
3822
  # Spec schema: `LinearVerifyResult`.
3823
3823
  type linear_verify_result = { "ok" => bool, "id" => String, "name" => String, "email" => String | nil }
3824
3824
 
3825
+ # Spec schema: `LinuxAppHostCheck`.
3826
+ type linux_app_host_check = { "preflight" => linux_app_host_preflight, "plan" => linux_app_install_plan }
3827
+
3828
+ # Spec schema: `LinuxAppHostPreflight`.
3829
+ type linux_app_host_preflight = {
3830
+ "arch" => String,
3831
+ "osId" => String,
3832
+ "osName" => String,
3833
+ "packageManager" => "apt-get" | "dnf" | "yum" | "apk" | "pacman" | "zypper" | nil,
3834
+ "privilege" => "root" | "sudo" | "sudo-password" | "none",
3835
+ "requirements" => Array[linux_app_requirement],
3836
+ "staging" => bool,
3837
+ "appCount" => Integer,
3838
+ "ready" => bool
3839
+ }
3840
+
3841
+ # Spec schema: `LinuxAppHostTarget`.
3842
+ type linux_app_host_target = {
3843
+ "accountId" => String,
3844
+ "resourceId" => String,
3845
+ "sshKeyId" => String,
3846
+ "host" => String,
3847
+ "username" => String,
3848
+ ?"port" => Integer
3849
+ }
3850
+
3851
+ # Spec schema: `LinuxAppInstallOutcome`.
3852
+ type linux_app_install_outcome = { "log" => Array[String], "failed" => Array[String], "preflight" => linux_app_host_preflight }
3853
+
3854
+ # Spec schema: `LinuxAppInstallPlan`.
3855
+ type linux_app_install_plan = {
3856
+ "packageManager" => "apt-get" | "dnf" | "yum" | "apk" | "pacman" | "zypper",
3857
+ "privilege" => "root" | "sudo" | "sudo-password" | "none",
3858
+ "requirements" => Array[linux_app_requirement_id],
3859
+ "packages" => Array[String],
3860
+ "commands" => Array[String],
3861
+ "canInstall" => bool,
3862
+ ?"blockedReason" => String
3863
+ }
3864
+ | nil
3865
+
3866
+ # Spec schema: `LinuxAppRequirement`.
3867
+ type linux_app_requirement = {
3868
+ "id" => linux_app_requirement_id,
3869
+ "severity" => "required" | "recommended",
3870
+ "title" => String,
3871
+ "summary" => String,
3872
+ "ok" => bool
3873
+ }
3874
+
3875
+ # gzip unpacks the uploaded app server; xkb is the keyboard layout data
3876
+ # xkbcommon compiles a keymap from; dbus is the session bus GTK applications
3877
+ # wait for; fonts, mesa and icons decide what an application then looks like.
3878
+ #
3879
+ # Spec schema: `LinuxAppRequirementId`.
3880
+ type linux_app_requirement_id = "gzip" | "xkb" | "dbus" | "fonts" | "mesa" | "icons"
3881
+
3882
+ # Spec schema: `LinuxAppSetupEvent`.
3883
+ type linux_app_setup_event = { ?"line" => String, ?"outcome" => linux_app_install_outcome, ?"error" => String }
3884
+
3885
+ # Spec schema: `LinuxAppSetupRequest`.
3886
+ type linux_app_setup_request = linux_app_host_target & { ?"requirements" => Array[linux_app_requirement_id] }
3887
+
3825
3888
  # Spec schema: `LiteralAssociationRequest`.
3826
3889
  type literal_association_request = { "resourceId" => resource_id, "fieldKey" => String, "plaintextValue" => String }
3827
3890
 
@@ -7093,6 +7156,12 @@ module Infrawrench
7093
7156
  def rotate: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> created_api_key
7094
7157
  end
7095
7158
 
7159
+ class AppsNamespace
7160
+ def initialize: (Transport) -> void
7161
+ def check: (body: linux_app_host_target, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> linux_app_host_check
7162
+ def setup: (body: linux_app_setup_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> linux_app_setup_event
7163
+ end
7164
+
7096
7165
  class ArtifactsNamespace
7097
7166
  def initialize: (Transport) -> void
7098
7167
  def list: (body: artifacts_list_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> json_object
@@ -8156,6 +8225,7 @@ module Infrawrench
8156
8225
  attr_reader agents: AgentsNamespace
8157
8226
  attr_reader alert_rules: AlertRulesNamespace
8158
8227
  attr_reader api_keys: ApiKeysNamespace
8228
+ attr_reader apps: AppsNamespace
8159
8229
  attr_reader artifacts: ArtifactsNamespace
8160
8230
  attr_reader associations: AssociationsNamespace
8161
8231
  attr_reader audit_logs: AuditLogsNamespace
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.30.0
4
+ version: 1.31.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-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.30.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.31.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.30.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.31.0).
62
62
  test_files: []