infrawrench-sdk 1.48.0 → 1.50.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: 0360c47e62947e94ab3ae2d86b4d13d2b30a9733a7a0b9e09632c3f70c13e01b
4
- data.tar.gz: 7a692dc6116197d2dd51d39a0b28b1e61cc9ce9cdadd23b2712d30869d5b583b
3
+ metadata.gz: 24e080a6b32c29cd657d8331bf948ff78682dd0209e343970a0173ad0c33cb61
4
+ data.tar.gz: 0c5d06baf9b0c270a924b54ff27505c7ee00f8b9735f0ee671e811bdf6a406aa
5
5
  SHA512:
6
- metadata.gz: 36f59ccaeea5847cae5853fc7e386a5ccd59fad766fe416dbb358349e2eb4ed8574a1a00b369f11dca8408857ac5d4f571f49f32c97fbf09e74bb02d29c98c7b
7
- data.tar.gz: aed487a10cfbebd921c5aacc2e2a96e8fe70810919f26d4ebb16ebdcc40493535d4f749d2f83dc06a09fd3bb5d12b48f77a1fd6f9cfd8e3096a5e4e6a308503d
6
+ metadata.gz: 197ab3c08425d43d17ba8365569589a4bf2917e544f6d82466fab6b9998169039f1b9c1e0637158016bf0228feffeaf5c95d5d2aa59ded37264493e90ec4b8a8
7
+ data.tar.gz: 04d94b93503e008453488b36f5046351f943ccadbadcb4eb8b564809d363b4ab514bc13705773b7cb543d796add9d0641bd1982d5d77d44f527bc52f6107c804
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.48.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.50.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
- 763 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 765 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.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.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.48.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.48.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.50.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.50.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 v1.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -5961,6 +5961,46 @@ module Infrawrench
5961
5961
  )
5962
5962
  end
5963
5963
 
5964
+ # Download cost rows as a FOCUS 1.3 CSV
5965
+ #
5966
+ # The rows a cost query selects, written as a CSV in the FinOps Open Cost
5967
+ # and Usage Specification (FOCUS) v1.3 layout: one row per account, service,
5968
+ # region, resource, tag set, charge type and commitment per day, with
5969
+ # `BilledCost` (cash) and `EffectiveCost` (amortized) side by side,
5970
+ # `ChargeCategory`, `ServiceCategory`/`ServiceSubcategory`, `Tags` as a JSON
5971
+ # object and the commitment columns where the provider reports a commitment.
5972
+ # Custom columns follow, prefixed `x_`. The same mapping a `focus-1.3`
5973
+ # scheduled export writes (see /cost-exports).
5974
+ #
5975
+ # Takes the cost query's filter in either spelling (`filters` or `query`,
5976
+ # never both), an optional saved filter, and charge types. The range spans
5977
+ # at most 366 days; for anything longer, or for a recurring feed, use a
5978
+ # scheduled export. Validation errors are a 400 before any CSV is written;
5979
+ # the body is then streamed.
5980
+ #
5981
+ # _Requires permission: `costs:read`._
5982
+ #
5983
+ # POST /api/org/{orgId}/costs/focus-export
5984
+ #
5985
+ # Raises on 400: Bad request
5986
+ #
5987
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
5988
+ # constructed with.
5989
+ # @param body [Hash] Request body, shaped as `FocusExportRequest`.
5990
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
5991
+ # @return [String] Raw response bytes.
5992
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
5993
+ def focus_export(body:, org_id: nil, request_options: nil)
5994
+ @transport.request(
5995
+ http_method: "POST",
5996
+ path: "/api/org/{orgId}/costs/focus-export",
5997
+ path_params: { "orgId" => org_id },
5998
+ body: body,
5999
+ accept: :binary,
6000
+ request_options: request_options
6001
+ )
6002
+ end
6003
+
5964
6004
  # Query aggregated cost series
5965
6005
  #
5966
6006
  # Aggregates collected provider spend into per-bucket, per-group series for
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.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.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.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.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.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.48.0"
18
+ VERSION = "1.50.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.50.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 1.48.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.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.48.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.50.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 1.48.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.50.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1888,6 +1888,7 @@ module Infrawrench
1888
1888
  "id" => String,
1889
1889
  "name" => String,
1890
1890
  "format" => "csv" | "ndjson",
1891
+ "schema" => cost_export_schema,
1891
1892
  "query" => cost_export_query,
1892
1893
  "cadence" => "daily" | "weekly" | "monthly",
1893
1894
  "hour" => Integer,
