infrawrench-sdk 1.78.0 → 1.80.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: 66f9369a4c176169b943dc1f589894f5d0724b313850746a4c233f79634773e6
4
- data.tar.gz: 175542421b759c6316f37d844d878981d4b08812bb43c358954a6c1dd38255ce
3
+ metadata.gz: 47affe2500816c8680603ba4a3475d7c759a7c3f745fa9d7c62523d542fc2b07
4
+ data.tar.gz: 930e051b9dacf6634c6a27d20174e412b040f6183e1bb3ec260f375d40de17e2
5
5
  SHA512:
6
- metadata.gz: 1e7a82308e87751209e169cbcac6969a9a8e6b6f1df2e110ca78b67b1ea02496380329f52f5371b0e0470779f53a63a3f6fac8ced2ea2acd90c34f7aa563ca9e
7
- data.tar.gz: 4b54f920b46f4d691cafee4708b35afd3cb99ebd40053ecd38518dec4254a9b19c47fdb923187c3b5073c0d7351186460ec96691bf145b671b6e4d318cbe9565
6
+ metadata.gz: b5f6610225363a8bb72462c3c817997ab7efcdec5ba400f2bb2940970e355f8075e9a817be0d5e902e11c8aa0f5b84351e1aa74a0a4b7181e286ce16f6a5de46
7
+ data.tar.gz: ef77f09cd53d07ebb3055eee51755ac25e80ae7664f4e09e11838eb8234c14becc0c07f7cd09e003bf81d83884c446b95fcdfd3ba3431d42ee0e4e2cb897c57f
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.78.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.80.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
- 964 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 980 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.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.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.78.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.78.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.80.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.80.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.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -424,7 +424,14 @@ module Infrawrench
424
424
  # Fetch the decrypted credentials for an account
425
425
  #
426
426
  # Returns the credentials map as it was originally submitted. Sensitive:
427
- # gate access carefully.
427
+ # gate access carefully. For an account connected through provider OAuth,
428
+ # the access token is refreshed first when it is about to expire, and
429
+ # `__oauth` comes back redacted: the grant state without its refresh token
430
+ # (or a registered client secret), so plugins can tell an OAuth token from a
431
+ # pasted one. Sending that redacted value back on `PUT .../credentials`
432
+ # keeps the stored connection. An account whose connection was revoked
433
+ # (`oauthStatus: reconnect_required`) returns its stored credentials without
434
+ # refreshing.
428
435
  #
429
436
  # _Requires permission: `secrets:read`._
430
437
  #
@@ -15551,6 +15558,228 @@ module Infrawrench
15551
15558
  end
15552
15559
  end
15553
15560
 
