infrawrench-sdk 0.19.0 → 0.20.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: e5f5de404146a05716e4cb66312ff2725ec257dd3685655d9dfa19590cd4c22d
4
- data.tar.gz: fbd8dc2aae7a8eec84c860c2921557d29d3b8bb4d7d128e59903cc7c3f10f0b9
3
+ metadata.gz: 5b2aa57bcc2fbd17de00c520a3c60b34f37d8694384a7c608a105971a0c002d3
4
+ data.tar.gz: 7dad27d88aee603b8cc6bded0d97184e06b1d5f38c74d21e3f7ef5a8300df1fb
5
5
  SHA512:
6
- metadata.gz: 6deda93cc2ceb7b851ec2308e4be980c81e6123a17c3514a35f08e29db1f99c488381126f4a22bc7ae0a50f8bcac99e0dcac622d7391a8f7a15a82217ebc9b5d
7
- data.tar.gz: 38d443af5341762208cb8e2cd22b794214efd513fe589183a05425ae3885d544acf24b01ec87c679105ad4cb3f7d48a37bfffd5fbf86d83a5b3a73798bc0d777
6
+ metadata.gz: f7a1f587ef4f96872c9ad53cdc0d278e1d40351239c73fe157333fe9e6a5c3c8b3cf5367049e847e32993b4eda826fd11318ab1a839969b38dbaae30cd1cb985
7
+ data.tar.gz: be96a48198f36e1ecc606fbfe402d61fae7cfba652f43682863d31f97d94b3bd8241d16d1226999aa2d81ec837b310976a0fc2afe580167d74c0d4fbe859a09a
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.19.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.20.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
- 227 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 230 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.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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.19.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.19.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.20.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.20.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.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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
@@ -5228,6 +5309,8 @@ module Infrawrench
5228
5309
  attr_reader :dashboards
5229
5310
  # @return [DeploymentsNamespace] `client.deployments`
5230
5311
  attr_reader :deployments
5312
+ # @return [DigestNamespace] `client.digest`
5313
+ attr_reader :digest
5231
5314
  # @return [DockerNamespace] `client.docker`
5232
5315
  attr_reader :docker
5233
5316
  # @return [InvitationsNamespace] `client.invitations`
@@ -5283,6 +5366,7 @@ module Infrawrench
5283
5366
  @custom_graphs = CustomGraphsNamespace.new(@transport)
5284
5367
  @dashboards = DashboardsNamespace.new(@transport)
5285
5368
  @deployments = DeploymentsNamespace.new(@transport)
5369
+ @digest = DigestNamespace.new(@transport)
5286
5370
  @docker = DockerNamespace.new(@transport)
5287
5371
  @invitations = InvitationsNamespace.new(@transport)
5288
5372
  @kv = KvNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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.19.0"
18
+ VERSION = "0.20.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.20.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.19.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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.19.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.20.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.19.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.20.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 = { ?"syncIncidents" => bool, ?"budgetAlerts" => bool, ?"workflowPages" => bool }
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 }
@@ -2420,6 +2439,13 @@ module Infrawrench
2420
2439
  def repos: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[deploy_repo]
2421
2440
  end
2422
2441
 
2442
+ class DigestNamespace
2443
+ def initialize: (Transport) -> void
2444
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
2445
+ def post_org_org_id_digest_send: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_send_result
2446
+ def update: (?org_id: String?, ?body: digest_settings_update?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
2447
+ end
2448
+
2423
2449
  class DockerNamespace
2424
2450
  def initialize: (Transport) -> void
2425
2451
  def command: (body: docker_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> docker_command_response
@@ -2661,6 +2687,7 @@ module Infrawrench
2661
2687
  attr_reader custom_graphs: CustomGraphsNamespace
2662
2688
  attr_reader dashboards: DashboardsNamespace
2663
2689
  attr_reader deployments: DeploymentsNamespace
2690
+ attr_reader digest: DigestNamespace
2664
2691
  attr_reader docker: DockerNamespace
2665
2692
  attr_reader invitations: InvitationsNamespace
2666
2693
  attr_reader kv: KvNamespace
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.19.0
4
+ version: 0.20.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.19.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.20.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.19.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.20.0).
62
62
  test_files: []