infrawrench-sdk 1.78.0 → 1.79.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: 687a70061b19e0a2efbf1599ff0a0ab1a248b60067e63b7982c69e210eaba39a
4
+ data.tar.gz: 03a24633a77f278eb0baac3bf1ef82973b73f134db3a370168ebd89dbb78a2fc
5
5
  SHA512:
6
- metadata.gz: 1e7a82308e87751209e169cbcac6969a9a8e6b6f1df2e110ca78b67b1ea02496380329f52f5371b0e0470779f53a63a3f6fac8ced2ea2acd90c34f7aa563ca9e
7
- data.tar.gz: 4b54f920b46f4d691cafee4708b35afd3cb99ebd40053ecd38518dec4254a9b19c47fdb923187c3b5073c0d7351186460ec96691bf145b671b6e4d318cbe9565
6
+ metadata.gz: 436adf1ea183097d066e10eb4b2e64248be1107a3130736b85f9fed7814e43f26ac41ca812198c07bf76916a2af1235dedb4648f657cfc03e67b4767f82287d2
7
+ data.tar.gz: 9f5cbbca90da8e278ef4d0f0e72c4df7cf1b5244eb84803fec555738c590f7409d56e8a3625c5b4837f01d7dd09aab90b8a06785789d34919f5164b9623adb35
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.79.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
+ 976 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.79.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.79.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.79.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.79.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.79.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.79.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -4908,8 +4908,8 @@ module Infrawrench
4908
4908
  # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
4909
4909
  # constructed with.
4910
4910
  # @param sections [String, nil] Comma-separated subset of sections to export. Defaults to
4911
- # all of: budgets, customGraphs, workflows, dashboards, metricAlerts, probes, slos,
4912
- # costCentres, tagPolicy, alertSettings.
4911
+ # all of: budgets, customGraphs, workflows, dashboards, metricAlerts, probes, costCentres,
4912
+ # tagPolicy, alertSettings.
4913
4913
  # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
4914
4914
  # @return [Hash] Parsed JSON, shaped as `OrgConfigDocument` — see `sig/infrawrench/sdk.rbs`.
4915
4915
  # @raise [Infrawrench::ApiError] On any non-2xx response.
@@ -15551,6 +15551,228 @@ module Infrawrench
15551
15551
  end
15552
15552
  end
15553
15553
 