15561
+ # `client.pr_checks.repositories`
15562
+ class PrChecksRepositoriesNamespace
15563
+ # @api private
15564
+ # @param transport [Transport]
15565
+ def initialize(transport)
15566
+ @transport = transport
15567
+ end
15568
+
15569
+ # Turn on pull request checks for a repository
15570
+ #
15571
+ # _Requires permission: `org:settings:write`._
15572
+ #
15573
+ # POST /api/org/{orgId}/pr-checks/repositories
15574
+ #
15575
+ # Raises on 400: Bad request
15576
+ #
15577
+ # Raises on 409: Conflict
15578
+ #
15579
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15580
+ # constructed with.
15581
+ # @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
15582
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15583
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15584
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15585
+ def create(body:, org_id: nil, request_options: nil)
15586
+ @transport.request(
15587
+ http_method: "POST",
15588
+ path: "/api/org/{orgId}/pr-checks/repositories",
15589
+ path_params: { "orgId" => org_id },
15590
+ body: body,
15591
+ request_options: request_options
15592
+ )
15593
+ end
15594
+
15595
+ # Stop pull request checks for a repository
15596
+ #
15597
+ # Removes the settings and the repository's check history.
15598
+ #
15599
+ # _Requires permission: `org:settings:write`._
15600
+ #
15601
+ # DELETE /api/org/{orgId}/pr-checks/repositories/{id}
15602
+ #
15603
+ # Raises on 404: Not found
15604
+ #
15605
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15606
+ # constructed with.
15607
+ # @param id [String]
15608
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15609
+ # @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
15610
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15611
+ def delete(id:, org_id: nil, request_options: nil)
15612
+ @transport.request(
15613
+ http_method: "DELETE",
15614
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15615
+ path_params: { "orgId" => org_id, "id" => id },
15616
+ request_options: request_options
15617
+ )
15618
+ end
15619
+
15620
+ # Get one repository's pull request check settings
15621
+ #
15622
+ # _Requires permission: `iac:read`._
15623
+ #
15624
+ # GET /api/org/{orgId}/pr-checks/repositories/{id}
15625
+ #
15626
+ # Raises on 404: Not found
15627
+ #
15628
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15629
+ # constructed with.
15630
+ # @param id [String]
15631
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15632
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15633
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15634
+ def get(id:, org_id: nil, request_options: nil)
15635
+ @transport.request(
15636
+ http_method: "GET",
15637
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15638
+ path_params: { "orgId" => org_id, "id" => id },
15639
+ request_options: request_options
15640
+ )
15641
+ end
15642
+
15643
+ # List repositories with pull request checks
15644
+ #
15645
+ # _Requires permission: `iac:read`._
15646
+ #
15647
+ # GET /api/org/{orgId}/pr-checks/repositories
15648
+ #
15649
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15650
+ # constructed with.
15651
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15652
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRepository>` — see
15653
+ # `sig/infrawrench/sdk.rbs`.
15654
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15655
+ def list(org_id: nil, request_options: nil)
15656
+ @transport.request(
15657
+ http_method: "GET",
15658
+ path: "/api/org/{orgId}/pr-checks/repositories",
15659
+ path_params: { "orgId" => org_id },
15660
+ request_options: request_options
15661
+ )
15662
+ end
15663
+
15664
+ # Replace one repository's pull request check settings
15665
+ #
15666
+ # _Requires permission: `org:settings:write`._
15667
+ #
15668
+ # PUT /api/org/{orgId}/pr-checks/repositories/{id}
15669
+ #
15670
+ # Raises on 400: Bad request
15671
+ #
15672
+ # Raises on 404: Not found
15673
+ #
15674
+ # Raises on 409: Conflict
15675
+ #
15676
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15677
+ # constructed with.
15678
+ # @param id [String]
15679
+ # @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
15680
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15681
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15682
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15683
+ def update(id:, body:, org_id: nil, request_options: nil)
15684
+ @transport.request(
15685
+ http_method: "PUT",
15686
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15687
+ path_params: { "orgId" => org_id, "id" => id },
15688
+ body: body,
15689
+ request_options: request_options
15690
+ )
15691
+ end
15692
+ end
15693
+
15694
+ # `client.pr_checks`
15695
+ class PrChecksNamespace
15696
+ # @return [PrChecksRepositoriesNamespace] `client.pr_checks.repositories`
15697
+ attr_reader :repositories
15698
+
15699
+ # @api private
15700
+ # @param transport [Transport]
15701
+ def initialize(transport)
15702
+ @transport = transport
15703
+ @repositories = PrChecksRepositoriesNamespace.new(@transport)
15704
+ end
15705
+
15706
+ # Get pull request check settings and installation access
15707
+ #
15708
+ # _Requires permission: `iac:read`._
15709
+ #
15710
+ # GET /api/org/{orgId}/pr-checks
15711
+ #
15712
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15713
+ # constructed with.
15714
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15715
+ # @return [Hash] Parsed JSON, shaped as `PrCheckStatus` — see `sig/infrawrench/sdk.rbs`.
15716
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15717
+ def get(org_id: nil, request_options: nil)
15718
+ @transport.request(
15719
+ http_method: "GET",
15720
+ path: "/api/org/{orgId}/pr-checks",
15721
+ path_params: { "orgId" => org_id },
15722
+ request_options: request_options
15723
+ )
15724
+ end
15725
+
15726
+ # Preview a pull request check without posting it
15727
+ #
15728
+ # Runs the same analysis the check posts, for a pull request in a configured
15729
+ # repository or for file contents from a local diff. Reads only: nothing is
15730
+ # posted to GitHub and nothing is stored.
15731
+ #
15732
+ # _Requires permission: `iac:read`._
15733
+ #
15734
+ # POST /api/org/{orgId}/pr-checks/preview
15735
+ #
15736
+ # Raises on 400: Bad request
15737
+ #
15738
+ # Raises on 404: Not found
15739
+ #
15740
+ # Raises on 502: GitHub refused the request or was unreachable
15741
+ #
15742
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15743
+ # constructed with.
15744
+ # @param body [Hash] Request body, shaped as `PrCheckPreviewInput`.
15745
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15746
+ # @return [Hash] Parsed JSON, shaped as `PrCheckPreview` — see `sig/infrawrench/sdk.rbs`.
15747
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15748
+ def preview(body:, org_id: nil, request_options: nil)
15749
+ @transport.request(
15750
+ http_method: "POST",
15751
+ path: "/api/org/{orgId}/pr-checks/preview",
15752
+ path_params: { "orgId" => org_id },
15753
+ body: body,
15754
+ request_options: request_options
15755
+ )
15756
+ end
15757
+
15758
+ # List recent pull request checks
15759
+ #
15760
+ # _Requires permission: `iac:read`._
15761
+ #
15762
+ # GET /api/org/{orgId}/pr-checks/runs
15763
+ #
15764
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15765
+ # constructed with.
15766
+ # @param repository_id [String, nil]
15767
+ # @param limit [Integer, nil]
15768
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15769
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRun>` — see
15770
+ # `sig/infrawrench/sdk.rbs`.
15771
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15772
+ def runs(org_id: nil, repository_id: nil, limit: nil, request_options: nil)
15773
+ @transport.request(
15774
+ http_method: "GET",
15775
+ path: "/api/org/{orgId}/pr-checks/runs",
15776
+ path_params: { "orgId" => org_id },
15777
+ query: { "repositoryId" => repository_id, "limit" => limit },
15778
+ request_options: request_options
15779
+ )
15780
+ end
15781
+ end
15782
+
15554
15783
  # `client.price_catalog`
