infrawrench-sdk 0.7.0 → 0.9.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 +53 -2
- 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 +27 -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: e10ce193ff3205eb7bd40f56bbfc50117de404d0e9b0b7ac468e23102a7d2c51
|
|
4
|
+
data.tar.gz: 052675c89ff80b187dfdb937d4f6cd3c9c8bb8aa7e605ea049be23a5d0f8c303
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 647661bd1c84a45340f453779e6c905504b6a890e383819164876237696a827d00c6de216bcc65519356f22201b6496d0fb05ba816f0e8982af508e402e9ca76
|
|
7
|
+
data.tar.gz: 73b6ac8055e0bcab7f5304d2c37bc43f8c4798e6742a1697dfcbd3470c3fccf06dcdb928125465275256401070d84f8d20a0d9ed78a07cca886cbdd18ac3eb8b
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# infrawrench-sdk
|
|
2
2
|
|
|
3
|
-
Generated Ruby client for the Infrawrench API (API version `0.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `0.9.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
|
+
199 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 v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.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 (v0.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v0.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v0.9.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.9.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -2462,6 +2462,57 @@ module Infrawrench
|
|
|
2462
2462
|
@sessions = ProfileSessionsNamespace.new(@transport)
|
|
2463
2463
|
end
|
|
2464
2464
|
|
|
2465
|
+
# Delete the signed-in user's account
|
|
2466
|
+
#
|
|
2467
|
+
# Irreversible. Organizations where the caller is the only member are
|
|
2468
|
+
# deleted and their subscriptions cancelled; other memberships are simply
|
|
2469
|
+
# removed. Refuses with `transfer_ownership_required` while the caller is
|
|
2470
|
+
# the only owner of an organization other people belong to.
|
|
2471
|
+
#
|
|
2472
|
+
# DELETE /api/profile
|
|
2473
|
+
#
|
|
2474
|
+
# Raises on 401: Unauthenticated
|
|
2475
|
+
#
|
|
2476
|
+
# Raises on 403: Recent sign-in required. Send the user through sign-in
|
|
2477
|
+
# again and retry; the request itself was well-formed.
|
|
2478
|
+
#
|
|
2479
|
+
# Raises on 409: The caller still solely owns a shared organization; nothing
|
|
2480
|
+
# was deleted.
|
|
2481
|
+
#
|
|
2482
|
+
# Raises on 502: A subscription could not be cancelled; nothing was deleted.
|
|
2483
|
+
#
|
|
2484
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2485
|
+
# @return [Hash] Parsed JSON, shaped as `AccountDeleted` — see `sig/infrawrench/sdk.rbs`.
|
|
2486
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2487
|
+
def delete(request_options: nil)
|
|
2488
|
+
@transport.request(
|
|
2489
|
+
http_method: "DELETE",
|
|
2490
|
+
path: "/api/profile",
|
|
2491
|
+
request_options: request_options
|
|
2492
|
+
)
|
|
2493
|
+
end
|
|
2494
|
+
|
|
2495
|
+
# What deleting this account would do
|
|
2496
|
+
#
|
|
2497
|
+
# Read-only. Lets a confirmation screen name the organizations that go with
|
|
2498
|
+
# the account, and the ones that must be handed over first.
|
|
2499
|
+
#
|
|
2500
|
+
# GET /api/profile/deletion-preview
|
|
2501
|
+
#
|
|
2502
|
+
# Raises on 401: Unauthenticated
|
|
2503
|
+
#
|
|
2504
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2505
|
+
# @return [Hash] Parsed JSON, shaped as `AccountDeletionPreview` — see
|
|
2506
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
2507
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2508
|
+
def deletion_preview(request_options: nil)
|
|
2509
|
+
@transport.request(
|
|
2510
|
+
http_method: "GET",
|
|
2511
|
+
path: "/api/profile/deletion-preview",
|
|
2512
|
+
request_options: request_options
|
|
2513
|
+
)
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2465
2516
|
# The signed-in user's account profile
|
|
2466
2517
|
#
|
|
2467
2518
|
# User-scoped, not organization-scoped: one WorkOS identity is shared across
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.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 = "0.
|
|
18
|
+
VERSION = "0.9.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.9.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.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 v0.
|
|
1
|
+
# infrawrench-sdk v0.9.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 0.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.9.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -100,6 +100,16 @@ module Infrawrench
|
|
|
100
100
|
"createdAt" => String
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
# Spec schema: `AccountDeleted`.
|
|
104
|
+
type account_deleted = { "ok" => bool, "organizationsDeleted" => Integer }
|
|
105
|
+
|
|
106
|
+
# Spec schema: `AccountDeletionPreview`.
|
|
107
|
+
type account_deletion_preview = {
|
|
108
|
+
"organizationsToDelete" => Array[organization_ref],
|
|
109
|
+
"organizationsToLeave" => Array[organization_ref],
|
|
110
|
+
"blockers" => Array[ownership_blocker]
|
|
111
|
+
}
|
|
112
|
+
|
|
103
113
|
# Spec schema: `AccountDetail`.
|
|
104
114
|
type account_detail = {
|
|
105
115
|
"account" => { "id" => String, "pluginId" => String, "displayName" => String },
|
|
@@ -893,9 +903,22 @@ module Infrawrench
|
|
|
893
903
|
# Spec schema: `Organization`.
|
|
894
904
|
type organization = { "id" => String, "displayName" => String }
|
|
895
905
|
|
|
906
|
+
# Spec schema: `OrganizationRef`.
|
|
907
|
+
type organization_ref = { "id" => String, "name" => String }
|
|
908
|
+
|
|
896
909
|
# Spec schema: `OrganizationRole`.
|
|
897
910
|
type organization_role = "owner" | "admin" | "member"
|
|
898
911
|
|
|
912
|
+
# Spec schema: `OwnershipBlocker`.
|
|
913
|
+
type ownership_blocker = { "id" => String, "name" => String, "memberCount" => Integer }
|
|
914
|
+
|
|
915
|
+
# Spec schema: `OwnershipTransferRequired`.
|
|
916
|
+
type ownership_transfer_required = {
|
|
917
|
+
"error" => String,
|
|
918
|
+
"code" => "transfer_ownership_required",
|
|
919
|
+
"organizations" => Array[ownership_blocker]
|
|
920
|
+
}
|
|
921
|
+
|
|
899
922
|
# Spec schema: `PageClearResponse`.
|
|
900
923
|
type page_clear_response = { "cleared" => bool }
|
|
901
924
|
|
|
@@ -2116,6 +2139,8 @@ module Infrawrench
|
|
|
2116
2139
|
attr_reader mfa: ProfileMfaNamespace
|
|
2117
2140
|
attr_reader sessions: ProfileSessionsNamespace
|
|
2118
2141
|
def initialize: (Transport) -> void
|
|
2142
|
+
def delete: (?request_options: Hash[Symbol, untyped]?) -> account_deleted
|
|
2143
|
+
def deletion_preview: (?request_options: Hash[Symbol, untyped]?) -> account_deletion_preview
|
|
2119
2144
|
def get: (?request_options: Hash[Symbol, untyped]?) -> profile
|
|
2120
2145
|
def password_reset: (?request_options: Hash[Symbol, untyped]?) -> { "passwordResetUrl" => String, "expiresAt" => String }
|
|
2121
2146
|
def send_verification_email: (?request_options: Hash[Symbol, untyped]?) -> ok
|
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: 0.
|
|
4
|
+
version: 0.9.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-07-
|
|
12
|
+
date: 2026-07-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v0.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v0.9.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 (v0.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v0.9.0).
|
|
62
62
|
test_files: []
|