15554
+ # `client.pr_checks.repositories`
15555
+ class PrChecksRepositoriesNamespace
15556
+ # @api private
15557
+ # @param transport [Transport]
15558
+ def initialize(transport)
15559
+ @transport = transport
15560
+ end
15561
+
15562
+ # Turn on pull request checks for a repository
15563
+ #
15564
+ # _Requires permission: `org:settings:write`._
15565
+ #
15566
+ # POST /api/org/{orgId}/pr-checks/repositories
15567
+ #
15568
+ # Raises on 400: Bad request
15569
+ #
15570
+ # Raises on 409: Conflict
15571
+ #
15572
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15573
+ # constructed with.
15574
+ # @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
15575
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15576
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15577
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15578
+ def create(body:, org_id: nil, request_options: nil)
15579
+ @transport.request(
15580
+ http_method: "POST",
15581
+ path: "/api/org/{orgId}/pr-checks/repositories",
15582
+ path_params: { "orgId" => org_id },
15583
+ body: body,
15584
+ request_options: request_options
15585
+ )
15586
+ end
15587
+
15588
+ # Stop pull request checks for a repository
15589
+ #
15590
+ # Removes the settings and the repository's check history.
15591
+ #
15592
+ # _Requires permission: `org:settings:write`._
15593
+ #
15594
+ # DELETE /api/org/{orgId}/pr-checks/repositories/{id}
15595
+ #
15596
+ # Raises on 404: Not found
15597
+ #
15598
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15599
+ # constructed with.
15600
+ # @param id [String]
15601
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15602
+ # @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
15603
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15604
+ def delete(id:, org_id: nil, request_options: nil)
15605
+ @transport.request(
15606
+ http_method: "DELETE",
15607
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15608
+ path_params: { "orgId" => org_id, "id" => id },
15609
+ request_options: request_options
15610
+ )
15611
+ end
15612
+
15613
+ # Get one repository's pull request check settings
15614
+ #
15615
+ # _Requires permission: `iac:read`._
15616
+ #
15617
+ # GET /api/org/{orgId}/pr-checks/repositories/{id}
15618
+ #
15619
+ # Raises on 404: Not found
15620
+ #
15621
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15622
+ # constructed with.
15623
+ # @param id [String]
15624
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15625
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15626
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15627
+ def get(id:, org_id: nil, request_options: nil)
15628
+ @transport.request(
15629
+ http_method: "GET",
15630
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15631
+ path_params: { "orgId" => org_id, "id" => id },
15632
+ request_options: request_options
15633
+ )
15634
+ end
15635
+
15636
+ # List repositories with pull request checks
15637
+ #
15638
+ # _Requires permission: `iac:read`._
15639
+ #
15640
+ # GET /api/org/{orgId}/pr-checks/repositories
15641
+ #
15642
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15643
+ # constructed with.
15644
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15645
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRepository>` — see
15646
+ # `sig/infrawrench/sdk.rbs`.
15647
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15648
+ def list(org_id: nil, request_options: nil)
15649
+ @transport.request(
15650
+ http_method: "GET",
15651
+ path: "/api/org/{orgId}/pr-checks/repositories",
15652
+ path_params: { "orgId" => org_id },
15653
+ request_options: request_options
15654
+ )
15655
+ end
15656
+
15657
+ # Replace one repository's pull request check settings
15658
+ #
15659
+ # _Requires permission: `org:settings:write`._
15660
+ #
15661
+ # PUT /api/org/{orgId}/pr-checks/repositories/{id}
15662
+ #
15663
+ # Raises on 400: Bad request
15664
+ #
15665
+ # Raises on 404: Not found
15666
+ #
15667
+ # Raises on 409: Conflict
15668
+ #
15669
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15670
+ # constructed with.
15671
+ # @param id [String]
15672
+ # @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
15673
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15674
+ # @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
15675
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15676
+ def update(id:, body:, org_id: nil, request_options: nil)
15677
+ @transport.request(
15678
+ http_method: "PUT",
15679
+ path: "/api/org/{orgId}/pr-checks/repositories/{id}",
15680
+ path_params: { "orgId" => org_id, "id" => id },
15681
+ body: body,
15682
+ request_options: request_options
15683
+ )
15684
+ end
15685
+ end
15686
+
15687
+ # `client.pr_checks`
15688
+ class PrChecksNamespace
15689
+ # @return [PrChecksRepositoriesNamespace] `client.pr_checks.repositories`
15690
+ attr_reader :repositories
15691
+
15692
+ # @api private
15693
+ # @param transport [Transport]
15694
+ def initialize(transport)
15695
+ @transport = transport
15696
+ @repositories = PrChecksRepositoriesNamespace.new(@transport)
15697
+ end
15698
+
15699
+ # Get pull request check settings and installation access
15700
+ #
15701
+ # _Requires permission: `iac:read`._
15702
+ #
15703
+ # GET /api/org/{orgId}/pr-checks
15704
+ #
15705
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15706
+ # constructed with.
15707
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15708
+ # @return [Hash] Parsed JSON, shaped as `PrCheckStatus` — see `sig/infrawrench/sdk.rbs`.
15709
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15710
+ def get(org_id: nil, request_options: nil)
15711
+ @transport.request(
15712
+ http_method: "GET",
15713
+ path: "/api/org/{orgId}/pr-checks",
15714
+ path_params: { "orgId" => org_id },
15715
+ request_options: request_options
15716
+ )
15717
+ end
15718
+
15719
+ # Preview a pull request check without posting it
15720
+ #
15721
+ # Runs the same analysis the check posts, for a pull request in a configured
15722
+ # repository or for file contents from a local diff. Reads only: nothing is
15723
+ # posted to GitHub and nothing is stored.
15724
+ #
15725
+ # _Requires permission: `iac:read`._
15726
+ #
15727
+ # POST /api/org/{orgId}/pr-checks/preview
15728
+ #
15729
+ # Raises on 400: Bad request
15730
+ #
15731
+ # Raises on 404: Not found
15732
+ #
15733
+ # Raises on 502: GitHub refused the request or was unreachable
15734
+ #
15735
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15736
+ # constructed with.
15737
+ # @param body [Hash] Request body, shaped as `PrCheckPreviewInput`.
15738
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15739
+ # @return [Hash] Parsed JSON, shaped as `PrCheckPreview` — see `sig/infrawrench/sdk.rbs`.
15740
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15741
+ def preview(body:, org_id: nil, request_options: nil)
15742
+ @transport.request(
15743
+ http_method: "POST",
15744
+ path: "/api/org/{orgId}/pr-checks/preview",
15745
+ path_params: { "orgId" => org_id },
15746
+ body: body,
15747
+ request_options: request_options
15748
+ )
15749
+ end
15750
+
15751
+ # List recent pull request checks
15752
+ #
15753
+ # _Requires permission: `iac:read`._
15754
+ #
15755
+ # GET /api/org/{orgId}/pr-checks/runs
15756
+ #
15757
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15758
+ # constructed with.
15759
+ # @param repository_id [String, nil]
15760
+ # @param limit [Integer, nil]
15761
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15762
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRun>` — see
15763
+ # `sig/infrawrench/sdk.rbs`.
15764
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
15765
+ def runs(org_id: nil, repository_id: nil, limit: nil, request_options: nil)
15766
+ @transport.request(
15767
+ http_method: "GET",
15768
+ path: "/api/org/{orgId}/pr-checks/runs",
15769
+ path_params: { "orgId" => org_id },
15770
+ query: { "repositoryId" => repository_id, "limit" => limit },
15771
+ request_options: request_options
15772
+ )
15773
+ end
15774
+ end
15775
+
15554
15776
  # `client.price_catalog`
