infrawrench-sdk 1.10.0 → 1.12.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: 06e454c1ee80b35b1019cf6e23573c12ee87452573ad62b0a937cb3a82767d5e
4
- data.tar.gz: 0c67dfbd77d2c683b391edf762b72a62a01f5f1341104277069ec36bb13e1145
3
+ metadata.gz: 39542a8edbf1904101a15b6d9f9fad825ef507b1d3c3075cafc6d4c0b48d50fc
4
+ data.tar.gz: 46ba3cf8a75d9ee4ded8b4f71151921f9bdedbef6057890fa9c352afdbf7d5ce
5
5
  SHA512:
6
- metadata.gz: 983ee17ceef08453c468e62f228e5853c92477fdba2581895eb8eaae6c30a7735c1fc4c436ee7106b4cd3be72dcf4443e1b2ace2e0ac79fd3fb10c474e0e7859
7
- data.tar.gz: 99289d98fe6398750526f6379ad5254064b823fa90cbd1f9c52bf9e6f7f6633e6d25b7406b06347144550ceb197168711ff6ade9696ff9e1bfcaf3da9627318c
6
+ metadata.gz: 3639e5055ef2ce49922fb02460c4fe017de25bb7c6d31fecef47562519c5d24669c2d886d9d3b41142337291304539125e579b3481b1d2ed8e2f6cd3a3450b5e
7
+ data.tar.gz: 0aa252cfdc4cf00c1fe5f98e22aee65282898ad40d20ac8fd2e6dac6fd736f4fcb1b81c3535c7bab536a62e11b20c51a81e62420d8706ccc20fb6c8b9b0e2b8b
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.10.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.12.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
- 553 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 559 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.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.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.10.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.10.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.12.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.12.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.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -9315,6 +9315,112 @@ module Infrawrench
9315
9315
  end
9316
9316
  end
9317
9317
 
9318
+ # `client.quotas.settings`
9319
+ class QuotasSettingsNamespace
9320
+ # @api private
9321
+ # @param transport [Transport]
9322
+ def initialize(transport)
9323
+ @transport = transport
9324
+ end
9325
+
9326
+ # Get the organization's quota alert settings
9327
+ #
9328
+ # The threshold feeds both the feed's severity buckets and the poller's
9329
+ # daily alert scan. An organization that never saved reads the shipped
9330
+ # defaults (enabled, 0.8).
9331
+ #
9332
+ # _Requires permission: `org:settings:write`._
9333
+ #
9334
+ # GET /api/org/{orgId}/quotas/settings
9335
+ #
9336
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
9337
+ # constructed with.
9338
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
9339
+ # @return [Hash] Parsed JSON, shaped as `QuotaAlertSettings` — see
9340
+ # `sig/infrawrench/sdk.rbs`.
9341
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
9342
+ def get(org_id: nil, request_options: nil)
9343
+ @transport.request(
9344
+ http_method: "GET",
9345
+ path: "/api/org/{orgId}/quotas/settings",
9346
+ path_params: { "orgId" => org_id },
9347
+ request_options: request_options
9348
+ )
9349
+ end
9350
+
9351
+ # Update the quota alert settings
9352
+ #
9353
+ # Every field is optional so a single toggle can be saved on its own.
9354
+ # `threshold` is a fraction from 0.5 to 0.99 and is rejected rather than
9355
+ # clamped when out of range. Saving never resets the alert cooldown.
9356
+ #
9357
+ # _Requires permission: `org:settings:write`._
9358
+ #
9359
+ # PUT /api/org/{orgId}/quotas/settings
9360
+ #
9361
+ # Raises on 400: Bad request
9362
+ #
9363
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
9364
+ # constructed with.
9365
+ # @param body [Hash, nil] Request body, shaped as `QuotaAlertSettingsUpdate`.
9366
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
9367
+ # @return [Hash] Parsed JSON, shaped as `QuotaAlertSettings` — see
9368
+ # `sig/infrawrench/sdk.rbs`.
9369
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
9370
+ def update(org_id: nil, body: nil, request_options: nil)
9371
+ @transport.request(
9372
+ http_method: "PUT",
9373
+ path: "/api/org/{orgId}/quotas/settings",
9374
+ path_params: { "orgId" => org_id },
9375
+ body: body,
9376
+ request_options: request_options
9377
+ )
9378
+ end
9379
+ end
9380
+
9381
+ # `client.quotas`
9382
+ class QuotasNamespace
9383
+ # @return [QuotasSettingsNamespace] `client.quotas.settings`
9384
+ attr_reader :settings
9385
+
9386
+ # @api private
9387
+ # @param transport [Transport]
9388
+ def initialize(transport)
9389
+ @transport = transport
9390
+ @settings = QuotasSettingsNamespace.new(@transport)
9391
+ end
9392
+
9393
+ # List provider quota utilisation across the organization
9394
+ #
9395
+ # How close each account is to the limits its provider enforces, with the
9396
+ # trend fitted over the last 14 days of collected readings. Both halves of
9397
+ # every row — the used figure and the limit — come from the provider;
9398
+ # nothing is filled in from published defaults, so an account with an
9399
+ # approved increase reads as having the headroom it has. This is a read over
9400
+ # already-collected snapshots: no provider API calls are made here, and the
9401
+ # readings are as fresh as the last collection pass (roughly six hours). A
9402
+ # plugin that declares no quota capability contributes nothing rather than
9403
+ # zero — see `unsupportedPluginIds`.
9404
+ #
9405
+ # _Requires permission: `resources:read`._
9406
+ #
9407
+ # GET /api/org/{orgId}/quotas
9408
+ #
9409
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
9410
+ # constructed with.
9411
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
9412
+ # @return [Hash] Parsed JSON, shaped as `QuotaListResponse` — see `sig/infrawrench/sdk.rbs`.
9413
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
9414
+ def get(org_id: nil, request_options: nil)
9415
+ @transport.request(
9416
+ http_method: "GET",
9417
+ path: "/api/org/{orgId}/quotas",
9418
+ path_params: { "orgId" => org_id },
9419
+ request_options: request_options
9420
+ )
9421
+ end
9422
+ end
9423
+
9318
9424
  # `client.resources.manifest`
