infrawrench-sdk 1.36.0 → 1.38.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 +4 -4
- data/README.md +2 -2
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +193 -103
- data/lib/infrawrench/sdk.rb +2 -2
- data/lib/infrawrench/transport.rb +2 -2
- data/lib/infrawrench/version.rb +3 -3
- data/lib/infrawrench-sdk.rb +2 -2
- data/sig/infrawrench/sdk.rbs +91 -23
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bab1d4f43f9cae4e3f4f2eb8b99a5ddac8a84f26562880114df3869b2f6388a6
|
|
4
|
+
data.tar.gz: 273371405a43948647ad16ea742ca3dbafeb74089e97e565b4b07b446e93196f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f0d56c435c600c37461e7fcbccc7f3a8c17cb05a17f43a85c5c623d4cf49a4a2c1b8f1e7fba0c6230a203bd3b107f3a9484fb36e9870de92e11dfa7cc7269cb
|
|
7
|
+
data.tar.gz: d94511ce18b4806e465577e7150bdba5e30882c80252620e575f1116bb60b6324d52ef302fdeb0f4d0cd5b21e167f2e4c5c1f9a3a24d4941c391c25acc48e32c
|
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.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `1.38.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
|
-
|
|
44
|
+
731 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 —
|
data/infrawrench-sdk.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.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.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v1.
|
|
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."
|
|
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"
|
data/lib/infrawrench/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -11913,6 +11913,189 @@ module Infrawrench
|
|
|
11913
11913
|
end
|
|
11914
11914
|
end
|
|
11915
11915
|
|
|
11916
|
+
# `client.query_monitors.get`
|
|
11917
|
+
class QueryMonitorsGetNamespace
|
|
11918
|
+
# @api private
|
|
11919
|
+
# @param transport [Transport]
|
|
11920
|
+
def initialize(transport)
|
|
11921
|
+
@transport = transport
|
|
11922
|
+
end
|
|
11923
|
+
|
|
11924
|
+
# List query monitors
|
|
11925
|
+
#
|
|
11926
|
+
# GET /api/org/{orgId}/query-monitors
|
|
11927
|
+
#
|
|
11928
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
11929
|
+
# constructed with.
|
|
11930
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
11931
|
+
# @return [Hash] Parsed JSON, shaped as `QueryMonitorList` — see `sig/infrawrench/sdk.rbs`.
|
|
11932
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
11933
|
+
def get(org_id: nil, request_options: nil)
|
|
11934
|
+
@transport.request(
|
|
11935
|
+
http_method: "GET",
|
|
11936
|
+
path: "/api/org/{orgId}/query-monitors",
|
|
11937
|
+
path_params: { "orgId" => org_id },
|
|
11938
|
+
request_options: request_options
|
|
11939
|
+
)
|
|
11940
|
+
end
|
|
11941
|
+
|
|
11942
|
+
# Get one query monitor
|
|
11943
|
+
#
|
|
11944
|
+
# GET /api/org/{orgId}/query-monitors/{monitorId}
|
|
11945
|
+
#
|
|
11946
|
+
# Raises on 404: Not found
|
|
11947
|
+
#
|
|
11948
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
11949
|
+
# constructed with.
|
|
11950
|
+
# @param monitor_id [String]
|
|
11951
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
11952
|
+
# @return [Hash] Parsed JSON, shaped as `QueryMonitor` — see `sig/infrawrench/sdk.rbs`.
|
|
11953
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
11954
|
+
def get_org_org_id_query_monitors_monitor_id(monitor_id:, org_id: nil, request_options: nil)
|
|
11955
|
+
@transport.request(
|
|
11956
|
+
http_method: "GET",
|
|
11957
|
+
path: "/api/org/{orgId}/query-monitors/{monitorId}",
|
|
11958
|
+
path_params: { "orgId" => org_id, "monitorId" => monitor_id },
|
|
11959
|
+
request_options: request_options
|
|
11960
|
+
)
|
|
11961
|
+
end
|
|
11962
|
+
end
|
|
11963
|
+
|
|
11964
|
+
# `client.query_monitors`
|
|
11965
|
+
class QueryMonitorsNamespace
|
|
11966
|
+
# @return [QueryMonitorsGetNamespace] `client.query_monitors.get`
|
|
11967
|
+
attr_reader :get
|
|
11968
|
+
|
|
11969
|
+
# @api private
|
|
11970
|
+
# @param transport [Transport]
|
|
11971
|
+
def initialize(transport)
|
|
11972
|
+
@transport = transport
|
|
11973
|
+
@get = QueryMonitorsGetNamespace.new(@transport)
|
|
11974
|
+
end
|
|
11975
|
+
|
|
11976
|
+
# Create a query monitor
|
|
11977
|
+
#
|
|
11978
|
+
# A monitor may only run `select`, `with`, `show` or `explain`, and only a
|
|
11979
|
+
# **single** statement. That is a deliberate allowlist of leading keywords
|
|
11980
|
+
# rather than a denylist of dangerous ones: a denylist has to be right about
|
|
11981
|
+
# every dialect's spelling of every destructive verb, forever, and only has
|
|
11982
|
+
# to be wrong once. Comments are stripped before the check, so `--
|
|
11983
|
+
# harmless\nDROP TABLE x` is rejected, and `SELECT 1; DROP TABLE x` is
|
|
11984
|
+
# rejected by the single-statement rule.
|
|
11985
|
+
#
|
|
11986
|
+
# Takes `resources:execute`, like the SQL editor: saving a monitor arranges
|
|
11987
|
+
# for a query to run against a customer database on a schedule, forever,
|
|
11988
|
+
# which is a strictly larger act than running one while watching it.
|
|
11989
|
+
#
|
|
11990
|
+
# POST /api/org/{orgId}/query-monitors
|
|
11991
|
+
#
|
|
11992
|
+
# Raises on 400: Bad request
|
|
11993
|
+
#
|
|
11994
|
+
# Raises on 404: Not found
|
|
11995
|
+
#
|
|
11996
|
+
# Raises on 409: Conflict
|
|
11997
|
+
#
|
|
11998
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
11999
|
+
# constructed with.
|
|
12000
|
+
# @param body [Hash, nil] Request body, shaped as `QueryMonitorCreate`.
|
|
12001
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12002
|
+
# @return [Hash] Parsed JSON, shaped as `QueryMonitor` — see `sig/infrawrench/sdk.rbs`.
|
|
12003
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12004
|
+
def create(org_id: nil, body: nil, request_options: nil)
|
|
12005
|
+
@transport.request(
|
|
12006
|
+
http_method: "POST",
|
|
12007
|
+
path: "/api/org/{orgId}/query-monitors",
|
|
12008
|
+
path_params: { "orgId" => org_id },
|
|
12009
|
+
body: body,
|
|
12010
|
+
request_options: request_options
|
|
12011
|
+
)
|
|
12012
|
+
end
|
|
12013
|
+
|
|
12014
|
+
# Delete a query monitor
|
|
12015
|
+
#
|
|
12016
|
+
# DELETE /api/org/{orgId}/query-monitors/{monitorId}
|
|
12017
|
+
#
|
|
12018
|
+
# Raises on 404: Not found
|
|
12019
|
+
#
|
|
12020
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12021
|
+
# constructed with.
|
|
12022
|
+
# @param monitor_id [String]
|
|
12023
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12024
|
+
# @return [nil] This endpoint returns no content.
|
|
12025
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12026
|
+
def delete(monitor_id:, org_id: nil, request_options: nil)
|
|
12027
|
+
@transport.request(
|
|
12028
|
+
http_method: "DELETE",
|
|
12029
|
+
path: "/api/org/{orgId}/query-monitors/{monitorId}",
|
|
12030
|
+
path_params: { "orgId" => org_id, "monitorId" => monitor_id },
|
|
12031
|
+
accept: :empty,
|
|
12032
|
+
request_options: request_options
|
|
12033
|
+
)
|
|
12034
|
+
end
|
|
12035
|
+
|
|
12036
|
+
# Run a query once without saving it
|
|
12037
|
+
#
|
|
12038
|
+
# The editor's 'try it' button. Goes through the same read-only guard as a
|
|
12039
|
+
# scheduled run — a query that could not be saved as a monitor must not be
|
|
12040
|
+
# runnable through the monitor's own preview — and applies the threshold, so
|
|
12041
|
+
# the answer says whether it *would* be breaching rather than leaving the
|
|
12042
|
+
# reader to compare two numbers.
|
|
12043
|
+
#
|
|
12044
|
+
# POST /api/org/{orgId}/query-monitors/test
|
|
12045
|
+
#
|
|
12046
|
+
# Raises on 400: Bad request
|
|
12047
|
+
#
|
|
12048
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12049
|
+
# constructed with.
|
|
12050
|
+
# @param body [Hash, nil] Request body, shaped as `QueryMonitorCreate`.
|
|
12051
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12052
|
+
# @return [Hash] Parsed JSON, shaped as `QueryMonitorTestResult` — see
|
|
12053
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12054
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12055
|
+
def test(org_id: nil, body: nil, request_options: nil)
|
|
12056
|
+
@transport.request(
|
|
12057
|
+
http_method: "POST",
|
|
12058
|
+
path: "/api/org/{orgId}/query-monitors/test",
|
|
12059
|
+
path_params: { "orgId" => org_id },
|
|
12060
|
+
body: body,
|
|
12061
|
+
request_options: request_options
|
|
12062
|
+
)
|
|
12063
|
+
end
|
|
12064
|
+
|
|
12065
|
+
# Edit a query monitor
|
|
12066
|
+
#
|
|
12067
|
+
# Omitted fields are left alone and the result is validated after merging.
|
|
12068
|
+
# Changing the query, the mode, the operator or the threshold **re-arms**
|
|
12069
|
+
# the monitor: the stored breach streak was accumulated against a different
|
|
12070
|
+
# question, and carrying it forward would fire an alert on the first run of
|
|
12071
|
+
# a rule nobody has tested.
|
|
12072
|
+
#
|
|
12073
|
+
# PATCH /api/org/{orgId}/query-monitors/{monitorId}
|
|
12074
|
+
#
|
|
12075
|
+
# Raises on 400: Bad request
|
|
12076
|
+
#
|
|
12077
|
+
# Raises on 404: Not found
|
|
12078
|
+
#
|
|
12079
|
+
# Raises on 409: Conflict
|
|
12080
|
+
#
|
|
12081
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12082
|
+
# constructed with.
|
|
12083
|
+
# @param monitor_id [String]
|
|
12084
|
+
# @param body [Hash, nil] Request body, shaped as `QueryMonitorUpdate`.
|
|
12085
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12086
|
+
# @return [Hash] Parsed JSON, shaped as `QueryMonitor` — see `sig/infrawrench/sdk.rbs`.
|
|
12087
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12088
|
+
def update(monitor_id:, org_id: nil, body: nil, request_options: nil)
|
|
12089
|
+
@transport.request(
|
|
12090
|
+
http_method: "PATCH",
|
|
12091
|
+
path: "/api/org/{orgId}/query-monitors/{monitorId}",
|
|
12092
|
+
path_params: { "orgId" => org_id, "monitorId" => monitor_id },
|
|
12093
|
+
body: body,
|
|
12094
|
+
request_options: request_options
|
|
12095
|
+
)
|
|
12096
|
+
end
|
|
12097
|
+
end
|
|
12098
|
+
|
|
11916
12099
|
# `client.quotas.settings`
|
|
11917
12100
|
class QuotasSettingsNamespace
|
|
11918
12101
|
# @api private
|
|
@@ -15221,107 +15404,12 @@ module Infrawrench
|
|
|
15221
15404
|
end
|
|
15222
15405
|
end
|
|
15223
15406
|
|
|
15224
|
-
# `client.status_pages.custom_hostname`
|
|
15225
|
-
class StatusPagesCustomHostnameNamespace
|
|
15226
|
-
# @api private
|
|
15227
|
-
# @param transport [Transport]
|
|
15228
|
-
def initialize(transport)
|
|
15229
|
-
@transport = transport
|
|
15230
|
-
end
|
|
15231
|
-
|
|
15232
|
-
# Attach a custom domain
|
|
15233
|
-
#
|
|
15234
|
-
# Creates a Cloudflare Custom Hostname for a subdomain and returns the DNS
|
|
15235
|
-
# records the customer must add. Paid plan only. Apex domains are rejected.
|
|
15236
|
-
# At most one hostname per page.
|
|
15237
|
-
#
|
|
15238
|
-
# POST /api/org/{orgId}/status-pages/{id}/custom-hostname
|
|
15239
|
-
#
|
|
15240
|
-
# Raises on 400: Bad request
|
|
15241
|
-
#
|
|
15242
|
-
# Raises on 402: Payment required — the organization's plan does not include
|
|
15243
|
-
# this
|
|
15244
|
-
#
|
|
15245
|
-
# Raises on 404: Not found
|
|
15246
|
-
#
|
|
15247
|
-
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15248
|
-
# constructed with.
|
|
15249
|
-
# @param id [String]
|
|
15250
|
-
# @param body [Hash, nil] Request body, shaped as `StatusPageCustomHostnameAttach`.
|
|
15251
|
-
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15252
|
-
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15253
|
-
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15254
|
-
def create(id:, org_id: nil, body: nil, request_options: nil)
|
|
15255
|
-
@transport.request(
|
|
15256
|
-
http_method: "POST",
|
|
15257
|
-
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
|
|
15258
|
-
path_params: { "orgId" => org_id, "id" => id },
|
|
15259
|
-
body: body,
|
|
15260
|
-
request_options: request_options
|
|
15261
|
-
)
|
|
15262
|
-
end
|
|
15263
|
-
|
|
15264
|
-
# Detach a custom domain
|
|
15265
|
-
#
|
|
15266
|
-
# Removes the Cloudflare Custom Hostname and the edge hostname→slug mapping.
|
|
15267
|
-
# The secret slug URL is unaffected.
|
|
15268
|
-
#
|
|
15269
|
-
# DELETE /api/org/{orgId}/status-pages/{id}/custom-hostname
|
|
15270
|
-
#
|
|
15271
|
-
# Raises on 404: Not found
|
|
15272
|
-
#
|
|
15273
|
-
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15274
|
-
# constructed with.
|
|
15275
|
-
# @param id [String]
|
|
15276
|
-
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15277
|
-
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15278
|
-
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15279
|
-
def delete(id:, org_id: nil, request_options: nil)
|
|
15280
|
-
@transport.request(
|
|
15281
|
-
http_method: "DELETE",
|
|
15282
|
-
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
|
|
15283
|
-
path_params: { "orgId" => org_id, "id" => id },
|
|
15284
|
-
request_options: request_options
|
|
15285
|
-
)
|
|
15286
|
-
end
|
|
15287
|
-
|
|
15288
|
-
# Refresh custom domain status
|
|
15289
|
-
#
|
|
15290
|
-
# Re-fetches Cloudflare hostname and certificate status and updates the page
|
|
15291
|
-
# record.
|
|
15292
|
-
#
|
|
15293
|
-
# POST /api/org/{orgId}/status-pages/{id}/custom-hostname/refresh
|
|
15294
|
-
#
|
|
15295
|
-
# Raises on 400: Bad request
|
|
15296
|
-
#
|
|
15297
|
-
# Raises on 404: Not found
|
|
15298
|
-
#
|
|
15299
|
-
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15300
|
-
# constructed with.
|
|
15301
|
-
# @param id [String]
|
|
15302
|
-
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15303
|
-
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15304
|
-
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15305
|
-
def refresh(id:, org_id: nil, request_options: nil)
|
|
15306
|
-
@transport.request(
|
|
15307
|
-
http_method: "POST",
|
|
15308
|
-
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname/refresh",
|
|
15309
|
-
path_params: { "orgId" => org_id, "id" => id },
|
|
15310
|
-
request_options: request_options
|
|
15311
|
-
)
|
|
15312
|
-
end
|
|
15313
|
-
end
|
|
15314
|
-
|
|
15315
15407
|
# `client.status_pages`
|
|
15316
15408
|
class StatusPagesNamespace
|
|
15317
|
-
# @return [StatusPagesCustomHostnameNamespace] `client.status_pages.custom_hostname`
|
|
15318
|
-
attr_reader :custom_hostname
|
|
15319
|
-
|
|
15320
15409
|
# @api private
|
|
15321
15410
|
# @param transport [Transport]
|
|
15322
15411
|
def initialize(transport)
|
|
15323
15412
|
@transport = transport
|
|
15324
|
-
@custom_hostname = StatusPagesCustomHostnameNamespace.new(@transport)
|
|
15325
15413
|
end
|
|
15326
15414
|
|
|
15327
15415
|
# Create a status page
|
|
@@ -15408,8 +15496,7 @@ module Infrawrench
|
|
|
15408
15496
|
#
|
|
15409
15497
|
# Replaces the slug, revoking the current public URL immediately — the
|
|
15410
15498
|
# reroll for a link that ended up somewhere unintended. The page stays
|
|
15411
|
-
# published.
|
|
15412
|
-
# updated so the vanity URL keeps working.
|
|
15499
|
+
# published.
|
|
15413
15500
|
#
|
|
15414
15501
|
# _Requires permission: `resources:write`._
|
|
15415
15502
|
#
|
|
@@ -16032,10 +16119,10 @@ module Infrawrench
|
|
|
16032
16119
|
# no trend and no breakdown — those belong on the page you open when you do
|
|
16033
16120
|
# walk over.
|
|
16034
16121
|
#
|
|
16035
|
-
#
|
|
16036
|
-
# health — each guarded independently, because a television
|
|
16037
|
-
# because one query threw is showing nothing to a room that
|
|
16038
|
-
# it.
|
|
16122
|
+
# Four sources — declared incidents, synthetic probes, query monitors and
|
|
16123
|
+
# account sync health — each guarded independently, because a television
|
|
16124
|
+
# that goes blank because one query threw is showing nothing to a room that
|
|
16125
|
+
# was relying on it.
|
|
16039
16126
|
#
|
|
16040
16127
|
# Session-authenticated on purpose: unlike the calendar feed or a public
|
|
16041
16128
|
# status page, this carries incident titles, probe names and account names,
|
|
@@ -16661,6 +16748,8 @@ module Infrawrench
|
|
|
16661
16748
|
attr_reader :probes
|
|
16662
16749
|
# @return [ProfileNamespace] `client.profile`
|
|
16663
16750
|
attr_reader :profile
|
|
16751
|
+
# @return [QueryMonitorsNamespace] `client.query_monitors`
|
|
16752
|
+
attr_reader :query_monitors
|
|
16664
16753
|
# @return [QuotasNamespace] `client.quotas`
|
|
16665
16754
|
attr_reader :quotas
|
|
16666
16755
|
# @return [ResourcesNamespace] `client.resources`
|
|
@@ -16788,6 +16877,7 @@ module Infrawrench
|
|
|
16788
16877
|
@posture = PostureNamespace.new(@transport)
|
|
16789
16878
|
@probes = ProbesNamespace.new(@transport)
|
|
16790
16879
|
@profile = ProfileNamespace.new(@transport)
|
|
16880
|
+
@query_monitors = QueryMonitorsNamespace.new(@transport)
|
|
16791
16881
|
@quotas = QuotasNamespace.new(@transport)
|
|
16792
16882
|
@resources = ResourcesNamespace.new(@transport)
|
|
16793
16883
|
@rightsizing = RightsizingNamespace.new(@transport)
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.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.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/lib/infrawrench/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.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.
|
|
18
|
+
VERSION = "1.38.0"
|
|
19
19
|
end
|
data/lib/infrawrench-sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.38.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/sig/infrawrench/sdk.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# infrawrench-sdk v1.
|
|
1
|
+
# infrawrench-sdk v1.38.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.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.38.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -5307,6 +5307,78 @@ module Infrawrench
|
|
|
5307
5307
|
?"accountId" => String
|
|
5308
5308
|
}
|
|
5309
5309
|
|
|
5310
|
+
# Spec schema: `QueryMonitor`.
|
|
5311
|
+
type query_monitor = {
|
|
5312
|
+
"id" => String,
|
|
5313
|
+
"name" => String,
|
|
5314
|
+
"description" => String | nil,
|
|
5315
|
+
"accountId" => String,
|
|
5316
|
+
"accountName" => String | nil,
|
|
5317
|
+
"resourceId" => String | nil,
|
|
5318
|
+
"resourceTypeId" => String | nil,
|
|
5319
|
+
"resourceName" => String | nil,
|
|
5320
|
+
"sql" => String,
|
|
5321
|
+
"mode" => "scalar" | "rowCount",
|
|
5322
|
+
"operator" => "gt" | "gte" | "lt" | "lte" | "eq" | "neq",
|
|
5323
|
+
"threshold" => Numeric,
|
|
5324
|
+
"intervalMinutes" => Integer,
|
|
5325
|
+
"consecutiveBreaches" => Integer,
|
|
5326
|
+
"enabled" => bool,
|
|
5327
|
+
"state" => "ok" | "breaching" | "unknown",
|
|
5328
|
+
"lastValue" => Numeric | nil,
|
|
5329
|
+
"lastRunAt" => String | nil,
|
|
5330
|
+
"lastError" => String | nil,
|
|
5331
|
+
"breachStreak" => Integer,
|
|
5332
|
+
"lastAlertedAt" => String | nil,
|
|
5333
|
+
"createdByUserId" => String | nil,
|
|
5334
|
+
"createdAt" => String,
|
|
5335
|
+
"updatedAt" => String
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
# Spec schema: `QueryMonitorCreate`.
|
|
5339
|
+
type query_monitor_create = {
|
|
5340
|
+
"name" => String,
|
|
5341
|
+
?"description" => String | nil,
|
|
5342
|
+
"accountId" => String,
|
|
5343
|
+
?"resourceId" => String | nil,
|
|
5344
|
+
?"resourceTypeId" => String | nil,
|
|
5345
|
+
"sql" => String,
|
|
5346
|
+
"mode" => "scalar" | "rowCount",
|
|
5347
|
+
"operator" => "gt" | "gte" | "lt" | "lte" | "eq" | "neq",
|
|
5348
|
+
"threshold" => Numeric,
|
|
5349
|
+
"intervalMinutes" => Integer,
|
|
5350
|
+
?"consecutiveBreaches" => Integer,
|
|
5351
|
+
?"enabled" => bool
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
# Spec schema: `QueryMonitorList`.
|
|
5355
|
+
type query_monitor_list = { "monitors" => Array[query_monitor] }
|
|
5356
|
+
|
|
5357
|
+
# Spec schema: `QueryMonitorTestResult`.
|
|
5358
|
+
type query_monitor_test_result = {
|
|
5359
|
+
"value" => Numeric | nil,
|
|
5360
|
+
"state" => "ok" | "breaching" | "unknown",
|
|
5361
|
+
"error" => String | nil,
|
|
5362
|
+
"durationMs" => Integer,
|
|
5363
|
+
"rows" => Array[Hash[String, untyped]]
|
|
5364
|
+
}
|
|
5365
|
+
|
|
5366
|
+
# Spec schema: `QueryMonitorUpdate`.
|
|
5367
|
+
type query_monitor_update = {
|
|
5368
|
+
?"name" => String,
|
|
5369
|
+
?"description" => String | nil,
|
|
5370
|
+
?"accountId" => String,
|
|
5371
|
+
?"resourceId" => String | nil,
|
|
5372
|
+
?"resourceTypeId" => String | nil,
|
|
5373
|
+
?"sql" => String,
|
|
5374
|
+
?"mode" => "scalar" | "rowCount",
|
|
5375
|
+
?"operator" => "gt" | "gte" | "lt" | "lte" | "eq" | "neq",
|
|
5376
|
+
?"threshold" => Numeric,
|
|
5377
|
+
?"intervalMinutes" => Integer,
|
|
5378
|
+
?"consecutiveBreaches" => Integer,
|
|
5379
|
+
?"enabled" => bool
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5310
5382
|
# A recurring local-time window during which the rule holds its alerts. Held,
|
|
5311
5383
|
# not dropped — a held alert is queued and delivered when the window closes.
|
|
5312
5384
|
#
|
|
@@ -6823,10 +6895,6 @@ module Infrawrench
|
|
|
6823
6895
|
"showHistory" => bool,
|
|
6824
6896
|
"showUptime" => bool,
|
|
6825
6897
|
"supportUrl" => String | nil,
|
|
6826
|
-
"customHostname" => String | nil,
|
|
6827
|
-
"customHostnameStatus" => status_page_custom_hostname_status,
|
|
6828
|
-
"customHostnameError" => String | nil,
|
|
6829
|
-
"customHostnameVerification" => status_page_hostname_verification,
|
|
6830
6898
|
"components" => Array[status_page_component],
|
|
6831
6899
|
"createdAt" => String,
|
|
6832
6900
|
"updatedAt" => String
|
|
@@ -6858,15 +6926,6 @@ module Infrawrench
|
|
|
6858
6926
|
?"components" => Array[status_page_component_input]
|
|
6859
6927
|
}
|
|
6860
6928
|
|
|
6861
|
-
# Spec schema: `StatusPageCustomHostnameAttach`.
|
|
6862
|
-
type status_page_custom_hostname_attach = { "hostname" => String }
|
|
6863
|
-
|
|
6864
|
-
# Spec schema: `StatusPageCustomHostnameStatus`.
|
|
6865
|
-
type status_page_custom_hostname_status = "none" | "pending_dns" | "pending_ssl" | "active" | "error"
|
|
6866
|
-
|
|
6867
|
-
# Spec schema: `StatusPageHostnameVerification`.
|
|
6868
|
-
type status_page_hostname_verification = { "cnameTarget" => String, ?"txtName" => String, ?"txtValue" => String } | nil
|
|
6869
|
-
|
|
6870
6929
|
# Spec schema: `StatusPageListResponse`.
|
|
6871
6930
|
type status_page_list_response = { "pages" => Array[status_page] }
|
|
6872
6931
|
|
|
@@ -7011,6 +7070,7 @@ module Infrawrench
|
|
|
7011
7070
|
| "wallboard"
|
|
7012
7071
|
| "calendar"
|
|
7013
7072
|
| "runbooks"
|
|
7073
|
+
| "query-monitors"
|
|
7014
7074
|
| "dns"
|
|
7015
7075
|
| "iac"
|
|
7016
7076
|
| "environment-diff"
|
|
@@ -8237,6 +8297,21 @@ module Infrawrench
|
|
|
8237
8297
|
def update: (?body: { ?"firstName" => String, ?"lastName" => String }?, ?request_options: Hash[Symbol, untyped]?) -> profile_summary
|
|
8238
8298
|
end
|
|
8239
8299
|
|
|
8300
|
+
class QueryMonitorsGetNamespace
|
|
8301
|
+
def initialize: (Transport) -> void
|
|
8302
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_list
|
|
8303
|
+
def get_org_org_id_query_monitors_monitor_id: (monitor_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
|
|
8304
|
+
end
|
|
8305
|
+
|
|
8306
|
+
class QueryMonitorsNamespace
|
|
8307
|
+
attr_reader get: QueryMonitorsGetNamespace
|
|
8308
|
+
def initialize: (Transport) -> void
|
|
8309
|
+
def create: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
|
|
8310
|
+
def delete: (monitor_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
8311
|
+
def test: (?org_id: String?, ?body: query_monitor_create?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor_test_result
|
|
8312
|
+
def update: (monitor_id: String, ?org_id: String?, ?body: query_monitor_update?, ?request_options: Hash[Symbol, untyped]?) -> query_monitor
|
|
8313
|
+
end
|
|
8314
|
+
|
|
8240
8315
|
class QuotasSettingsNamespace
|
|
8241
8316
|
def initialize: (Transport) -> void
|
|
8242
8317
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> quota_alert_settings
|
|
@@ -8468,15 +8543,7 @@ module Infrawrench
|
|
|
8468
8543
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_status_incidents_response
|
|
8469
8544
|
end
|
|
8470
8545
|
|
|
8471
|
-
class StatusPagesCustomHostnameNamespace
|
|
8472
|
-
def initialize: (Transport) -> void
|
|
8473
|
-
def create: (id: String, ?org_id: String?, ?body: status_page_custom_hostname_attach?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8474
|
-
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8475
|
-
def refresh: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8476
|
-
end
|
|
8477
|
-
|
|
8478
8546
|
class StatusPagesNamespace
|
|
8479
|
-
attr_reader custom_hostname: StatusPagesCustomHostnameNamespace
|
|
8480
8547
|
def initialize: (Transport) -> void
|
|
8481
8548
|
def create: (?org_id: String?, ?body: status_page_create?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8482
8549
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
@@ -8646,6 +8713,7 @@ module Infrawrench
|
|
|
8646
8713
|
attr_reader posture: PostureNamespace
|
|
8647
8714
|
attr_reader probes: ProbesNamespace
|
|
8648
8715
|
attr_reader profile: ProfileNamespace
|
|
8716
|
+
attr_reader query_monitors: QueryMonitorsNamespace
|
|
8649
8717
|
attr_reader quotas: QuotasNamespace
|
|
8650
8718
|
attr_reader resources: ResourcesNamespace
|
|
8651
8719
|
attr_reader rightsizing: RightsizingNamespace
|
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.
|
|
4
|
+
version: 1.38.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.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v1.38.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.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v1.38.0).
|
|
62
62
|
test_files: []
|