infrawrench-sdk 1.107.0 → 1.109.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: 970422be1092dca1a625504a9f1ee9f8f3a45399a503a69ba66180f37052b242
4
- data.tar.gz: dbf398730ae4f3f3d6aa2109149dcc9ef5af9dae91564b3e3ff4d1035203e767
3
+ metadata.gz: 84f1ad12725c327ae61f372120ac092e322d1c8f34b2deffd0f6482c6bf28c75
4
+ data.tar.gz: 7c970108e91c867390dffb579cfeb08d1023f9ad582434e052b69fb175e34869
5
5
  SHA512:
6
- metadata.gz: 4baaf59d2d3d9e757767ab76569d8846309f240236958cc367391cc0d3f7d541115b4a9012afd47ae6d2b62a861820a317c98534fc221719288a59d947f1835b
7
- data.tar.gz: 5f907b483e04e516027a41fa132af0fe1139baa80de5688ee057e5ef2a42aa0dd138c855f38ea92a10edab756b56bb86e459765c8158931a804cd961a7016030
6
+ metadata.gz: df4fca62f893e1fec1f3fcff2c03259c02a4632f8dbf2f1f347e3dbe7d2780258496d91f61153a3029e6466d5ba7b55ba12df763bd5d80149d5c8ae277698cbd
7
+ data.tar.gz: 951b1d66ea25511c66490b6850c463d206cedf5505d3cdc8abb493bc6f8b6fa2232bf561a77643ddd73837aeee650b739fa3d1977555590c3bab0fb4157e112d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # infrawrench-sdk
2
2
 
