infrawrench-sdk 0.4.0 → 0.6.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 +4 -4
- data/README.md +2 -2
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +129 -2
- data/lib/infrawrench/sdk.rb +2 -2
- data/lib/infrawrench/transport.rb +2 -2
- data/lib/infrawrench/version.rb +3 -3
- data/lib/infrawrench-sdk.rb +2 -2
- data/sig/infrawrench/sdk.rbs +59 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbfd4cd55b135eec7f0859bd26ffe332eaf39a69f611d5fbabea8dce03eae45b
|
|
4
|
+
data.tar.gz: ec1daed9ffe1f064a829b4ba39093304578eab97dd5e6d56af8f36785229e599
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf515858a7579228173280a28a704f9614bd20677d902830aadd8964301d1200f2cbbf20c27041d359260038e39eb2ce6d236ca3608fb7676fd5584a80473d3f
|
|
7
|
+
data.tar.gz: dfb0a6958ecc8d82e144edb65d4870c777904d3ed8b8dd4555960e865af550be55e336fd4a83f130553556fd58f234a76dc17af09634d8f2b3e3cb19f5ab4af1
|
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.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `0.6.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
|
-
|
|
44
|
+
193 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 —
|
data/infrawrench-sdk.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.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.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v0.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v0.6.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.6.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"
|
data/lib/infrawrench/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1208,6 +1208,8 @@ module Infrawrench
|
|
|
1208
1208
|
# Feeds the filter and group-by pickers. Pass dimension=tag-keys for tag
|
|
1209
1209
|
# keys; dimension=tag requires tagKey.
|
|
1210
1210
|
#
|
|
1211
|
+
# _Requires permission: `costs:read`._
|
|
1212
|
+
#
|
|
1211
1213
|
# GET /api/org/{orgId}/costs/dimensions
|
|
1212
1214
|
#
|
|
1213
1215
|
# Raises on 400: Bad request
|
|
@@ -1237,6 +1239,8 @@ module Infrawrench
|
|
|
1237
1239
|
# series per currency. Optionally returns a previous-period comparison and a
|
|
1238
1240
|
# trend forecast.
|
|
1239
1241
|
#
|
|
1242
|
+
# _Requires permission: `costs:read`._
|
|
1243
|
+
#
|
|
1240
1244
|
# POST /api/org/{orgId}/costs/query
|
|
1241
1245
|
#
|
|
1242
1246
|
# Raises on 400: Bad request
|
|
@@ -1257,11 +1261,51 @@ module Infrawrench
|
|
|
1257
1261
|
)
|
|
1258
1262
|
end
|
|
1259
1263
|
|
|
1264
|
+
# Push cost rows from your own systems
|
|
1265
|
+
#
|
|
1266
|
+
# Reports spend Infrawrench has no provider plugin for — a parsed SaaS
|
|
1267
|
+
# invoice, an internal chargeback, a colo bill — into the same store the
|
|
1268
|
+
# provider collectors write to, so it appears in cost graphs, dimension
|
|
1269
|
+
# filters, and budgets alongside everything else.
|
|
1270
|
+
#
|
|
1271
|
+
# Rows are grouped under a caller-chosen `source`. Writes are idempotent per
|
|
1272
|
+
# `(source, day, service, region, resourceId, tags, currency)`: pushing the
|
|
1273
|
+
# same day again restates that day rather than adding to it, so a nightly
|
|
1274
|
+
# job can safely re-push a trailing window. Rows pushed under a source can
|
|
1275
|
+
# never overwrite rows a provider collector wrote.
|
|
1276
|
+
#
|
|
1277
|
+
# The whole batch is validated before anything is stored, so a 400 means
|
|
1278
|
+
# nothing was written.
|
|
1279
|
+
#
|
|
1280
|
+
# _Requires permission: `costs:write`._
|
|
1281
|
+
#
|
|
1282
|
+
# POST /api/org/{orgId}/costs/rows
|
|
1283
|
+
#
|
|
1284
|
+
# Raises on 400: Bad request
|
|
1285
|
+
#
|
|
1286
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1287
|
+
# constructed with.
|
|
1288
|
+
# @param body [Hash] Request body, shaped as `CostPushRequest`.
|
|
1289
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1290
|
+
# @return [Hash] Parsed JSON, shaped as `CostPushResponse` — see `sig/infrawrench/sdk.rbs`.
|
|
1291
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1292
|
+
def rows(body:, org_id: nil, request_options: nil)
|
|
1293
|
+
@transport.request(
|
|
1294
|
+
http_method: "POST",
|
|
1295
|
+
path: "/api/org/{orgId}/costs/rows",
|
|
1296
|
+
path_params: { "orgId" => org_id },
|
|
1297
|
+
body: body,
|
|
1298
|
+
request_options: request_options
|
|
1299
|
+
)
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1260
1302
|
# Per-account cost collection status
|
|
1261
1303
|
#
|
|
1262
1304
|
# Which accounts support cost collection, whether their history backfill has
|
|
1263
1305
|
# completed, and the ingested date coverage.
|
|
1264
1306
|
#
|
|
1307
|
+
# _Requires permission: `costs:read`._
|
|
1308
|
+
#
|
|
1265
1309
|
# GET /api/org/{orgId}/costs/status
|
|
1266
1310
|
#
|
|
1267
1311
|
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
@@ -2060,6 +2104,86 @@ module Infrawrench
|
|
|
2060
2104
|
end
|
|
2061
2105
|
end
|
|
2062
2106
|
|
|
2107
|
+
# `client.pages`
|
|
2108
|
+
class PagesNamespace
|
|
2109
|
+
# @api private
|
|
2110
|
+
# @param transport [Transport]
|
|
2111
|
+
def initialize(transport)
|
|
2112
|
+
@transport = transport
|
|
2113
|
+
end
|
|
2114
|
+
|
|
2115
|
+
# Raise an alert to the organization's on-call transports
|
|
2116
|
+
#
|
|
2117
|
+
# Fans an alert out over whatever the org has configured — Twilio SMS (and
|
|
2118
|
+
# voice on request), mobile push, Slack channels, and Microsoft Teams
|
|
2119
|
+
# webhooks — honouring each recipient's opt-ins. This is the same alert a
|
|
2120
|
+
# workflow raises with `infra.page(...)`, for code that runs somewhere
|
|
2121
|
+
# Infrawrench does not: a health check, a deploy script, a cron on a box.
|
|
2122
|
+
#
|
|
2123
|
+
# Repeat pages under the same `(source, key)` are **suppressed, not
|
|
2124
|
+
# rejected**: a monitor that fires every minute pages once and then gets
|
|
2125
|
+
# `200` with `suppressed: true` and the `retryAt` at which the key can page
|
|
2126
|
+
# again. A page that reached nobody does not start a cooldown, so the next
|
|
2127
|
+
# call tries again.
|
|
2128
|
+
#
|
|
2129
|
+
# Recipients opt in per channel under the same setting that covers workflow
|
|
2130
|
+
# pages.
|
|
2131
|
+
#
|
|
2132
|
+
# _Requires permission: `pages:write`._
|
|
2133
|
+
#
|
|
2134
|
+
# POST /api/org/{orgId}/pages
|
|
2135
|
+
#
|
|
2136
|
+
# Raises on 400: Bad request
|
|
2137
|
+
#
|
|
2138
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2139
|
+
# constructed with.
|
|
2140
|
+
# @param body [Hash] Request body, shaped as `PageRequest`.
|
|
2141
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2142
|
+
# @return [Hash] Parsed JSON, shaped as `PageResponse` — see `sig/infrawrench/sdk.rbs`.
|
|
2143
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2144
|
+
def create(body:, org_id: nil, request_options: nil)
|
|
2145
|
+
@transport.request(
|
|
2146
|
+
http_method: "POST",
|
|
2147
|
+
path: "/api/org/{orgId}/pages",
|
|
2148
|
+
path_params: { "orgId" => org_id },
|
|
2149
|
+
body: body,
|
|
2150
|
+
request_options: request_options
|
|
2151
|
+
)
|
|
2152
|
+
end
|
|
2153
|
+
|
|
2154
|
+
# Clear a page key's cooldown
|
|
2155
|
+
#
|
|
2156
|
+
# Drops the cooldown for one `(source, key)` so the next page under it
|
|
2157
|
+
# delivers immediately. Call it when the condition you alerted on recovers —
|
|
2158
|
+
# the workflow equivalent is `infra.page.clear(key)`. Clearing a key that
|
|
2159
|
+
# was never paged is not an error.
|
|
2160
|
+
#
|
|
2161
|
+
# _Requires permission: `pages:write`._
|
|
2162
|
+
#
|
|
2163
|
+
# DELETE /api/org/{orgId}/pages
|
|
2164
|
+
#
|
|
2165
|
+
# Raises on 400: Bad request
|
|
2166
|
+
#
|
|
2167
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2168
|
+
# constructed with.
|
|
2169
|
+
# @param source [String] Stable name for the system raising the page: letters, digits, `.`,
|
|
2170
|
+
# `_` and `-`. It is the notification's sender, and it scopes the cooldown — two services
|
|
2171
|
+
# paging under the same key never throttle each other.
|
|
2172
|
+
# @param key [String, nil] Defaults to `default`.
|
|
2173
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2174
|
+
# @return [Hash] Parsed JSON, shaped as `PageClearResponse` — see `sig/infrawrench/sdk.rbs`.
|
|
2175
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2176
|
+
def delete(source:, org_id: nil, key: nil, request_options: nil)
|
|
2177
|
+
@transport.request(
|
|
2178
|
+
http_method: "DELETE",
|
|
2179
|
+
path: "/api/org/{orgId}/pages",
|
|
2180
|
+
path_params: { "orgId" => org_id },
|
|
2181
|
+
query: { "source" => source, "key" => key },
|
|
2182
|
+
request_options: request_options
|
|
2183
|
+
)
|
|
2184
|
+
end
|
|
2185
|
+
end
|
|
2186
|
+
|
|
2063
2187
|
# `client.profile.email_change`
|
|
2064
2188
|
class ProfileEmailChangeNamespace
|
|
2065
2189
|
# @api private
|
|
@@ -4424,6 +4548,8 @@ module Infrawrench
|
|
|
4424
4548
|
attr_reader :msteams
|
|
4425
4549
|
# @return [OrgsNamespace] `client.orgs`
|
|
4426
4550
|
attr_reader :orgs
|
|
4551
|
+
# @return [PagesNamespace] `client.pages`
|
|
4552
|
+
attr_reader :pages
|
|
4427
4553
|
# @return [ProfileNamespace] `client.profile`
|
|
4428
4554
|
attr_reader :profile
|
|
4429
4555
|
# @return [ResourcesNamespace] `client.resources`
|
|
@@ -4468,6 +4594,7 @@ module Infrawrench
|
|
|
4468
4594
|
@kv = KvNamespace.new(@transport)
|
|
4469
4595
|
@msteams = MsteamsNamespace.new(@transport)
|
|
4470
4596
|
@orgs = OrgsNamespace.new(@transport)
|
|
4597
|
+
@pages = PagesNamespace.new(@transport)
|
|
4471
4598
|
@profile = ProfileNamespace.new(@transport)
|
|
4472
4599
|
@resources = ResourcesNamespace.new(@transport)
|
|
4473
4600
|
@search = SearchNamespace.new(@transport)
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.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.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/lib/infrawrench/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.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.
|
|
18
|
+
VERSION = "0.6.0"
|
|
19
19
|
end
|
data/lib/infrawrench-sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.6.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/sig/infrawrench/sdk.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# infrawrench-sdk v0.
|
|
1
|
+
# infrawrench-sdk v0.6.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.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.6.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -318,7 +318,8 @@ module Infrawrench
|
|
|
318
318
|
"thresholdType" => "actual" | "forecast",
|
|
319
319
|
"thresholdPercent" => Integer,
|
|
320
320
|
"triggeredAt" => String
|
|
321
|
-
}]
|
|
321
|
+
}],
|
|
322
|
+
"placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }]
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
# Spec schema: `ChildResourceRef`.
|
|
@@ -416,6 +417,12 @@ module Infrawrench
|
|
|
416
417
|
?"tagKey" => String
|
|
417
418
|
}
|
|
418
419
|
|
|
420
|
+
# Spec schema: `CostPushRequest`.
|
|
421
|
+
type cost_push_request = { "source" => String, "rows" => Array[pushed_cost_row] }
|
|
422
|
+
|
|
423
|
+
# Spec schema: `CostPushResponse`.
|
|
424
|
+
type cost_push_response = { "written" => Integer }
|
|
425
|
+
|
|
419
426
|
# Spec schema: `CostQueryRequest`.
|
|
420
427
|
type cost_query_request = {
|
|
421
428
|
"from" => String,
|
|
@@ -887,6 +894,30 @@ module Infrawrench
|
|
|
887
894
|
# Spec schema: `OrganizationRole`.
|
|
888
895
|
type organization_role = "owner" | "admin" | "member"
|
|
889
896
|
|
|
897
|
+
# Spec schema: `PageClearResponse`.
|
|
898
|
+
type page_clear_response = { "cleared" => bool }
|
|
899
|
+
|
|
900
|
+
# Spec schema: `PageRequest`.
|
|
901
|
+
type page_request = {
|
|
902
|
+
"source" => String,
|
|
903
|
+
"message" => String,
|
|
904
|
+
?"title" => String,
|
|
905
|
+
?"key" => String,
|
|
906
|
+
?"cooldownMinutes" => Integer,
|
|
907
|
+
?"voice" => bool
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
# Spec schema: `PageResponse`.
|
|
911
|
+
type page_response = {
|
|
912
|
+
"delivered" => bool,
|
|
913
|
+
"suppressed" => bool,
|
|
914
|
+
"sms" => Integer,
|
|
915
|
+
"push" => Integer,
|
|
916
|
+
"slack" => Integer,
|
|
917
|
+
"msTeams" => Integer,
|
|
918
|
+
?"retryAt" => String
|
|
919
|
+
}
|
|
920
|
+
|
|
890
921
|
# Spec schema: `PeerPane`.
|
|
891
922
|
type peer_pane = peer_pane_stub & { "schema" => json_object }
|
|
892
923
|
|
|
@@ -914,6 +945,7 @@ module Infrawrench
|
|
|
914
945
|
| "dashboards:read"
|
|
915
946
|
| "dashboards:write"
|
|
916
947
|
| "costs:read"
|
|
948
|
+
| "costs:write"
|
|
917
949
|
| "budgets:read"
|
|
918
950
|
| "budgets:write"
|
|
919
951
|
| "audit:read"
|
|
@@ -931,6 +963,7 @@ module Infrawrench
|
|
|
931
963
|
| "bastions:write"
|
|
932
964
|
| "chat:read"
|
|
933
965
|
| "chat:write"
|
|
966
|
+
| "pages:write"
|
|
934
967
|
| "org:settings:write"
|
|
935
968
|
|
|
936
969
|
# Spec schema: `PermissionCatalog`.
|
|
@@ -1076,6 +1109,20 @@ module Infrawrench
|
|
|
1076
1109
|
"createdAt" => String
|
|
1077
1110
|
}
|
|
1078
1111
|
|
|
1112
|
+
# Spec schema: `PushedCostRow`.
|
|
1113
|
+
type pushed_cost_row = {
|
|
1114
|
+
"date" => String,
|
|
1115
|
+
"currency" => String,
|
|
1116
|
+
"amount" => Numeric,
|
|
1117
|
+
?"service" => String,
|
|
1118
|
+
?"region" => String,
|
|
1119
|
+
?"resourceId" => String,
|
|
1120
|
+
?"tags" => Hash[String, String],
|
|
1121
|
+
?"usageAmount" => Numeric,
|
|
1122
|
+
?"usageUnit" => String,
|
|
1123
|
+
?"accountId" => String
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1079
1126
|
# Spec schema: `ReauthenticationRequired`.
|
|
1080
1127
|
type reauthentication_required = { "error" => String, "code" => "reauthentication_required" }
|
|
1081
1128
|
|
|
@@ -1738,7 +1785,7 @@ module Infrawrench
|
|
|
1738
1785
|
|
|
1739
1786
|
# Spec schema: `TabTarget`.
|
|
1740
1787
|
type tab_target = {
|
|
1741
|
-
"kind" => "dashboard" | "account" | "resource" | "agents" | "workflows" | "chat",
|
|
1788
|
+
"kind" => "dashboard" | "account" | "resource" | "agents" | "costs" | "workflows" | "chat",
|
|
1742
1789
|
?"dashboardId" => String,
|
|
1743
1790
|
?"accountId" => String,
|
|
1744
1791
|
?"resourceId" => resource_id,
|
|
@@ -1920,6 +1967,7 @@ module Infrawrench
|
|
|
1920
1967
|
def initialize: (Transport) -> void
|
|
1921
1968
|
def dimensions: (dimension: "provider" | "account" | "service" | "region" | "resource" | "tag" | "tag-keys", ?org_id: String?, ?tag_key: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_dimension_values
|
|
1922
1969
|
def query: (body: cost_query_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_query_response
|
|
1970
|
+
def rows: (body: cost_push_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_push_response
|
|
1923
1971
|
def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "accounts" => Array[cost_account_status] }
|
|
1924
1972
|
end
|
|
1925
1973
|
|
|
@@ -2000,6 +2048,12 @@ module Infrawrench
|
|
|
2000
2048
|
def create: (body: create_org_request, ?request_options: Hash[Symbol, untyped]?) -> organization
|
|
2001
2049
|
end
|
|
2002
2050
|
|
|
2051
|
+
class PagesNamespace
|
|
2052
|
+
def initialize: (Transport) -> void
|
|
2053
|
+
def create: (body: page_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> page_response
|
|
2054
|
+
def delete: (source: String, ?org_id: String?, ?key: String?, ?request_options: Hash[Symbol, untyped]?) -> page_clear_response
|
|
2055
|
+
end
|
|
2056
|
+
|
|
2003
2057
|
class ProfileEmailChangeNamespace
|
|
2004
2058
|
def initialize: (Transport) -> void
|
|
2005
2059
|
def confirm: (?body: { "code" => String }?, ?request_options: Hash[Symbol, untyped]?) -> { "email" => String }
|
|
@@ -2191,6 +2245,7 @@ module Infrawrench
|
|
|
2191
2245
|
attr_reader kv: KvNamespace
|
|
2192
2246
|
attr_reader msteams: MsteamsNamespace
|
|
2193
2247
|
attr_reader orgs: OrgsNamespace
|
|
2248
|
+
attr_reader pages: PagesNamespace
|
|
2194
2249
|
attr_reader profile: ProfileNamespace
|
|
2195
2250
|
attr_reader resources: ResourcesNamespace
|
|
2196
2251
|
attr_reader search: SearchNamespace
|
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.
|
|
4
|
+
version: 0.6.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-
|
|
12
|
+
date: 2026-07-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v0.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v0.6.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.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v0.6.0).
|
|
62
62
|
test_files: []
|