@@ -1938,6 +1939,7 @@ module Infrawrench
1938
1939
  type cost_export_input = {
1939
1940
  "name" => String,
1940
1941
  "format" => "csv" | "ndjson",
1942
+ ?"schema" => cost_export_schema & untyped,
1941
1943
  "query" => cost_export_query,
1942
1944
  "cadence" => "daily" | "weekly" | "monthly",
1943
1945
  "hour" => Integer,
@@ -2000,6 +2002,16 @@ module Infrawrench
2000
2002
  "error" => String | nil
2001
2003
  }
2002
2004
 
2005
+ # Which columns an object carries. `native` is Infrawrench's own layout,
2006
+ # shaped by `query.dimensions` and `query.tagKeys`. `focus-1.3` writes the
2007
+ # FinOps Open Cost and Usage Specification v1.3 columns at the full row grain,
2008
+ # with `BilledCost` (cash) and `EffectiveCost` (amortized) side by side;
2009
+ # `query.dimensions`, `query.tagKeys` and `query.costBasis` do not apply to
2010
+ # it, `query.filters` and `query.chargeTypes` still do.
2011
+ #
2012
+ # Spec schema: `CostExportSchema`.
2013
+ type cost_export_schema = "native" | "focus-1.3"
2014
+
2003
2015
  # Spec schema: `CostFilter`.
2004
2016
  type cost_filter = {
2005
2017
  "dimension" => cost_dimension,
@@ -3458,6 +3470,16 @@ module Infrawrench
3458
3470
  # Spec schema: `FieldActionResponse`.
3459
3471
  type field_action_response = { "value" => String, ?"option" => { "id" => String, "label" => String } }
3460
3472
 
3473
+ # Spec schema: `FocusExportRequest`.
3474
+ type focus_export_request = {
3475
+ "from" => String,
3476
+ "to" => String,
3477
+ ?"filters" => Array[cost_filter],
3478
+ ?"query" => String,
3479
+ ?"savedFilterId" => String,
3480
+ ?"chargeTypes" => Array[cost_charge_type]
3481
+ }
3482
+
3461
3483
  # Spec schema: `GenerateSshKeyRequest`.
3462
3484
  type generate_ssh_key_request = { "name" => String }
3463
3485
 
@@ -5274,6 +5296,7 @@ module Infrawrench
5274
5296
  | "assemblyai"
5275
5297
  | "aws"
5276
5298
  | "azure"
5299
+ | "baseten"
5277
5300
  | "cartesia"
5278
5301
  | "circleci"
5279
5302
  | "clickhouse"
@@ -6135,6 +6158,7 @@ module Infrawrench
6135
6158
  | "ch-member"
6136
6159
  | "ch-postgres"
6137
6160
  | "ch-service"
6161
+ | "chain"
6138
6162
  | "cks-cluster"
6139
6163
  | "client-key"
6140
6164
  | "cloud"
@@ -6388,6 +6412,7 @@ module Infrawrench
6388
6412
  | "mistral-model"
6389
6413
  | "mistral-voice"
6390
6414
  | "model"
6415
+ | "model-api"
6391
6416
  | "model-api-key"
6392
6417
  | "model-endpoint"
6393
6418
  | "model-version"
@@ -6589,6 +6614,8 @@ module Infrawrench
6589
6614
  | "topic-job"
6590
6615
  | "traffic-filter"
6591
6616
  | "training"
6617
+ | "training-job"
6618
+ | "training-project"
6592
6619
  | "transcript"
6593
6620
  | "transcription"
6594
6621
  | "transformation"
@@ -8442,6 +8469,7 @@ module Infrawrench
8442
8469
  def initialize: (Transport) -> void
8443
8470
  def dimensions: (dimension: "provider" | "account" | "service" | "region" | "resource" | "tag" | "charge_type" | "commitment" | "tag-keys", ?org_id: String?, ?tag_key: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_dimension_values
8444
8471
  def efficiency_alerts: (?org_id: String?, ?kind: "commitment_expiry" | "commitment_idle" | "unit_cost_regression"?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "events" => Array[efficiency_alert_event] }
8472
+ def focus_export: (body: focus_export_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
8445
8473
  def query: (body: cost_query_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_query_response
8446
8474
  def rows: (body: cost_push_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_push_response
8447
8475
  def showback: (?org_id: String?, ?from: String?, ?to: String?, ?basis: "cash" | "amortized"?, ?adjusted: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> showback_report
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.48.0
4
+ version: 1.50.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-10-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.48.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.50.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 (v1.48.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.50.0).
62
62
  test_files: []