15555
15777
  class PriceCatalogNamespace
15556
15778
  # @api private
@@ -22198,6 +22420,8 @@ module Infrawrench
22198
22420
  attr_reader :paging_webhooks
22199
22421
  # @return [PostureNamespace] `client.posture`
22200
22422
  attr_reader :posture
22423
+ # @return [PrChecksNamespace] `client.pr_checks`
22424
+ attr_reader :pr_checks
22201
22425
  # @return [PriceCatalogNamespace] `client.price_catalog`
22202
22426
  attr_reader :price_catalog
22203
22427
  # @return [ProbesNamespace] `client.probes`
@@ -22354,6 +22578,7 @@ module Infrawrench
22354
22578
  @paging_providers = PagingProvidersNamespace.new(@transport)
22355
22579
  @paging_webhooks = PagingWebhooksNamespace.new(@transport)
22356
22580
  @posture = PostureNamespace.new(@transport)
22581
+ @pr_checks = PrChecksNamespace.new(@transport)
22357
22582
  @price_catalog = PriceCatalogNamespace.new(@transport)
22358
22583
  @probes = ProbesNamespace.new(@transport)
22359
22584
  @profile = ProfileNamespace.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -704,7 +704,6 @@ module Infrawrench
704
704
  | "logMatchAlerts"
705
705
  | "postureAlerts"
706
706
  | "probeAlerts"
707
- | "sloAlerts"
708
707
  | "quotaAlerts"
709
708
  | "extendedSupportAlerts"
710
709
  | "incidentAlerts"
@@ -6577,7 +6576,6 @@ module Infrawrench
6577
6576
  | "dashboards"
6578
6577
  | "metricAlerts"
6579
6578
  | "probes"
6580
- | "slos"
6581
6579
  | "costCentres"
6582
6580
  | "tagPolicy"
6583
6581
  | "alertSettings"
@@ -7294,6 +7292,161 @@ module Infrawrench
7294
7292
  # Spec schema: `PostureSeverityCounts`.
7295
7293
  type posture_severity_counts = { "critical" => Integer, "high" => Integer, "medium" => Integer, "low" => Integer }
7296
7294
 
