infrawrench-sdk 1.79.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: 687a70061b19e0a2efbf1599ff0a0ab1a248b60067e63b7982c69e210eaba39a
4
- data.tar.gz: 03a24633a77f278eb0baac3bf1ef82973b73f134db3a370168ebd89dbb78a2fc
3
+ metadata.gz: 47affe2500816c8680603ba4a3475d7c759a7c3f745fa9d7c62523d542fc2b07
4
+ data.tar.gz: 930e051b9dacf6634c6a27d20174e412b040f6183e1bb3ec260f375d40de17e2
5
5
  SHA512:
6
- metadata.gz: 436adf1ea183097d066e10eb4b2e64248be1107a3130736b85f9fed7814e43f26ac41ca812198c07bf76916a2af1235dedb4648f657cfc03e67b4767f82287d2
7
- data.tar.gz: 9f5cbbca90da8e278ef4d0f0e72c4df7cf1b5244eb84803fec555738c590f7409d56e8a3625c5b4837f01d7dd09aab90b8a06785789d34919f5164b9623adb35
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.79.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
- 976 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.79.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.79.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.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."
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.79.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.79.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
  #
@@ -4908,8 +4915,8 @@ module Infrawrench
4908
4915
  # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
4909
4916
  # constructed with.
4910
4917
  # @param sections [String, nil] Comma-separated subset of sections to export. Defaults to
4911
- # all of: budgets, customGraphs, workflows, dashboards, metricAlerts, probes, costCentres,
4912
- # tagPolicy, alertSettings.
4918
+ # all of: budgets, customGraphs, workflows, dashboards, metricAlerts, probes, slos,
4919
+ # costCentres, tagPolicy, alertSettings.
4913
4920
  # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
4914
4921
  # @return [Hash] Parsed JSON, shaped as `OrgConfigDocument` — see `sig/infrawrench/sdk.rbs`.
4915
4922
  # @raise [Infrawrench::ApiError] On any non-2xx response.
@@ -16613,6 +16620,53 @@ module Infrawrench
16613
16620
  end
16614
16621
  end
16615
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
+
16616
16670
  # `client.query_monitors.get`
16617
16671
  class QueryMonitorsGetNamespace
16618
16672
  # @api private
@@ -22428,6 +22482,8 @@ module Infrawrench
22428
22482
  attr_reader :probes
22429
22483
  # @return [ProfileNamespace] `client.profile`
22430
22484
  attr_reader :profile
22485
+ # @return [ProviderOauthNamespace] `client.provider_oauth`
22486
+ attr_reader :provider_oauth
22431
22487
  # @return [QueryMonitorsNamespace] `client.query_monitors`
22432
22488
  attr_reader :query_monitors
22433
22489
  # @return [QuotasNamespace] `client.quotas`
@@ -22582,6 +22638,7 @@ module Infrawrench
22582
22638
  @price_catalog = PriceCatalogNamespace.new(@transport)
22583
22639
  @probes = ProbesNamespace.new(@transport)
22584
22640
  @profile = ProfileNamespace.new(@transport)
22641
+ @provider_oauth = ProviderOauthNamespace.new(@transport)
22585
22642
  @query_monitors = QueryMonitorsNamespace.new(@transport)
22586
22643
  @quotas = QuotasNamespace.new(@transport)
22587
22644
  @resources = ResourcesNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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,
@@ -704,6 +718,7 @@ module Infrawrench
704
718
  | "logMatchAlerts"
705
719
  | "postureAlerts"
706
720
  | "probeAlerts"
721
+ | "sloAlerts"
707
722
  | "quotaAlerts"
708
723
  | "extendedSupportAlerts"
709
724
  | "incidentAlerts"
@@ -6576,6 +6591,7 @@ module Infrawrench
6576
6591
  | "dashboards"
6577
6592
  | "metricAlerts"
6578
6593
  | "probes"
6594
+ | "slos"
6579
6595
  | "costCentres"
6580
6596
  | "tagPolicy"
6581
6597
  | "alertSettings"
@@ -7220,13 +7236,27 @@ module Infrawrench
7220
7236
  | "xai"
7221
7237
  | "xata"
7222
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
+
7223
7252
  # Spec schema: `PluginSummary`.
7224
7253
  type plugin_summary = {
7225
7254
  "id" => String,
7226
7255
  "displayName" => String,
7227
7256
  "logoSvg" => String,
7228
7257
  "credentialFields" => Array[credential_field],
7229
- "preflight" => preflight_declaration
7258
+ "preflight" => preflight_declaration,
7259
+ ?"oauth" => plugin_oauth_summary
7230
7260
  }
7231
7261
 
7232
7262
  # Spec schema: `PolicyTemplate`.
@@ -7780,6 +7810,12 @@ module Infrawrench
7780
7810
  # Spec schema: `ProviderIncidentState`.
7781
7811
  type provider_incident_state = "investigating" | "identified" | "monitoring" | "resolved"
7782
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
+
7783
7819
  # Spec schema: `PublicStatusComponent`.
7784
7820
  type public_status_component = {
7785
7821
  "id" => String,
@@ -12457,6 +12493,11 @@ module Infrawrench
12457
12493
  def update: (?body: { ?"firstName" => String, ?"lastName" => String }?, ?request_options: Hash[Symbol, untyped]?) -> profile_summary
12458
12494
  end
12459
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
+
12460
12501
  class QueryMonitorsGetNamespace
12461
12502
  def initialize: (Transport) -> void
12462
12503
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_list
@@ -12968,6 +13009,7 @@ module Infrawrench
12968
13009
  attr_reader price_catalog: PriceCatalogNamespace
12969
13010
  attr_reader probes: ProbesNamespace
12970
13011
  attr_reader profile: ProfileNamespace
13012
+ attr_reader provider_oauth: ProviderOauthNamespace
12971
13013
  attr_reader query_monitors: QueryMonitorsNamespace
12972
13014
  attr_reader quotas: QuotasNamespace
12973
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.79.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.79.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.79.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.80.0).
62
62
  test_files: []