9319
9425
  class ResourcesManifestNamespace
9320
9426
  # @api private
@@ -12763,6 +12869,8 @@ module Infrawrench
12763
12869
  attr_reader :probes
12764
12870
  # @return [ProfileNamespace] `client.profile`
12765
12871
  attr_reader :profile
12872
+ # @return [QuotasNamespace] `client.quotas`
12873
+ attr_reader :quotas
12766
12874
  # @return [ResourcesNamespace] `client.resources`
12767
12875
  attr_reader :resources
12768
12876
  # @return [RightsizingNamespace] `client.rightsizing`
@@ -12868,6 +12976,7 @@ module Infrawrench
12868
12976
  @posture = PostureNamespace.new(@transport)
12869
12977
  @probes = ProbesNamespace.new(@transport)
12870
12978
  @profile = ProfileNamespace.new(@transport)
12979
+ @quotas = QuotasNamespace.new(@transport)
12871
12980
  @resources = ResourcesNamespace.new(@transport)
12872
12981
  @rightsizing = RightsizingNamespace.new(@transport)
12873
12982
  @saved_cost_filters = SavedCostFiltersNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.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.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.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.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.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.10.0"
18
+ VERSION = "1.12.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.12.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.10.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.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.10.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.12.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.10.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.12.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -327,6 +327,7 @@ module Infrawrench
327
327
  | "logMatchAlerts"
328
328
  | "postureAlerts"
329
329
  | "probeAlerts"
330
+ | "quotaAlerts"
330
331
  | "weeklyDigest"
331
332
 
332
333
  # Spec schema: `AllocationRule`.
@@ -4097,6 +4098,56 @@ module Infrawrench
4097
4098
  }
4098
4099
  | nil
4099
4100
 