7295
+ # Spec schema: `PrCheckChange`.
7296
+ type pr_check_change = {
7297
+ "address" => String,
7298
+ "terraformType" => String,
7299
+ "action" => "create" | "update" | "delete",
7300
+ "path" => String,
7301
+ "line" => Integer | nil,
7302
+ "resourceId" => String | nil,
7303
+ "displayName" => String | nil,
7304
+ "pluginId" => String | nil,
7305
+ "resourceTypeId" => String | nil,
7306
+ "changedAttributes" => Array[String],
7307
+ "count" => Integer | nil,
7308
+ "before" => pr_check_estimate_side,
7309
+ "after" => pr_check_estimate_side,
7310
+ "monthlyDelta" => Numeric | nil,
7311
+ "currency" => String | nil,
7312
+ "unpricedReason" => String | nil,
7313
+ "blastRadius" => {
7314
+ "directDependants" => Integer,
7315
+ "transitiveDependants" => Integer,
7316
+ "references" => Integer,
7317
+ "severity" => "none" | "low" | "medium" | "high" | "unknown",
7318
+ "headline" => String,
7319
+ "topDependants" => Array[String],
7320
+ "unchecked" => Integer
7321
+ }
7322
+ | nil,
7323
+ "warnings" => Array[{
7324
+ "kind" => "rightsizing" | "tag-policy" | "posture" | "parse",
7325
+ "severity" => "notice" | "warning",
7326
+ "message" => String
7327
+ }]
7328
+ }
7329
+
7330
+ # Spec schema: `PrCheckConclusion`.
7331
+ type pr_check_conclusion = "success" | "neutral" | "failure" | nil
7332
+
7333
+ # Spec schema: `PrCheckEstimateSide`.
7334
+ type pr_check_estimate_side = { "monthlyAmount" => Numeric, "currency" => String, "partial" => bool } | nil
7335
+
7336
+ # What an installation has **accepted** of the permissions checks need:
7337
+ # `checks: write`, `pull_requests` (read, or write for the comment) and
7338
+ # `contents: read`. An installation made before checks existed shows `checks:
7339
+ # none` until an owner of the GitHub account approves the app's updated
7340
+ # permissions.
7341
+ #
7342
+ # Spec schema: `PrCheckInstallationAccess`.
7343
+ type pr_check_installation_access = {
7344
+ "installationId" => Integer,
7345
+ "accountLogin" => String | nil,
7346
+ "checks" => "none" | "read" | "write" | "admin",
7347
+ "pullRequests" => "none" | "read" | "write" | "admin",
7348
+ "contents" => "none" | "read" | "write" | "admin",
7349
+ "suspended" => bool,
7350
+ "manageUrl" => String | nil,
7351
+ "checked" => bool
7352
+ }
7353
+
7354
+ # Spec schema: `PrCheckPreview`.
7355
+ type pr_check_preview = {
7356
+ "report" => pr_check_report & Hash[String, untyped],
7357
+ "conclusion" => pr_check_conclusion & String,
7358
+ "title" => String,
7359
+ "markdown" => String
7360
+ }
7361
+
7362
+ # Either a configured repository and pull request number (read through the
7363
+ # GitHub App), or file contents from a local diff (`before` null for an added
7364
+ # file, `after` null for a removed one).
7365
+ #
7366
+ # Spec schema: `PrCheckPreviewInput`.
7367
+ type pr_check_preview_input = { "repositoryId" => String, "pullNumber" => Integer }
7368
+ | {
7369
+ "files" => Array[{ "path" => String, "before" => String | nil, "after" => String | nil }],
7370
+ ?"repo" => String
7371
+ }
7372
+
7373
+ # Spec schema: `PrCheckReport`.
7374
+ type pr_check_report = {
7375
+ "generatedAt" => String,
7376
+ "files" => Array[{
7377
+ "path" => String,
7378
+ "kind" => "terraform" | "infrafile" | "kubernetes",
7379
+ "status" => "added" | "modified" | "removed" | "renamed",
7380
+ "analysed" => bool,
7381
+ "note" => String | nil
7382
+ }],
7383
+ "changes" => Array[pr_check_change],
7384
+ "totals" => {
7385
+ "monthlyDelta" => Numeric | nil,
7386
+ "currency" => String | nil,
7387
+ "partial" => bool,
7388
+ "pricedChanges" => Integer,
7389
+ "unpricedChanges" => Integer,
7390
+ "otherCurrencyChanges" => Integer
7391
+ },
7392
+ "blast" => {
7393
+ "touchedResources" => Integer,
7394
+ "dependants" => Integer,
7395
+ "highestSeverity" => "none" | "low" | "medium" | "high" | "unknown" | nil
7396
+ },
7397
+ "notes" => Array[String],
7398
+ "truncated" => bool
7399
+ }
7400
+ | nil
7401
+
7402
+ # Spec schema: `PrCheckRepository`.
7403
+ type pr_check_repository = pr_check_repository_input
7404
+ & { "id" => String, "createdAt" => String, "updatedAt" => String }
7405
+
7406
+ # Spec schema: `PrCheckRepositoryInput`.
7407
+ type pr_check_repository_input = {
7408
+ "installationId" => Integer,
7409
+ "repo" => String,
7410
+ "enabled" => bool,
7411
+ "commentEnabled" => bool,
7412
+ "costThreshold" => Numeric | nil,
7413
+ "thresholdConclusion" => pr_check_threshold_conclusion,
7414
+ "directories" => Array[String]
7415
+ }
7416
+
7417
+ # Spec schema: `PrCheckRun`.
7418
+ type pr_check_run = {
7419
+ "id" => String,
7420
+ "repositoryId" => String,
7421
+ "repo" => String,
7422
+ "pullNumber" => Integer,
7423
+ "pullTitle" => String | nil,
7424
+ "pullUrl" => String | nil,
7425
+ "headSha" => String,
7426
+ "status" => "running" | "completed" | "failed",
7427
+ "conclusion" => pr_check_conclusion,
7428
+ "checkRunUrl" => String | nil,
7429
+ "commentUrl" => String | nil,
7430
+ "report" => pr_check_report,
7431
+ "error" => String | nil,
7432
+ "createdAt" => String,
7433
+ "completedAt" => String | nil
7434
+ }
7435
+
7436
+ # Spec schema: `PrCheckStatus`.
7437
+ type pr_check_status = {
7438
+ "appConfigured" => bool,
7439
+ "installations" => Array[pr_check_installation_access],
7440
+ "repositories" => Array[pr_check_repository]
7441
+ }
7442
+
7443
+ # What the check concludes when the priced monthly increase exceeds
7444
+ # `costThreshold`: `neutral` flags it without blocking, `failure` fails it
7445
+ # (and blocks merging where branch protection requires the check).
7446
+ #
7447
+ # Spec schema: `PrCheckThresholdConclusion`.
7448
+ type pr_check_threshold_conclusion = "neutral" | "failure"
7449
+
7297
7450
  # Spec schema: `PreflightCapability`.
