infrawrench-sdk 1.2.0 → 1.4.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 +54 -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 +33 -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: b63365c213989769f63f4328278a244f01d86ddaa0ec60468dc8e95d6b2d4419
|
|
4
|
+
data.tar.gz: cd04d79bbb90625d16c27e37337457ed757c086ad780dd0a05f1574bb0c51c8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 911b4d07994b4c998a50cd311aef93bd1e774caf04a211f4a6b925a0d5a9529b7bb26f9901207f4d4342b891b70d5aee258835a11262920260702c82776382c9
|
|
7
|
+
data.tar.gz: 113d5c57c12b039d50454d7d9891ab9d2f5a2cffcac578bb8303fd696d38c052d1f8bbfb17ffc0a73077f1168a5c009622b86a38daaf74285e25a20ab897d7ec
|
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.4.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
|
+
437 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.4.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.4.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.4.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.4.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.4.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.4.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -572,6 +572,29 @@ module Infrawrench
|
|
|
572
572
|
)
|
|
573
573
|
end
|
|
574
574
|
|
|
575
|
+
# Generate Terraform HCL for the account's stored inventory
|
|
576
|
+
#
|
|
577
|
+
# _Requires permission: `resources:read`._
|
|
578
|
+
#
|
|
579
|
+
# GET /api/org/{orgId}/accounts/{id}/export-terraform
|
|
580
|
+
#
|
|
581
|
+
# Raises on 404: Not found
|
|
582
|
+
#
|
|
583
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
584
|
+
# constructed with.
|
|
585
|
+
# @param id [String]
|
|
586
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
587
|
+
# @return [Hash] Parsed JSON, shaped as `TerraformExport` — see `sig/infrawrench/sdk.rbs`.
|
|
588
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
589
|
+
def export_terraform(id:, org_id: nil, request_options: nil)
|
|
590
|
+
@transport.request(
|
|
591
|
+
http_method: "GET",
|
|
592
|
+
path: "/api/org/{orgId}/accounts/{id}/export-terraform",
|
|
593
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
594
|
+
request_options: request_options
|
|
595
|
+
)
|
|
596
|
+
end
|
|
597
|
+
|
|
575
598
|
# List accounts in this organization
|
|
576
599
|
#
|
|
577
600
|
# _Requires permission: `accounts:read`._
|
|
@@ -6812,6 +6835,35 @@ module Infrawrench
|
|
|
6812
6835
|
)
|
|
6813
6836
|
end
|
|
6814
6837
|
|
|
6838
|
+
# Generate Terraform HCL for a resource (and its direct children) from
|
|
6839
|
+
# stored state
|
|
6840
|
+
#
|
|
6841
|
+
# _Requires permission: `resources:read`._
|
|
6842
|
+
#
|
|
6843
|
+
# POST /api/org/{orgId}/resources/{pluginId}/{typeId}/export-terraform
|
|
6844
|
+
#
|
|
6845
|
+
# Raises on 400: Bad request
|
|
6846
|
+
#
|
|
6847
|
+
# Raises on 404: Not found
|
|
6848
|
+
#
|
|
6849
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6850
|
+
# constructed with.
|
|
6851
|
+
# @param plugin_id [String]
|
|
6852
|
+
# @param type_id [String]
|
|
6853
|
+
# @param body [Hash] Request body, shaped as `ExportTerraformRequest`.
|
|
6854
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6855
|
+
# @return [Hash] Parsed JSON, shaped as `TerraformExport` — see `sig/infrawrench/sdk.rbs`.
|
|
6856
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6857
|
+
def export_terraform(plugin_id:, type_id:, body:, org_id: nil, request_options: nil)
|
|
6858
|
+
@transport.request(
|
|
6859
|
+
http_method: "POST",
|
|
6860
|
+
path: "/api/org/{orgId}/resources/{pluginId}/{typeId}/export-terraform",
|
|
6861
|
+
path_params: { "orgId" => org_id, "pluginId" => plugin_id, "typeId" => type_id },
|
|
6862
|
+
body: body,
|
|
6863
|
+
request_options: request_options
|
|
6864
|
+
)
|
|
6865
|
+
end
|
|
6866
|
+
|
|
6815
6867
|
# Execute an in-form field action (e.g. generate an IAM role)
|
|
6816
6868
|
#
|
|
6817
6869
|
# Calls the plugin's `executeFieldAction`. Returns `{ value }` to assign to
|
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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1566,6 +1566,9 @@ module Infrawrench
|
|
|
1566
1566
|
?"parentResourceId" => resource_id
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
+
# Spec schema: `ExportTerraformRequest`.
|
|
1570
|
+
type export_terraform_request = { "resourceId" => resource_id, "accountId" => String }
|
|
1571
|
+
|
|
1569
1572
|
# Spec schema: `FieldActionRequest`.
|
|
1570
1573
|
type field_action_request = {
|
|
1571
1574
|
"accountId" => String,
|
|
@@ -2575,6 +2578,7 @@ module Infrawrench
|
|
|
2575
2578
|
| "ssh"
|
|
2576
2579
|
| "together"
|
|
2577
2580
|
| "turso"
|
|
2581
|
+
| "uploadthing"
|
|
2578
2582
|
| "vercel"
|
|
2579
2583
|
| "workos"
|
|
2580
2584
|
| "xai"
|
|
@@ -2901,6 +2905,7 @@ module Infrawrench
|
|
|
2901
2905
|
"canEdit" => bool,
|
|
2902
2906
|
"editableFields" => Array[editable_field],
|
|
2903
2907
|
"credentialFormats" => Array[credential_format],
|
|
2908
|
+
"supportsTerraformExport" => bool,
|
|
2904
2909
|
"hasManifestEditor" => bool,
|
|
2905
2910
|
"hasSecretVersions" => bool,
|
|
2906
2911
|
"resourceDisplayName" => String,
|
|
@@ -3384,6 +3389,8 @@ module Infrawrench
|
|
|
3384
3389
|
| "turso-organization-member"
|
|
3385
3390
|
| "upload-preset"
|
|
3386
3391
|
| "user"
|
|
3392
|
+
| "ut-app"
|
|
3393
|
+
| "ut-file"
|
|
3387
3394
|
| "vector-store"
|
|
3388
3395
|
| "vectorize-index"
|
|
3389
3396
|
| "vercel-deployment"
|
|
@@ -3423,6 +3430,8 @@ module Infrawrench
|
|
|
3423
3430
|
}],
|
|
3424
3431
|
?"isSshHost" => bool,
|
|
3425
3432
|
?"sshTunnelAttachSource" => bool,
|
|
3433
|
+
?"showInSidebar" => bool,
|
|
3434
|
+
?"accountRoot" => bool,
|
|
3426
3435
|
?"schedulable" => bool
|
|
3427
3436
|
}
|
|
3428
3437
|
|
|
@@ -4086,6 +4095,26 @@ module Infrawrench
|
|
|
4086
4095
|
?"allowedValues" => Array[String]
|
|
4087
4096
|
}
|
|
4088
4097
|
|
|
4098
|
+
# Spec schema: `TerraformExport`.
|
|
4099
|
+
type terraform_export = {
|
|
4100
|
+
"hcl" => String,
|
|
4101
|
+
"exported" => Array[{
|
|
4102
|
+
"id" => resource_id,
|
|
4103
|
+
"displayName" => String,
|
|
4104
|
+
"pluginId" => String,
|
|
4105
|
+
"resourceTypeId" => String,
|
|
4106
|
+
"address" => String,
|
|
4107
|
+
?"importId" => String
|
|
4108
|
+
}],
|
|
4109
|
+
"unsupported" => Array[{
|
|
4110
|
+
"id" => resource_id,
|
|
4111
|
+
"displayName" => String,
|
|
4112
|
+
"pluginId" => String,
|
|
4113
|
+
"resourceTypeId" => String,
|
|
4114
|
+
"reason" => String
|
|
4115
|
+
}]
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4089
4118
|
# Spec schema: `TotpEnrollment`.
|
|
4090
4119
|
type totp_enrollment = {
|
|
4091
4120
|
"factorId" => String,
|
|
@@ -4244,6 +4273,7 @@ module Infrawrench
|
|
|
4244
4273
|
def create: (body: (create_account_request & { ?"pluginId" => plugin_id }), ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_account_response
|
|
4245
4274
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
4246
4275
|
def detail: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> account_detail
|
|
4276
|
+
def export_terraform: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> terraform_export
|
|
4247
4277
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[account]
|
|
4248
4278
|
def resources: (id: String, ?org_id: String?, ?top_level_only: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> Array[resource]
|
|
4249
4279
|
def sync: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> sync_response
|
|
@@ -4734,6 +4764,7 @@ module Infrawrench
|
|
|
4734
4764
|
def describe: (plugin_id: plugin_id, type_id: resource_type_id, body: describe_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> describe_response
|
|
4735
4765
|
def detail: (plugin_id: plugin_id, type_id: resource_type_id, resource_id: resource_id, ?org_id: String?, ?account_id: String?, ?parent_resource_id: resource_id?, ?include_peer_panes: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> resource_detail
|
|
4736
4766
|
def export_credential: (plugin_id: plugin_id, type_id: resource_type_id, body: export_credential_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> credential_export
|
|
4767
|
+
def export_terraform: (plugin_id: plugin_id, type_id: resource_type_id, body: export_terraform_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> terraform_export
|
|
4737
4768
|
def field_action: (body: field_action_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> field_action_response
|
|
4738
4769
|
def import_yaml: (plugin_id: plugin_id, body: import_yaml_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> json_object
|
|
4739
4770
|
def invoke_action: (body: invoke_action_request, ?org_id: String?, ?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: 1.
|
|
4
|
+
version: 1.4.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-10 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.4.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.4.0).
|
|
62
62
|
test_files: []
|