infrawrench-sdk 0.27.0 → 0.28.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: bfbc2c017e0fefb9e4b1daa4f2a8ac2794717bff63f25e59ade00168e87e434b
4
- data.tar.gz: 77ce3e6830114def58a200abd701bb2f5361c74fd0ed6253d89554ee4d3dc97f
3
+ metadata.gz: edc3a7dbc71d1e8a2dd3b550bc9f6a12c756099844446736c876b038517db51b
4
+ data.tar.gz: 9ba35c615b9ffe37cf2fbf7959253f40c4ca8755f74a1766706499800c59e3ce
5
5
  SHA512:
6
- metadata.gz: 788ed975c54ffa008b118feab4d6284be292e267cfdfefe4f0ff27f2cf3675fea67e85fa28f31c72c7db83ca766f077e4434a3ff89ce03561df8eec44e753645
7
- data.tar.gz: 864e4ace06f40692888a6fb892339ea4619966d56d98b8a2440c749d37f03a159f9cb344c6ab67ff3d96a61d76138ba32ea6ad751d63e676e6c4fac99ac4087d
6
+ metadata.gz: ce60e4429633e19bf757cd0fabf572b7a8412362affe398b409a4293fe7aca6cbf20ee17744367f8c1810c4ad8f0f947583ed31d79ce13355407e2374e6c5ed3
7
+ data.tar.gz: 5c50424f9363ad95e86aa8e3197aa69411d90aa1ffa9df66bac0be5f8e9378befb0f5ab55151d88c4d9bff8651d9260b218b4ef1f0a5b405b13b1b6a8af17f45
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.27.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.28.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
- 254 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 257 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.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.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.27.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.27.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.28.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.28.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.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -5926,6 +5926,114 @@ module Infrawrench
5926
5926
  end
5927
5927
  end
5928
5928
 
5929
+ # `client.workflows.schedule`
5930
+ class WorkflowsScheduleNamespace
5931
+ # @api private
5932
+ # @param transport [Transport]
5933
+ def initialize(transport)
5934
+ @transport = transport
5935
+ end
5936
+
5937
+ # Remove a workflow's cron schedule
5938
+ #
5939
+ # Reverts the workflow's trigger to manual and clears the pending fire time.
5940
+ # A no-op when the trigger is not cron.
5941
+ #
5942
+ # _Requires permission: `dashboards:write`._
5943
+ #
5944
+ # DELETE /api/org/{orgId}/workflows/{id}/schedule
5945
+ #
5946
+ # Raises on 404: Not found
5947
+ #
5948
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5949
+ # constructed with.
5950
+ # @param id [String] Workflow id
5951
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5952
+ # @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
5953
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5954
+ def delete(id:, org_id: nil, request_options: nil)
5955
+ @transport.request(
5956
+ http_method: "DELETE",
5957
+ path: "/api/org/{orgId}/workflows/{id}/schedule",
5958
+ path_params: { "orgId" => org_id, "id" => id },
5959
+ request_options: request_options
5960
+ )
5961
+ end
5962
+
5963
+ # Get a workflow's cron schedule
5964
+ #
5965
+ # The schedule view of the workflow's trigger, with the next few computed
5966
+ # fire times. `schedule` is null when the workflow is triggered some other
5967
+ # way (manual, git, budget).
5968
+ #
5969
+ # _Requires permission: `dashboards:read`._
5970
+ #
5971
+ # GET /api/org/{orgId}/workflows/{id}/schedule
5972
+ #
5973
+ # Raises on 404: Not found
5974
+ #
5975
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5976
+ # constructed with.
5977
+ # @param id [String] Workflow id
5978
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5979
+ # @return [Hash] Parsed JSON, shaped as `WorkflowScheduleResponse` — see
5980
+ # `sig/infrawrench/sdk.rbs`.
5981
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5982
+ def get(id:, org_id: nil, request_options: nil)
5983
+ @transport.request(
5984
+ http_method: "GET",
5985
+ path: "/api/org/{orgId}/workflows/{id}/schedule",
5986
+ path_params: { "orgId" => org_id, "id" => id },
5987
+ request_options: request_options
5988
+ )
5989
+ end
5990
+
5991
+ # Create or replace a workflow's cron schedule
5992
+ #
5993
+ # Sets the workflow's trigger to cron with the given expression and
5994
+ # timezone, validating both, and computes the next fire time. The workflow
5995
+ # fires at the schedule's next occurrence — never immediately on save.
5996
+ #
5997
+ # _Requires permission: `dashboards:write`._
5998
+ #
5999
+ # PUT /api/org/{orgId}/workflows/{id}/schedule
6000
+ #
6001
+ # Raises on 400: Bad request
6002
+ #
6003
+ # Raises on 404: Not found
6004
+ #
6005
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6006
+ # constructed with.
6007
+ # @param id [String] Workflow id
6008
+ # @param body [Hash] Request body, shaped as `WorkflowScheduleInput`.
6009
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6010
+ # @return [Hash] Parsed JSON, shaped as `WorkflowScheduleResponse` — see
6011
+ # `sig/infrawrench/sdk.rbs`.
6012
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6013
+ def update(id:, body:, org_id: nil, request_options: nil)
6014
+ @transport.request(
6015
+ http_method: "PUT",
6016
+ path: "/api/org/{orgId}/workflows/{id}/schedule",
6017
+ path_params: { "orgId" => org_id, "id" => id },
6018
+ body: body,
6019
+ request_options: request_options
6020
+ )
6021
+ end
6022
+ end
6023
+
6024
+ # `client.workflows`
6025
+ class WorkflowsNamespace
6026
+ # @return [WorkflowsScheduleNamespace] `client.workflows.schedule`
6027
+ attr_reader :schedule
6028
+
6029
+ # @api private
6030
+ # @param transport [Transport]
6031
+ def initialize(transport)
6032
+ @transport = transport
6033
+ @schedule = WorkflowsScheduleNamespace.new(@transport)
6034
+ end
6035
+ end
6036
+
5929
6037
  # A client for the Infrawrench API.
