infrawrench-sdk 1.37.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: 0f11289beb11fa6b4a5c0e9c7c4f8f9e419991a78ff4133eae4b42577ccfa327
4
- data.tar.gz: f71bf753dbbab92d81a6d2404e0c6cd6610782dd2a70fc6f282c911870dd1809
3
+ metadata.gz: 32f16731c7848bf7f4fe40aec4b4895ace480ff6a2165b1d9ef26e6a15aafade
4
+ data.tar.gz: c8289369bc7c2beda3200c99a445bbce84302398c7fcf5ce52f0d0e1d45e3d5d
5
5
  SHA512:
6
- metadata.gz: 3052007764473ba1d6bd04a1dea4691d692a80ee30d44b9d9885436d07f1e18b5dad89e5dd419bef80e6b345fdbf6fda82cc970d431fb9473c3ea1ea94fa8f9e
7
- data.tar.gz: 6db99b1494f0d66e8b0e3c1dc3bda095d05f77cff10a3ebffa1cdba3c752c50950f6c73357a661d697e8b84f7bfcace74612f8ba4caf494f80fa52199528c745
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.37.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
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.37.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.37.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.37.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.37.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.37.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.37.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
@@ -15404,107 +15432,12 @@ module Infrawrench
15404
15432
  end
15405
15433
  end
15406
15434
 
15407
- # `client.status_pages.custom_hostname`
15408
- class StatusPagesCustomHostnameNamespace
15409
- # @api private
15410
- # @param transport [Transport]
15411
- def initialize(transport)
15412
- @transport = transport
15413
- end
15414
-
15415
- # Attach a custom domain
15416
- #
15417
- # Creates a Cloudflare Custom Hostname for a subdomain and returns the DNS
15418
- # records the customer must add. Paid plan only. Apex domains are rejected.
15419
- # At most one hostname per page.
15420
- #
15421
- # POST /api/org/{orgId}/status-pages/{id}/custom-hostname
15422
- #
15423
- # Raises on 400: Bad request
15424
- #
15425
- # Raises on 402: Payment required — the organization's plan does not include
15426
- # this
15427
- #
15428
- # Raises on 404: Not found
15429
- #
15430
- # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15431
- # constructed with.
15432
- # @param id [String]
15433
- # @param body [Hash, nil] Request body, shaped as `StatusPageCustomHostnameAttach`.
15434
- # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15435
- # @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
15436
- # @raise [Infrawrench::ApiError] On any non-2xx response.
15437
- def create(id:, org_id: nil, body: nil, request_options: nil)
15438
- @transport.request(
15439
- http_method: "POST",
15440
- path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
15441
- path_params: { "orgId" => org_id, "id" => id },
15442
- body: body,
15443
- request_options: request_options
15444
- )
15445
- end
15446
-
15447
- # Detach a custom domain
15448
- #
15449
- # Removes the Cloudflare Custom Hostname and the edge hostname→slug mapping.
15450
- # The secret slug URL is unaffected.
15451
- #
15452
- # DELETE /api/org/{orgId}/status-pages/{id}/custom-hostname
15453
- #
15454
- # Raises on 404: Not found
15455
- #
15456
- # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15457
- # constructed with.
15458
- # @param id [String]
15459
- # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15460
- # @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
15461
- # @raise [Infrawrench::ApiError] On any non-2xx response.
15462
- def delete(id:, org_id: nil, request_options: nil)
15463
- @transport.request(
15464
- http_method: "DELETE",
15465
- path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
15466
- path_params: { "orgId" => org_id, "id" => id },
15467
- request_options: request_options
15468
- )
15469
- end
15470
-
15471
- # Refresh custom domain status
15472
- #
15473
- # Re-fetches Cloudflare hostname and certificate status and updates the page
15474
- # record.
15475
- #
15476
- # POST /api/org/{orgId}/status-pages/{id}/custom-hostname/refresh
15477
- #
15478
- # Raises on 400: Bad request
15479
- #
15480
- # Raises on 404: Not found
15481
- #
15482
- # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
15483
- # constructed with.
15484
- # @param id [String]
15485
- # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
15486
- # @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
15487
- # @raise [Infrawrench::ApiError] On any non-2xx response.
15488
- def refresh(id:, org_id: nil, request_options: nil)
15489
- @transport.request(
15490
- http_method: "POST",
15491
- path: "/api/org/{orgId}/status-pages/{id}/custom-hostname/refresh",
15492
- path_params: { "orgId" => org_id, "id" => id },
15493
- request_options: request_options
15494
- )
15495
- end
15496
- end
15497
-
15498
15435
  # `client.status_pages`
