infrawrench-sdk 1.101.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: 3fe1fbb7095ab502ce0e2b8e20a4172b4b310c76793c76950d7112ccb415594b
4
- data.tar.gz: 24472b615e42cdbb29382db45c01929db698114eabc5abb28950c1897742de06
3
+ metadata.gz: '0551720297430bc04f661a466af66aa8dc06a8f1c8d447bea44207f816b3b2fa'
4
+ data.tar.gz: 6340e66cd337eb3dbcc49670fdcb2c77a9593f42289ceaeb655bbd421372969e
5
5
  SHA512:
6
- metadata.gz: 46cb0bd520a101f2053de8beb45b7de83ccb4529be347a0368d4543ca44a6adb8982c0bffc7313eab7b12f4ecd16c88f257987724d2a717b120a337f9883f675
7
- data.tar.gz: 8b2941a71625f84c291b0d7095c66a327f910b19efb7468556dec9884a346b00caffeda08dd95aa2ad5d45ed547b7614a2b8d354db29ed5a02339a232200533d
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.101.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.101.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.101.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.101.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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.101.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,
@@ -4030,7 +4032,8 @@ module Infrawrench
4030
4032
  "pluginId" => plugin_id,
4031
4033
  "displayName" => String,
4032
4034
  "credentials" => Hash[String, String],
4033
- ?"bastionId" => String | nil
4035
+ ?"bastionId" => String | nil,
4036
+ ?"products" => Array[product_id] | nil
4034
4037
  }
4035
4038
 
4036
4039
  # Spec schema: `CreateAccountResponse`.
@@ -9579,6 +9582,23 @@ module Infrawrench
9579
9582
  # Spec schema: `OrgMembership`.
9580
9583
  type org_membership = { "id" => String, "displayName" => String, "role" => organization_role }
9581
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
+
9582
9602
  # Spec schema: `OrgScorecard`.
9583
9603
  type org_scorecard = {
9584
9604
  "score" => Integer | nil,
@@ -9999,6 +10019,7 @@ module Infrawrench
9999
10019
  | "invoices:issue"
10000
10020
  | "pages:write"
10001
10021
  | "sharing:override"
10022
+ | "org:apps:write"
10002
10023
  | "org:settings:write"
10003
10024
 
10004
10025
  # Spec schema: `PermissionCatalog`.
@@ -10488,6 +10509,7 @@ module Infrawrench
10488
10509
  # Spec schema: `PreflightCapability`.
10489
10510
  type preflight_capability = {
10490
10511
  "id" => String,
10512
+ ?"product" => product_id & untyped,
10491
10513
  "label" => String,
10492
10514
  ?"description" => String,
10493
10515
  "requiredPermissions" => Array[preflight_permission],
@@ -10767,6 +10789,17 @@ module Infrawrench
10767
10789
  # Spec schema: `ProbeSuggestions`.
10768
10790
  type probe_suggestions = { "suggestions" => Array[probe_suggestion] }
10769
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
+
10770
10803
  # Spec schema: `Profile`.
10771
10804
  type profile = {
10772
10805
  "id" => String,
@@ -14620,6 +14653,7 @@ module Infrawrench
14620
14653
  | "access-review"
14621
14654
  | "jit-access"
14622
14655
  | "backups"
14656
+ | "home"
14623
14657
  | "wallboard"
14624
14658
  | "calendar"
14625
14659
  | "runbooks"
@@ -14656,6 +14690,7 @@ module Infrawrench
14656
14690
  ?"serviceId" => String,
14657
14691
  ?"view" => "details" | "ssh" | "sftp" | "apps" | "scorecards",
14658
14692
  ?"framework" => String,
14693
+ ?"productId" => String,
14659
14694
  ?"sessionId" => String,
14660
14695
  ?"windowId" => Integer,
14661
14696
  ?"appId" => String
@@ -14940,7 +14975,11 @@ module Infrawrench
14940
14975
  }
14941
14976
 
14942
14977
  # Spec schema: `UpdateAccountRequest`.
14943
- 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
+ }
14944
14983
 
14945
14984
  # Spec schema: `UpdateResourceRequest`.
14946
14985
  type update_resource_request = {
@@ -14966,7 +15005,12 @@ module Infrawrench
14966
15005
  }
14967
15006
 
14968
15007
  # Spec schema: `UpdatedAccount`.
14969
- 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
+ }
14970
15014
 
14971
15015
  # Spec schema: `UserSession`.
14972
15016
  type user_session = {
@@ -16967,6 +17011,12 @@ module Infrawrench
16967
17011
  def update: (probe_id: String, ?org_id: String?, ?body: synthetic_probe_update?, ?request_options: Hash[Symbol, untyped]?) -> synthetic_probe
16968
17012
  end
16969
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
+
16970
17020
  class ProfileEmailChangeNamespace
16971
17021
  def initialize: (Transport) -> void
16972
17022
  def confirm: (?body: { "code" => String }?, ?request_options: Hash[Symbol, untyped]?) -> { "email" => String }
@@ -17672,6 +17722,7 @@ module Infrawrench
17672
17722
  attr_reader pr_checks: PrChecksNamespace
17673
17723
  attr_reader price_catalog: PriceCatalogNamespace
17674
17724
  attr_reader probes: ProbesNamespace
17725
+ attr_reader products: ProductsNamespace
17675
17726
  attr_reader profile: ProfileNamespace
17676
17727
  attr_reader provider_oauth: ProviderOauthNamespace
17677
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.101.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.101.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.101.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.102.0).
62
62
  test_files: []