7298
7451
  type preflight_capability = {
7299
7452
  "id" => String,
@@ -12235,6 +12388,23 @@ module Infrawrench
12235
12388
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> posture_list_response
12236
12389
  end
12237
12390
 
12391
+ class PrChecksRepositoriesNamespace
12392
+ def initialize: (Transport) -> void
12393
+ def create: (body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12394
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool }
12395
+ def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12396
+ def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_repository]
12397
+ def update: (id: String, body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
12398
+ end
12399
+
12400
+ class PrChecksNamespace
12401
+ attr_reader repositories: PrChecksRepositoriesNamespace
12402
+ def initialize: (Transport) -> void
12403
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_status
12404
+ def preview: (body: pr_check_preview_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_preview
12405
+ def runs: (?org_id: String?, ?repository_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_run]
12406
+ end
12407
+
12238
12408
  class PriceCatalogNamespace
12239
12409
  def initialize: (Transport) -> void
12240
12410
  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
@@ -12794,6 +12964,7 @@ module Infrawrench
12794
12964
  attr_reader paging_providers: PagingProvidersNamespace
12795
12965
  attr_reader paging_webhooks: PagingWebhooksNamespace
12796
12966
  attr_reader posture: PostureNamespace
12967
+ attr_reader pr_checks: PrChecksNamespace
12797
12968
  attr_reader price_catalog: PriceCatalogNamespace
12798
12969
  attr_reader probes: ProbesNamespace
12799
12970
  attr_reader profile: ProfileNamespace
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.79.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-10-08 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.79.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.79.0).
62
62
  test_files: []