3
- Generated Ruby client for the Infrawrench API (API version `1.107.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.109.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
- 1350 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 1358 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 v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.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 (v1.107.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.107.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 (v1.109.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.109.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 Services, Inc.", "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 v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -6566,6 +6566,41 @@ module Infrawrench
6566
6566
  )
6567
6567
  end
6568
6568
 
6569
+ # Start a pipeline by hand
6570
+ #
6571
+ # Queues a run of one pipeline with `on.manual`, at the head of a branch of
6572
+ # the repository itself, with the inputs given. The pipeline must be listed
6573
+ # by `GET /ci/manual`, and the inputs are checked against its declaration
6574
+ # there; the runner checks them again against the branch's own file. The run
6575
+ # is trusted like a push to that branch: it gets the repository's secrets
6576
+ # and only what is lent to that branch.
6577
+ #
6578
+ # _Requires permission: `ci:approve`._
6579
+ #
6580
+ # POST /api/org/{orgId}/ci/runs
6581
+ #
6582
+ # Raises on 400: Bad request
6583
+ #
6584
+ # Raises on 404: Not found
6585
+ #
6586
+ # Raises on 409: Conflict
6587
+ #
6588
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6589
+ # constructed with.
6590
+ # @param body [Hash] Request body, shaped as `CiStartRun`.
6591
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6592
+ # @return [Hash] Parsed JSON, shaped as `CiRun` — see `sig/infrawrench/sdk.rbs`.
6593
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6594
+ def create(body:, org_id: nil, request_options: nil)
6595
+ @transport.request(
6596
+ http_method: "POST",
6597
+ path: "/api/org/{orgId}/ci/runs",
6598
+ path_params: { "orgId" => org_id },
6599
+ body: body,
6600
+ request_options: request_options
6601
+ )
6602
+ end
6603
+
6569
6604
  # A short-lived link to a file a job kept for download
6570
6605
  #
6571
6606
  # The link is signed for this one file for 15 minutes (less when the file
@@ -6853,6 +6888,60 @@ module Infrawrench
6853
6888
  )
6854
6889
  end
6855
6890
 
6891
+ # Pipelines that can be started by hand
6892
+ #
6893
+ # Each repository's pipelines with `on.manual` on its default branch, as
6894
+ # last read, with their inputs. They are read again on every push to the
6895
+ # default branch.
6896
+ #
6897
+ # _Requires permission: `ci:read`._
6898
+ #
6899
+ # GET /api/org/{orgId}/ci/manual
6900
+ #
6901
+ # Raises on 404: Not found
6902
+ #
6903
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6904
+ # constructed with.
6905
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6906
+ # @return [Hash] Parsed JSON, shaped as `CiManualPipelines` — see `sig/infrawrench/sdk.rbs`.
6907
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6908
+ def manual(org_id: nil, request_options: nil)
6909
+ @transport.request(
6910
+ http_method: "GET",
6911
+ path: "/api/org/{orgId}/ci/manual",
6912
+ path_params: { "orgId" => org_id },
6913
+ request_options: request_options
6914
+ )
6915
+ end
6916
+
6917
+ # Repositories' scheduled pipelines
6918
+ #
6919
+ # Each repository's pipelines with `on.schedule` on its default branch, as
6920
+ # last read, with each pipeline's next run. They are read again on every
6921
+ # push to the default branch, which is also how a schedule is added, changed
6922
+ # or removed. Repositories with no scheduled pipeline are left out unless
6923
+ # their last read failed.
6924
+ #
6925
+ # _Requires permission: `ci:read`._
6926
+ #
6927
+ # GET /api/org/{orgId}/ci/schedules
6928
+ #
6929
+ # Raises on 404: Not found
6930
+ #
6931
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6932
+ # constructed with.
6933
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6934
+ # @return [Hash] Parsed JSON, shaped as `CiSchedules` — see `sig/infrawrench/sdk.rbs`.
6935
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6936
+ def schedules(org_id: nil, request_options: nil)
6937
+ @transport.request(
6938
+ http_method: "GET",
6939
+ path: "/api/org/{orgId}/ci/schedules",
6940
+ path_params: { "orgId" => org_id },
6941
+ request_options: request_options
6942
+ )
6943
+ end
6944
+
6856
6945
  # CI usage in a month: runs, compute and storage (caches and downloads)
6857
6946
  #
6858
6947
  # _Requires permission: `ci:read`._
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.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 v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.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 v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.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 = "1.107.0"
18
+ VERSION = "1.109.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.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 v1.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
1
+ # infrawrench-sdk v1.109.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
2
2
  # https://github.com/Infrawrench/Infrawrench
3
3
  #
4
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.107.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.109.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -2395,6 +2395,16 @@ module Infrawrench
2395
2395
  # Spec schema: `CiDownloadLink`.
2396
2396
  type ci_download_link = { "url" => String, "expiresAt" => String }
2397
2397
 
2398
+ # Spec schema: `CiInput`.
2399
+ type ci_input = {
2400
+ "name" => String,
2401
+ "type" => "string" | "boolean" | "choice" | "number",
2402
+ ?"description" => String,
2403
+ "required" => bool,
2404
+ ?"default" => String,
2405
+ ?"options" => Array[String]
2406
+ }
2407
+
2398
2408
  # What the job was lent, by name only: connections, SSH keys, resources and
2399
2409
  # `env-from:` grants.
2400
2410
  #
@@ -2446,6 +2456,12 @@ module Infrawrench
2446
2456
  ?"cloud" => ci_job_cloud
2447
2457
  }
2448
2458
 
2459
+ # Spec schema: `CiManualPipeline`.
2460
+ type ci_manual_pipeline = { "file" => String, "name" => String, "inputs" => Array[ci_input] }
2461
+
2462
+ # Spec schema: `CiManualPipelines`.
2463
+ type ci_manual_pipelines = { "repositories" => Array[ci_repo_manual] }
2464
+
2449
2465
  # Spec schema: `CiPreflightRecord`.
2450
2466
  type ci_preflight_record = {
2451
2467
  "ok" => bool,
@@ -2462,6 +2478,27 @@ module Infrawrench
2462
2478
  "entries" => Integer
2463
2479
  }
2464
2480
 
2481
+ # Spec schema: `CiRepoManual`.
2482
+ type ci_repo_manual = {
2483
+ "installationId" => Integer,
2484
+ "repoFullName" => String,
2485
+ "defaultBranch" => String,
2486
+ "sha" => String | nil,
2487
+ "pipelines" => Array[ci_manual_pipeline],
2488
+ "refreshedAt" => String | nil
2489
+ }
2490
+
2491
+ # Spec schema: `CiRepoSchedule`.
2492
+ type ci_repo_schedule = {
2493
+ "installationId" => Integer,
2494
+ "repoFullName" => String,
2495
+ "defaultBranch" => String,
2496
+ "sha" => String | nil,
2497
+ "pipelines" => Array[ci_scheduled_pipeline],
2498
+ "refreshedAt" => String | nil,
2499
+ "error" => String | nil
2500
+ }
2501
+
2465
2502
  # Spec schema: `CiResourceGrant`.
2466
2503
  type ci_resource_grant = {
2467
2504
  "id" => String,
@@ -2499,7 +2536,7 @@ module Infrawrench
2499
2536
  type ci_run = {
2500
2537
  "id" => String,
2501
2538
  "repoFullName" => String,
2502
- "event" => "push" | "pull-request",
2539
+ "event" => "push" | "pull-request" | "schedule" | "manual",
2503
2540
  "headRef" => String,
2504
2541
  "sha" => String,
2505
2542
  "pullNumber" => Integer | nil,
@@ -2518,6 +2555,8 @@ module Infrawrench
2518
2555
  ?"retryOfRunId" => String | nil,
2519
2556
  ?"retriedAsRunId" => String | nil,
2520
2557
  ?"noTaskCache" => bool,
2558
+ ?"pipelineFile" => String,
2559
+ ?"inputs" => Hash[String, String],
2521
2560
  ?"concurrencyGroups" => Array[String],
2522
2561
  ?"cancelRequested" => bool
2523
2562
  }
@@ -2536,6 +2575,12 @@ module Infrawrench
2536
2575
  | "rejected"
2537
2576
  | "cancelled"
2538
2577
 
2578
+ # Spec schema: `CiScheduledPipeline`.
2579
+ type ci_scheduled_pipeline = { "file" => String, "name" => String, "cron" => Array[String], "nextRunAt" => String | nil }
2580
+
2581
+ # Spec schema: `CiSchedules`.
2582
+ type ci_schedules = { "schedules" => Array[ci_repo_schedule] }
2583
+
2539
2584
  # Spec schema: `CiSecret`.
2540
2585
  type ci_secret = { "name" => String, "updatedAt" => String }
2541
2586
 
@@ -2552,6 +2597,15 @@ module Infrawrench
2552
2597
  "createdAt" => String
2553
2598
  }
2554
2599
 
2600
+ # Spec schema: `CiStartRun`.
2601
+ type ci_start_run = {
2602
+ "installationId" => Integer,
2603
+ "repoFullName" => String,
2604
+ "pipelineFile" => String,
2605
+ ?"branch" => String,
2606
+ ?"inputs" => Hash[String, String | bool | Numeric]
2607
+ }
2608
+
2555
2609
  # Spec schema: `CiStatus`.
2556
2610
  type ci_status = {
2557
2611
  "enabled" => bool,
@@ -16169,6 +16223,7 @@ module Infrawrench
16169
16223
  def initialize: (Transport) -> void
16170
16224
  def approve: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
16171
16225
  def cancel: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run
16226
+ def create: (body: ci_start_run, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run
16172
16227
  def download: (run_id: String, job: String, path: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_download_link
16173
16228
  def get: (?org_id: String?, ?status: ci_run_status?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "runs" => Array[ci_run] }
16174
16229
  def get_org_org_id_ci_runs_run_id: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run_detail
@@ -16191,6 +16246,8 @@ module Infrawrench
16191
16246
  attr_reader values: CiValuesNamespace
16192
16247
  def initialize: (Transport) -> void
16193
16248
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_status
16249
+ def manual: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_manual_pipelines
16250
+ def schedules: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_schedules
16194
16251
  def usage: (?org_id: String?, ?month: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_usage
16195
16252
  end
16196
16253
 
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: 1.107.0
4
+ version: 1.109.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infrawrench Services, Inc.
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-11-13 00:00:00.000000000 Z
12
+ date: 2026-11-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.107.0). Covers the
14
+ description: Generated Ruby client for the Infrawrench API (v1.109.0). Covers the
15
15
  published API surface only — operations marked x-internal in the spec are not generated.
16
16
  No 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 (v1.107.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.109.0).
62
62
  test_files: []