infrawrench-sdk 1.102.0 → 1.103.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: '0551720297430bc04f661a466af66aa8dc06a8f1c8d447bea44207f816b3b2fa'
4
- data.tar.gz: 6340e66cd337eb3dbcc49670fdcb2c77a9593f42289ceaeb655bbd421372969e
3
+ metadata.gz: 2d0b5b78e96419361088c30d98b74fa3d559f4ce740012ae2e99fa696c8979c3
4
+ data.tar.gz: 97e47a2a093fd263706697bfe10e4bd03fe53a7cde040c23d0a6f50c80660a98
5
5
  SHA512:
6
- metadata.gz: '08e8da31cd0bf3b3bfc16f2bcacb5d35adbbd1596751844f035bb9892b6f5d24d94292f44414bf3cb05ed3d9929421cfc0bead030d966c19160e8586b32c0a99'
7
- data.tar.gz: 38612fb0d96ba255a9e8a4fda328c2111fc1b9696b15419783817f892c5042696e1e068d5955cbed62524939418718e0421c96b3b79785d521d041b6ff73c3cd
6
+ metadata.gz: 903480908bfaa53a14353dbff29e8ee9427692e6b84b0f1b2c1d5f831365dbd2cced894cf1fd947cec372ee8f9e27a0e713cb042e90908edd77cf50c581701d3
7
+ data.tar.gz: 38b1e35e35fa4306b05085fba40e748b8a8553fb212c1239c7786dd11778e2af8162babb0ca95623c769126707dc601bad6341008a7b8f48aa1c0f31af58ce48
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.102.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.103.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
- 1333 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 1337 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.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.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.102.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.102.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.103.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.103.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.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -6128,6 +6128,69 @@ module Infrawrench
6128
6128
  end
6129
6129
  end
6130
6130
 
6131
+ # `client.ci.caches`
6132
+ class CiCachesNamespace
6133
+ # @api private
6134
+ # @param transport [Transport]
6135
+ def initialize(transport)
6136
+ @transport = transport
6137
+ end
6138
+
6139
+ # Clear a repository's CI caches
6140
+ #
6141
+ # Deletes every branch's and pull request's `cache:` and `task-cache:`
6142
+ # entries of one repository. The next run of each job starts cold and saves
6143
+ # again.
6144
+ #
6145
+ # _Requires permission: `ci:write`._
6146
+ #
6147
+ # DELETE /api/org/{orgId}/ci/caches/{installationId}/{repo}
6148
+ #
6149
+ # Raises on 400: Bad request
6150
+ #
6151
+ # Raises on 404: Not found
6152
+ #
6153
+ # Raises on 409: Conflict
6154
+ #
6155
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6156
+ # constructed with.
6157
+ # @param installation_id [String]
6158
+ # @param repo [String]
6159
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6160
+ # @return [Hash] Parsed JSON, shaped as `CiCacheCleared` — see `sig/infrawrench/sdk.rbs`.
6161
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6162
+ def delete(installation_id:, repo:, org_id: nil, request_options: nil)
6163
+ @transport.request(
6164
+ http_method: "DELETE",
6165
+ path: "/api/org/{orgId}/ci/caches/{installationId}/{repo}",
6166
+ path_params: { "orgId" => org_id, "installationId" => installation_id, "repo" => repo },
6167
+ request_options: request_options
6168
+ )
6169
+ end
6170
+
6171
+ # The caches CI keeps for each repository
6172
+ #
6173
+ # _Requires permission: `ci:read`._
6174
+ #
6175
+ # GET /api/org/{orgId}/ci/caches
6176
+ #
6177
+ # Raises on 404: Not found
6178
+ #
6179
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6180
+ # constructed with.
6181
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6182
+ # @return [Hash] Parsed JSON, shaped as `CiCaches` — see `sig/infrawrench/sdk.rbs`.
6183
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6184
+ def get(org_id: nil, request_options: nil)
6185
+ @transport.request(
6186
+ http_method: "GET",
6187
+ path: "/api/org/{orgId}/ci/caches",
6188
+ path_params: { "orgId" => org_id },
6189
+ request_options: request_options
6190
+ )
6191
+ end
6192
+ end
6193
+
6131
6194
  # `client.ci.runs`
6132
6195
  class CiRunsNamespace
6133
6196
  # @api private
@@ -6237,6 +6300,37 @@ module Infrawrench
6237
6300
  request_options: request_options
6238
6301
  )
6239
6302
  end
6303
+
6304
+ # Run a finished CI run again
6305
+ #
6306
+ # Queues a new run of the same repository, commit, branch and event, linked
6307
+ # to this one. A run waiting for approval is approved instead, and a fork's
6308
+ # pull request still runs without secrets.
6309
+ #
6310
+ # _Requires permission: `ci:approve`._
6311
+ #
6312
+ # POST /api/org/{orgId}/ci/runs/{runId}/retry
6313
+ #
6314
+ # Raises on 404: Not found
6315
+ #
6316
+ # Raises on 409: Conflict
6317
+ #
6318
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
6319
+ # constructed with.
6320
+ # @param run_id [String]
6321
+ # @param body [Hash] Request body, shaped as `Hash`.
6322
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
6323
+ # @return [Hash] Parsed JSON, shaped as `CiRun` — see `sig/infrawrench/sdk.rbs`.
6324
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
6325
+ def post_org_org_id_ci_runs_run_id_retry(run_id:, body:, org_id: nil, request_options: nil)
6326
+ @transport.request(
6327
+ http_method: "POST",
6328
+ path: "/api/org/{orgId}/ci/runs/{runId}/retry",
6329
+ path_params: { "orgId" => org_id, "runId" => run_id },
6330
+ body: body,
6331
+ request_options: request_options
6332
+ )
6333
+ end
6240
6334
  end
