infrawrench-sdk 0.3.0 → 0.5.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: 974096b3a85e880997f64f449b4886cdaf873b70966c935e3ea9d3b4ae5987e9
4
- data.tar.gz: e4017bdf29231d355e12f2a03e35b021b1b763594b735c39f32cea8feb5cd013
3
+ metadata.gz: 2258ffa4110b2524dc4c2b02052189bd1617c1d2573b862cacb72fa0f50b6752
4
+ data.tar.gz: '0059288397c24af7511302bb7c06ab78e0db66b48a31ce3249ebc3a42fc6e62b'
5
5
  SHA512:
6
- metadata.gz: 49b11f47365f437317b7df44524ee46f3681367549ff9762d6efab9fed701eeab47bda0edf05a3be1fe3c48e89df2c79a316b2a8e9116ded114e3ef302e2f20c
7
- data.tar.gz: 3f86a4e21e4ba2c7247a30a7999e2d5eb4b91c1d1d30f1b7bbca499a637a16b67ea892d5523fb79fd3d0507fcf63e06a6dd614776bd35aaaaa3ae539dbde71b5
6
+ metadata.gz: 83e291e641d46a6694c143b2f88d77e99d75c9dd2809bc7a21e4cc506ee1d1a3bec52631f8c5763182c3593ee5e2a055a6b9ebab71a4341daf66b171ce7b1610
7
+ data.tar.gz: '099ea408924a465b7370a68b9f1a76d2022a1b508ff291e0497bf65735d32a53db36d4d1ded0065e074bbec827291118325622c3f103eb7840400c14a7f7fcf7'
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.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `0.5.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
- 183 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 187 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.3.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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.3.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v0.3.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.5.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.5.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.3.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1886,6 +1886,148 @@ module Infrawrench
1886
1886
  end
1887
1887
  end
1888
1888
 
1889
+ # `client.msteams.webhooks`
1890
+ class MsteamsWebhooksNamespace
1891
+ # @api private
1892
+ # @param transport [Transport]
1893
+ def initialize(transport)
1894
+ @transport = transport
1895
+ end
1896
+
1897
+ # Route alerts to a Teams channel
1898
+ #
1899
+ # Adds a channel by webhook URL, or updates the one already holding that
1900
+ # URL. Each trigger defaults to enabled. Responds 400 when the URL is not
1901
+ # https or its host is not Microsoft-operated.
1902
+ #
1903
+ # POST /api/org/{orgId}/msteams/webhooks
1904
+ #
1905
+ # Raises on 400: Bad request
1906
+ #
1907
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1908
+ # constructed with.
1909
+ # @param body [Hash, nil] Request body, shaped as `MsTeamsWebhookCreate`.
1910
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1911
+ # @return [Hash] Parsed JSON, shaped as `MsTeamsWebhook` — see `sig/infrawrench/sdk.rbs`.
1912
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1913
+ def create(org_id: nil, body: nil, request_options: nil)
1914
+ @transport.request(
1915
+ http_method: "POST",
1916
+ path: "/api/org/{orgId}/msteams/webhooks",
1917
+ path_params: { "orgId" => org_id },
1918
+ body: body,
1919
+ request_options: request_options
1920
+ )
1921
+ end
1922
+
1923
+ # Stop routing alerts to a Teams channel
1924
+ #
1925
+ # DELETE /api/org/{orgId}/msteams/webhooks/{id}
1926
+ #
1927
+ # Raises on 404: Not found
1928
+ #
1929
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1930
+ # constructed with.
1931
+ # @param id [String]
1932
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1933
+ # @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
1934
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1935
+ def delete(id:, org_id: nil, request_options: nil)
1936
+ @transport.request(
1937
+ http_method: "DELETE",
1938
+ path: "/api/org/{orgId}/msteams/webhooks/{id}",
1939
+ path_params: { "orgId" => org_id, "id" => id },
1940
+ request_options: request_options
1941
+ )
1942
+ end
1943
+
1944
+ # Rename a Teams channel or change which alerts it receives
1945
+ #
1946
+ # The webhook URL is immutable — remove the channel and re-add it to change
1947
+ # it.
1948
+ #
1949
+ # PATCH /api/org/{orgId}/msteams/webhooks/{id}
1950
+ #
1951
+ # Raises on 400: Bad request
1952
+ #
1953
+ # Raises on 404: Not found
1954
+ #
1955
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1956
+ # constructed with.
1957
+ # @param id [String]
1958
+ # @param body [Hash, nil] Request body, shaped as `MsTeamsWebhookUpdate`.
1959
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1960
+ # @return [Hash] Parsed JSON, shaped as `MsTeamsWebhook` — see `sig/infrawrench/sdk.rbs`.
1961
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1962
+ def update(id:, org_id: nil, body: nil, request_options: nil)
1963
+ @transport.request(
1964
+ http_method: "PATCH",
1965
+ path: "/api/org/{orgId}/msteams/webhooks/{id}",
1966
+ path_params: { "orgId" => org_id, "id" => id },
1967
+ body: body,
1968
+ request_options: request_options
1969
+ )
1970
+ end
1971
+ end
1972
+
1973
+ # `client.msteams`
1974
+ class MsteamsNamespace
1975
+ # @return [MsteamsWebhooksNamespace] `client.msteams.webhooks`
1976
+ attr_reader :webhooks
1977
+
1978
+ # @api private
1979
+ # @param transport [Transport]
1980
+ def initialize(transport)
1981
+ @transport = transport
1982
+ @webhooks = MsteamsWebhooksNamespace.new(@transport)
1983
+ end
1984
+
1985
+ # List the organization's Teams channels
1986
+ #
1987
+ # Returns the Teams channels alerts are routed to and which triggers each
1988
+ # takes. Webhook URLs are never included.
1989
+ #
1990
+ # GET /api/org/{orgId}/msteams/status
1991
+ #
1992
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
1993
+ # constructed with.
1994
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
1995
+ # @return [Hash] Parsed JSON, shaped as `MsTeamsStatus` — see `sig/infrawrench/sdk.rbs`.
1996
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
1997
+ def status(org_id: nil, request_options: nil)
1998
+ @transport.request(
1999
+ http_method: "GET",
2000
+ path: "/api/org/{orgId}/msteams/status",
2001
+ path_params: { "orgId" => org_id },
2002
+ request_options: request_options
2003
+ )
2004
+ end
2005
+
2006
+ # Post a test card to every configured Teams channel
2007
+ #
2008
+ # Ignores trigger opt-ins — every channel gets the test. Fails with the
2009
+ # error Microsoft returned when nothing could be delivered (HTTP 404 usually
2010
+ # means the Workflow was deleted or turned off).
2011
+ #
2012
+ # POST /api/org/{orgId}/msteams/test
2013
+ #
2014
+ # Raises on 400: Bad request
2015
+ #
2016
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
2017
+ # constructed with.
2018
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
2019
+ # @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
2020
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
2021
+ def test(org_id: nil, request_options: nil)
2022
+ @transport.request(
2023
+ http_method: "POST",
2024
+ path: "/api/org/{orgId}/msteams/test",
2025
+ path_params: { "orgId" => org_id },
2026
+ request_options: request_options
2027
+ )
2028
+ end
2029
+ end
2030
+
1889
2031
  # `client.orgs`
1890
2032
  class OrgsNamespace
1891
2033
  # @api private
@@ -4278,6 +4420,8 @@ module Infrawrench
4278
4420
  attr_reader :invitations
4279
4421
  # @return [KvNamespace] `client.kv`
4280
4422
  attr_reader :kv
4423
+ # @return [MsteamsNamespace] `client.msteams`
4424
+ attr_reader :msteams
4281
4425
  # @return [OrgsNamespace] `client.orgs`
4282
4426
  attr_reader :orgs
4283
4427
  # @return [ProfileNamespace] `client.profile`
@@ -4322,6 +4466,7 @@ module Infrawrench
4322
4466
  @docker = DockerNamespace.new(@transport)
4323
4467
  @invitations = InvitationsNamespace.new(@transport)
4324
4468
  @kv = KvNamespace.new(@transport)
4469
+ @msteams = MsteamsNamespace.new(@transport)
4325
4470
  @orgs = OrgsNamespace.new(@transport)
4326
4471
  @profile = ProfileNamespace.new(@transport)
4327
4472
  @resources = ResourcesNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.3.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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.3.0"
18
+ VERSION = "0.5.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v0.3.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v0.5.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.3.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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.3.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v0.5.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.3.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.5.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`.
@@ -822,6 +823,36 @@ module Infrawrench
822
823
  # Spec schema: `MetricsResponse`.
