infrawrench-sdk 1.75.0 → 1.76.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 +464 -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 +825 -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: 7d84ac031e513ec0482cbad8f0b243720e6e6c0a68606a57071ab3b4e375bda8
|
|
4
|
+
data.tar.gz: 441ae2cbc0ef0016339092e29a7fafb6c80a8c27bc9c184c0d356f74f638a755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecdb1efb98bd0682dc9ed867e0961422b6208f92d7773ad9ea7bfa4f229c7604fb790d56794cc4d4a185542f8ce9b32a4f17d82863208ace2943c9159769b714
|
|
7
|
+
data.tar.gz: 74ceaa8f1e48f8e53775a55b8bdce6efd8208fc435e114c3934c4dd356e0bb1ea0c3d02ed5eb22853d2fa3f7a82240614cccc9385befd3a9f191137f7f10a9b1
|
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.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `1.76.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
|
+
941 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 v1.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.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.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v1.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v1.76.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.76.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -14370,6 +14370,459 @@ module Infrawrench
|
|
|
14370
14370
|
end
|
|
14371
14371
|
end
|
|
14372
14372
|
|
|
14373
|
+
# `client.paging_incidents`
|
|
14374
|
+
class PagingIncidentsNamespace
|
|
14375
|
+
# @api private
|
|
14376
|
+
# @param transport [Transport]
|
|
14377
|
+
def initialize(transport)
|
|
14378
|
+
@transport = transport
|
|
14379
|
+
end
|
|
14380
|
+
|
|
14381
|
+
# Acknowledge a provider incident
|
|
14382
|
+
#
|
|
14383
|
+
# Written to the provider as the acting member where the provider records
|
|
14384
|
+
# who acted (PagerDuty's `From` header), falling back to the account's
|
|
14385
|
+
# default user. The returned state is the provider's answer, not an
|
|
14386
|
+
# assumption.
|
|
14387
|
+
#
|
|
14388
|
+
# POST /api/org/{orgId}/paging-incidents/{id}/acknowledge
|
|
14389
|
+
#
|
|
14390
|
+
# Raises on 400: Bad request
|
|
14391
|
+
#
|
|
14392
|
+
# Raises on 401: Unauthenticated
|
|
14393
|
+
#
|
|
14394
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14395
|
+
# this
|
|
14396
|
+
#
|
|
14397
|
+
# Raises on 403: Forbidden
|
|
14398
|
+
#
|
|
14399
|
+
# Raises on 404: Not found
|
|
14400
|
+
#
|
|
14401
|
+
# Raises on 409: Conflict
|
|
14402
|
+
#
|
|
14403
|
+
# Raises on 500: Server error
|
|
14404
|
+
#
|
|
14405
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14406
|
+
#
|
|
14407
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14408
|
+
# again and retry; the request itself was well-formed.
|
|
14409
|
+
#
|
|
14410
|
+
# @param org_id [String, nil] Defaults to the `org_id` the client was constructed with.
|
|
14411
|
+
# @param id [String]
|
|
14412
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14413
|
+
# @return [Hash] Parsed JSON, shaped as `PagerIncident` — see `sig/infrawrench/sdk.rbs`.
|
|
14414
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14415
|
+
def acknowledge(id:, org_id: nil, request_options: nil)
|
|
14416
|
+
@transport.request(
|
|
14417
|
+
http_method: "POST",
|
|
14418
|
+
path: "/api/org/{orgId}/paging-incidents/{id}/acknowledge",
|
|
14419
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
14420
|
+
request_options: request_options
|
|
14421
|
+
)
|
|
14422
|
+
end
|
|
14423
|
+
|
|
14424
|
+
# List incidents mirrored from paging providers
|
|
14425
|
+
#
|
|
14426
|
+
# Only accounts with inbound mirroring turned on contribute. Open incidents
|
|
14427
|
+
# by default; `status=all` includes resolved ones. These are a provider's
|
|
14428
|
+
# pages, distinct from incidents declared in Infrawrench (`/incidents`).
|
|
14429
|
+
#
|
|
14430
|
+
# GET /api/org/{orgId}/paging-incidents
|
|
14431
|
+
#
|
|
14432
|
+
# Raises on 400: Bad request
|
|
14433
|
+
#
|
|
14434
|
+
# Raises on 401: Unauthenticated
|
|
14435
|
+
#
|
|
14436
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14437
|
+
# this
|
|
14438
|
+
#
|
|
14439
|
+
# Raises on 403: Forbidden
|
|
14440
|
+
#
|
|
14441
|
+
# Raises on 404: Not found
|
|
14442
|
+
#
|
|
14443
|
+
# Raises on 409: Conflict
|
|
14444
|
+
#
|
|
14445
|
+
# Raises on 500: Server error
|
|
14446
|
+
#
|
|
14447
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14448
|
+
#
|
|
14449
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14450
|
+
# again and retry; the request itself was well-formed.
|
|
14451
|
+
#
|
|
14452
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
14453
|
+
# constructed with.
|
|
14454
|
+
# @param status [String, nil]
|
|
14455
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14456
|
+
# @return [Hash] Parsed JSON, shaped as `PagerIncidentsResponse` — see
|
|
14457
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14458
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14459
|
+
def get(org_id: nil, status: nil, request_options: nil)
|
|
14460
|
+
@transport.request(
|
|
14461
|
+
http_method: "GET",
|
|
14462
|
+
path: "/api/org/{orgId}/paging-incidents",
|
|
14463
|
+
path_params: { "orgId" => org_id },
|
|
14464
|
+
query: { "status" => status },
|
|
14465
|
+
request_options: request_options
|
|
14466
|
+
)
|
|
14467
|
+
end
|
|
14468
|
+
|
|
14469
|
+
# Resolve a provider incident
|
|
14470
|
+
#
|
|
14471
|
+
# Written to the provider as the acting member where the provider records
|
|
14472
|
+
# who acted (PagerDuty's `From` header), falling back to the account's
|
|
14473
|
+
# default user. The returned state is the provider's answer, not an
|
|
14474
|
+
# assumption.
|
|
14475
|
+
#
|
|
14476
|
+
# POST /api/org/{orgId}/paging-incidents/{id}/resolve
|
|
14477
|
+
#
|
|
14478
|
+
# Raises on 400: Bad request
|
|
14479
|
+
#
|
|
14480
|
+
# Raises on 401: Unauthenticated
|
|
14481
|
+
#
|
|
14482
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14483
|
+
# this
|
|
14484
|
+
#
|
|
14485
|
+
# Raises on 403: Forbidden
|
|
14486
|
+
#
|
|
14487
|
+
# Raises on 404: Not found
|
|
14488
|
+
#
|
|
14489
|
+
# Raises on 409: Conflict
|
|
14490
|
+
#
|
|
14491
|
+
# Raises on 500: Server error
|
|
14492
|
+
#
|
|
14493
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14494
|
+
#
|
|
14495
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14496
|
+
# again and retry; the request itself was well-formed.
|
|
14497
|
+
#
|
|
14498
|
+
# @param org_id [String, nil] Defaults to the `org_id` the client was constructed with.
|
|
14499
|
+
# @param id [String]
|
|
14500
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14501
|
+
# @return [Hash] Parsed JSON, shaped as `PagerIncident` — see `sig/infrawrench/sdk.rbs`.
|
|
14502
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14503
|
+
def resolve(id:, org_id: nil, request_options: nil)
|
|
14504
|
+
@transport.request(
|
|
14505
|
+
http_method: "POST",
|
|
14506
|
+
path: "/api/org/{orgId}/paging-incidents/{id}/resolve",
|
|
14507
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
14508
|
+
request_options: request_options
|
|
14509
|
+
)
|
|
14510
|
+
end
|
|
14511
|
+
end
|
|
14512
|
+
|
|
14513
|
+
# `client.paging_providers.on_call`
|
|
14514
|
+
class PagingProvidersOnCallNamespace
|
|
14515
|
+
# @api private
|
|
14516
|
+
# @param transport [Transport]
|
|
14517
|
+
def initialize(transport)
|
|
14518
|
+
@transport = transport
|
|
14519
|
+
end
|
|
14520
|
+
|
|
14521
|
+
# Who is on call on a provider schedule or escalation policy
|
|
14522
|
+
#
|
|
14523
|
+
# Takes `team:read`, like the rotation preview. Each person is matched to an
|
|
14524
|
+
# organization member by email; `memberUserId` is null for somebody who is
|
|
14525
|
+
# on call upstream but not a member here.
|
|
14526
|
+
#
|
|
14527
|
+
# GET /api/org/{orgId}/paging-providers/{accountId}/on-call/{sourceId}
|
|
14528
|
+
#
|
|
14529
|
+
# Raises on 400: Bad request
|
|
14530
|
+
#
|
|
14531
|
+
# Raises on 401: Unauthenticated
|
|
14532
|
+
#
|
|
14533
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14534
|
+
# this
|
|
14535
|
+
#
|
|
14536
|
+
# Raises on 403: Forbidden
|
|
14537
|
+
#
|
|
14538
|
+
# Raises on 404: Not found
|
|
14539
|
+
#
|
|
14540
|
+
# Raises on 409: Conflict
|
|
14541
|
+
#
|
|
14542
|
+
# Raises on 500: Server error
|
|
14543
|
+
#
|
|
14544
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14545
|
+
#
|
|
14546
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14547
|
+
# again and retry; the request itself was well-formed.
|
|
14548
|
+
#
|
|
14549
|
+
# @param org_id [String, nil] Defaults to the `org_id` the client was constructed with.
|
|
14550
|
+
# @param account_id [String] A connected account whose plugin can page
|
|
14551
|
+
# @param source_id [String]
|
|
14552
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14553
|
+
# @return [Hash] Parsed JSON, shaped as `PagingOnCallNowResponse` — see
|
|
14554
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14555
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14556
|
+
def get(account_id:, source_id:, org_id: nil, request_options: nil)
|
|
14557
|
+
@transport.request(
|
|
14558
|
+
http_method: "GET",
|
|
14559
|
+
path: "/api/org/{orgId}/paging-providers/{accountId}/on-call/{sourceId}",
|
|
14560
|
+
path_params: { "orgId" => org_id, "accountId" => account_id, "sourceId" => source_id },
|
|
14561
|
+
request_options: request_options
|
|
14562
|
+
)
|
|
14563
|
+
end
|
|
14564
|
+
end
|
|
14565
|
+
|
|
14566
|
+
# `client.paging_providers`
|
|
14567
|
+
class PagingProvidersNamespace
|
|
14568
|
+
# @return [PagingProvidersOnCallNamespace] `client.paging_providers.on_call`
|
|
14569
|
+
attr_reader :on_call
|
|
14570
|
+
|
|
14571
|
+
# @api private
|
|
14572
|
+
# @param transport [Transport]
|
|
14573
|
+
def initialize(transport)
|
|
14574
|
+
@transport = transport
|
|
14575
|
+
@on_call = PagingProvidersOnCallNamespace.new(@transport)
|
|
14576
|
+
end
|
|
14577
|
+
|
|
14578
|
+
# List the targets and on-call sources a routing rule can name
|
|
14579
|
+
#
|
|
14580
|
+
# Listed live from each provider, so a destination is picked by name. A
|
|
14581
|
+
# failure is reported per account in `error` rather than failing the
|
|
14582
|
+
# response.
|
|
14583
|
+
#
|
|
14584
|
+
# GET /api/org/{orgId}/paging-providers/destinations
|
|
14585
|
+
#
|
|
14586
|
+
# Raises on 400: Bad request
|
|
14587
|
+
#
|
|
14588
|
+
# Raises on 401: Unauthenticated
|
|
14589
|
+
#
|
|
14590
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14591
|
+
# this
|
|
14592
|
+
#
|
|
14593
|
+
# Raises on 403: Forbidden
|
|
14594
|
+
#
|
|
14595
|
+
# Raises on 404: Not found
|
|
14596
|
+
#
|
|
14597
|
+
# Raises on 409: Conflict
|
|
14598
|
+
#
|
|
14599
|
+
# Raises on 500: Server error
|
|
14600
|
+
#
|
|
14601
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14602
|
+
#
|
|
14603
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14604
|
+
# again and retry; the request itself was well-formed.
|
|
14605
|
+
#
|
|
14606
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
14607
|
+
# constructed with.
|
|
14608
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14609
|
+
# @return [Hash] Parsed JSON, shaped as `PagingDestinationsResponse` — see
|
|
14610
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14611
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14612
|
+
def destinations(org_id: nil, request_options: nil)
|
|
14613
|
+
@transport.request(
|
|
14614
|
+
http_method: "GET",
|
|
14615
|
+
path: "/api/org/{orgId}/paging-providers/destinations",
|
|
14616
|
+
path_params: { "orgId" => org_id },
|
|
14617
|
+
request_options: request_options
|
|
14618
|
+
)
|
|
14619
|
+
end
|
|
14620
|
+
|
|
14621
|
+
# List upstream alerts Infrawrench opened
|
|
14622
|
+
#
|
|
14623
|
+
# One row per (account, target, dedup key): a trigger, its acknowledgement
|
|
14624
|
+
# and its resolution are one alert upstream. `pendingAction` is set while a
|
|
14625
|
+
# send is queued or being retried.
|
|
14626
|
+
#
|
|
14627
|
+
# GET /api/org/{orgId}/paging-providers/events
|
|
14628
|
+
#
|
|
14629
|
+
# Raises on 400: Bad request
|
|
14630
|
+
#
|
|
14631
|
+
# Raises on 401: Unauthenticated
|
|
14632
|
+
#
|
|
14633
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14634
|
+
# this
|
|
14635
|
+
#
|
|
14636
|
+
# Raises on 403: Forbidden
|
|
14637
|
+
#
|
|
14638
|
+
# Raises on 404: Not found
|
|
14639
|
+
#
|
|
14640
|
+
# Raises on 409: Conflict
|
|
14641
|
+
#
|
|
14642
|
+
# Raises on 500: Server error
|
|
14643
|
+
#
|
|
14644
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14645
|
+
#
|
|
14646
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14647
|
+
# again and retry; the request itself was well-formed.
|
|
14648
|
+
#
|
|
14649
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
14650
|
+
# constructed with.
|
|
14651
|
+
# @param limit [Integer, nil]
|
|
14652
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14653
|
+
# @return [Hash] Parsed JSON, shaped as `PagingEventsResponse` — see
|
|
14654
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14655
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14656
|
+
def events(org_id: nil, limit: nil, request_options: nil)
|
|
14657
|
+
@transport.request(
|
|
14658
|
+
http_method: "GET",
|
|
14659
|
+
path: "/api/org/{orgId}/paging-providers/events",
|
|
14660
|
+
path_params: { "orgId" => org_id },
|
|
14661
|
+
query: { "limit" => limit },
|
|
14662
|
+
request_options: request_options
|
|
14663
|
+
)
|
|
14664
|
+
end
|
|
14665
|
+
|
|
14666
|
+
# List paging provider accounts and their settings
|
|
14667
|
+
#
|
|
14668
|
+
# GET /api/org/{orgId}/paging-providers
|
|
14669
|
+
#
|
|
14670
|
+
# Raises on 400: Bad request
|
|
14671
|
+
#
|
|
14672
|
+
# Raises on 401: Unauthenticated
|
|
14673
|
+
#
|
|
14674
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14675
|
+
# this
|
|
14676
|
+
#
|
|
14677
|
+
# Raises on 403: Forbidden
|
|
14678
|
+
#
|
|
14679
|
+
# Raises on 404: Not found
|
|
14680
|
+
#
|
|
14681
|
+
# Raises on 409: Conflict
|
|
14682
|
+
#
|
|
14683
|
+
# Raises on 500: Server error
|
|
14684
|
+
#
|
|
14685
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14686
|
+
#
|
|
14687
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14688
|
+
# again and retry; the request itself was well-formed.
|
|
14689
|
+
#
|
|
14690
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
14691
|
+
# constructed with.
|
|
14692
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14693
|
+
# @return [Hash] Parsed JSON, shaped as `PagingProvidersResponse` — see
|
|
14694
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14695
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14696
|
+
def get(org_id: nil, request_options: nil)
|
|
14697
|
+
@transport.request(
|
|
14698
|
+
http_method: "GET",
|
|
14699
|
+
path: "/api/org/{orgId}/paging-providers",
|
|
14700
|
+
path_params: { "orgId" => org_id },
|
|
14701
|
+
request_options: request_options
|
|
14702
|
+
)
|
|
14703
|
+
end
|
|
14704
|
+
|
|
14705
|
+
# Configure incident mirroring for a paging provider account
|
|
14706
|
+
#
|
|
14707
|
+
# Turning inbound on with a `managed` webhook subscribes one through the
|
|
14708
|
+
# provider's API; turning it off removes the subscription and forgets the
|
|
14709
|
+
# mirrored incidents. A webhook that cannot be subscribed is reported in
|
|
14710
|
+
# `warning` and mirroring falls back to reconciling on a timer.
|
|
14711
|
+
#
|
|
14712
|
+
# PUT /api/org/{orgId}/paging-providers/{accountId}/settings
|
|
14713
|
+
#
|
|
14714
|
+
# Raises on 400: Bad request
|
|
14715
|
+
#
|
|
14716
|
+
# Raises on 401: Unauthenticated
|
|
14717
|
+
#
|
|
14718
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14719
|
+
# this
|
|
14720
|
+
#
|
|
14721
|
+
# Raises on 403: Forbidden
|
|
14722
|
+
#
|
|
14723
|
+
# Raises on 404: Not found
|
|
14724
|
+
#
|
|
14725
|
+
# Raises on 409: Conflict
|
|
14726
|
+
#
|
|
14727
|
+
# Raises on 500: Server error
|
|
14728
|
+
#
|
|
14729
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14730
|
+
#
|
|
14731
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14732
|
+
# again and retry; the request itself was well-formed.
|
|
14733
|
+
#
|
|
14734
|
+
# @param org_id [String, nil] Defaults to the `org_id` the client was constructed with.
|
|
14735
|
+
# @param account_id [String] A connected account whose plugin can page
|
|
14736
|
+
# @param body [Hash, nil] Request body, shaped as `PagingProviderSettingsInput`.
|
|
14737
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14738
|
+
# @return [Hash] Parsed JSON, shaped as `PagingProviderSettingsResult` — see
|
|
14739
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
14740
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14741
|
+
def settings(account_id:, org_id: nil, body: nil, request_options: nil)
|
|
14742
|
+
@transport.request(
|
|
14743
|
+
http_method: "PUT",
|
|
14744
|
+
path: "/api/org/{orgId}/paging-providers/{accountId}/settings",
|
|
14745
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
14746
|
+
body: body,
|
|
14747
|
+
request_options: request_options
|
|
14748
|
+
)
|
|
14749
|
+
end
|
|
14750
|
+
|
|
14751
|
+
# Reconcile an account's incidents now
|
|
14752
|
+
#
|
|
14753
|
+
# POST /api/org/{orgId}/paging-providers/{accountId}/sync
|
|
14754
|
+
#
|
|
14755
|
+
# Raises on 400: Bad request
|
|
14756
|
+
#
|
|
14757
|
+
# Raises on 401: Unauthenticated
|
|
14758
|
+
#
|
|
14759
|
+
# Raises on 402: Payment required: the organization's plan does not include
|
|
14760
|
+
# this
|
|
14761
|
+
#
|
|
14762
|
+
# Raises on 403: Forbidden
|
|
14763
|
+
#
|
|
14764
|
+
# Raises on 404: Not found
|
|
14765
|
+
#
|
|
14766
|
+
# Raises on 409: Conflict
|
|
14767
|
+
#
|
|
14768
|
+
# Raises on 500: Server error
|
|
14769
|
+
#
|
|
14770
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
14771
|
+
#
|
|
14772
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
14773
|
+
# again and retry; the request itself was well-formed.
|
|
14774
|
+
#
|
|
14775
|
+
# @param org_id [String, nil] Defaults to the `org_id` the client was constructed with.
|
|
14776
|
+
# @param account_id [String] A connected account whose plugin can page
|
|
14777
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14778
|
+
# @return [Hash] Parsed JSON, shaped as `PagingSyncResult` — see `sig/infrawrench/sdk.rbs`.
|
|
14779
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14780
|
+
def sync(account_id:, org_id: nil, request_options: nil)
|
|
14781
|
+
@transport.request(
|
|
14782
|
+
http_method: "POST",
|
|
14783
|
+
path: "/api/org/{orgId}/paging-providers/{accountId}/sync",
|
|
14784
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
14785
|
+
request_options: request_options
|
|
14786
|
+
)
|
|
14787
|
+
end
|
|
14788
|
+
end
|
|
14789
|
+
|
|
14790
|
+
# `client.paging_webhooks`
|
|
14791
|
+
class PagingWebhooksNamespace
|
|
14792
|
+
# @api private
|
|
14793
|
+
# @param transport [Transport]
|
|
14794
|
+
def initialize(transport)
|
|
14795
|
+
@transport = transport
|
|
14796
|
+
end
|
|
14797
|
+
|
|
14798
|
+
# Inbound paging provider webhook
|
|
14799
|
+
#
|
|
14800
|
+
# Called by the provider, not by clients. The token in the path picks the
|
|
14801
|
+
# account; the provider's signature, verified with the stored secret,
|
|
14802
|
+
# authenticates the delivery. The payload is treated as a nudge: each
|
|
14803
|
+
# incident it names is re-read from the provider's API.
|
|
14804
|
+
#
|
|
14805
|
+
# POST /api/paging-webhooks/{token}
|
|
14806
|
+
#
|
|
14807
|
+
# Raises on 401: The signature did not verify
|
|
14808
|
+
#
|
|
14809
|
+
# Raises on 404: Unknown token
|
|
14810
|
+
#
|
|
14811
|
+
# @param token [String]
|
|
14812
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
14813
|
+
# @return [nil] This endpoint returns no content.
|
|
14814
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
14815
|
+
def create(token:, request_options: nil)
|
|
14816
|
+
@transport.request(
|
|
14817
|
+
http_method: "POST",
|
|
14818
|
+
path: "/api/paging-webhooks/{token}",
|
|
14819
|
+
path_params: { "token" => token },
|
|
14820
|
+
accept: :empty,
|
|
14821
|
+
request_options: request_options
|
|
14822
|
+
)
|
|
14823
|
+
end
|
|
14824
|
+
end
|
|
14825
|
+
|
|
14373
14826
|
# `client.posture.dismissals`
|
|
14374
14827
|
class PostureDismissalsNamespace
|
|
14375
14828
|
# @api private
|
|
@@ -20967,6 +21420,12 @@ module Infrawrench
|
|
|
20967
21420
|
attr_reader :ownership
|
|
20968
21421
|
# @return [PagesNamespace] `client.pages`
|
|
20969
21422
|
attr_reader :pages
|
|
21423
|
+
# @return [PagingIncidentsNamespace] `client.paging_incidents`
|
|
21424
|
+
attr_reader :paging_incidents
|
|
21425
|
+
# @return [PagingProvidersNamespace] `client.paging_providers`
|
|
21426
|
+
attr_reader :paging_providers
|
|
21427
|
+
# @return [PagingWebhooksNamespace] `client.paging_webhooks`
|
|
21428
|
+
attr_reader :paging_webhooks
|
|
20970
21429
|
# @return [PostureNamespace] `client.posture`
|
|
20971
21430
|
attr_reader :posture
|
|
20972
21431
|
# @return [PriceCatalogNamespace] `client.price_catalog`
|
|
@@ -21118,6 +21577,9 @@ module Infrawrench
|
|
|
21118
21577
|
@orphans = OrphansNamespace.new(@transport)
|
|
21119
21578
|
@ownership = OwnershipNamespace.new(@transport)
|
|
21120
21579
|
@pages = PagesNamespace.new(@transport)
|
|
21580
|
+
@paging_incidents = PagingIncidentsNamespace.new(@transport)
|
|
21581
|
+
@paging_providers = PagingProvidersNamespace.new(@transport)
|
|
21582
|
+
@paging_webhooks = PagingWebhooksNamespace.new(@transport)
|
|
21121
21583
|
@posture = PostureNamespace.new(@transport)
|
|
21122
21584
|
@price_catalog = PriceCatalogNamespace.new(@transport)
|
|
21123
21585
|
@probes = ProbesNamespace.new(@transport)
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.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.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.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.
|
|
18
|
+
VERSION = "1.76.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.76.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.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.76.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|