infrawrench-sdk 0.14.1 → 0.16.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: 17c4334c1e24fec52ba80bd059cf4eb90fec42beb4f3a5f28f53ab9a130e5b43
4
- data.tar.gz: 96b0e2ff56ecfed76f3e2c5f0a89a3a7ee34170f7eed0cdbb77399d0f78990a4
3
+ metadata.gz: d58235dc3defa4c040c889c7fad7c729813e4958ee0bc53768b71a777edc23ad
4
+ data.tar.gz: cd4f63aaae0b3d135b4a91271232cb4e3fb19661716a4f66ceb43fa168742d61
5
5
  SHA512:
6
- metadata.gz: bf814642e0820f40080647d6d2b5fb0c8bfa12ab3b5104318a156cd8e8449cb94e4fb53ee647d9c5ac04dd9e0322d5eacc1011a5e3eacafe951916d69a67f640
7
- data.tar.gz: ebea2197326fc5382295ea4086851485d169930e1768946c831e5bad755df921453529b80b4922b2c980c0e661fcdb09332c38b38ff41e5b50172cc4b1171e2d
6
+ metadata.gz: 2664099d47415bff331a76588643536d3c67ea2e17c7cea3c77056b21438640eeb8a3254b5c2e878b1cccbc973a7f4f1b900ddc0e57b193ef3b389f9dfa5156f
7
+ data.tar.gz: d15e571a1483b722588b9270c145d159a36bf37348563da8b28041323f304d1168218f05010b86248eae15f10accae4c801c5d77bf4da0e3f076c63f63ee556e
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.14.1`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.16.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
- 212 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 223 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.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.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.14.1)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.14.1). 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.16.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.16.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.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1323,6 +1323,216 @@ module Infrawrench
1323
1323
  end
1324
1324
  end
1325
1325
 
1326
+ # `client.custom_graphs`
1327
+ class CustomGraphsNamespace
1328
+ # @api private
1329
+ # @param transport [Transport]
1330
+ def initialize(transport)
1331
+ @transport = transport
1332
+ end
1333
+
1334
+ # Type-check custom-graph source without saving it
1335
+ #
1336
+ # _Requires permission: `dashboards:read`._
1337
+ #
1338
+ # POST /api/org/{orgId}/custom-graphs/check
1339
+ #
1340
+ # Raises on 400: Bad request
1341
+ #
1342
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1343
+ # constructed with.
1344
+ # @param body [Hash] Request body, shaped as `CustomGraphCheckRequest`.
1345
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1346
+ # @return [Hash] Parsed JSON, shaped as `CustomGraphCheckResult` — see
1347
+ # `sig/infrawrench/sdk.rbs`.
1348
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1349
+ def check(body:, org_id: nil, request_options: nil)
1350
+ @transport.request(
1351
+ http_method: "POST",
1352
+ path: "/api/org/{orgId}/custom-graphs/check",
1353
+ path_params: { "orgId" => org_id },
1354
+ body: body,
1355
+ request_options: request_options
1356
+ )
1357
+ end
1358
+
1359
+ # Create a custom graph (paid plan required)
1360
+ #
1361
+ # _Requires permission: `dashboards:write`._
1362
+ #
1363
+ # POST /api/org/{orgId}/custom-graphs
1364
+ #
1365
+ # Raises on 400: Bad request
1366
+ #
1367
+ # Raises on 402: Payment required — the organization's plan does not include
1368
+ # this
1369
+ #
1370
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1371
+ # constructed with.
1372
+ # @param body [Hash] Request body, shaped as `CustomGraphInput`.
1373
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1374
+ # @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
1375
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1376
+ def create(body:, org_id: nil, request_options: nil)
1377
+ @transport.request(
1378
+ http_method: "POST",
1379
+ path: "/api/org/{orgId}/custom-graphs",
1380
+ path_params: { "orgId" => org_id },
1381
+ body: body,
1382
+ request_options: request_options
1383
+ )
1384
+ end
1385
+
1386
+ # Delete a custom graph (and its dashboard cards)
1387
+ #
1388
+ # _Requires permission: `dashboards:write`._
1389
+ #
1390
+ # DELETE /api/org/{orgId}/custom-graphs/{id}
1391
+ #
1392
+ # Raises on 404: Not found
1393
+ #
1394
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1395
+ # constructed with.
1396
+ # @param id [String]
1397
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1398
+ # @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
1399
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1400
+ def delete(id:, org_id: nil, request_options: nil)
1401
+ @transport.request(
1402
+ http_method: "DELETE",
1403
+ path: "/api/org/{orgId}/custom-graphs/{id}",
1404
+ path_params: { "orgId" => org_id, "id" => id },
1405
+ request_options: request_options
1406
+ )
1407
+ end
1408
+
1409
+ # Get a custom graph (including source)
1410
+ #
1411
+ # _Requires permission: `dashboards:read`._
1412
+ #
1413
+ # GET /api/org/{orgId}/custom-graphs/{id}
1414
+ #
1415
+ # Raises on 404: Not found
1416
+ #
1417
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1418
+ # constructed with.
1419
+ # @param id [String]
1420
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1421
+ # @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
1422
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1423
+ def get(id:, org_id: nil, request_options: nil)
1424
+ @transport.request(
1425
+ http_method: "GET",
1426
+ path: "/api/org/{orgId}/custom-graphs/{id}",
1427
+ path_params: { "orgId" => org_id, "id" => id },
1428
+ request_options: request_options
1429
+ )
1430
+ end
1431
+
1432
+ # List custom graphs
1433
+ #
1434
+ # _Requires permission: `dashboards:read`._
1435
+ #
1436
+ # GET /api/org/{orgId}/custom-graphs
1437
+ #
1438
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1439
+ # constructed with.
1440
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1441
+ # @return [Array<Hash>] Parsed JSON, shaped as `Array<CustomGraphSummary>` — see
1442
+ # `sig/infrawrench/sdk.rbs`.
1443
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1444
+ def list(org_id: nil, request_options: nil)
1445
+ @transport.request(
1446
+ http_method: "GET",
1447
+ path: "/api/org/{orgId}/custom-graphs",
1448
+ path_params: { "orgId" => org_id },
1449
+ request_options: request_options
1450
+ )
1451
+ end
1452
+
1453
+ # Run the graph's script and return its render spec (paid plan required)
1454
+ #
1455
+ # _Requires permission: `dashboards:read`._
1456
+ #
1457
+ # POST /api/org/{orgId}/custom-graphs/{id}/render
1458
+ #
1459
+ # Raises on 400: Bad request
1460
+ #
1461
+ # Raises on 402: Payment required — the organization's plan does not include
1462
+ # this
1463
+ #
1464
+ # Raises on 404: Not found
1465
+ #
1466
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1467
+ # constructed with.
1468
+ # @param id [String]
1469
+ # @param body [Hash, nil] Request body, shaped as `CustomGraphRenderRequest`.
1470
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1471
+ # @return [Hash] Parsed JSON, shaped as `CustomGraphRenderResult` — see
1472
+ # `sig/infrawrench/sdk.rbs`.
1473
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1474
+ def render(id:, org_id: nil, body: nil, request_options: nil)
1475
+ @transport.request(
1476
+ http_method: "POST",
1477
+ path: "/api/org/{orgId}/custom-graphs/{id}/render",
1478
+ path_params: { "orgId" => org_id, "id" => id },
1479
+ body: body,
1480
+ request_options: request_options
1481
+ )
1482
+ end
1483
+
1484
+ # The ambient graph.d.ts for custom-graph source
1485
+ #
1486
+ # _Requires permission: `dashboards:read`._
1487
+ #
1488
+ # GET /api/org/{orgId}/custom-graphs/typings
1489
+ #
1490
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1491
+ # constructed with.
1492
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1493
+ # @return [String] Raw response bytes.
1494
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1495
+ def typings(org_id: nil, request_options: nil)
1496
+ @transport.request(
1497
+ http_method: "GET",
1498
+ path: "/api/org/{orgId}/custom-graphs/typings",
1499
+ path_params: { "orgId" => org_id },
1500
+ accept: :binary,
1501
+ request_options: request_options
1502
+ )
1503
+ end
1504
+
1505
+ # Update a custom graph (paid plan required)
1506
+ #
1507
+ # _Requires permission: `dashboards:write`._
1508
+ #
1509
+ # PUT /api/org/{orgId}/custom-graphs/{id}
1510
+ #
1511
+ # Raises on 400: Bad request
1512
+ #
1513
+ # Raises on 402: Payment required — the organization's plan does not include
1514
+ # this
1515
+ #
1516
+ # Raises on 404: Not found
1517
+ #
1518
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1519
+ # constructed with.
1520
+ # @param id [String]
1521
+ # @param body [Hash] Request body, shaped as `CustomGraphUpdate`.
1522
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1523
+ # @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
1524
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1525
+ def update(id:, body:, org_id: nil, request_options: nil)
1526
+ @transport.request(
1527
+ http_method: "PUT",
1528
+ path: "/api/org/{orgId}/custom-graphs/{id}",
1529
+ path_params: { "orgId" => org_id, "id" => id },
1530
+ body: body,
1531
+ request_options: request_options
1532
+ )
1533
+ end
1534
+ end
1535
+
1326
1536
  # `client.dashboards.default`
1327
1537
  class DashboardsDefaultNamespace
1328
1538
  # @api private
@@ -1895,7 +2105,11 @@ module Infrawrench
1895
2105
  # Re-runs that run's `deploy()` with the image and plan it recorded,
1896
2106
  # building nothing — the exact artifact that was known good ships again. The
1897
2107
  # Infrafile is read at the commit that run deployed, not at the branch head.
1898
- # Only a successful run that produced an image can be rolled back to.
2108
+ # Only a successful run that produced an image can be rolled back to. With
2109
+ # `deleteCreated`, resources that runs after the target created through
2110
+ # `infra.accounts` are deleted once the rollback has succeeded — undoing the
2111
+ # provisioning, not just the shipping. Deletions are best-effort and
2112
+ # reported in the result's notes.
1899
2113
  #
1900
2114
  # _Requires permission: `deployments:write`._
1901
2115
  #
@@ -1917,14 +2131,16 @@ module Infrawrench
1917
2131
  # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1918
2132
  # constructed with.
1919
2133
  # @param id [String]
2134
+ # @param body [Hash, nil] Request body, shaped as `DeployRollbackInput`.
1920
2135
  # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1921
2136
  # @return [Hash] Parsed JSON, shaped as `DeployPlanResult` — see `sig/infrawrench/sdk.rbs`.
1922
2137
  # @raise [Infrawrench::ApiError] On any non-2xx response.
1923
- def rollback(id:, org_id: nil, request_options: nil)
2138
+ def rollback(id:, org_id: nil, body: nil, request_options: nil)
1924
2139
  @transport.request(
1925
2140
  http_method: "POST",
1926
2141
  path: "/api/org/{orgId}/deployments/runs/{id}/rollback",
1927
2142
  path_params: { "orgId" => org_id, "id" => id },
2143
+ body: body,
1928
2144
  request_options: request_options
1929
2145
  )
1930
2146
  end
@@ -4962,6 +5178,8 @@ module Infrawrench
4962
5178
  attr_reader :connect
4963
5179
  # @return [CostsNamespace] `client.costs`
4964
5180
  attr_reader :costs
5181
+ # @return [CustomGraphsNamespace] `client.custom_graphs`
5182
+ attr_reader :custom_graphs
4965
5183
  # @return [DashboardsNamespace] `client.dashboards`
4966
5184
  attr_reader :dashboards
4967
5185
  # @return [DeploymentsNamespace] `client.deployments`
@@ -5016,6 +5234,7 @@ module Infrawrench
5016
5234
  @budgets = BudgetsNamespace.new(@transport)
5017
5235
  @connect = ConnectNamespace.new(@transport)
5018
5236
  @costs = CostsNamespace.new(@transport)
5237
+ @custom_graphs = CustomGraphsNamespace.new(@transport)
5019
5238
  @dashboards = DashboardsNamespace.new(@transport)
5020
5239
  @deployments = DeploymentsNamespace.new(@transport)
5021
5240
  @docker = DockerNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.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.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.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.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.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.14.1"
18
+ VERSION = "0.16.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.16.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.14.1).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.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.14.1 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.16.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.14.1).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.16.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -584,6 +584,67 @@ module Infrawrench
584
584
  ?"filenameTemplate" => String
585
585
  }
586
586
 
587
+ # Spec schema: `CustomGraphCheckRequest`.
588
+ type custom_graph_check_request = { "source" => String }
589
+
590
+ # Spec schema: `CustomGraphCheckResult`.
591
+ type custom_graph_check_result = {
592
+ "diagnostics" => Array[{
593
+ "line" => Integer,
594
+ "column" => Integer,
595
+ "code" => Integer,
596
+ "category" => String,
597
+ "message" => String
598
+ }],
599
+ "hasErrors" => bool,
600
+ "degraded" => bool
601
+ }
602
+
603
+ # Spec schema: `CustomGraphFull`.
604
+ type custom_graph_full = {
605
+ "id" => String,
606
+ "organizationId" => String,
607
+ "name" => String,
608
+ "description" => String | nil,
609
+ "source" => String,
610
+ "createdByUserId" => String | nil,
611
+ "deletedAt" => String | nil,
612
+ "createdAt" => String,
613
+ "updatedAt" => String
614
+ }
615
+
616
+ # Spec schema: `CustomGraphInput`.
617
+ type custom_graph_input = { "name" => String, ?"description" => String | nil, ?"source" => String }
618
+
619
+ # Spec schema: `CustomGraphRenderRequest`.
620
+ type custom_graph_render_request = {
621
+ ?"controls" => Hash[String, String | Numeric | bool],
622
+ ?"button" => String,
623
+ ?"trigger" => "manual" | "refresh" | "interaction"
624
+ }
625
+
626
+ # Spec schema: `CustomGraphRenderResult`.
627
+ type custom_graph_render_result = {
628
+ "ok" => bool,
629
+ "spec" => json_object & (Hash[String, untyped] | nil),
630
+ "error" => String | nil,
631
+ "logs" => Array[{ "level" => "info" | "warn" | "error", "message" => String }],
632
+ "renderedAt" => String,
633
+ "durationMs" => Integer
634
+ }
635
+
636
+ # Spec schema: `CustomGraphSummary`.
637
+ type custom_graph_summary = {
638
+ "id" => String,
639
+ "name" => String,
640
+ "description" => String | nil,
641
+ "createdAt" => String,
642
+ "updatedAt" => String
643
+ }
644
+
645
+ # Spec schema: `CustomGraphUpdate`.
646
+ type custom_graph_update = { ?"name" => String, ?"description" => String | nil, ?"source" => String }
647
+
587
648
  # Spec schema: `Dashboard`.
588
649
  type dashboard = { "id" => String, "name" => String, "isDefault" => bool }
589
650
 
@@ -641,7 +702,7 @@ module Infrawrench
641
702
  }
642
703
 
643
704
  # Spec schema: `DashboardWidgetKind`.
644
- type dashboard_widget_kind = "cost_graph" | "budget"
705
+ type dashboard_widget_kind = "cost_graph" | "budget" | "custom_graph"
645
706
 
646
707
  # Spec schema: `DashboardWithPins`.
647
708
  type dashboard_with_pins = {
@@ -662,6 +723,17 @@ module Infrawrench
662
723
  "metrics" => Array[{ "key" => String, "label" => String, "unit" => String | nil, ?"value" => untyped }]
663
724
  }
664
725
 
726
+ # Spec schema: `DeployCreatedResource`.
727
+ type deploy_created_resource = {
728
+ "pluginId" => String,
729
+ "accountId" => String,
730
+ "resourceTypeId" => String,
731
+ "resourceId" => String,
732
+ ?"externalId" => String,
733
+ "displayName" => String,
734
+ ?"sidecar" => { "pluginId" => String, "parentResourceId" => String }
735
+ }
736
+
665
737
  # Spec schema: `DeployEnvs`.
666
738
  type deploy_envs = { "envs" => Array[String], "sha" => String, "repo" => String, "branch" => String }
667
739
 
@@ -686,6 +758,8 @@ module Infrawrench
686
758
  ?"dockerfile" => String,
687
759
  ?"image" => String,
688
760
  "notes" => Array[String],
761
+ "createdResources" => Array[deploy_created_resource],
762
+ "plannedChanges" => Array[deploy_planned_change],
689
763
  "logs" => Array[deploy_run_log],
690
764
  ?"reachedStage" => deploy_stage,
691
765
  ?"error" => { "message" => String, ?"stack" => String },
@@ -693,14 +767,28 @@ module Infrawrench
693
767
  }
694
768
  }
695
769
 
770
+ # Spec schema: `DeployPlannedChange`.
771
+ type deploy_planned_change = {
772
+ "action" => "create" | "update" | "delete",
773
+ "accountId" => String,
774
+ "resourceTypeId" => String,
775
+ ?"resourceId" => String,
776
+ "displayName" => String,
777
+ ?"fields" => Hash[String, String],
778
+ ?"sidecar" => { "pluginId" => String, "parentResourceId" => String }
779
+ }
780
+
696
781
  # Spec schema: `DeployRepo`.
697
782
  type deploy_repo = { "fullName" => String, "defaultBranch" => String }
698
783
 
784
+ # Spec schema: `DeployRollbackInput`.
785
+ type deploy_rollback_input = { ?"deleteCreated" => bool }
786
+
699
787
  # Spec schema: `DeployRunLog`.
700
788
  type deploy_run_log = { "at" => Integer, "level" => "debug" | "info" | "warn" | "error", "message" => String }
701
789
 
702
790
  # Spec schema: `DeployStage`.
703
- type deploy_stage = "plan" | "dockerfile" | "build" | "deploy"
791
+ type deploy_stage = "plan" | "dockerfile" | "build" | "deploy" | "destroy"
704
792
 
705
793
  # Spec schema: `DeployStatus`.
706
794
  type deploy_status = "pending" | "running" | "success" | "failure" | "canceled"
@@ -746,6 +834,9 @@ module Infrawrench
746
834
  ?"image" => String,
747
835
  ?"stage" => deploy_stage,
748
836
  ?"notes" => Array[String],
837
+ ?"output" => untyped,
838
+ ?"plan" => untyped,
839
+ ?"createdResources" => Array[deploy_created_resource],
749
840
  ?"durationMs" => Integer,
750
841
  ?"error" => { "message" => String } | nil
751
842
  }
@@ -1424,6 +1515,7 @@ module Infrawrench
1424
1515
  | "collection"
1425
1516
  | "composer-environment"
1426
1517
  | "container"
1518
+ | "container-registry"
1427
1519
  | "custom-hostname"
1428
1520
  | "custom-voice"
1429
1521
  | "d1-database"
@@ -1495,6 +1587,7 @@ module Infrawrench
1495
1587
  | "gateway"
1496
1588
  | "gce-disk"
1497
1589
  | "gce-instance"
1590
+ | "gcp-project"
1498
1591
  | "gcp-service-account"
1499
1592
  | "gcs-bucket"
1500
1593
  | "gen-ai-agent"
@@ -1531,6 +1624,7 @@ module Infrawrench
1531
1624
  | "k8s-ingress"
1532
1625
  | "k8s-job"
1533
1626
  | "k8s-namespace"
1627
+ | "k8s-node"
1534
1628
  | "k8s-pod"
1535
1629
  | "k8s-secret"
1536
1630
  | "k8s-service"
@@ -2213,6 +2307,18 @@ module Infrawrench
2213
2307
  def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "accounts" => Array[cost_account_status] }
2214
2308
  end
2215
2309
 
2310
+ class CustomGraphsNamespace
2311
+ def initialize: (Transport) -> void
2312
+ def check: (body: custom_graph_check_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_check_result
2313
+ def create: (body: custom_graph_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
2314
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
2315
+ def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
2316
+ def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[custom_graph_summary]
2317
+ def render: (id: String, ?org_id: String?, ?body: custom_graph_render_request?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_render_result
2318
+ def typings: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
2319
+ def update: (id: String, body: custom_graph_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
2320
+ end
2321
+
2216
2322
  class DashboardsDefaultNamespace
2217
2323
  def initialize: (Transport) -> void
2218
2324
  def full: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> dashboard_with_pins
@@ -2255,7 +2361,7 @@ module Infrawrench
2255
2361
  def create: (?org_id: String?, ?body: deployment_run_input?, ?request_options: Hash[Symbol, untyped]?) -> { "id" => String }
2256
2362
  def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> deployment_run
2257
2363
  def list: (?org_id: String?, ?env: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> Array[deployment_run]
2258
- def rollback: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> deploy_plan_result
2364
+ def rollback: (id: String, ?org_id: String?, ?body: deploy_rollback_input?, ?request_options: Hash[Symbol, untyped]?) -> deploy_plan_result
2259
2365
  end
2260
2366
 
2261
2367
  class DeploymentsTriggersNamespace
@@ -2508,6 +2614,7 @@ module Infrawrench
2508
2614
  attr_reader budgets: BudgetsNamespace
2509
2615
  attr_reader connect: ConnectNamespace
2510
2616
  attr_reader costs: CostsNamespace
2617
+ attr_reader custom_graphs: CustomGraphsNamespace
2511
2618
  attr_reader dashboards: DashboardsNamespace
2512
2619
  attr_reader deployments: DeploymentsNamespace
2513
2620
  attr_reader docker: DockerNamespace
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.14.1
4
+ version: 0.16.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-29 00:00:00.000000000 Z
12
+ date: 2026-07-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.14.1). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.16.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.14.1).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.16.0).
62
62
  test_files: []