infrawrench-sdk 1.100.0 → 1.102.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: f8b74557a102e69cf7da5aee9964f9b80c4a21fc1f7ef31f75a258f41b1b35f1
4
- data.tar.gz: 8ba1c29aa5db5773d57f38222ef08312dcb7b74a310bef6cfa1c2441dc107766
3
+ metadata.gz: '0551720297430bc04f661a466af66aa8dc06a8f1c8d447bea44207f816b3b2fa'
4
+ data.tar.gz: 6340e66cd337eb3dbcc49670fdcb2c77a9593f42289ceaeb655bbd421372969e
5
5
  SHA512:
6
- metadata.gz: a327fbb3c142cbde1066ad4a2c949f95b9b4311bdc2b31a63a96d4682eb92cdc398109f2cac6891976e2a7c5f4e50a5473a00b1d7a906465ea7cbc3b4741409f
7
- data.tar.gz: e0bcab05eb70244cf0ee59380fc55345feb78b263a04a1d4aa668bf5afc558f1299e0096f4fe22263f4cccb925c22141785227fcf2cdc65bdf5ef354c0af3ab7
6
+ metadata.gz: '08e8da31cd0bf3b3bfc16f2bcacb5d35adbbd1596751844f035bb9892b6f5d24d94292f44414bf3cb05ed3d9929421cfc0bead030d966c19160e8586b32c0a99'
7
+ data.tar.gz: 38612fb0d96ba255a9e8a4fda328c2111fc1b9696b15419783817f892c5042696e1e068d5955cbed62524939418718e0421c96b3b79785d521d041b6ff73c3cd
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.100.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.102.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
- 1329 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 1333 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.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.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.100.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.100.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.102.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.102.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 Services, Inc.", "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.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -638,6 +638,8 @@ module Infrawrench
638
638
  #
639
639
  # POST /api/org/{orgId}/accounts/{id}/sync-type/{typeId}
640
640
  #
641
+ # Raises on 400: Bad request
642
+ #
641
643
  # Raises on 404: Not found
642
644
  #
643
645
  # Raises on 500: Server error
@@ -859,10 +861,16 @@ module Infrawrench
859
861
 
860
862
  # Sync all resource types for an account
861
863
  #
864
+ # 400 for an account connected for Costs alone: its resources are not
865
+ # synced. Add another app to the connection (`PATCH /accounts/{id}` with
866
+ # `products`) first.
867
+ #
862
868
  # _Requires permission: `resources:read`._
863
869
  #
864
870
  # POST /api/org/{orgId}/accounts/{id}/sync
865
871
  #
872
+ # Raises on 400: Bad request
873
+ #
866
874
  # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
867
875
  # constructed with.
868
876
  # @param id [String]
@@ -878,7 +886,7 @@ module Infrawrench
878
886
  )
879
887
  end
880
888
 
881
- # Update an account (rename and/or change bastion binding)
889
+ # Update an account (rename, change bastion binding, change what it is for)
882
890
  #
883
891
  # _Requires permission: `accounts:write`._
884
892
  #
@@ -21601,6 +21609,65 @@ module Infrawrench
21601
21609
  end
21602
21610
  end
21603
21611
 
21612
+ # `client.products`
21613
+ class ProductsNamespace
21614
+ # @api private
21615
+ # @param transport [Transport]
21616
+ def initialize(transport)
21617
+ @transport = transport
21618
+ end
21619
+
21620
+ # Get the apps the organization has turned off
21621
+ #
21622
+ # A turned-off app is hidden from Home, the sidebar and the Tools launcher,
21623
+ # and its tools are not offered to, and are refused for, the chat agent and
21624
+ # the MCP server. It does not block this API: the routes behind an app keep
21625
+ # answering under their own permissions.
21626
+ #
21627
+ # GET /api/org/{orgId}/products
21628
+ #
21629
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
21630
+ # constructed with.
21631
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
21632
+ # @return [Hash] Parsed JSON, shaped as `OrgProductPolicy` — see `sig/infrawrench/sdk.rbs`.
21633
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
21634
+ def get(org_id: nil, request_options: nil)
21635
+ @transport.request(
21636
+ http_method: "GET",
21637
+ path: "/api/org/{orgId}/products",
21638
+ path_params: { "orgId" => org_id },
21639
+ request_options: request_options
21640
+ )
21641
+ end
21642
+
21643
+ # Set the apps the organization has turned off
21644
+ #
21645
+ # Replaces the list. An unknown app id, or an app that cannot be turned off
21646
+ # (`infrastructure`), is refused with a 400 and nothing is saved.
21647
+ #
21648
+ # _Requires permission: `org:apps:write`._
21649
+ #
21650
+ # PUT /api/org/{orgId}/products
21651
+ #
21652
+ # Raises on 400: Bad request
21653
+ #
21654
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
21655
+ # constructed with.
21656
+ # @param body [Hash] Request body, shaped as `OrgProductPolicyUpdate`.
21657
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
21658
+ # @return [Hash] Parsed JSON, shaped as `OrgProductPolicy` — see `sig/infrawrench/sdk.rbs`.
21659
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
21660
+ def update(body:, org_id: nil, request_options: nil)
21661
+ @transport.request(
21662
+ http_method: "PUT",
21663
+ path: "/api/org/{orgId}/products",
21664
+ path_params: { "orgId" => org_id },
21665
+ body: body,
21666
+ request_options: request_options
21667
+ )
21668
+ end
21669
+ end
21670
+
21604
21671
  # `client.profile.email_change`