15555
15784
  class PriceCatalogNamespace
15556
15785
  # @api private
@@ -16391,6 +16620,53 @@ module Infrawrench
16391
16620
  end
16392
16621
  end
16393
16622
 
16623
+ # `client.provider_oauth`
16624
+ class ProviderOauthNamespace
16625
+ # @api private
16626
+ # @param transport [Transport]
16627
+ def initialize(transport)
16628
+ @transport = transport
16629
+ end
16630
+
16631
+ # Start connecting a provider account with OAuth
16632
+ #
16633
+ # Returns the provider's consent URL for a plugin whose listing carries
16634
+ # `oauth`. After consent the provider redirects to
16635
+ # `/api/provider-oauth/{pluginId}/callback`, which delivers `{ type:
16636
+ # "infrawrench:provider-oauth", ok, pluginId, accountId?, credentials,
16637
+ # accountName? }` (or `{ type, ok: false, pluginId, error }`) as `returnTo`
16638
+ # asks. `credentials` holds the access token in the plugin's token field,
16639
+ # prefilled fields the provider identified, and a sealed `__oauth` grant;
16640
+ # send them unchanged to `POST /accounts` or `PUT
16641
+ # /accounts/{id}/credentials` within 30 minutes. Requires `accounts:write`.
16642
+ # 400 when the plugin has no OAuth flow or this server has no client
16643
+ # configured for it.
16644
+ #
16645
+ # POST /api/org/{orgId}/provider-oauth/{pluginId}/authorize
16646
+ #
16647
+ # Raises on 400: Bad request
16648
+ #
16649
+ # Raises on 404: Not found
16650
+ #
16651
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
16652
+ # constructed with.
16653
+ # @param plugin_id [String]
16654
+ # @param body [Hash] Request body, shaped as `ProviderOAuthAuthorizeRequest`.
16655
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
16656
+ # @return [Hash] Parsed JSON, shaped as `ProviderOAuthAuthorizeResponse` — see
16657
+ # `sig/infrawrench/sdk.rbs`.
16658
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
16659
+ def authorize(plugin_id:, body:, org_id: nil, request_options: nil)
16660
+ @transport.request(
16661
+ http_method: "POST",
16662
+ path: "/api/org/{orgId}/provider-oauth/{pluginId}/authorize",
16663
+ path_params: { "orgId" => org_id, "pluginId" => plugin_id },
16664
+ body: body,
16665
+ request_options: request_options
16666
+ )
16667
+ end
16668
+ end
16669
+
16394
16670
  # `client.query_monitors.get`
