infrawrench-sdk 0.6.0 → 0.8.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: dbfd4cd55b135eec7f0859bd26ffe332eaf39a69f611d5fbabea8dce03eae45b
4
- data.tar.gz: ec1daed9ffe1f064a829b4ba39093304578eab97dd5e6d56af8f36785229e599
3
+ metadata.gz: 0dc713e145aeb7c0ef3acdb574eb33040483b741ee29e30064cf71823d562aec
4
+ data.tar.gz: da72a028101a3b6a885b9bf90df7406c8e03e8d85b9b039f4b62e9e9f47a8490
5
5
  SHA512:
6
- metadata.gz: cf515858a7579228173280a28a704f9614bd20677d902830aadd8964301d1200f2cbbf20c27041d359260038e39eb2ce6d236ca3608fb7676fd5584a80473d3f
7
- data.tar.gz: dfb0a6958ecc8d82e144edb65d4870c777904d3ed8b8dd4555960e865af550be55e336fd4a83f130553556fd58f234a76dc17af09634d8f2b3e3cb19f5ab4af1
6
+ metadata.gz: aa38f2818d33d0cb11acfc41a718cd070d787ab49bfb32a61939a6e677d059fa211036cb9b73ddbdbc66d8d206a8d8873f79deb610db80aca9b5fd8bab1f98fe
7
+ data.tar.gz: 2963d7597db7af6087c2ccbb4ea5dcb200b327b1f6fae50294a0a95b5fb5e6c77589bb54aebc6e7e7905ce2048e64eb7dcd4b137ca86cc47fa9ad812a1e7be26
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.6.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.8.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
- 193 schemas, as RBS type aliases that steep and TypeProf can read.
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 —
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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.6.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.6.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 (v0.8.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.8.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 v0.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -102,7 +102,7 @@ module Infrawrench
102
102
  # @param id [String]
103
103
  # @param type_id [String]
104
104
  # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
105
- # @return [Array<Hash>] Parsed JSON, shaped as `Array<Resource>` — see
105
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<SyncedResource>` — see
106
106
  # `sig/infrawrench/sdk.rbs`.
107
107
  # @raise [Infrawrench::ApiError] On any non-2xx response.
108
108
  def create(id:, type_id:, org_id: nil, request_options: nil)
@@ -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
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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.6.0"
18
+ VERSION = "0.8.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.8.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.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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 v0.6.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.8.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.6.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.8.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 },
@@ -329,7 +339,8 @@ module Infrawrench
329
339
  "resourceTypeId" => String,
330
340
  "pluginId" => String,
331
341
  "accountId" => String,
332
- ?"status" => status_dot
342
+ ?"status" => status_dot,
343
+ ?"fields" => json_object
333
344
  }
334
345
 
335
346
  # Spec schema: `ChildTypeRef`.
@@ -337,7 +348,8 @@ module Infrawrench
337
348
  "id" => String,
338
349
  "displayName" => String,
339
350
  ?"pluralDisplayName" => String,
340
- "supportsCreate" => bool
351
+ "supportsCreate" => bool,
352
+ ?"fields" => Array[json_object]
341
353
  }
342
354
 
343
355
  # Spec schema: `ConnectEnvDeployRequest`.
@@ -543,7 +555,7 @@ module Infrawrench
543
555
  "content" => String,
544
556
  "filename" => String,
545
557
  "mimeType" => String,
546
- ?"fields" => Hash[String, String],
558
+ ?"fields" => Array[{ "label" => String, "value" => String, ?"sensitive" => bool, ?"hint" => String }],
547
559
  ?"warning" => String
548
560
  }
549
561
 
@@ -568,8 +580,8 @@ module Infrawrench
568
580
  "id" => String,
569
581
  "label" => String,
570
582
  ?"description" => String,
571
- ?"fileExtension" => String,
572
- ?"mimeType" => String
583
+ "mediaType" => "json" | "text" | "ini" | "binary-base64",
584
+ ?"filenameTemplate" => String
573
585
  }
574
586
 
575
587
  # Spec schema: `Dashboard`.
@@ -797,7 +809,7 @@ module Infrawrench
797
809
  }
798
810
 
799
811
  # Spec schema: `LogsResponse`.
800
- type logs_response = { "lines" => Array[String], ?"nextPageToken" => String, ?"truncated" => bool }
812
+ type logs_response = { "text" => String, "containers" => Array[String], "activeContainer" => String }
801
813
 
802
814
  # Spec schema: `Manifest`.
803
815
  type manifest = { "manifest" => String }
@@ -814,7 +826,7 @@ module Infrawrench
814
826
  type metric_series = {
815
827
  "label" => String,
816
828
  ?"unit" => String,
817
- "points" => Array[{ "ts" => Numeric, "value" => Numeric }]
829
+ "points" => Array[{ "timestamp" => Numeric, "value" => Numeric }]
818
830
  }
819
831
 
820
832
  # Spec schema: `MetricsRequest`.
@@ -891,9 +903,22 @@ module Infrawrench
891
903
  # Spec schema: `Organization`.
892
904
  type organization = { "id" => String, "displayName" => String }
893
905
 
906
+ # Spec schema: `OrganizationRef`.
907
+ type organization_ref = { "id" => String, "name" => String }
908
+
894
909
  # Spec schema: `OrganizationRole`.
895
910
  type organization_role = "owner" | "admin" | "member"
896
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
+
897
922
  # Spec schema: `PageClearResponse`.
898
923
  type page_clear_response = { "cleared" => bool }
899
924
 
@@ -984,7 +1009,8 @@ module Infrawrench
984
1009
  type picker_resources_request = {
985
1010
  "sources" => Array[{ "pluginId" => String, "resourceTypeId" => String, "outputKey" => String }],
986
1011
  "accountId" => String,
987
- ?"regionHint" => String
1012
+ ?"regionHint" => String,
1013
+ ?"crossAccount" => bool
988
1014
  }
989
1015
 
990
1016
  # Spec schema: `PinFull`.
@@ -1076,12 +1102,12 @@ module Infrawrench
1076
1102
 
1077
1103
  # Spec schema: `ProbeStatus`.
1078
1104
  type probe_status = {
1079
- "phase" => "ok" | "loading" | "error",
1105
+ "phase" => "ok" | "error",
1080
1106
  ?"error" => String,
1081
1107
  ?"stats" => Array[json_object],
1082
- ?"sparkline" => Array[{ "ts" => Numeric, "value" => Numeric }],
1108
+ ?"sparkline" => Array[{ "timestamp" => Numeric, "value" => Numeric }],
1083
1109
  ?"sparklineLabel" => String,
1084
- ?"resourceCounts" => Array[{ "typeId" => String, "count" => Integer }]
1110
+ ?"resourceCounts" => Array[{ "typeLabel" => String, "count" => Integer }]
1085
1111
  }
1086
1112
 
1087
1113
  # Spec schema: `Profile`.
@@ -1193,7 +1219,7 @@ module Infrawrench
1193
1219
  # Normalized status reported by a plugin's renderSidebarItem/renderDetail.
1194
1220
  #
1195
1221
  # Spec schema: `ResourceStatus`.
1196
- type resource_status = "healthy" | "warning" | "error" | "unknown" | "pending" | "stopped"
1222
+ type resource_status = "healthy" | "degraded" | "error" | "unknown" | "provisioning" | "info"
1197
1223
 
1198
1224
  # Resource type id. Note: not every plugin exposes every type — see the
1199
1225
  # plugin's `resourceTypes` for the valid (pluginId, typeId) pairs.
@@ -1592,7 +1618,13 @@ module Infrawrench
1592
1618
  }
1593
1619
 
1594
1620
  # Spec schema: `SecretVersion`.
1595
- type secret_version = { "id" => String, "state" => "ENABLED" | "DISABLED" | "DESTROYED", "createdAt" => String }
1621
+ type secret_version = {
1622
+ "id" => String,
1623
+ "state" => "enabled" | "disabled" | "destroyed",
1624
+ "createdAt" => String,
1625
+ ?"destroyedAt" => String,
1626
+ ?"isLatest" => bool
1627
+ }
1596
1628
 
1597
1629
  # Spec schema: `SecretVersionResponse`.
1598
1630
  type secret_version_response = { "version" => secret_version }
@@ -1607,7 +1639,14 @@ module Infrawrench
1607
1639
  type sftp_delete_request = sftp_list_request & { "isDir" => bool }
1608
1640
 
1609
1641
  # Spec schema: `SftpEntry`.
1610
- type sftp_entry = { "name" => String, "isDir" => bool, ?"size" => Integer, ?"modifiedAt" => String }
1642
+ type sftp_entry = {
1643
+ "key" => String,
1644
+ "name" => String,
1645
+ "size" => Numeric,
1646
+ "lastModified" => String,
1647
+ "isDirectory" => bool,
1648
+ ?"contentType" => String
1649
+ }
1611
1650
 
1612
1651
  # Spec schema: `SftpListRequest`.
1613
1652
  type sftp_list_request = {
@@ -1755,7 +1794,14 @@ module Infrawrench
1755
1794
  type storage_list_request = { "accountId" => String, "bucket" => String, "prefix" => String }
1756
1795
 
1757
1796
  # Spec schema: `StorageObject`.
1758
- type storage_object = { "key" => String, ?"size" => Integer, ?"isFolder" => bool, ?"lastModified" => String }
1797
+ type storage_object = {
1798
+ "key" => String,
1799
+ "name" => String,
1800
+ "size" => Numeric,
1801
+ "lastModified" => String,
1802
+ "isDirectory" => bool,
1803
+ ?"contentType" => String
1804
+ }
1759
1805
 
1760
1806
  # Spec schema: `StoragePathRequest`.
1761
1807
  type storage_path_request = { "accountId" => String, "bucket" => String, "key" => String }
@@ -1783,6 +1829,18 @@ module Infrawrench
1783
1829
  # Spec schema: `SyncResponse`.
1784
1830
  type sync_response = { "synced" => Integer }
1785
1831
 
1832
+ # Spec schema: `SyncedResource`.
1833
+ type synced_resource = {
1834
+ "id" => resource_id,
1835
+ "pluginId" => String,
1836
+ "resourceTypeId" => String,
1837
+ "displayName" => String,
1838
+ "externalId" => String | nil,
1839
+ "fieldsJson" => json_object,
1840
+ "outputsJson" => json_object,
1841
+ "parentResourceId" => resource_id & (String | nil)
1842
+ }
1843
+
1786
1844
  # Spec schema: `TabTarget`.
1787
1845
  type tab_target = {
1788
1846
  "kind" => "dashboard" | "account" | "resource" | "agents" | "costs" | "workflows" | "chat",
@@ -1863,7 +1921,7 @@ module Infrawrench
1863
1921
 
1864
1922
  class AccountsSyncTypeNamespace
1865
1923
  def initialize: (Transport) -> void
1866
- def create: (id: String, type_id: resource_type_id, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[resource]
1924
+ def create: (id: String, type_id: resource_type_id, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[synced_resource]
1867
1925
  end
1868
1926
 
1869
1927
  class AccountsNamespace
@@ -2081,6 +2139,8 @@ module Infrawrench
2081
2139
  attr_reader mfa: ProfileMfaNamespace
2082
2140
  attr_reader sessions: ProfileSessionsNamespace
2083
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
2084
2144
  def get: (?request_options: Hash[Symbol, untyped]?) -> profile
2085
2145
  def password_reset: (?request_options: Hash[Symbol, untyped]?) -> { "passwordResetUrl" => String, "expiresAt" => String }
2086
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.6.0
4
+ version: 0.8.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-07-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.6.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.8.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.6.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.8.0).
62
62
  test_files: []