21605
21672
  class ProfileEmailChangeNamespace
21606
21673
  # @api private
@@ -30034,6 +30101,8 @@ module Infrawrench
30034
30101
  attr_reader :price_catalog
30035
30102
  # @return [ProbesNamespace] `client.probes`
30036
30103
  attr_reader :probes
30104
+ # @return [ProductsNamespace] `client.products`
30105
+ attr_reader :products
30037
30106
  # @return [ProfileNamespace] `client.profile`
30038
30107
  attr_reader :profile
30039
30108
  # @return [ProviderOauthNamespace] `client.provider_oauth`
@@ -30223,6 +30292,7 @@ module Infrawrench
30223
30292
  @pr_checks = PrChecksNamespace.new(@transport)
30224
30293
  @price_catalog = PriceCatalogNamespace.new(@transport)
30225
30294
  @probes = ProbesNamespace.new(@transport)
30295
+ @products = ProductsNamespace.new(@transport)
30226
30296
  @profile = ProfileNamespace.new(@transport)
30227
30297
  @provider_oauth = ProviderOauthNamespace.new(@transport)
30228
30298
  @query_monitors = QueryMonitorsNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.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.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.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.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.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.100.0"
18
+ VERSION = "1.102.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.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.100.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
1
+ # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
2
2
  # https://github.com/Infrawrench/Infrawrench
3
3
  #
4
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.100.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.102.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -255,6 +255,7 @@ module Infrawrench
255
255
  "displayName" => String,
256
256
  "bastionId" => String | nil,
257
257
  "oauthStatus" => account_oauth_status,
258
+ ?"products" => Array[String] | nil,
258
259
  "createdAt" => String
259
260
  }
260
261
 
@@ -274,7 +275,8 @@ module Infrawrench
274
275
  "id" => String,
275
276
  "pluginId" => String,
276
277
  "displayName" => String,
277
- "oauthStatus" => account_oauth_status
278
+ "oauthStatus" => account_oauth_status,
279
+ ?"products" => Array[String] | nil
278
280
  },
279
281
  "resourceTypes" => Array[resource_type_summary],
280
282
  "pluginDisplayName" => String,
@@ -2301,6 +2303,7 @@ module Infrawrench
2301
2303
  "status" => "passed" | "failed" | "skipped" | "error",
2302
2304
  "reason" => String | nil,
2303
2305
  "durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
2306
+ ?"needs" => Array[String],
2304
2307
  "stdout" => String,
2305
2308
  "stderr" => String
2306
2309
  }
@@ -2312,7 +2315,8 @@ module Infrawrench
2312
2315
  "name" => String,
2313
2316
  "status" => "passed" | "failed" | "skipped" | "error",
2314
2317
  "reason" => String | nil,
2315
- "durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil
2318
+ "durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
2319
+ ?"needs" => Array[String]
2316
2320
  }
2317
2321
 
2318
2322
  # Spec schema: `CiRun`.
@@ -4028,7 +4032,8 @@ module Infrawrench
4028
4032
  "pluginId" => plugin_id,
4029
4033
  "displayName" => String,
4030
4034
  "credentials" => Hash[String, String],
4031
- ?"bastionId" => String | nil
4035
+ ?"bastionId" => String | nil,
4036
+ ?"products" => Array[product_id] | nil
4032
4037
  }
4033
4038
 
4034
4039
  # Spec schema: `CreateAccountResponse`.
@@ -9577,6 +9582,23 @@ module Infrawrench
9577
9582
  # Spec schema: `OrgMembership`.
9578
9583
  type org_membership = { "id" => String, "displayName" => String, "role" => organization_role }
9579
9584
 
9585
+ # An app the application is presented as.
9586
+ #
9587
+ # Spec schema: `OrgProductId`.
9588
+ type org_product_id = "infrastructure"
9589
+ | "costs"
9590
+ | "observability"
9591
+ | "incidents"
9592
+ | "security"
9593
+ | "delivery"
9594
+ | "automation"
9595
+
9596
+ # Spec schema: `OrgProductPolicy`.
9597
+ type org_product_policy = { "disabled" => Array[org_product_id] }
9598
+
9599
+ # Spec schema: `OrgProductPolicyUpdate`.
9600
+ type org_product_policy_update = { "disabled" => Array[String] }
9601
+
9580
9602
  # Spec schema: `OrgScorecard`.