16395
16671
  class QueryMonitorsGetNamespace
16396
16672
  # @api private
@@ -22198,12 +22474,16 @@ module Infrawrench
22198
22474
  attr_reader :paging_webhooks
22199
22475
  # @return [PostureNamespace] `client.posture`
22200
22476
  attr_reader :posture
22477
+ # @return [PrChecksNamespace] `client.pr_checks`
22478
+ attr_reader :pr_checks
22201
22479
  # @return [PriceCatalogNamespace] `client.price_catalog`
22202
22480
  attr_reader :price_catalog
22203
22481
  # @return [ProbesNamespace] `client.probes`
22204
22482
  attr_reader :probes
22205
22483
  # @return [ProfileNamespace] `client.profile`
22206
22484
  attr_reader :profile
22485
+ # @return [ProviderOauthNamespace] `client.provider_oauth`
22486
+ attr_reader :provider_oauth
22207
22487
  # @return [QueryMonitorsNamespace] `client.query_monitors`
22208
22488
  attr_reader :query_monitors
22209
22489
  # @return [QuotasNamespace] `client.quotas`
@@ -22354,9 +22634,11 @@ module Infrawrench
22354
22634
  @paging_providers = PagingProvidersNamespace.new(@transport)
22355
22635
  @paging_webhooks = PagingWebhooksNamespace.new(@transport)
22356
22636
  @posture = PostureNamespace.new(@transport)
22637
+ @pr_checks = PrChecksNamespace.new(@transport)
22357
22638
  @price_catalog = PriceCatalogNamespace.new(@transport)
22358
22639
  @probes = ProbesNamespace.new(@transport)
22359
22640
  @profile = ProfileNamespace.new(@transport)
22641
+ @provider_oauth = ProviderOauthNamespace.new(@transport)
22360
22642
  @query_monitors = QueryMonitorsNamespace.new(@transport)
22361
22643
  @quotas = QuotasNamespace.new(@transport)
22362
22644
  @resources = ResourcesNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.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.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.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.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.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.78.0"
18
+ VERSION = "1.80.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.80.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.78.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.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.78.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.80.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.78.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.80.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -258,6 +258,7 @@ module Infrawrench
258
258
  "pluginId" => String,
259
259
  "displayName" => String,
260
260
  "bastionId" => String | nil,
261
+ "oauthStatus" => account_oauth_status,
261
262
  "createdAt" => String
262
263
  }
263
264
 
@@ -273,12 +274,25 @@ module Infrawrench
273
274
 
274
275
  # Spec schema: `AccountDetail`.
275
276
  type account_detail = {
276
- "account" => { "id" => String, "pluginId" => String, "displayName" => String },
277
+ "account" => {
278
+ "id" => String,
279
+ "pluginId" => String,
280
+ "displayName" => String,
281
+ "oauthStatus" => account_oauth_status
282
+ },
277
283
  "resourceTypes" => Array[resource_type_summary],
278
284
  "pluginDisplayName" => String,
279
285
  "pluginLogoSvg" => String
280
286
  }
281
287
 
288
+ # Provider OAuth connection state. `null` for pasted credentials;
289
+ # `reconnect_required` when the provider revoked the connection or its refresh
290
+ # token expired, and the account needs `POST
291
+ # /provider-oauth/{pluginId}/authorize` with its `accountId` again.
292
+ #
293
+ # Spec schema: `AccountOAuthStatus`.
294
+ type account_oauth_status = "connected" | "reconnect_required" | nil
295
+
282
296
  # Spec schema: `AccountTagCompliance`.
