infrawrench-sdk 1.34.0 → 1.35.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 +99 -3
- 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 +23 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21301af50899b2c30d5076532d9a6be413e675f4afb0a6a7fe02d3b95ecb5872
|
|
4
|
+
data.tar.gz: 1961c2a7ae9ad910d12006e9f3195b1d312ec2d85f842021c615437ad90806b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4cbe76a752bb89558ad82455f76d4a230108c3c66bb6c7b34ae48bfeb5584f62dc9cca931a3a8f20d7445b3803e01fc2c6d93ee0b78488edc19e26a3c91b7f0d
|
|
7
|
+
data.tar.gz: c0ba333ab61770f2750a7c87843f4b5a7792f76888456576d1d5e9e92b5f95621009c7fb11a6933d7095de610ab4b13c9254864b9e76cdd0b21f679d5dbb6cf7
|
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.35.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
|
+
724 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.35.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.35.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.35.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.35.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.35.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.35.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -15099,12 +15099,107 @@ module Infrawrench
|
|
|
15099
15099
|
end
|
|
15100
15100
|
end
|
|
15101
15101
|
|
|
15102
|
+
# `client.status_pages.custom_hostname`
|
|
15103
|
+
class StatusPagesCustomHostnameNamespace
|
|
15104
|
+
# @api private
|
|
15105
|
+
# @param transport [Transport]
|
|
15106
|
+
def initialize(transport)
|
|
15107
|
+
@transport = transport
|
|
15108
|
+
end
|
|
15109
|
+
|
|
15110
|
+
# Attach a custom domain
|
|
15111
|
+
#
|
|
15112
|
+
# Creates a Cloudflare Custom Hostname for a subdomain and returns the DNS
|
|
15113
|
+
# records the customer must add. Paid plan only. Apex domains are rejected.
|
|
15114
|
+
# At most one hostname per page.
|
|
15115
|
+
#
|
|
15116
|
+
# POST /api/org/{orgId}/status-pages/{id}/custom-hostname
|
|
15117
|
+
#
|
|
15118
|
+
# Raises on 400: Bad request
|
|
15119
|
+
#
|
|
15120
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
15121
|
+
# this
|
|
15122
|
+
#
|
|
15123
|
+
# Raises on 404: Not found
|
|
15124
|
+
#
|
|
15125
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15126
|
+
# constructed with.
|
|
15127
|
+
# @param id [String]
|
|
15128
|
+
# @param body [Hash, nil] Request body, shaped as `StatusPageCustomHostnameAttach`.
|
|
15129
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15130
|
+
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15131
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15132
|
+
def create(id:, org_id: nil, body: nil, request_options: nil)
|
|
15133
|
+
@transport.request(
|
|
15134
|
+
http_method: "POST",
|
|
15135
|
+
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
|
|
15136
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15137
|
+
body: body,
|
|
15138
|
+
request_options: request_options
|
|
15139
|
+
)
|
|
15140
|
+
end
|
|
15141
|
+
|
|
15142
|
+
# Detach a custom domain
|
|
15143
|
+
#
|
|
15144
|
+
# Removes the Cloudflare Custom Hostname and the edge hostname→slug mapping.
|
|
15145
|
+
# The secret slug URL is unaffected.
|
|
15146
|
+
#
|
|
15147
|
+
# DELETE /api/org/{orgId}/status-pages/{id}/custom-hostname
|
|
15148
|
+
#
|
|
15149
|
+
# Raises on 404: Not found
|
|
15150
|
+
#
|
|
15151
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15152
|
+
# constructed with.
|
|
15153
|
+
# @param id [String]
|
|
15154
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15155
|
+
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15156
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15157
|
+
def delete(id:, org_id: nil, request_options: nil)
|
|
15158
|
+
@transport.request(
|
|
15159
|
+
http_method: "DELETE",
|
|
15160
|
+
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname",
|
|
15161
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15162
|
+
request_options: request_options
|
|
15163
|
+
)
|
|
15164
|
+
end
|
|
15165
|
+
|
|
15166
|
+
# Refresh custom domain status
|
|
15167
|
+
#
|
|
15168
|
+
# Re-fetches Cloudflare hostname and certificate status and updates the page
|
|
15169
|
+
# record.
|
|
15170
|
+
#
|
|
15171
|
+
# POST /api/org/{orgId}/status-pages/{id}/custom-hostname/refresh
|
|
15172
|
+
#
|
|
15173
|
+
# Raises on 400: Bad request
|
|
15174
|
+
#
|
|
15175
|
+
# Raises on 404: Not found
|
|
15176
|
+
#
|
|
15177
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15178
|
+
# constructed with.
|
|
15179
|
+
# @param id [String]
|
|
15180
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15181
|
+
# @return [Hash] Parsed JSON, shaped as `StatusPage` — see `sig/infrawrench/sdk.rbs`.
|
|
15182
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15183
|
+
def refresh(id:, org_id: nil, request_options: nil)
|
|
15184
|
+
@transport.request(
|
|
15185
|
+
http_method: "POST",
|
|
15186
|
+
path: "/api/org/{orgId}/status-pages/{id}/custom-hostname/refresh",
|
|
15187
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15188
|
+
request_options: request_options
|
|
15189
|
+
)
|
|
15190
|
+
end
|
|
15191
|
+
end
|
|
15192
|
+
|
|
15102
15193
|
# `client.status_pages`
|
|
15103
15194
|
class StatusPagesNamespace
|
|
15195
|
+
# @return [StatusPagesCustomHostnameNamespace] `client.status_pages.custom_hostname`
|
|
15196
|
+
attr_reader :custom_hostname
|
|
15197
|
+
|
|
15104
15198
|
# @api private
|
|
15105
15199
|
# @param transport [Transport]
|
|
15106
15200
|
def initialize(transport)
|
|
15107
15201
|
@transport = transport
|
|
15202
|
+
@custom_hostname = StatusPagesCustomHostnameNamespace.new(@transport)
|
|
15108
15203
|
end
|
|
15109
15204
|
|
|
15110
15205
|
# Create a status page
|
|
@@ -15191,7 +15286,8 @@ module Infrawrench
|
|
|
15191
15286
|
#
|
|
15192
15287
|
# Replaces the slug, revoking the current public URL immediately — the
|
|
15193
15288
|
# reroll for a link that ended up somewhere unintended. The page stays
|
|
15194
|
-
# published.
|
|
15289
|
+
# published. If a custom hostname is attached, its hostname→slug mapping is
|
|
15290
|
+
# updated so the vanity URL keeps working.
|
|
15195
15291
|
#
|
|
15196
15292
|
# _Requires permission: `resources:write`._
|
|
15197
15293
|
#
|
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.35.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.35.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.35.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.35.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.35.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.35.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.35.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.35.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.35.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.35.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.35.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -6761,6 +6761,10 @@ module Infrawrench
|
|
|
6761
6761
|
"showHistory" => bool,
|
|
6762
6762
|
"showUptime" => bool,
|
|
6763
6763
|
"supportUrl" => String | nil,
|
|
6764
|
+
"customHostname" => String | nil,
|
|
6765
|
+
"customHostnameStatus" => status_page_custom_hostname_status,
|
|
6766
|
+
"customHostnameError" => String | nil,
|
|
6767
|
+
"customHostnameVerification" => status_page_hostname_verification,
|
|
6764
6768
|
"components" => Array[status_page_component],
|
|
6765
6769
|
"createdAt" => String,
|
|
6766
6770
|
"updatedAt" => String
|
|
@@ -6792,6 +6796,15 @@ module Infrawrench
|
|
|
6792
6796
|
?"components" => Array[status_page_component_input]
|
|
6793
6797
|
}
|
|
6794
6798
|
|
|
6799
|
+
# Spec schema: `StatusPageCustomHostnameAttach`.
|
|
6800
|
+
type status_page_custom_hostname_attach = { "hostname" => String }
|
|
6801
|
+
|
|
6802
|
+
# Spec schema: `StatusPageCustomHostnameStatus`.
|
|
6803
|
+
type status_page_custom_hostname_status = "none" | "pending_dns" | "pending_ssl" | "active" | "error"
|
|
6804
|
+
|
|
6805
|
+
# Spec schema: `StatusPageHostnameVerification`.
|
|
6806
|
+
type status_page_hostname_verification = { "cnameTarget" => String, ?"txtName" => String, ?"txtValue" => String } | nil
|
|
6807
|
+
|
|
6795
6808
|
# Spec schema: `StatusPageListResponse`.
|
|
6796
6809
|
type status_page_list_response = { "pages" => Array[status_page] }
|
|
6797
6810
|
|
|
@@ -8384,7 +8397,15 @@ module Infrawrench
|
|
|
8384
8397
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> org_status_incidents_response
|
|
8385
8398
|
end
|
|
8386
8399
|
|
|
8400
|
+
class StatusPagesCustomHostnameNamespace
|
|
8401
|
+
def initialize: (Transport) -> void
|
|
8402
|
+
def create: (id: String, ?org_id: String?, ?body: status_page_custom_hostname_attach?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8403
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8404
|
+
def refresh: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8405
|
+
end
|
|
8406
|
+
|
|
8387
8407
|
class StatusPagesNamespace
|
|
8408
|
+
attr_reader custom_hostname: StatusPagesCustomHostnameNamespace
|
|
8388
8409
|
def initialize: (Transport) -> void
|
|
8389
8410
|
def create: (?org_id: String?, ?body: status_page_create?, ?request_options: Hash[Symbol, untyped]?) -> status_page
|
|
8390
8411
|
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.
|
|
4
|
+
version: 1.35.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-08-
|
|
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.35.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.35.0).
|
|
62
62
|
test_files: []
|