infrawrench-sdk 1.38.0 → 1.39.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: bab1d4f43f9cae4e3f4f2eb8b99a5ddac8a84f26562880114df3869b2f6388a6
4
- data.tar.gz: 273371405a43948647ad16ea742ca3dbafeb74089e97e565b4b07b446e93196f
3
+ metadata.gz: 32f16731c7848bf7f4fe40aec4b4895ace480ff6a2165b1d9ef26e6a15aafade
4
+ data.tar.gz: c8289369bc7c2beda3200c99a445bbce84302398c7fcf5ce52f0d0e1d45e3d5d
5
5
  SHA512:
6
- metadata.gz: 1f0d56c435c600c37461e7fcbccc7f3a8c17cb05a17f43a85c5c623d4cf49a4a2c1b8f1e7fba0c6230a203bd3b107f3a9484fb36e9870de92e11dfa7cc7269cb
7
- data.tar.gz: d94511ce18b4806e465577e7150bdba5e30882c80252620e575f1116bb60b6324d52ef302fdeb0f4d0cd5b21e167f2e4c5c1f9a3a24d4941c391c25acc48e32c
6
+ metadata.gz: 33e6769fb9c3fbc6135960e3646b88423e34632e94dc14ef76e68fe326ecf04f0e1af977f253fa490b2c9d7c0d6346193049f7dbf1d1d2339df2ab2c451c94bc
7
+ data.tar.gz: 39531ae2ed2d6d2e020a0c2d7cad0dba92f0daa652cf36e3840b14f8f92cc33e89b4b043699660d931db27df4711fd96629eaec2454a0ff40a0153f9e4f613ad
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.38.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.39.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
- 731 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 734 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.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.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.38.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.38.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.39.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.39.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.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -12033,6 +12033,34 @@ module Infrawrench
12033
12033
  )
12034
12034
  end
12035
12035
 
12036
+ # List what a monitor can run against
12037
+ #
12038
+ # The editor's target picker: each account with a SQL driver of its own,
12039
+ # plus the SQL-capable resources inside it — a database that is a *resource*
12040
+ # (a ClickHouse service, a D1 or Turso database, a Databricks SQL warehouse,
12041
+ # a BigQuery dataset) rather than the account's own connection. Accounts
12042
+ # with neither are omitted; a monitor pointed at one could only ever fail.
12043
+ # Pass a resource's `id` (and optionally its `resourceTypeId` — the server
12044
+ # fills it from the synced resource either way) when creating a monitor to
12045
+ # scope the query to that resource.
12046
+ #
12047
+ # GET /api/org/{orgId}/query-monitors/targets
12048
+ #
12049
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
12050
+ # constructed with.
12051
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
12052
+ # @return [Hash] Parsed JSON, shaped as `QueryMonitorTargets` — see
12053
+ # `sig/infrawrench/sdk.rbs`.
12054
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
12055
+ def targets(org_id: nil, request_options: nil)
12056
+ @transport.request(
12057
+ http_method: "GET",
12058
+ path: "/api/org/{orgId}/query-monitors/targets",
12059
+ path_params: { "orgId" => org_id },
12060
+ request_options: request_options
12061
+ )
12062
+ end
12063
+
12036
12064
  # Run a query once without saving it
12037
12065
  #
12038
12066
  # The editor's 'try it' button. Goes through the same read-only guard as a
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.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.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.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.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.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.38.0"
18
+ VERSION = "1.39.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.39.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.38.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.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.38.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.39.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.38.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.39.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -5354,6 +5354,20 @@ module Infrawrench
5354
5354
  # Spec schema: `QueryMonitorList`.
5355
5355
  type query_monitor_list = { "monitors" => Array[query_monitor] }
5356
5356
 
5357
+ # Spec schema: `QueryMonitorTargetAccount`.
5358
+ type query_monitor_target_account = {
5359
+ "id" => String,
5360
+ "name" => String,
5361
+ "accountSql" => bool,
5362
+ "resources" => Array[query_monitor_target_resource]
5363
+ }
5364
+
5365
+ # Spec schema: `QueryMonitorTargetResource`.
5366
+ type query_monitor_target_resource = { "id" => String, "name" => String, "resourceTypeId" => String, "typeName" => String }
5367
+
5368
+ # Spec schema: `QueryMonitorTargets`.
5369
+ type query_monitor_targets = { "accounts" => Array[query_monitor_target_account] }
5370
+
5357
5371
  # Spec schema: `QueryMonitorTestResult`.
5358
5372
  type query_monitor_test_result = {
5359
5373
  "value" => Numeric | nil,
@@ -8308,6 +8322,7 @@ module Infrawrench
8308
8322
  def initialize: (Transport) -> void
8309
8323
  def create: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8310
8324
  def delete: (monitor_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
8325
+ def targets: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_targets
8311
8326
  def test: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_test_result
8312
8327
  def update: (monitor_id: String, ?org_id: String?, ?body: query_monitor_update?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8313
8328
  end
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.38.0
4
+ version: 1.39.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-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.38.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.39.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.38.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.39.0).
62
62
  test_files: []