15499
15436
  class StatusPagesNamespace
15500
- # @return [StatusPagesCustomHostnameNamespace] `client.status_pages.custom_hostname`
15501
- attr_reader :custom_hostname
15502
-
15503
15437
  # @api private
15504
15438
  # @param transport [Transport]
15505
15439
  def initialize(transport)
15506
15440
  @transport = transport
15507
- @custom_hostname = StatusPagesCustomHostnameNamespace.new(@transport)
15508
15441
  end
15509
15442
 
15510
15443
  # Create a status page
@@ -15591,8 +15524,7 @@ module Infrawrench
15591
15524
  #
15592
15525
  # Replaces the slug, revoking the current public URL immediately — the
15593
15526
  # reroll for a link that ended up somewhere unintended. The page stays
15594
- # published. If a custom hostname is attached, its hostname→slug mapping is
15595
- # updated so the vanity URL keeps working.
15527
+ # published.
15596
15528
  #
15597
15529
  # _Requires permission: `resources:write`._
15598
15530
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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,
@@ -6895,10 +6909,6 @@ module Infrawrench
6895
6909
  "showHistory" => bool,
6896
6910
  "showUptime" => bool,
6897
6911
  "supportUrl" => String | nil,
6898
- "customHostname" => String | nil,
6899
- "customHostnameStatus" => status_page_custom_hostname_status,
6900
- "customHostnameError" => String | nil,
6901
- "customHostnameVerification" => status_page_hostname_verification,
6902
6912
  "components" => Array[status_page_component],
6903
6913
  "createdAt" => String,
6904
6914
  "updatedAt" => String
@@ -6930,15 +6940,6 @@ module Infrawrench
6930
6940
  ?"components" => Array[status_page_component_input]
6931
6941
  }
6932
6942
 
6933
- # Spec schema: `StatusPageCustomHostnameAttach`.
6934
- type status_page_custom_hostname_attach = { "hostname" => String }
6935
-
6936
- # Spec schema: `StatusPageCustomHostnameStatus`.
6937
- type status_page_custom_hostname_status = "none" | "pending_dns" | "pending_ssl" | "active" | "error"
6938
-
6939
- # Spec schema: `StatusPageHostnameVerification`.
6940
- type status_page_hostname_verification = { "cnameTarget" => String, ?"txtName" => String, ?"txtValue" => String } | nil
6941
-
6942
6943
  # Spec schema: `StatusPageListResponse`.
6943
6944
  type status_page_list_response = { "pages" => Array[status_page] }
6944
6945
 
@@ -8321,6 +8322,7 @@ module Infrawrench
8321
8322
  def initialize: (Transport) -> void
8322
8323
  def create: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8323
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
8324
8326
  def test: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_test_result
8325
8327
  def update: (monitor_id: String, ?org_id: String?, ?body: query_monitor_update?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
8326
8328
  end
@@ -8556,15 +8558,7 @@ module Infrawrench
8556
8558
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_status_incidents_response
8557
8559
  end
8558
8560
 
8559
- class StatusPagesCustomHostnameNamespace
8560
- def initialize: (Transport) -> void
8561
- def create: (id: String, ?org_id: String?, ?body: status_page_custom_hostname_attach?, ?request_options: Hash[Symbol, untyped]?) -> status_page
8562
- def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
8563
- def refresh: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
8564
- end
8565
-
8566
8561
  class StatusPagesNamespace
8567
- attr_reader custom_hostname: StatusPagesCustomHostnameNamespace
8568
8562
  def initialize: (Transport) -> void
8569
8563
  def create: (?org_id: String?, ?body: status_page_create?, ?request_options: Hash[Symbol, untyped]?) -> status_page
8570
8564
  def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
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.37.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.37.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.37.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.39.0).
62
62
  test_files: []