6241
6335
 
6242
6336
  # `client.ci.values`
@@ -6350,6 +6444,8 @@ module Infrawrench
6350
6444
  class CiNamespace
6351
6445
  # @return [CiAccountsNamespace] `client.ci.accounts`
6352
6446
  attr_reader :accounts
6447
+ # @return [CiCachesNamespace] `client.ci.caches`
6448
+ attr_reader :caches
6353
6449
  # @return [CiRunsNamespace] `client.ci.runs`
6354
6450
  attr_reader :runs
6355
6451
  # @return [CiValuesNamespace] `client.ci.values`
@@ -6360,6 +6456,7 @@ module Infrawrench
6360
6456
  def initialize(transport)
6361
6457
  @transport = transport
6362
6458
  @accounts = CiAccountsNamespace.new(@transport)
6459
+ @caches = CiCachesNamespace.new(@transport)
6363
6460
  @runs = CiRunsNamespace.new(@transport)
6364
6461
  @values = CiValuesNamespace.new(@transport)
6365
6462
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.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.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.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.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.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.102.0"
18
+ VERSION = "1.103.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
3
+ # infrawrench-sdk v1.103.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.102.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.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.102.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
1
+ # infrawrench-sdk v1.103.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.102.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.103.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -2295,6 +2295,27 @@ module Infrawrench
2295
2295
  "ciEnabled" => bool
2296
2296
  }
2297
2297
 
2298
+ # Spec schema: `CiAccountCaches`.
2299
+ type ci_account_caches = {
2300
+ "installationId" => Integer,
2301
+ "accountLogin" => String,
2302
+ "usedBytes" => Numeric | "Infinity" | "-Infinity" | "NaN",
2303
+ "quotaBytes" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
2304
+ "repos" => Array[ci_repo_cache],
2305
+ "error" => String | nil
2306
+ }
2307
+
2308
+ # Spec schema: `CiCacheCleared`.
2309
+ type ci_cache_cleared = {
2310
+ "installationId" => Integer,
2311
+ "repo" => String,
2312
+ "deletedEntries" => Integer,
2313
+ "deletedBytes" => Numeric | "Infinity" | "-Infinity" | "NaN"
2314
+ }
2315
+
2316
+ # Spec schema: `CiCaches`.
2317
+ type ci_caches = { "accounts" => Array[ci_account_caches] }
2318
+
2298
2319
  # Spec schema: `CiJobOutput`.
2299
2320
  type ci_job_output = {
2300
2321
  "pipeline" => String,
@@ -2319,6 +2340,13 @@ module Infrawrench
2319
2340
  ?"needs" => Array[String]
2320
2341
  }
2321
2342
 
2343
+ # Spec schema: `CiRepoCache`.
2344
+ type ci_repo_cache = {
2345
+ "repo" => String,
2346
+ "bytes" => Numeric | "Infinity" | "-Infinity" | "NaN",
2347
+ "entries" => Integer
2348
+ }
2349
+
2322
2350
  # Spec schema: `CiRun`.
2323
2351
  type ci_run = {
2324
2352
  "id" => String,
@@ -2338,7 +2366,10 @@ module Infrawrench
2338
2366
  "jobs" => Array[ci_job_summary] | nil,
2339
2367
  "vcpuSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
2340
2368
  "memoryGibSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
2341
- "githubUrl" => String
2369
+ "githubUrl" => String,
2370
+ ?"retryOfRunId" => String | nil,
2371
+ ?"retriedAsRunId" => String | nil,
2372
+ ?"noTaskCache" => bool
2342
2373
  }
2343
2374
 
2344
2375
  # Spec schema: `CiRunDetail`.
@@ -15925,12 +15956,19 @@ module Infrawrench
15925
15956
  def update: (installation_id: String, body: { "enabled" => bool }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_account
15926
15957
  end
15927
15958
 
15959
+ class CiCachesNamespace
15960
+ def initialize: (Transport) -> void
15961
+ def delete: (installation_id: String, repo: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_cache_cleared
15962
+ def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_caches
15963
+ end
15964
+
15928
15965
  class CiRunsNamespace
15929
15966
  def initialize: (Transport) -> void
15930
15967
  def approve: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
15931
15968
  def get: (?org_id: String?, ?status: ci_run_status?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "runs" => Array[ci_run] }
15932
15969
  def get_org_org_id_ci_runs_run_id: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run_detail
15933
15970
  def reject: (run_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
15971
+ def post_org_org_id_ci_runs_run_id_retry: (run_id: String, body: { ?"noTaskCache" => bool }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_run
15934
15972
  end
15935
15973
 
15936
15974
  class CiValuesNamespace
@@ -15942,6 +15980,7 @@ module Infrawrench
15942
15980
 
15943
15981
  class CiNamespace
15944
15982
  attr_reader accounts: CiAccountsNamespace
15983
+ attr_reader caches: CiCachesNamespace
15945
15984
  attr_reader runs: CiRunsNamespace
15946
15985
  attr_reader values: CiValuesNamespace
15947
15986
  def initialize: (Transport) -> void
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.102.0
4
+ version: 1.103.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-11 00:00:00.000000000 Z
12
+ date: 2026-11-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.102.0). Covers the
14
+ description: Generated Ruby client for the Infrawrench API (v1.103.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.102.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.103.0).
62
62
  test_files: []