823
824
  type metrics_response = { "series" => Array[metric_series] }
824
825
 
826
+ # Spec schema: `MsTeamsStatus`.
827
+ type ms_teams_status = { "webhooks" => Array[ms_teams_webhook] }
828
+
829
+ # Spec schema: `MsTeamsWebhook`.
830
+ type ms_teams_webhook = {
831
+ "id" => String,
832
+ "label" => String,
833
+ "urlHint" => String,
834
+ "syncIncidents" => bool,
835
+ "budgetAlerts" => bool,
836
+ "workflowPages" => bool
837
+ }
838
+
839
+ # Spec schema: `MsTeamsWebhookCreate`.
840
+ type ms_teams_webhook_create = {
841
+ "label" => String,
842
+ "url" => String,
843
+ ?"syncIncidents" => bool,
844
+ ?"budgetAlerts" => bool,
845
+ ?"workflowPages" => bool
846
+ }
847
+
848
+ # Spec schema: `MsTeamsWebhookUpdate`.
849
+ type ms_teams_webhook_update = {
850
+ ?"label" => String,
851
+ ?"syncIncidents" => bool,
852
+ ?"budgetAlerts" => bool,
853
+ ?"workflowPages" => bool
854
+ }
855
+
825
856
  # Spec schema: `NoSqlCommandRequest`.