283
297
  type account_tag_compliance = {
284
298
  "accountId" => String,
@@ -7222,13 +7236,27 @@ module Infrawrench
7222
7236
  | "xai"
7223
7237
  | "xata"
7224
7238
 
7239
+ # Present only when this server can connect the plugin through provider OAuth
7240
+ # (the plugin supports it and the server has a client configured). See `POST
7241
+ # /provider-oauth/{pluginId}/authorize`.
7242
+ #
7243
+ # Spec schema: `PluginOAuthSummary`.
7244
+ type plugin_oauth_summary = {
7245
+ "access" => "read-only" | "read-write" | "full",
7246
+ "refresh" => "rotating" | "reusable" | "none",
7247
+ ?"docsUrl" => String,
7248
+ "tokenField" => String,
7249
+ "clients" => Array["server" | "desktop"]
7250
+ }
7251
+
7225
7252
  # Spec schema: `PluginSummary`.
7226
7253
  type plugin_summary = {
7227
7254
  "id" => String,
7228
7255
  "displayName" => String,
7229
7256
  "logoSvg" => String,
7230
7257
  "credentialFields" => Array[credential_field],
7231
- "preflight" => preflight_declaration
7258
+ "preflight" => preflight_declaration,
7259
+ ?"oauth" => plugin_oauth_summary
7232
7260
  }
7233
7261
 
7234
7262
  # Spec schema: `PolicyTemplate`.
@@ -7294,6 +7322,161 @@ module Infrawrench
7294
7322
  # Spec schema: `PostureSeverityCounts`.
7295
7323
  type posture_severity_counts = { "critical" => Integer, "high" => Integer, "medium" => Integer, "low" => Integer }
7296
7324
 
7325
+ # Spec schema: `PrCheckChange`.
7326
+ type pr_check_change = {
7327
+ "address" => String,
7328
+ "terraformType" => String,
7329
+ "action" => "create" | "update" | "delete",
7330
+ "path" => String,
7331
+ "line" => Integer | nil,
7332
+ "resourceId" => String | nil,
7333
+ "displayName" => String | nil,
7334
+ "pluginId" => String | nil,
7335
+ "resourceTypeId" => String | nil,
7336
+ "changedAttributes" => Array[String],
7337
+ "count" => Integer | nil,
7338
+ "before" => pr_check_estimate_side,
7339
+ "after" => pr_check_estimate_side,
7340
+ "monthlyDelta" => Numeric | nil,
7341
+ "currency" => String | nil,
7342
+ "unpricedReason" => String | nil,
7343
+ "blastRadius" => {
7344
+ "directDependants" => Integer,
7345
+ "transitiveDependants" => Integer,
7346
+ "references" => Integer,
7347
+ "severity" => "none" | "low" | "medium" | "high" | "unknown",
7348
+ "headline" => String,
7349
+ "topDependants" => Array[String],
7350
+ "unchecked" => Integer
7351
+ }
7352
+ | nil,
7353
+ "warnings" => Array[{
7354
+ "kind" => "rightsizing" | "tag-policy" | "posture" | "parse",
7355
+ "severity" => "notice" | "warning",
7356
+ "message" => String
7357
+ }]
7358
+ }
7359
+
7360
+ # Spec schema: `PrCheckConclusion`.
7361
+ type pr_check_conclusion = "success" | "neutral" | "failure" | nil
7362
+
7363
+ # Spec schema: `PrCheckEstimateSide`.
7364
+ type pr_check_estimate_side = { "monthlyAmount" => Numeric, "currency" => String, "partial" => bool } | nil
7365
+
7366
+ # What an installation has **accepted** of the permissions checks need:
7367
+ # `checks: write`, `pull_requests` (read, or write for the comment) and
7368
+ # `contents: read`. An installation made before checks existed shows `checks:
7369
+ # none` until an owner of the GitHub account approves the app's updated
7370
+ # permissions.
7371
+ #
7372
+ # Spec schema: `PrCheckInstallationAccess`.
7373
+ type pr_check_installation_access = {
7374
+ "installationId" => Integer,
7375
+ "accountLogin" => String | nil,
7376
+ "checks" => "none" | "read" | "write" | "admin",
7377
+ "pullRequests" => "none" | "read" | "write" | "admin",
7378
+ "contents" => "none" | "read" | "write" | "admin",
7379
+ "suspended" => bool,
7380
+ "manageUrl" => String | nil,
7381
+ "checked" => bool
7382
+ }
7383
+
7384
+ # Spec schema: `PrCheckPreview`.
7385
+ type pr_check_preview = {
7386
+ "report" => pr_check_report & Hash[String, untyped],
7387
+ "conclusion" => pr_check_conclusion & String,
7388
+ "title" => String,
7389
+ "markdown" => String
7390
+ }
7391
+
7392
+ # Either a configured repository and pull request number (read through the
7393
+ # GitHub App), or file contents from a local diff (`before` null for an added
7394
+ # file, `after` null for a removed one).
7395
+ #
7396
+ # Spec schema: `PrCheckPreviewInput`.
7397
+ type pr_check_preview_input = { "repositoryId" => String, "pullNumber" => Integer }
7398
+ | {
7399
+ "files" => Array[{ "path" => String, "before" => String | nil, "after" => String | nil }],
7400
+ ?"repo" => String
7401
+ }
7402
+
7403
+ # Spec schema: `PrCheckReport`.
7404
+ type pr_check_report = {
7405
+ "generatedAt" => String,
7406
+ "files" => Array[{
7407
+ "path" => String,
7408
+ "kind" => "terraform" | "infrafile" | "kubernetes",
7409
+ "status" => "added" | "modified" | "removed" | "renamed",
7410
+ "analysed" => bool,
7411
+ "note" => String | nil
7412
+ }],
7413
+ "changes" => Array[pr_check_change],
7414
+ "totals" => {
7415
+ "monthlyDelta" => Numeric | nil,
7416
+ "currency" => String | nil,
7417
+ "partial" => bool,
7418
+ "pricedChanges" => Integer,
7419
+ "unpricedChanges" => Integer,
7420
+ "otherCurrencyChanges" => Integer
7421
+ },
7422
+ "blast" => {
7423
+ "touchedResources" => Integer,
7424
+ "dependants" => Integer,
7425
+ "highestSeverity" => "none" | "low" | "medium" | "high" | "unknown" | nil
7426
+ },
7427
+ "notes" => Array[String],
7428
+ "truncated" => bool
7429
+ }
7430
+ | nil
7431
+
7432
+ # Spec schema: `PrCheckRepository`.
7433
+ type pr_check_repository = pr_check_repository_input
7434
+ & { "id" => String, "createdAt" => String, "updatedAt" => String }
7435
+
7436
+ # Spec schema: `PrCheckRepositoryInput`.
7437
+ type pr_check_repository_input = {
7438
+ "installationId" => Integer,
7439
+ "repo" => String,
7440
+ "enabled" => bool,
7441
+ "commentEnabled" => bool,
7442
+ "costThreshold" => Numeric | nil,
7443
+ "thresholdConclusion" => pr_check_threshold_conclusion,
7444
+ "directories" => Array[String]
7445
+ }
7446
+
7447
+ # Spec schema: `PrCheckRun`.
7448
+ type pr_check_run = {
7449
+ "id" => String,
7450
+ "repositoryId" => String,
7451
+ "repo" => String,
7452
+ "pullNumber" => Integer,
7453
+ "pullTitle" => String | nil,
7454
+ "pullUrl" => String | nil,
7455
+ "headSha" => String,
7456
+ "status" => "running" | "completed" | "failed",
7457
+ "conclusion" => pr_check_conclusion,
7458
+ "checkRunUrl" => String | nil,
7459
+ "commentUrl" => String | nil,
7460
+ "report" => pr_check_report,
7461
+ "error" => String | nil,
7462
+ "createdAt" => String,
7463
+ "completedAt" => String | nil
7464
+ }
7465
+
7466
+ # Spec schema: `PrCheckStatus`.
7467
+ type pr_check_status = {
7468
+ "appConfigured" => bool,
7469
+ "installations" => Array[pr_check_installation_access],
7470
+ "repositories" => Array[pr_check_repository]
7471
+ }
7472
+
7473
+ # What the check concludes when the priced monthly increase exceeds
7474
+ # `costThreshold`: `neutral` flags it without blocking, `failure` fails it
7475
+ # (and blocks merging where branch protection requires the check).
7476
+ #
7477
+ # Spec schema: `PrCheckThresholdConclusion`.
7478
+ type pr_check_threshold_conclusion = "neutral" | "failure"
7479
+
7297
7480
  # Spec schema: `PreflightCapability`.
7298
7481
  type preflight_capability = {
7299
7482
  "id" => String,
@@ -7627,6 +7810,12 @@ module Infrawrench
7627
7810
  # Spec schema: `ProviderIncidentState`.
7628
7811
  type provider_incident_state = "investigating" | "identified" | "monitoring" | "resolved"
7629
7812
 
7813
+ # Spec schema: `ProviderOAuthAuthorizeRequest`.
7814
+ type provider_oauth_authorize_request = { "returnTo" => "web" | "desktop", ?"accountId" => String | nil }
7815
+
7816
+ # Spec schema: `ProviderOAuthAuthorizeResponse`.
7817
+ type provider_oauth_authorize_response = { "url" => String }
7818
+
7630
7819
  # Spec schema: `PublicStatusComponent`.
7631
7820
  type public_status_component = {
7632
7821
  "id" => String,
@@ -12235,6 +12424,23 @@ module Infrawrench
12235
12424
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> posture_list_response
12236
12425
  end
12237
12426
 
12427
+ class PrChecksRepositoriesNamespace
12428
+ def initialize: (Transport) -> void
12429
+ def create: (body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12430
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool }
12431
+ def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12432
+ def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_repository]
12433
+ def update: (id: String, body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12434
+ end
12435
+
12436
+ class PrChecksNamespace
12437
+ attr_reader repositories: PrChecksRepositoriesNamespace
12438
+ def initialize: (Transport) -> void
12439
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_status
12440
+ def preview: (body: pr_check_preview_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_preview
12441
+ def runs: (?org_id: String?, ?repository_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_run]
12442
+ end
12443
+
12238
12444
  class PriceCatalogNamespace
12239
12445
  def initialize: (Transport) -> void
12240
12446
  def compare: (?org_id: String?, ?vcpus: String?, ?memory_gb: String?, ?gpu_count: String?, ?gpu_model: String?, ?reference_plugin_id: String?, ?reference_sku: String?, ?area: price_catalog_area?, ?rate_type: price_rate_type?, ?plugin_ids: String?, ?alternatives: String?, ?request_options: Hash[Symbol, untyped]?) -> price_catalog_compare_response
@@ -12287,6 +12493,11 @@ module Infrawrench
12287
12493
  def update: (?body: { ?"firstName" => String, ?"lastName" => String }?, ?request_options: Hash[Symbol, untyped]?) -> profile_summary
12288
12494
  end
12289
12495
 
12496
+ class ProviderOauthNamespace
12497
+ def initialize: (Transport) -> void
12498
+ def authorize: (plugin_id: plugin_id, body: provider_oauth_authorize_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> provider_oauth_authorize_response
12499
+ end
12500
+
12290
12501
  class QueryMonitorsGetNamespace
12291
12502
  def initialize: (Transport) -> void
12292
12503
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_list
@@ -12794,9 +13005,11 @@ module Infrawrench
12794
13005
  attr_reader paging_providers: PagingProvidersNamespace
12795
13006
  attr_reader paging_webhooks: PagingWebhooksNamespace
12796
13007
  attr_reader posture: PostureNamespace
13008
+ attr_reader pr_checks: PrChecksNamespace
12797
13009
  attr_reader price_catalog: PriceCatalogNamespace
12798
13010
  attr_reader probes: ProbesNamespace
12799
13011
  attr_reader profile: ProfileNamespace
13012
+ attr_reader provider_oauth: ProviderOauthNamespace
12800
13013
  attr_reader query_monitors: QueryMonitorsNamespace
12801
13014
  attr_reader quotas: QuotasNamespace
12802
13015
  attr_reader resources: ResourcesNamespace
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.78.0
4
+ version: 1.80.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-10-08 00:00:00.000000000 Z
12
+ date: 2026-10-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.78.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.80.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.78.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.80.0).
62
62
  test_files: []