9581
9603
  type org_scorecard = {
9582
9604
  "score" => Integer | nil,
@@ -9997,6 +10019,7 @@ module Infrawrench
9997
10019
  | "invoices:issue"
9998
10020
  | "pages:write"
9999
10021
  | "sharing:override"
10022
+ | "org:apps:write"
10000
10023
  | "org:settings:write"
10001
10024
 
10002
10025
  # Spec schema: `PermissionCatalog`.
@@ -10486,6 +10509,7 @@ module Infrawrench
10486
10509
  # Spec schema: `PreflightCapability`.
10487
10510
  type preflight_capability = {
10488
10511
  "id" => String,
10512
+ ?"product" => product_id & untyped,
10489
10513
  "label" => String,
10490
10514
  ?"description" => String,
10491
10515
  "requiredPermissions" => Array[preflight_permission],
@@ -10765,6 +10789,17 @@ module Infrawrench
10765
10789
  # Spec schema: `ProbeSuggestions`.
10766
10790
  type probe_suggestions = { "suggestions" => Array[probe_suggestion] }
10767
10791
 
10792
+ # One of the apps the product is presented as.
10793
+ #
10794
+ # Spec schema: `ProductId`.
10795
+ type product_id = "infrastructure"
10796
+ | "costs"
10797
+ | "observability"
10798
+ | "incidents"
10799
+ | "security"
10800
+ | "delivery"
10801
+ | "automation"
10802
+
10768
10803
  # Spec schema: `Profile`.
10769
10804
  type profile = {
10770
10805
  "id" => String,
@@ -14618,6 +14653,7 @@ module Infrawrench
14618
14653
  | "access-review"
14619
14654
  | "jit-access"
14620
14655
  | "backups"
14656
+ | "home"
14621
14657
  | "wallboard"
14622
14658
  | "calendar"
14623
14659
  | "runbooks"
@@ -14654,6 +14690,7 @@ module Infrawrench
14654
14690
  ?"serviceId" => String,
14655
14691
  ?"view" => "details" | "ssh" | "sftp" | "apps" | "scorecards",
14656
14692
  ?"framework" => String,
14693
+ ?"productId" => String,
14657
14694
  ?"sessionId" => String,
14658
14695
  ?"windowId" => Integer,
14659
14696
  ?"appId" => String
@@ -14938,7 +14975,11 @@ module Infrawrench
14938
14975
  }
14939
14976
 
14940
14977
  # Spec schema: `UpdateAccountRequest`.
14941
- type update_account_request = { ?"displayName" => String, ?"bastionId" => String | nil }
14978
+ type update_account_request = {
14979
+ ?"displayName" => String,
14980
+ ?"bastionId" => String | nil,
14981
+ ?"products" => Array[product_id] | nil
14982
+ }
14942
14983
 
14943
14984
  # Spec schema: `UpdateResourceRequest`.
14944
14985
  type update_resource_request = {
@@ -14964,7 +15005,12 @@ module Infrawrench
14964
15005
  }
14965
15006
 
14966
15007
  # Spec schema: `UpdatedAccount`.
14967
- type updated_account = { "id" => String, "displayName" => String, "bastionId" => String | nil }
15008
+ type updated_account = {
15009
+ "id" => String,
15010
+ "displayName" => String,
15011
+ "bastionId" => String | nil,
15012
+ ?"products" => Array[String] | nil
15013
+ }
14968
15014
 
14969
15015
  # Spec schema: `UserSession`.
14970
15016
  type user_session = {
@@ -16965,6 +17011,12 @@ module Infrawrench
16965
17011
  def update: (probe_id: String, ?org_id: String?, ?body: synthetic_probe_update?, ?request_options: Hash[Symbol, untyped]?) -> synthetic_probe
16966
17012
  end
16967
17013
 
17014
+ class ProductsNamespace
17015
+ def initialize: (Transport) -> void
17016
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_product_policy
17017
+ def update: (body: org_product_policy_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_product_policy
17018
+ end
17019
+
16968
17020
  class ProfileEmailChangeNamespace
16969
17021
  def initialize: (Transport) -> void
16970
17022
  def confirm: (?body: { "code" => String }?, ?request_options: Hash[Symbol, untyped]?) -> { "email" => String }
@@ -17670,6 +17722,7 @@ module Infrawrench
17670
17722
  attr_reader pr_checks: PrChecksNamespace
17671
17723
  attr_reader price_catalog: PriceCatalogNamespace
17672
17724
  attr_reader probes: ProbesNamespace
17725
+ attr_reader products: ProductsNamespace
17673
17726
  attr_reader profile: ProfileNamespace
17674
17727
  attr_reader provider_oauth: ProviderOauthNamespace
17675
17728
  attr_reader query_monitors: QueryMonitorsNamespace
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.100.0
4
+ version: 1.102.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infrawrench Services, Inc.
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-11-09 00:00:00.000000000 Z
12
+ date: 2026-11-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.100.0). Covers the
14
+ description: Generated Ruby client for the Infrawrench API (v1.102.0). Covers the
15
15
  published API surface only — operations marked x-internal in the spec are not generated.
16
16
  No 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.100.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.102.0).
62
62
  test_files: []