infrawrench-sdk 0.19.0 → 0.21.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 +183 -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 +61 -8
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb80de89d191177fb33592a005ee0797a350546085193711921f9d6256f323c1
|
|
4
|
+
data.tar.gz: f30aecb0d29c23f341a860fba9e46cb6c67b58a860e88df1e029a05837a95e55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22ada180851878d88c1f711bbf68359279f2d5819399cb4b19e784a73b96b325a6e26cdf502265edaf4acd2e412c154c724dcdd838eaf177d2135dc53abc14bb
|
|
7
|
+
data.tar.gz: b10a4a2db6c35b6cd423d6bddc5fedfa451cbf12a9f3ce7ceaaf5b53d446e485d6a38cac1649c2127adf302142817ae8307e05b5423370974039b4a2916e39d1
|
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.21.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
|
+
232 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.21.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.21.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.21.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.21.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.21.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.21.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -2382,6 +2382,87 @@ module Infrawrench
|
|
|
2382
2382
|
end
|
|
2383
2383
|
end
|
|
2384
2384
|
|
|
2385
|
+
# `client.digest`
|
|
2386
|
+
class DigestNamespace
|
|
2387
|
+
# @api private
|
|
2388
|
+
# @param transport [Transport]
|
|
2389
|
+
def initialize(transport)
|
|
2390
|
+
@transport = transport
|
|
2391
|
+
end
|
|
2392
|
+
|
|
2393
|
+
# Get the organization's weekly digest settings
|
|
2394
|
+
#
|
|
2395
|
+
# The weekly digest is a Monday-morning summary of last week's spend (with
|
|
2396
|
+
# week-over-week movers), sync incidents, and resource churn, delivered to
|
|
2397
|
+
# the Slack channels and Teams webhooks opted into the weeklyDigest trigger.
|
|
2398
|
+
#
|
|
2399
|
+
# GET /api/org/{orgId}/digest
|
|
2400
|
+
#
|
|
2401
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2402
|
+
# constructed with.
|
|
2403
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2404
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSettings` — see `sig/infrawrench/sdk.rbs`.
|
|
2405
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2406
|
+
def get(org_id: nil, request_options: nil)
|
|
2407
|
+
@transport.request(
|
|
2408
|
+
http_method: "GET",
|
|
2409
|
+
path: "/api/org/{orgId}/digest",
|
|
2410
|
+
path_params: { "orgId" => org_id },
|
|
2411
|
+
request_options: request_options
|
|
2412
|
+
)
|
|
2413
|
+
end
|
|
2414
|
+
|
|
2415
|
+
# Compose and send last week's digest now
|
|
2416
|
+
#
|
|
2417
|
+
# Ignores the schedule and the enabled flag — composes the digest for the
|
|
2418
|
+
# last complete week and posts it to every opted-in channel. Fails when no
|
|
2419
|
+
# Slack channel or Teams webhook has the weeklyDigest trigger on.
|
|
2420
|
+
#
|
|
2421
|
+
# POST /api/org/{orgId}/digest/send
|
|
2422
|
+
#
|
|
2423
|
+
# Raises on 400: Bad request
|
|
2424
|
+
#
|
|
2425
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2426
|
+
# constructed with.
|
|
2427
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2428
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSendResult` — see `sig/infrawrench/sdk.rbs`.
|
|
2429
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2430
|
+
def post_org_org_id_digest_send(org_id: nil, request_options: nil)
|
|
2431
|
+
@transport.request(
|
|
2432
|
+
http_method: "POST",
|
|
2433
|
+
path: "/api/org/{orgId}/digest/send",
|
|
2434
|
+
path_params: { "orgId" => org_id },
|
|
2435
|
+
request_options: request_options
|
|
2436
|
+
)
|
|
2437
|
+
end
|
|
2438
|
+
|
|
2439
|
+
# Enable or disable the weekly digest
|
|
2440
|
+
#
|
|
2441
|
+
# Enabling schedules the first digest for next Monday morning (07:00 UTC)
|
|
2442
|
+
# rather than sending immediately — use POST /digest/send for an immediate
|
|
2443
|
+
# one.
|
|
2444
|
+
#
|
|
2445
|
+
# PUT /api/org/{orgId}/digest
|
|
2446
|
+
#
|
|
2447
|
+
# Raises on 400: Bad request
|
|
2448
|
+
#
|
|
2449
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2450
|
+
# constructed with.
|
|
2451
|
+
# @param body [Hash, nil] Request body, shaped as `DigestSettingsUpdate`.
|
|
2452
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2453
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSettings` — see `sig/infrawrench/sdk.rbs`.
|
|
2454
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2455
|
+
def update(org_id: nil, body: nil, request_options: nil)
|
|
2456
|
+
@transport.request(
|
|
2457
|
+
http_method: "PUT",
|
|
2458
|
+
path: "/api/org/{orgId}/digest",
|
|
2459
|
+
path_params: { "orgId" => org_id },
|
|
2460
|
+
body: body,
|
|
2461
|
+
request_options: request_options
|
|
2462
|
+
)
|
|
2463
|
+
end
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2385
2466
|
# `client.docker`
|
|
2386
2467
|
class DockerNamespace
|
|
2387
2468
|
# @api private
|
|
@@ -5186,6 +5267,100 @@ module Infrawrench
|
|
|
5186
5267
|
end
|
|
5187
5268
|
end
|
|
5188
5269
|
|
|
5270
|
+
# `client.workflow_approvals`
|
|
5271
|
+
class WorkflowApprovalsNamespace
|
|
5272
|
+
# @api private
|
|
5273
|
+
# @param transport [Transport]
|
|
5274
|
+
def initialize(transport)
|
|
5275
|
+
@transport = transport
|
|
5276
|
+
end
|
|
5277
|
+
|
|
5278
|
+
# Approve a pending workflow approval request
|
|
5279
|
+
#
|
|
5280
|
+
# The suspended run resumes within a few seconds of the decision landing.
|
|
5281
|
+
#
|
|
5282
|
+
# _Requires permission: `dashboards:write`._
|
|
5283
|
+
#
|
|
5284
|
+
# POST /api/org/{orgId}/workflow-approvals/{id}/approve
|
|
5285
|
+
#
|
|
5286
|
+
# Raises on 404: Not found
|
|
5287
|
+
#
|
|
5288
|
+
# Raises on 409: Conflict
|
|
5289
|
+
#
|
|
5290
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
5291
|
+
# constructed with.
|
|
5292
|
+
# @param id [String]
|
|
5293
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
5294
|
+
# @return [Hash] Parsed JSON, shaped as `WorkflowApproval` — see `sig/infrawrench/sdk.rbs`.
|
|
5295
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
5296
|
+
def approve(id:, org_id: nil, request_options: nil)
|
|
5297
|
+
@transport.request(
|
|
5298
|
+
http_method: "POST",
|
|
5299
|
+
path: "/api/org/{orgId}/workflow-approvals/{id}/approve",
|
|
5300
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
5301
|
+
request_options: request_options
|
|
5302
|
+
)
|
|
5303
|
+
end
|
|
5304
|
+
|
|
5305
|
+
# Deny a pending workflow approval request
|
|
5306
|
+
#
|
|
5307
|
+
# Denial fails the waiting `infra.waitForApproval(...)` call in the run.
|
|
5308
|
+
#
|
|
5309
|
+
# _Requires permission: `dashboards:write`._
|
|
5310
|
+
#
|
|
5311
|
+
# POST /api/org/{orgId}/workflow-approvals/{id}/deny
|
|
5312
|
+
#
|
|
5313
|
+
# Raises on 404: Not found
|
|
5314
|
+
#
|
|
5315
|
+
# Raises on 409: Conflict
|
|
5316
|
+
#
|
|
5317
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
5318
|
+
# constructed with.
|
|
5319
|
+
# @param id [String]
|
|
5320
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
5321
|
+
# @return [Hash] Parsed JSON, shaped as `WorkflowApproval` — see `sig/infrawrench/sdk.rbs`.
|
|
5322
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
5323
|
+
def deny(id:, org_id: nil, request_options: nil)
|
|
5324
|
+
@transport.request(
|
|
5325
|
+
http_method: "POST",
|
|
5326
|
+
path: "/api/org/{orgId}/workflow-approvals/{id}/deny",
|
|
5327
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
5328
|
+
request_options: request_options
|
|
5329
|
+
)
|
|
5330
|
+
end
|
|
5331
|
+
|
|
5332
|
+
# List workflow approval requests
|
|
5333
|
+
#
|
|
5334
|
+
# Approval requests raised by `infra.waitForApproval(...)` inside workflow
|
|
5335
|
+
# runs, newest first. Filter with `status=pending` to build an approvals
|
|
5336
|
+
# inbox.
|
|
5337
|
+
#
|
|
5338
|
+
# _Requires permission: `dashboards:read`._
|
|
5339
|
+
#
|
|
5340
|
+
# GET /api/org/{orgId}/workflow-approvals
|
|
5341
|
+
#
|
|
5342
|
+
# Raises on 400: Bad request
|
|
5343
|
+
#
|
|
5344
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
5345
|
+
# constructed with.
|
|
5346
|
+
# @param status [String, nil]
|
|
5347
|
+
# @param workflow_id [String, nil]
|
|
5348
|
+
# @param run_id [String, nil]
|
|
5349
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
5350
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<WorkflowApproval>` — see
|
|
5351
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
5352
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
5353
|
+
def list(org_id: nil, status: nil, workflow_id: nil, run_id: nil, request_options: nil)
|
|
5354
|
+
@transport.request(
|
|
5355
|
+
http_method: "GET",
|
|
5356
|
+
path: "/api/org/{orgId}/workflow-approvals",
|
|
5357
|
+
path_params: { "orgId" => org_id },
|
|
5358
|
+
query: { "status" => status, "workflowId" => workflow_id, "runId" => run_id },
|
|
5359
|
+
request_options: request_options
|
|
5360
|
+
)
|
|
5361
|
+
end
|
|
5362
|
+
end
|
|
5363
|
+
|
|
5189
5364
|
# A client for the Infrawrench API.
|
|
5190
5365
|
#
|
|
5191
5366
|
# client = Infrawrench::APIV1Client.new(
|
|
@@ -5228,6 +5403,8 @@ module Infrawrench
|
|
|
5228
5403
|
attr_reader :dashboards
|
|
5229
5404
|
# @return [DeploymentsNamespace] `client.deployments`
|
|
5230
5405
|
attr_reader :deployments
|
|
5406
|
+
# @return [DigestNamespace] `client.digest`
|
|
5407
|
+
attr_reader :digest
|
|
5231
5408
|
# @return [DockerNamespace] `client.docker`
|
|
5232
5409
|
attr_reader :docker
|
|
5233
5410
|
# @return [InvitationsNamespace] `client.invitations`
|
|
@@ -5262,6 +5439,8 @@ module Infrawrench
|
|
|
5262
5439
|
attr_reader :storage
|
|
5263
5440
|
# @return [TeamNamespace] `client.team`
|
|
5264
5441
|
attr_reader :team
|
|
5442
|
+
# @return [WorkflowApprovalsNamespace] `client.workflow_approvals`
|
|
5443
|
+
attr_reader :workflow_approvals
|
|
5265
5444
|
|
|
5266
5445
|
# @param options [Hash] Client configuration — `:base_url`, `:api_key`,
|
|
5267
5446
|
# `:org_id`, `:headers`, `:timeout`, `:open_timeout` and `:http_handler`.
|
|
@@ -5283,6 +5462,7 @@ module Infrawrench
|
|
|
5283
5462
|
@custom_graphs = CustomGraphsNamespace.new(@transport)
|
|
5284
5463
|
@dashboards = DashboardsNamespace.new(@transport)
|
|
5285
5464
|
@deployments = DeploymentsNamespace.new(@transport)
|
|
5465
|
+
@digest = DigestNamespace.new(@transport)
|
|
5286
5466
|
@docker = DockerNamespace.new(@transport)
|
|
5287
5467
|
@invitations = InvitationsNamespace.new(@transport)
|
|
5288
5468
|
@kv = KvNamespace.new(@transport)
|
|
@@ -5300,6 +5480,7 @@ module Infrawrench
|
|
|
5300
5480
|
@ssh_tunnels = SshTunnelsNamespace.new(@transport)
|
|
5301
5481
|
@storage = StorageNamespace.new(@transport)
|
|
5302
5482
|
@team = TeamNamespace.new(@transport)
|
|
5483
|
+
@workflow_approvals = WorkflowApprovalsNamespace.new(@transport)
|
|
5303
5484
|
end
|
|
5304
5485
|
end
|
|
5305
5486
|
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.21.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.21.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.21.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.21.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.21.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.21.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.21.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.21.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.21.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.21.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.21.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -848,6 +848,15 @@ module Infrawrench
|
|
|
848
848
|
# Spec schema: `DescribeResponse`.
|
|
849
849
|
type describe_response = { "text" => String }
|
|
850
850
|
|
|
851
|
+
# Spec schema: `DigestSendResult`.
|
|
852
|
+
type digest_send_result = { "ok" => bool, "attempted" => Integer, "succeeded" => Integer }
|
|
853
|
+
|
|
854
|
+
# Spec schema: `DigestSettings`.
|
|
855
|
+
type digest_settings = { "enabled" => bool, "lastSentWeekStart" => String | nil, "lastSentAt" => String | nil }
|
|
856
|
+
|
|
857
|
+
# Spec schema: `DigestSettingsUpdate`.
|
|
858
|
+
type digest_settings_update = { "enabled" => bool }
|
|
859
|
+
|
|
851
860
|
# Spec schema: `DockerCommandRequest`.
|
|
852
861
|
type docker_command_request = { "accountId" => String, "op" => String, ?"params" => json_object }
|
|
853
862
|
|
|
@@ -1031,7 +1040,8 @@ module Infrawrench
|
|
|
1031
1040
|
"urlHint" => String,
|
|
1032
1041
|
"syncIncidents" => bool,
|
|
1033
1042
|
"budgetAlerts" => bool,
|
|
1034
|
-
"workflowPages" => bool
|
|
1043
|
+
"workflowPages" => bool,
|
|
1044
|
+
"weeklyDigest" => bool
|
|
1035
1045
|
}
|
|
1036
1046
|
|
|
1037
1047
|
# Spec schema: `MsTeamsWebhookCreate`.
|
|
@@ -1040,7 +1050,8 @@ module Infrawrench
|
|
|
1040
1050
|
"url" => String,
|
|
1041
1051
|
?"syncIncidents" => bool,
|
|
1042
1052
|
?"budgetAlerts" => bool,
|
|
1043
|
-
?"workflowPages" => bool
|
|
1053
|
+
?"workflowPages" => bool,
|
|
1054
|
+
?"weeklyDigest" => bool
|
|
1044
1055
|
}
|
|
1045
1056
|
|
|
1046
1057
|
# Spec schema: `MsTeamsWebhookUpdate`.
|
|
@@ -1048,7 +1059,8 @@ module Infrawrench
|
|
|
1048
1059
|
?"label" => String,
|
|
1049
1060
|
?"syncIncidents" => bool,
|
|
1050
1061
|
?"budgetAlerts" => bool,
|
|
1051
|
-
?"workflowPages" => bool
|
|
1062
|
+
?"workflowPages" => bool,
|
|
1063
|
+
?"weeklyDigest" => bool
|
|
1052
1064
|
}
|
|
1053
1065
|
|
|
1054
1066
|
# Spec schema: `NoSqlCommandRequest`.
|
|
@@ -1997,7 +2009,8 @@ module Infrawrench
|
|
|
1997
2009
|
"isPrivate" => bool,
|
|
1998
2010
|
"syncIncidents" => bool,
|
|
1999
2011
|
"budgetAlerts" => bool,
|
|
2000
|
-
"workflowPages" => bool
|
|
2012
|
+
"workflowPages" => bool,
|
|
2013
|
+
"weeklyDigest" => bool
|
|
2001
2014
|
}
|
|
2002
2015
|
|
|
2003
2016
|
# Spec schema: `SlackChannelCreate`.
|
|
@@ -2008,11 +2021,17 @@ module Infrawrench
|
|
|
2008
2021
|
?"isPrivate" => bool,
|
|
2009
2022
|
?"syncIncidents" => bool,
|
|
2010
2023
|
?"budgetAlerts" => bool,
|
|
2011
|
-
?"workflowPages" => bool
|
|
2024
|
+
?"workflowPages" => bool,
|
|
2025
|
+
?"weeklyDigest" => bool
|
|
2012
2026
|
}
|
|
2013
2027
|
|
|
2014
2028
|
# Spec schema: `SlackChannelUpdate`.
|
|
2015
|
-
type slack_channel_update = {
|
|
2029
|
+
type slack_channel_update = {
|
|
2030
|
+
?"syncIncidents" => bool,
|
|
2031
|
+
?"budgetAlerts" => bool,
|
|
2032
|
+
?"workflowPages" => bool,
|
|
2033
|
+
?"weeklyDigest" => bool
|
|
2034
|
+
}
|
|
2016
2035
|
|
|
2017
2036
|
# Spec schema: `SlackInstallation`.
|
|
2018
2037
|
type slack_installation = { "id" => String, "teamId" => String, "teamName" => String | nil }
|
|
@@ -2227,6 +2246,24 @@ module Infrawrench
|
|
|
2227
2246
|
# Spec schema: `ValidateTabsResponse`.
|
|
2228
2247
|
type validate_tabs_response = { "validTabIds" => Array[String] }
|
|
2229
2248
|
|
|
2249
|
+
# Spec schema: `WorkflowApproval`.
|
|
2250
|
+
type workflow_approval = {
|
|
2251
|
+
"id" => String,
|
|
2252
|
+
"workflowId" => String,
|
|
2253
|
+
"workflowName" => String | nil,
|
|
2254
|
+
"runId" => String,
|
|
2255
|
+
"title" => String,
|
|
2256
|
+
"message" => String,
|
|
2257
|
+
"status" => workflow_approval_status,
|
|
2258
|
+
"expiresAt" => String,
|
|
2259
|
+
"decidedAt" => String | nil,
|
|
2260
|
+
"decidedByName" => String | nil,
|
|
2261
|
+
"createdAt" => String
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
# Spec schema: `WorkflowApprovalStatus`.
|
|
2265
|
+
type workflow_approval_status = "pending" | "approved" | "denied" | "expired"
|
|
2266
|
+
|
|
2230
2267
|
# Spec schema: `WorkflowPinRequest`.
|
|
2231
2268
|
type workflow_pin_request = { "dashboardId" => String, "workflowId" => String }
|
|
2232
2269
|
|
|
@@ -2420,6 +2457,13 @@ module Infrawrench
|
|
|
2420
2457
|
def repos: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[deploy_repo]
|
|
2421
2458
|
end
|
|
2422
2459
|
|
|
2460
|
+
class DigestNamespace
|
|
2461
|
+
def initialize: (Transport) -> void
|
|
2462
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
|
|
2463
|
+
def post_org_org_id_digest_send: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_send_result
|
|
2464
|
+
def update: (?org_id: String?, ?body: digest_settings_update?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
|
|
2465
|
+
end
|
|
2466
|
+
|
|
2423
2467
|
class DockerNamespace
|
|
2424
2468
|
def initialize: (Transport) -> void
|
|
2425
2469
|
def command: (body: docker_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> docker_command_response
|
|
@@ -2644,6 +2688,13 @@ module Infrawrench
|
|
|
2644
2688
|
def permissions: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> permission_catalog
|
|
2645
2689
|
end
|
|
2646
2690
|
|
|
2691
|
+
class WorkflowApprovalsNamespace
|
|
2692
|
+
def initialize: (Transport) -> void
|
|
2693
|
+
def approve: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_approval
|
|
2694
|
+
def deny: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_approval
|
|
2695
|
+
def list: (?org_id: String?, ?status: workflow_approval_status?, ?workflow_id: String?, ?run_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow_approval]
|
|
2696
|
+
end
|
|
2697
|
+
|
|
2647
2698
|
class APIV1Client
|
|
2648
2699
|
attr_reader transport: Transport
|
|
2649
2700
|
attr_reader accounts: AccountsNamespace
|
|
@@ -2661,6 +2712,7 @@ module Infrawrench
|
|
|
2661
2712
|
attr_reader custom_graphs: CustomGraphsNamespace
|
|
2662
2713
|
attr_reader dashboards: DashboardsNamespace
|
|
2663
2714
|
attr_reader deployments: DeploymentsNamespace
|
|
2715
|
+
attr_reader digest: DigestNamespace
|
|
2664
2716
|
attr_reader docker: DockerNamespace
|
|
2665
2717
|
attr_reader invitations: InvitationsNamespace
|
|
2666
2718
|
attr_reader kv: KvNamespace
|
|
@@ -2678,6 +2730,7 @@ module Infrawrench
|
|
|
2678
2730
|
attr_reader ssh_tunnels: SshTunnelsNamespace
|
|
2679
2731
|
attr_reader storage: StorageNamespace
|
|
2680
2732
|
attr_reader team: TeamNamespace
|
|
2733
|
+
attr_reader workflow_approvals: WorkflowApprovalsNamespace
|
|
2681
2734
|
def initialize: (**untyped) -> void
|
|
2682
2735
|
end
|
|
2683
2736
|
end
|
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.21.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-31 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.21.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.21.0).
|
|
62
62
|
test_files: []
|