infrawrench-sdk 0.3.0 → 0.4.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: bbee681ba31fd744e84c95fcb9cf2c32e072d8f0bc1557d6c91069bf0519bf77
4
+ data.tar.gz: 2bfaf5ebc1cecf6f5583cc9ce8443158d3e0e126122402fd77641021dcce02b0
5
5
  SHA512:
6
- metadata.gz: 49b11f47365f437317b7df44524ee46f3681367549ff9762d6efab9fed701eeab47bda0edf05a3be1fe3c48e89df2c79a316b2a8e9116ded114e3ef302e2f20c
7
- data.tar.gz: 3f86a4e21e4ba2c7247a30a7999e2d5eb4b91c1d1d30f1b7bbca499a637a16b67ea892d5523fb79fd3d0507fcf63e06a6dd614776bd35aaaaa3ae539dbde71b5
6
+ metadata.gz: 7985aae5c79e8647342b6c32010cae85f80f721aa66daf8d33e913023f92052198a91da9302550b7acca10477f8ff42db33ec1a94ede9e3da93b548385a90585
7
+ data.tar.gz: bd54485593edc520b9b814fc7ba7bc54b964121c5fde8fff1d5239dfb722d51cd26b9f04e077100692e63acc381198bd8fd0ba6c29a30301ebd3fa041b651a09
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.4.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.4.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.4.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.4.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v0.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -822,6 +822,36 @@ module Infrawrench
822
822
  # Spec schema: `MetricsResponse`.
823
823
  type metrics_response = { "series" => Array[metric_series] }
824
824
 
825
+ # Spec schema: `MsTeamsStatus`.
826
+ type ms_teams_status = { "webhooks" => Array[ms_teams_webhook] }
827
+
828
+ # Spec schema: `MsTeamsWebhook`.
829
+ type ms_teams_webhook = {
830
+ "id" => String,
831
+ "label" => String,
832
+ "urlHint" => String,
833
+ "syncIncidents" => bool,
834
+ "budgetAlerts" => bool,
835
+ "workflowPages" => bool
836
+ }
837
+
838
+ # Spec schema: `MsTeamsWebhookCreate`.
839
+ type ms_teams_webhook_create = {
840
+ "label" => String,
841
+ "url" => String,
842
+ ?"syncIncidents" => bool,
843
+ ?"budgetAlerts" => bool,
844
+ ?"workflowPages" => bool
845
+ }
846
+
847
+ # Spec schema: `MsTeamsWebhookUpdate`.
848
+ type ms_teams_webhook_update = {
849
+ ?"label" => String,
850
+ ?"syncIncidents" => bool,
851
+ ?"budgetAlerts" => bool,
852
+ ?"workflowPages" => bool
853
+ }
854
+
825
855
  # Spec schema: `NoSqlCommandRequest`.
826
856
  type no_sql_command_request = {
827
857
  "pluginId" => String,
@@ -1951,6 +1981,20 @@ module Infrawrench
1951
1981
  def command: (body: kv_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> kv_command_response
1952
1982
  end
1953
1983
 
1984
+ class MsteamsWebhooksNamespace
1985
+ def initialize: (Transport) -> void
1986
+ def create: (?org_id: String?, ?body: ms_teams_webhook_create?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_webhook
1987
+ def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
1988
+ def update: (id: String, ?org_id: String?, ?body: ms_teams_webhook_update?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_webhook
1989
+ end
1990
+
1991
+ class MsteamsNamespace
1992
+ attr_reader webhooks: MsteamsWebhooksNamespace
1993
+ def initialize: (Transport) -> void
1994
+ def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ms_teams_status
1995
+ def test: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool, "webhookCount" => Integer, "attempted" => Integer, "succeeded" => Integer }
1996
+ end
1997
+
1954
1998
  class OrgsNamespace
1955
1999
  def initialize: (Transport) -> void
1956
2000
  def create: (body: create_org_request, ?request_options: Hash[Symbol, untyped]?) -> organization
@@ -2145,6 +2189,7 @@ module Infrawrench
2145
2189
  attr_reader docker: DockerNamespace
2146
2190
  attr_reader invitations: InvitationsNamespace
2147
2191
  attr_reader kv: KvNamespace
2192
+ attr_reader msteams: MsteamsNamespace
2148
2193
  attr_reader orgs: OrgsNamespace
2149
2194
  attr_reader profile: ProfileNamespace
2150
2195
  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.4.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-07-26 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.4.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.4.0).
62
62
  test_files: []