4101
+ # Spec schema: `QuotaAccountStatus`.
4102
+ type quota_account_status = {
4103
+ "accountId" => String,
4104
+ "accountName" => String,
4105
+ "pluginId" => plugin_id,
4106
+ "quotaCount" => Integer,
4107
+ "lastPolledAt" => String | nil,
4108
+ "lastError" => String | nil,
4109
+ "lastErrorHelpLabel" => String | nil,
4110
+ "lastErrorHelpUrl" => String | nil,
4111
+ "partial" => bool
4112
+ }
4113
+
4114
+ # Spec schema: `QuotaAlertSettings`.
4115
+ type quota_alert_settings = { "enabled" => bool, "threshold" => Numeric, "lastNotifiedAt" => String | nil }
4116
+
4117
+ # Spec schema: `QuotaAlertSettingsUpdate`.
4118
+ type quota_alert_settings_update = { ?"enabled" => bool, ?"threshold" => Numeric }
4119
+
4120
+ # Spec schema: `QuotaListResponse`.
4121
+ type quota_list_response = {
4122
+ "rows" => Array[quota_row],
4123
+ "accounts" => Array[quota_account_status],
4124
+ "threshold" => Numeric,
4125
+ "unsupportedPluginIds" => Array[plugin_id]
4126
+ }
4127
+
4128
+ # Spec schema: `QuotaRow`.
4129
+ type quota_row = {
4130
+ "key" => String,
4131
+ "accountId" => String,
4132
+ "accountName" => String,
4133
+ "pluginId" => plugin_id,
4134
+ "service" => String,
4135
+ "name" => String,
4136
+ "region" => String | nil,
4137
+ "limit" => Numeric,
4138
+ "used" => Numeric,
4139
+ "utilization" => Numeric,
4140
+ "unit" => String | nil,
4141
+ "adjustable" => bool | nil,
4142
+ "docsUrl" => String | nil,
4143
+ "observedAt" => String,
4144
+ "severity" => "exhausted" | "critical" | "trending" | "ok",
4145
+ "trend" => quota_trend
4146
+ }
4147
+
4148
+ # Spec schema: `QuotaTrend`.
4149
+ type quota_trend = { "perDay" => Numeric | nil, "daysToExhaustion" => Numeric | nil, "points" => Integer }
4150
+
4100
4151
  # Spec schema: `ReauthenticationRequired`.
4101
4152
  type reauthentication_required = { "error" => String, "code" => "reauthentication_required" }
4102
4153
 
@@ -5437,6 +5488,7 @@ module Infrawrench
5437
5488
  | "ssh-fanout"
5438
5489
  | "metric-alerts"
5439
5490
  | "probes"
5491
+ | "quotas"
5440
5492
  | "workflows"
5441
5493
  | "deployments"
5442
5494
  | "settings"
@@ -6379,6 +6431,18 @@ module Infrawrench
6379
6431
  def update: (?body: { ?"firstName" => String, ?"lastName" => String }?, ?request_options: Hash[Symbol, untyped]?) -> profile_summary
6380
6432
  end
6381
6433
 
6434
+ class QuotasSettingsNamespace
6435
+ def initialize: (Transport) -> void
6436
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> quota_alert_settings
6437
+ def update: (?org_id: String?, ?body: quota_alert_settings_update?, ?request_options: Hash[Symbol, untyped]?) -> quota_alert_settings
6438
+ end
6439
+
6440
+ class QuotasNamespace
6441
+ attr_reader settings: QuotasSettingsNamespace
6442
+ def initialize: (Transport) -> void
6443
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> quota_list_response
6444
+ end
6445
+
6382
6446
  class ResourcesManifestNamespace
6383
6447
  def initialize: (Transport) -> void
6384
6448
  def create: (plugin_id: plugin_id, type_id: resource_type_id, body: apply_manifest_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
@@ -6678,6 +6742,7 @@ module Infrawrench
6678
6742
  attr_reader posture: PostureNamespace
6679
6743
  attr_reader probes: ProbesNamespace
6680
6744
  attr_reader profile: ProfileNamespace
6745
+ attr_reader quotas: QuotasNamespace
6681
6746
  attr_reader resources: ResourcesNamespace
6682
6747
  attr_reader rightsizing: RightsizingNamespace
6683
6748
  attr_reader saved_cost_filters: SavedCostFiltersNamespace
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.10.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infrawrench LLC
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2026-08-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.10.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.12.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.10.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.12.0).
62
62
  test_files: []