826
857
  type no_sql_command_request = {
827
858
  "pluginId" => String,
@@ -1708,7 +1739,7 @@ module Infrawrench
1708
1739
 
1709
1740
  # Spec schema: `TabTarget`.
1710
1741
  type tab_target = {
1711
- "kind" => "dashboard" | "account" | "resource" | "agents" | "workflows" | "chat",
1742
+ "kind" => "dashboard" | "account" | "resource" | "agents" | "costs" | "workflows" | "chat",
1712
1743
  ?"dashboardId" => String,
1713
1744
  ?"accountId" => String,
1714
1745
  ?"resourceId" => resource_id,
@@ -1951,6 +1982,20 @@ module Infrawrench
1951
1982
  def command: (body: kv_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> kv_command_response
1952
1983
  end
1953
1984
 
1985
+ class MsteamsWebhooksNamespace
1986
+ def initialize: (Transport) -> void
1987
+ def create: (?org_id: String?, ?body: ms_teams_webhook_create?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_webhook
1988
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
1989
+ def update: (id: String, ?org_id: String?, ?body: ms_teams_webhook_update?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_webhook
1990
+ end
1991
+
1992
+ class MsteamsNamespace
1993
+ attr_reader webhooks: MsteamsWebhooksNamespace
1994
+ def initialize: (Transport) -> void
1995
+ def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_status
1996
+ def test: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool, "webhookCount" => Integer, "attempted" => Integer, "succeeded" => Integer }
1997
+ end
1998
+
1954
1999
  class OrgsNamespace
1955
2000
  def initialize: (Transport) -> void
1956
2001
  def create: (body: create_org_request, ?request_options: Hash[Symbol, untyped]?) -> organization
@@ -2145,6 +2190,7 @@ module Infrawrench
2145
2190
  attr_reader docker: DockerNamespace
2146
2191
  attr_reader invitations: InvitationsNamespace
2147
2192
  attr_reader kv: KvNamespace
2193
+ attr_reader msteams: MsteamsNamespace
2148
2194
  attr_reader orgs: OrgsNamespace
2149
2195
  attr_reader profile: ProfileNamespace
2150
2196
  attr_reader resources: ResourcesNamespace
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.3.0
4
+ version: 0.5.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-26 00:00:00.000000000 Z
12
+ date: 2026-07-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v0.3.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v0.5.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.3.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v0.5.0).
62
62
  test_files: []