5930
6038
  #
5931
6039
  # client = Infrawrench::APIV1Client.new(
@@ -6012,6 +6120,8 @@ module Infrawrench
6012
6120
  attr_reader :team
6013
6121
  # @return [WorkflowApprovalsNamespace] `client.workflow_approvals`
6014
6122
  attr_reader :workflow_approvals
6123
+ # @return [WorkflowsNamespace] `client.workflows`
6124
+ attr_reader :workflows
6015
6125
 
6016
6126
  # @param options [Hash] Client configuration — `:base_url`, `:api_key`,
6017
6127
  # `:org_id`, `:headers`, `:timeout`, `:open_timeout` and `:http_handler`.
@@ -6055,6 +6165,7 @@ module Infrawrench
6055
6165
  @storage = StorageNamespace.new(@transport)
6056
6166
  @team = TeamNamespace.new(@transport)
6057
6167
  @workflow_approvals = WorkflowApprovalsNamespace.new(@transport)
6168
+ @workflows = WorkflowsNamespace.new(@transport)
6058
6169
  end
6059
6170
  end
6060
6171
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.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.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.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.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.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.27.0"
18
+ VERSION = "0.28.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.28.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.27.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.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.27.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.28.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.27.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.28.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -2470,6 +2470,22 @@ module Infrawrench
2470
2470
  # Spec schema: `WorkflowPinRequest`.
2471
2471
  type workflow_pin_request = { "dashboardId" => String, "workflowId" => String }
2472
2472
 
2473
+ # Spec schema: `WorkflowSchedule`.
2474
+ type workflow_schedule = {
2475
+ "expression" => String,
2476
+ "timezone" => String | nil,
2477
+ "enabled" => bool,
2478
+ "lastRunAt" => String | nil,
2479
+ "nextRunAt" => String | nil,
2480
+ "nextRuns" => Array[String]
2481
+ }
2482
+
2483
+ # Spec schema: `WorkflowScheduleInput`.
2484
+ type workflow_schedule_input = { "expression" => String, ?"timezone" => String | nil, ?"enabled" => bool }
2485
+
2486
+ # Spec schema: `WorkflowScheduleResponse`.
2487
+ type workflow_schedule_response = { "schedule" => workflow_schedule | nil | nil }
2488
+
2473
2489
  class AccountsCredentialsNamespace
2474
2490
  def initialize: (Transport) -> void
2475
2491
  def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Hash[String, String]
@@ -2942,6 +2958,18 @@ module Infrawrench
2942
2958
  def list: (?org_id: String?, ?status: workflow_approval_status?, ?workflow_id: String?, ?run_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[workflow_approval]
2943
2959
  end
2944
2960
 
2961
+ class WorkflowsScheduleNamespace
2962
+ def initialize: (Transport) -> void
2963
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
2964
+ def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_schedule_response
2965
+ def update: (id: String, body: workflow_schedule_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> workflow_schedule_response
2966
+ end
2967
+
2968
+ class WorkflowsNamespace
2969
+ attr_reader schedule: WorkflowsScheduleNamespace
2970
+ def initialize: (Transport) -> void
2971
+ end
2972
+
2945
2973
  class APIV1Client
2946
2974
  attr_reader transport: Transport
2947
2975
  attr_reader accounts: AccountsNamespace
@@ -2981,6 +3009,7 @@ module Infrawrench
2981
3009
  attr_reader storage: StorageNamespace
2982
3010
  attr_reader team: TeamNamespace
2983
3011
  attr_reader workflow_approvals: WorkflowApprovalsNamespace
3012
+ attr_reader workflows: WorkflowsNamespace
2984
3013
  def initialize: (**untyped) -> void
2985
3014
  end
2986
3015
  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.27.0
4
+ version: 0.28.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-31 00:00:00.000000000 Z
12
+ date: 2026-08-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.27.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.28.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.27.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.28.0).
62
62
  test_files: []