infrawrench-sdk 1.76.0 → 1.77.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 +554 -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 +213 -3
- 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: ab0a40192266e73aeaa16ef58815681b52185e6dee4ca5c00af859785acb9ce9
|
|
4
|
+
data.tar.gz: 302e42dd303dd17ab94cb5601c698c384c2960b9e1cc289807c399b9db52955d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa993b4dd311c8ab813ca71383eb8be7b0f4d69b012351b47e38c42441da0685d55849db440029822900830d0d06773f636c264d50ac616eb724f798bae52ad8
|
|
7
|
+
data.tar.gz: 875ed1e3e5697713071a6db73bc5ae07958892858316d3b28e1fd2477a90c3e7c00b1a0376291a2c6eb0cef0154e43249191c82367be55fd52adf2b295de6769
|
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.77.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
|
+
954 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.77.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.77.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.77.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.77.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.77.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.77.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -12408,6 +12408,555 @@ module Infrawrench
|
|
|
12408
12408
|
end
|
|
12409
12409
|
end
|
|
12410
12410
|
|
|
12411
|
+
# `client.jit_access.accounts`
|
|
12412
|
+
class JitAccessAccountsNamespace
|
|
12413
|
+
# @api private
|
|
12414
|
+
# @param transport [Transport]
|
|
12415
|
+
def initialize(transport)
|
|
12416
|
+
@transport = transport
|
|
12417
|
+
end
|
|
12418
|
+
|
|
12419
|
+
# Accounts that can grant just-in-time access
|
|
12420
|
+
#
|
|
12421
|
+
# Connected accounts whose provider plugin declares the just-in-time
|
|
12422
|
+
# capability.
|
|
12423
|
+
#
|
|
12424
|
+
# _Requires permission: `access:read`._
|
|
12425
|
+
#
|
|
12426
|
+
# GET /api/org/{orgId}/jit-access/accounts
|
|
12427
|
+
#
|
|
12428
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12429
|
+
# constructed with.
|
|
12430
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12431
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitAccessAccount>` — see
|
|
12432
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12433
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12434
|
+
def list(org_id: nil, request_options: nil)
|
|
12435
|
+
@transport.request(
|
|
12436
|
+
http_method: "GET",
|
|
12437
|
+
path: "/api/org/{orgId}/jit-access/accounts",
|
|
12438
|
+
path_params: { "orgId" => org_id },
|
|
12439
|
+
request_options: request_options
|
|
12440
|
+
)
|
|
12441
|
+
end
|
|
12442
|
+
|
|
12443
|
+
# Grantable roles in a scope (picker)
|
|
12444
|
+
#
|
|
12445
|
+
# _Requires permission: `org:settings:write`._
|
|
12446
|
+
#
|
|
12447
|
+
# GET /api/org/{orgId}/jit-access/accounts/{accountId}/roles
|
|
12448
|
+
#
|
|
12449
|
+
# Raises on 502: Provider error
|
|
12450
|
+
#
|
|
12451
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12452
|
+
# constructed with.
|
|
12453
|
+
# @param account_id [String]
|
|
12454
|
+
# @param scope_id [String]
|
|
12455
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12456
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitPickerOption>` — see
|
|
12457
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12458
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12459
|
+
def roles(account_id:, scope_id:, org_id: nil, request_options: nil)
|
|
12460
|
+
@transport.request(
|
|
12461
|
+
http_method: "GET",
|
|
12462
|
+
path: "/api/org/{orgId}/jit-access/accounts/{accountId}/roles",
|
|
12463
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
12464
|
+
query: { "scopeId" => scope_id },
|
|
12465
|
+
request_options: request_options
|
|
12466
|
+
)
|
|
12467
|
+
end
|
|
12468
|
+
|
|
12469
|
+
# Scopes on an account (picker)
|
|
12470
|
+
#
|
|
12471
|
+
# The places a role can be granted (AWS accounts, GCP projects, namespaces),
|
|
12472
|
+
# read from the provider.
|
|
12473
|
+
#
|
|
12474
|
+
# _Requires permission: `org:settings:write`._
|
|
12475
|
+
#
|
|
12476
|
+
# GET /api/org/{orgId}/jit-access/accounts/{accountId}/scopes
|
|
12477
|
+
#
|
|
12478
|
+
# Raises on 502: Provider error
|
|
12479
|
+
#
|
|
12480
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12481
|
+
# constructed with.
|
|
12482
|
+
# @param account_id [String]
|
|
12483
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12484
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitPickerOption>` — see
|
|
12485
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12486
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12487
|
+
def scopes(account_id:, org_id: nil, request_options: nil)
|
|
12488
|
+
@transport.request(
|
|
12489
|
+
http_method: "GET",
|
|
12490
|
+
path: "/api/org/{orgId}/jit-access/accounts/{accountId}/scopes",
|
|
12491
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
12492
|
+
request_options: request_options
|
|
12493
|
+
)
|
|
12494
|
+
end
|
|
12495
|
+
end
|
|
12496
|
+
|
|
12497
|
+
# `client.jit_access.policies`
|
|
12498
|
+
class JitAccessPoliciesNamespace
|
|
12499
|
+
# @api private
|
|
12500
|
+
# @param transport [Transport]
|
|
12501
|
+
def initialize(transport)
|
|
12502
|
+
@transport = transport
|
|
12503
|
+
end
|
|
12504
|
+
|
|
12505
|
+
# Create a policy
|
|
12506
|
+
#
|
|
12507
|
+
# Audit-logged. At least one approver (member, role or on-call rotation) is
|
|
12508
|
+
# required.
|
|
12509
|
+
#
|
|
12510
|
+
# _Requires permission: `org:settings:write`._
|
|
12511
|
+
#
|
|
12512
|
+
# POST /api/org/{orgId}/jit-access/policies
|
|
12513
|
+
#
|
|
12514
|
+
# Raises on 400: Bad request
|
|
12515
|
+
#
|
|
12516
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12517
|
+
# constructed with.
|
|
12518
|
+
# @param body [Hash, nil] Request body, shaped as `JitPolicyInput`.
|
|
12519
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12520
|
+
# @return [Hash] Parsed JSON, shaped as `JitPolicy` — see `sig/infrawrench/sdk.rbs`.
|
|
12521
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12522
|
+
def create(org_id: nil, body: nil, request_options: nil)
|
|
12523
|
+
@transport.request(
|
|
12524
|
+
http_method: "POST",
|
|
12525
|
+
path: "/api/org/{orgId}/jit-access/policies",
|
|
12526
|
+
path_params: { "orgId" => org_id },
|
|
12527
|
+
body: body,
|
|
12528
|
+
request_options: request_options
|
|
12529
|
+
)
|
|
12530
|
+
end
|
|
12531
|
+
|
|
12532
|
+
# Delete a policy
|
|
12533
|
+
#
|
|
12534
|
+
# Grants the policy produced still end on time; its pending requests have no
|
|
12535
|
+
# approvers and time out.
|
|
12536
|
+
#
|
|
12537
|
+
# _Requires permission: `org:settings:write`._
|
|
12538
|
+
#
|
|
12539
|
+
# DELETE /api/org/{orgId}/jit-access/policies/{policyId}
|
|
12540
|
+
#
|
|
12541
|
+
# Raises on 404: Not found
|
|
12542
|
+
#
|
|
12543
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12544
|
+
# constructed with.
|
|
12545
|
+
# @param policy_id [String]
|
|
12546
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12547
|
+
# @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
|
|
12548
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12549
|
+
def delete(policy_id:, org_id: nil, request_options: nil)
|
|
12550
|
+
@transport.request(
|
|
12551
|
+
http_method: "DELETE",
|
|
12552
|
+
path: "/api/org/{orgId}/jit-access/policies/{policyId}",
|
|
12553
|
+
path_params: { "orgId" => org_id, "policyId" => policy_id },
|
|
12554
|
+
request_options: request_options
|
|
12555
|
+
)
|
|
12556
|
+
end
|
|
12557
|
+
|
|
12558
|
+
# Get a policy
|
|
12559
|
+
#
|
|
12560
|
+
# _Requires permission: `access:read`._
|
|
12561
|
+
#
|
|
12562
|
+
# GET /api/org/{orgId}/jit-access/policies/{policyId}
|
|
12563
|
+
#
|
|
12564
|
+
# Raises on 404: Not found
|
|
12565
|
+
#
|
|
12566
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12567
|
+
# constructed with.
|
|
12568
|
+
# @param policy_id [String]
|
|
12569
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12570
|
+
# @return [Hash] Parsed JSON, shaped as `JitPolicy` — see `sig/infrawrench/sdk.rbs`.
|
|
12571
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12572
|
+
def get(policy_id:, org_id: nil, request_options: nil)
|
|
12573
|
+
@transport.request(
|
|
12574
|
+
http_method: "GET",
|
|
12575
|
+
path: "/api/org/{orgId}/jit-access/policies/{policyId}",
|
|
12576
|
+
path_params: { "orgId" => org_id, "policyId" => policy_id },
|
|
12577
|
+
request_options: request_options
|
|
12578
|
+
)
|
|
12579
|
+
end
|
|
12580
|
+
|
|
12581
|
+
# List just-in-time access policies
|
|
12582
|
+
#
|
|
12583
|
+
# _Requires permission: `access:read`._
|
|
12584
|
+
#
|
|
12585
|
+
# GET /api/org/{orgId}/jit-access/policies
|
|
12586
|
+
#
|
|
12587
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12588
|
+
# constructed with.
|
|
12589
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12590
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitPolicy>` — see
|
|
12591
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12592
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12593
|
+
def list(org_id: nil, request_options: nil)
|
|
12594
|
+
@transport.request(
|
|
12595
|
+
http_method: "GET",
|
|
12596
|
+
path: "/api/org/{orgId}/jit-access/policies",
|
|
12597
|
+
path_params: { "orgId" => org_id },
|
|
12598
|
+
request_options: request_options
|
|
12599
|
+
)
|
|
12600
|
+
end
|
|
12601
|
+
|
|
12602
|
+
# Resolve the caller's provider principal
|
|
12603
|
+
#
|
|
12604
|
+
# Who the grant would go to, matched by the caller's email in the provider.
|
|
12605
|
+
#
|
|
12606
|
+
# _Requires permission: `access:request`._
|
|
12607
|
+
#
|
|
12608
|
+
# GET /api/org/{orgId}/jit-access/policies/{policyId}/principal
|
|
12609
|
+
#
|
|
12610
|
+
# Raises on 403: Not a requester
|
|
12611
|
+
#
|
|
12612
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12613
|
+
# constructed with.
|
|
12614
|
+
# @param policy_id [String]
|
|
12615
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12616
|
+
# @return [Hash] Parsed JSON, shaped as `JitPrincipalResolution` — see
|
|
12617
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12618
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12619
|
+
def principal(policy_id:, org_id: nil, request_options: nil)
|
|
12620
|
+
@transport.request(
|
|
12621
|
+
http_method: "GET",
|
|
12622
|
+
path: "/api/org/{orgId}/jit-access/policies/{policyId}/principal",
|
|
12623
|
+
path_params: { "orgId" => org_id, "policyId" => policy_id },
|
|
12624
|
+
request_options: request_options
|
|
12625
|
+
)
|
|
12626
|
+
end
|
|
12627
|
+
|
|
12628
|
+
# Principals the caller may pick
|
|
12629
|
+
#
|
|
12630
|
+
# _Requires permission: `access:request`._
|
|
12631
|
+
#
|
|
12632
|
+
# GET /api/org/{orgId}/jit-access/policies/{policyId}/principals
|
|
12633
|
+
#
|
|
12634
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12635
|
+
# constructed with.
|
|
12636
|
+
# @param policy_id [String]
|
|
12637
|
+
# @param q [String, nil]
|
|
12638
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12639
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitPrincipalOption & Hash>` — see
|
|
12640
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12641
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12642
|
+
def principals(policy_id:, org_id: nil, q: nil, request_options: nil)
|
|
12643
|
+
@transport.request(
|
|
12644
|
+
http_method: "GET",
|
|
12645
|
+
path: "/api/org/{orgId}/jit-access/policies/{policyId}/principals",
|
|
12646
|
+
path_params: { "orgId" => org_id, "policyId" => policy_id },
|
|
12647
|
+
query: { "q" => q },
|
|
12648
|
+
request_options: request_options
|
|
12649
|
+
)
|
|
12650
|
+
end
|
|
12651
|
+
|
|
12652
|
+
# Replace a policy
|
|
12653
|
+
#
|
|
12654
|
+
# Live grants keep their window; pending requests are decided against the
|
|
12655
|
+
# new approver set.
|
|
12656
|
+
#
|
|
12657
|
+
# _Requires permission: `org:settings:write`._
|
|
12658
|
+
#
|
|
12659
|
+
# PUT /api/org/{orgId}/jit-access/policies/{policyId}
|
|
12660
|
+
#
|
|
12661
|
+
# Raises on 400: Bad request
|
|
12662
|
+
#
|
|
12663
|
+
# Raises on 404: Not found
|
|
12664
|
+
#
|
|
12665
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12666
|
+
# constructed with.
|
|
12667
|
+
# @param policy_id [String]
|
|
12668
|
+
# @param body [Hash, nil] Request body, shaped as `JitPolicyInput`.
|
|
12669
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12670
|
+
# @return [Hash] Parsed JSON, shaped as `JitPolicy` — see `sig/infrawrench/sdk.rbs`.
|
|
12671
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12672
|
+
def update(policy_id:, org_id: nil, body: nil, request_options: nil)
|
|
12673
|
+
@transport.request(
|
|
12674
|
+
http_method: "PUT",
|
|
12675
|
+
path: "/api/org/{orgId}/jit-access/policies/{policyId}",
|
|
12676
|
+
path_params: { "orgId" => org_id, "policyId" => policy_id },
|
|
12677
|
+
body: body,
|
|
12678
|
+
request_options: request_options
|
|
12679
|
+
)
|
|
12680
|
+
end
|
|
12681
|
+
end
|
|
12682
|
+
|
|
12683
|
+
# `client.jit_access.requests`
|
|
12684
|
+
class JitAccessRequestsNamespace
|
|
12685
|
+
# @api private
|
|
12686
|
+
# @param transport [Transport]
|
|
12687
|
+
def initialize(transport)
|
|
12688
|
+
@transport = transport
|
|
12689
|
+
end
|
|
12690
|
+
|
|
12691
|
+
# Approve a request
|
|
12692
|
+
#
|
|
12693
|
+
# The caller must be in the policy's approver set at this moment. On
|
|
12694
|
+
# approval the provider grant is made; the response may still read
|
|
12695
|
+
# `granting` when it completes in the background. Audit-logged. Not
|
|
12696
|
+
# available to API keys.
|
|
12697
|
+
#
|
|
12698
|
+
# _Requires permission: `access:read`._
|
|
12699
|
+
#
|
|
12700
|
+
# POST /api/org/{orgId}/jit-access/requests/{requestId}/approve
|
|
12701
|
+
#
|
|
12702
|
+
# Raises on 403: Not allowed
|
|
12703
|
+
#
|
|
12704
|
+
# Raises on 404: Not found
|
|
12705
|
+
#
|
|
12706
|
+
# Raises on 409: Already decided, timed out, or not in a state for this
|
|
12707
|
+
#
|
|
12708
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12709
|
+
# constructed with.
|
|
12710
|
+
# @param request_id [String]
|
|
12711
|
+
# @param body [Hash, nil] Request body, shaped as `Hash`.
|
|
12712
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12713
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12714
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12715
|
+
def approve(request_id:, org_id: nil, body: nil, request_options: nil)
|
|
12716
|
+
@transport.request(
|
|
12717
|
+
http_method: "POST",
|
|
12718
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}/approve",
|
|
12719
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12720
|
+
body: body,
|
|
12721
|
+
request_options: request_options
|
|
12722
|
+
)
|
|
12723
|
+
end
|
|
12724
|
+
|
|
12725
|
+
# Cancel your pending request
|
|
12726
|
+
#
|
|
12727
|
+
# Requester only. Audit-logged. Not available to API keys.
|
|
12728
|
+
#
|
|
12729
|
+
# _Requires permission: `access:request`._
|
|
12730
|
+
#
|
|
12731
|
+
# POST /api/org/{orgId}/jit-access/requests/{requestId}/cancel
|
|
12732
|
+
#
|
|
12733
|
+
# Raises on 403: Not allowed
|
|
12734
|
+
#
|
|
12735
|
+
# Raises on 404: Not found
|
|
12736
|
+
#
|
|
12737
|
+
# Raises on 409: Already decided, timed out, or not in a state for this
|
|
12738
|
+
#
|
|
12739
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12740
|
+
# constructed with.
|
|
12741
|
+
# @param request_id [String]
|
|
12742
|
+
# @param body [Hash, nil] Request body, shaped as `Hash`.
|
|
12743
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12744
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12745
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12746
|
+
def cancel(request_id:, org_id: nil, body: nil, request_options: nil)
|
|
12747
|
+
@transport.request(
|
|
12748
|
+
http_method: "POST",
|
|
12749
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}/cancel",
|
|
12750
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12751
|
+
body: body,
|
|
12752
|
+
request_options: request_options
|
|
12753
|
+
)
|
|
12754
|
+
end
|
|
12755
|
+
|
|
12756
|
+
# Request just-in-time access
|
|
12757
|
+
#
|
|
12758
|
+
# Ask for one of a policy's scope and role pairs for a bounded window.
|
|
12759
|
+
# Approvers are notified over push, Slack (with Approve/Deny buttons) and
|
|
12760
|
+
# Microsoft Teams. Not available to API keys.
|
|
12761
|
+
#
|
|
12762
|
+
# _Requires permission: `access:request`._
|
|
12763
|
+
#
|
|
12764
|
+
# POST /api/org/{orgId}/jit-access/requests
|
|
12765
|
+
#
|
|
12766
|
+
# Raises on 400: Invalid
|
|
12767
|
+
#
|
|
12768
|
+
# Raises on 403: Not a requester under this policy
|
|
12769
|
+
#
|
|
12770
|
+
# Raises on 409: A pending or active request already covers this
|
|
12771
|
+
#
|
|
12772
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12773
|
+
# constructed with.
|
|
12774
|
+
# @param body [Hash, nil] Request body, shaped as `JitCreateRequest`.
|
|
12775
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12776
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12777
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12778
|
+
def create(org_id: nil, body: nil, request_options: nil)
|
|
12779
|
+
@transport.request(
|
|
12780
|
+
http_method: "POST",
|
|
12781
|
+
path: "/api/org/{orgId}/jit-access/requests",
|
|
12782
|
+
path_params: { "orgId" => org_id },
|
|
12783
|
+
body: body,
|
|
12784
|
+
request_options: request_options
|
|
12785
|
+
)
|
|
12786
|
+
end
|
|
12787
|
+
|
|
12788
|
+
# Deny a request
|
|
12789
|
+
#
|
|
12790
|
+
# The caller must be in the policy's approver set. Audit-logged. Not
|
|
12791
|
+
# available to API keys.
|
|
12792
|
+
#
|
|
12793
|
+
# _Requires permission: `access:read`._
|
|
12794
|
+
#
|
|
12795
|
+
# POST /api/org/{orgId}/jit-access/requests/{requestId}/deny
|
|
12796
|
+
#
|
|
12797
|
+
# Raises on 403: Not allowed
|
|
12798
|
+
#
|
|
12799
|
+
# Raises on 404: Not found
|
|
12800
|
+
#
|
|
12801
|
+
# Raises on 409: Already decided, timed out, or not in a state for this
|
|
12802
|
+
#
|
|
12803
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12804
|
+
# constructed with.
|
|
12805
|
+
# @param request_id [String]
|
|
12806
|
+
# @param body [Hash, nil] Request body, shaped as `Hash`.
|
|
12807
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12808
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12809
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12810
|
+
def deny(request_id:, org_id: nil, body: nil, request_options: nil)
|
|
12811
|
+
@transport.request(
|
|
12812
|
+
http_method: "POST",
|
|
12813
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}/deny",
|
|
12814
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12815
|
+
body: body,
|
|
12816
|
+
request_options: request_options
|
|
12817
|
+
)
|
|
12818
|
+
end
|
|
12819
|
+
|
|
12820
|
+
# Extend an active grant
|
|
12821
|
+
#
|
|
12822
|
+
# Approvers only, within the policy maximum for the whole window. A
|
|
12823
|
+
# provider-enforced expiry is moved upstream first. Audit-logged. Not
|
|
12824
|
+
# available to API keys.
|
|
12825
|
+
#
|
|
12826
|
+
# _Requires permission: `access:read`._
|
|
12827
|
+
#
|
|
12828
|
+
# POST /api/org/{orgId}/jit-access/requests/{requestId}/extend
|
|
12829
|
+
#
|
|
12830
|
+
# Raises on 400: Beyond the policy maximum
|
|
12831
|
+
#
|
|
12832
|
+
# Raises on 403: Not an approver
|
|
12833
|
+
#
|
|
12834
|
+
# Raises on 409: Not active
|
|
12835
|
+
#
|
|
12836
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12837
|
+
# constructed with.
|
|
12838
|
+
# @param request_id [String]
|
|
12839
|
+
# @param body [Hash, nil] Request body, shaped as `Hash`.
|
|
12840
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12841
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12842
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12843
|
+
def post_org_org_id_jit_access_requests_request_id_extend(
|
|
12844
|
+
request_id:,
|
|
12845
|
+
org_id: nil,
|
|
12846
|
+
body: nil,
|
|
12847
|
+
request_options: nil
|
|
12848
|
+
)
|
|
12849
|
+
@transport.request(
|
|
12850
|
+
http_method: "POST",
|
|
12851
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}/extend",
|
|
12852
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12853
|
+
body: body,
|
|
12854
|
+
request_options: request_options
|
|
12855
|
+
)
|
|
12856
|
+
end
|
|
12857
|
+
|
|
12858
|
+
# Get a request
|
|
12859
|
+
#
|
|
12860
|
+
# _Requires permission: `access:read`._
|
|
12861
|
+
#
|
|
12862
|
+
# GET /api/org/{orgId}/jit-access/requests/{requestId}
|
|
12863
|
+
#
|
|
12864
|
+
# Raises on 404: Not found
|
|
12865
|
+
#
|
|
12866
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12867
|
+
# constructed with.
|
|
12868
|
+
# @param request_id [String]
|
|
12869
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12870
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12871
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12872
|
+
def get(request_id:, org_id: nil, request_options: nil)
|
|
12873
|
+
@transport.request(
|
|
12874
|
+
http_method: "GET",
|
|
12875
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}",
|
|
12876
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12877
|
+
request_options: request_options
|
|
12878
|
+
)
|
|
12879
|
+
end
|
|
12880
|
+
|
|
12881
|
+
# List just-in-time access requests
|
|
12882
|
+
#
|
|
12883
|
+
# Newest first, with caller-relative action flags.
|
|
12884
|
+
#
|
|
12885
|
+
# _Requires permission: `access:read`._
|
|
12886
|
+
#
|
|
12887
|
+
# GET /api/org/{orgId}/jit-access/requests
|
|
12888
|
+
#
|
|
12889
|
+
# Raises on 400: Bad request
|
|
12890
|
+
#
|
|
12891
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12892
|
+
# constructed with.
|
|
12893
|
+
# @param status [String, nil]
|
|
12894
|
+
# @param mine [String, nil]
|
|
12895
|
+
# @param holding [String, nil] Only rows that may be holding access upstream.
|
|
12896
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12897
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<JitAccessRequest>` — see
|
|
12898
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
12899
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12900
|
+
def list(org_id: nil, status: nil, mine: nil, holding: nil, request_options: nil)
|
|
12901
|
+
@transport.request(
|
|
12902
|
+
http_method: "GET",
|
|
12903
|
+
path: "/api/org/{orgId}/jit-access/requests",
|
|
12904
|
+
path_params: { "orgId" => org_id },
|
|
12905
|
+
query: { "status" => status, "mine" => mine, "holding" => holding },
|
|
12906
|
+
request_options: request_options
|
|
12907
|
+
)
|
|
12908
|
+
end
|
|
12909
|
+
|
|
12910
|
+
# End a grant early
|
|
12911
|
+
#
|
|
12912
|
+
# Allowed for the holder, an approver, or a member with org:settings:write.
|
|
12913
|
+
# Audit-logged. Not available to API keys.
|
|
12914
|
+
#
|
|
12915
|
+
# POST /api/org/{orgId}/jit-access/requests/{requestId}/revoke
|
|
12916
|
+
#
|
|
12917
|
+
# Raises on 403: Not allowed
|
|
12918
|
+
#
|
|
12919
|
+
# Raises on 404: Not found
|
|
12920
|
+
#
|
|
12921
|
+
# Raises on 409: Already decided, timed out, or not in a state for this
|
|
12922
|
+
#
|
|
12923
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
12924
|
+
# constructed with.
|
|
12925
|
+
# @param request_id [String]
|
|
12926
|
+
# @param body [Hash, nil] Request body, shaped as `Hash`.
|
|
12927
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
12928
|
+
# @return [Hash] Parsed JSON, shaped as `JitAccessRequest` — see `sig/infrawrench/sdk.rbs`.
|
|
12929
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
12930
|
+
def revoke(request_id:, org_id: nil, body: nil, request_options: nil)
|
|
12931
|
+
@transport.request(
|
|
12932
|
+
http_method: "POST",
|
|
12933
|
+
path: "/api/org/{orgId}/jit-access/requests/{requestId}/revoke",
|
|
12934
|
+
path_params: { "orgId" => org_id, "requestId" => request_id },
|
|
12935
|
+
body: body,
|
|
12936
|
+
request_options: request_options
|
|
12937
|
+
)
|
|
12938
|
+
end
|
|
12939
|
+
end
|
|
12940
|
+
|
|
12941
|
+
# `client.jit_access`
|
|
12942
|
+
class JitAccessNamespace
|
|
12943
|
+
# @return [JitAccessAccountsNamespace] `client.jit_access.accounts`
|
|
12944
|
+
attr_reader :accounts
|
|
12945
|
+
# @return [JitAccessPoliciesNamespace] `client.jit_access.policies`
|
|
12946
|
+
attr_reader :policies
|
|
12947
|
+
# @return [JitAccessRequestsNamespace] `client.jit_access.requests`
|
|
12948
|
+
attr_reader :requests
|
|
12949
|
+
|
|
12950
|
+
# @api private
|
|
12951
|
+
# @param transport [Transport]
|
|
12952
|
+
def initialize(transport)
|
|
12953
|
+
@transport = transport
|
|
12954
|
+
@accounts = JitAccessAccountsNamespace.new(@transport)
|
|
12955
|
+
@policies = JitAccessPoliciesNamespace.new(@transport)
|
|
12956
|
+
@requests = JitAccessRequestsNamespace.new(@transport)
|
|
12957
|
+
end
|
|
12958
|
+
end
|
|
12959
|
+
|
|
12411
12960
|
# `client.kv`
|
|
12412
12961
|
class KvNamespace
|
|
12413
12962
|
# @api private
|
|
@@ -21392,6 +21941,8 @@ module Infrawrench
|
|
|
21392
21941
|
attr_reader :invoices
|
|
21393
21942
|
# @return [JiraNamespace] `client.jira`
|
|
21394
21943
|
attr_reader :jira
|
|
21944
|
+
# @return [JitAccessNamespace] `client.jit_access`
|
|
21945
|
+
attr_reader :jit_access
|
|
21395
21946
|
# @return [KvNamespace] `client.kv`
|
|
21396
21947
|
attr_reader :kv
|
|
21397
21948
|
# @return [LeasesNamespace] `client.leases`
|
|
@@ -21563,6 +22114,7 @@ module Infrawrench
|
|
|
21563
22114
|
@invitations = InvitationsNamespace.new(@transport)
|
|
21564
22115
|
@invoices = InvoicesNamespace.new(@transport)
|
|
21565
22116
|
@jira = JiraNamespace.new(@transport)
|
|
22117
|
+
@jit_access = JitAccessNamespace.new(@transport)
|
|
21566
22118
|
@kv = KvNamespace.new(@transport)
|
|
21567
22119
|
@leases = LeasesNamespace.new(@transport)
|
|
21568
22120
|
@linear = LinearNamespace.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.77.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.77.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.77.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.77.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.77.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.77.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.77.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.77.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.77.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 v1.
|
|
1
|
+
# infrawrench-sdk v1.77.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.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.77.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -220,7 +220,8 @@ module Infrawrench
|
|
|
220
220
|
"dismissedCount" => Integer,
|
|
221
221
|
"unknownActivityCount" => Integer,
|
|
222
222
|
"staleDays" => Integer,
|
|
223
|
-
"generatedAt" => String
|
|
223
|
+
"generatedAt" => String,
|
|
224
|
+
?"jitGrantIssues" => Array[jit_grant_issue]
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
# Spec schema: `AccessReviewRoleCounts`.
|
|
@@ -5411,6 +5412,176 @@ module Infrawrench
|
|
|
5411
5412
|
"emailAddress" => String | nil
|
|
5412
5413
|
}
|
|
5413
5414
|
|
|
5415
|
+
# Spec schema: `JitAccessAccount`.
|
|
5416
|
+
type jit_access_account = {
|
|
5417
|
+
"id" => String,
|
|
5418
|
+
"displayName" => String,
|
|
5419
|
+
"pluginId" => String,
|
|
5420
|
+
"labels" => jit_provider_labels
|
|
5421
|
+
}
|
|
5422
|
+
|
|
5423
|
+
# Spec schema: `JitAccessRequest`.
|
|
5424
|
+
type jit_access_request = {
|
|
5425
|
+
"id" => String,
|
|
5426
|
+
"policyId" => String | nil,
|
|
5427
|
+
"policyName" => String | nil,
|
|
5428
|
+
"accountId" => String,
|
|
5429
|
+
"accountName" => String | nil,
|
|
5430
|
+
"pluginId" => String,
|
|
5431
|
+
"scopeId" => String,
|
|
5432
|
+
"scopeName" => String,
|
|
5433
|
+
"roleId" => String,
|
|
5434
|
+
"roleName" => String,
|
|
5435
|
+
"userId" => String,
|
|
5436
|
+
"userName" => String | nil,
|
|
5437
|
+
"principalId" => String,
|
|
5438
|
+
"principalName" => String,
|
|
5439
|
+
"principalKind" => "user" | "group",
|
|
5440
|
+
"principalMatched" => bool,
|
|
5441
|
+
"reason" => String,
|
|
5442
|
+
"ticket" => String | nil,
|
|
5443
|
+
"durationMinutes" => Integer,
|
|
5444
|
+
"status" => jit_request_status,
|
|
5445
|
+
"requestExpiresAt" => String,
|
|
5446
|
+
"decidedAt" => String | nil,
|
|
5447
|
+
"decidedByUserId" => String | nil,
|
|
5448
|
+
"decidedByName" => String | nil,
|
|
5449
|
+
"decisionNote" => String | nil,
|
|
5450
|
+
"selfApproved" => bool,
|
|
5451
|
+
"incidentId" => String | nil,
|
|
5452
|
+
"grantedAt" => String | nil,
|
|
5453
|
+
"grantExpiresAt" => String | nil,
|
|
5454
|
+
"preexisting" => bool,
|
|
5455
|
+
"extendedMinutes" => Integer,
|
|
5456
|
+
"endedAt" => String | nil,
|
|
5457
|
+
"endedByName" => String | nil,
|
|
5458
|
+
"endReason" => "expired" | "revoked" | "grant_failed" | nil,
|
|
5459
|
+
"lastError" => String | nil,
|
|
5460
|
+
"revokeAttempts" => Integer,
|
|
5461
|
+
"createdAt" => String,
|
|
5462
|
+
"canDecide" => bool,
|
|
5463
|
+
"canCancel" => bool,
|
|
5464
|
+
"canExtend" => bool,
|
|
5465
|
+
"canRevoke" => bool
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
# Spec schema: `JitCreateRequest`.
|
|
5469
|
+
type jit_create_request = {
|
|
5470
|
+
"policyId" => String,
|
|
5471
|
+
"scopeId" => String,
|
|
5472
|
+
"roleId" => String,
|
|
5473
|
+
"durationMinutes" => Integer,
|
|
5474
|
+
"reason" => String,
|
|
5475
|
+
?"ticket" => String,
|
|
5476
|
+
?"principalId" => String
|
|
5477
|
+
}
|
|
5478
|
+
|
|
5479
|
+
# Spec schema: `JitError`.
|
|
5480
|
+
type jit_error = { "error" => String, ?"code" => String }
|
|
5481
|
+
|
|
5482
|
+
# Spec schema: `JitGrantIssue`.
|
|
5483
|
+
type jit_grant_issue = {
|
|
5484
|
+
"requestId" => String,
|
|
5485
|
+
"kind" => "revoke_failed" | "overdue" | "still_present",
|
|
5486
|
+
"accountId" => String,
|
|
5487
|
+
"accountName" => String | nil,
|
|
5488
|
+
"pluginId" => String,
|
|
5489
|
+
"scopeName" => String,
|
|
5490
|
+
"roleName" => String,
|
|
5491
|
+
"principalName" => String,
|
|
5492
|
+
"userName" => String | nil,
|
|
5493
|
+
"grantExpiresAt" => String | nil,
|
|
5494
|
+
"lastError" => String | nil,
|
|
5495
|
+
"revokeAttempts" => Integer
|
|
5496
|
+
}
|
|
5497
|
+
|
|
5498
|
+
# Spec schema: `JitPickerOption`.
|
|
5499
|
+
type jit_picker_option = { "id" => String, "name" => String, ?"description" => String, ?"privileged" => bool }
|
|
5500
|
+
|
|
5501
|
+
# Spec schema: `JitPolicy`.
|
|
5502
|
+
type jit_policy = {
|
|
5503
|
+
"id" => String,
|
|
5504
|
+
"name" => String,
|
|
5505
|
+
"description" => String | nil,
|
|
5506
|
+
"enabled" => bool,
|
|
5507
|
+
"accountId" => String,
|
|
5508
|
+
"accountName" => String | nil,
|
|
5509
|
+
"pluginId" => String,
|
|
5510
|
+
"targets" => Array[jit_policy_target],
|
|
5511
|
+
"maxDurationMinutes" => Integer,
|
|
5512
|
+
"defaultDurationMinutes" => Integer,
|
|
5513
|
+
"requestTimeoutMinutes" => Integer,
|
|
5514
|
+
"requesterUserIds" => Array[String],
|
|
5515
|
+
"requesterRoleIds" => Array[String],
|
|
5516
|
+
"approverUserIds" => Array[String],
|
|
5517
|
+
"approverRoleIds" => Array[String],
|
|
5518
|
+
"approverOnCallScheduleIds" => Array[String],
|
|
5519
|
+
"allowSelfApprovalDuringIncident" => bool,
|
|
5520
|
+
"requireReason" => bool,
|
|
5521
|
+
"requireTicket" => bool,
|
|
5522
|
+
"createdAt" => String,
|
|
5523
|
+
"updatedAt" => String,
|
|
5524
|
+
?"labels" => jit_provider_labels & (Hash[String, untyped] | nil),
|
|
5525
|
+
?"canRequest" => bool
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
# Spec schema: `JitPolicyInput`.
|
|
5529
|
+
type jit_policy_input = {
|
|
5530
|
+
"name" => String,
|
|
5531
|
+
?"description" => String | nil,
|
|
5532
|
+
?"enabled" => bool,
|
|
5533
|
+
"accountId" => String,
|
|
5534
|
+
"targets" => Array[jit_policy_target],
|
|
5535
|
+
"maxDurationMinutes" => Integer,
|
|
5536
|
+
?"defaultDurationMinutes" => Integer,
|
|
5537
|
+
?"requestTimeoutMinutes" => Integer,
|
|
5538
|
+
?"requesterUserIds" => Array[String],
|
|
5539
|
+
?"requesterRoleIds" => Array[String],
|
|
5540
|
+
?"approverUserIds" => Array[String],
|
|
5541
|
+
?"approverRoleIds" => Array[String],
|
|
5542
|
+
?"approverOnCallScheduleIds" => Array[String],
|
|
5543
|
+
?"allowSelfApprovalDuringIncident" => bool,
|
|
5544
|
+
?"requireReason" => bool,
|
|
5545
|
+
?"requireTicket" => bool
|
|
5546
|
+
}
|
|
5547
|
+
|
|
5548
|
+
# Spec schema: `JitPolicyTarget`.
|
|
5549
|
+
type jit_policy_target = { "scopeId" => String, "scopeName" => String, "roleId" => String, "roleName" => String }
|
|
5550
|
+
|
|
5551
|
+
# Spec schema: `JitPrincipalOption`.
|
|
5552
|
+
type jit_principal_option = { "id" => String, "name" => String, "kind" => "user" | "group", ?"email" => String | nil }
|
|
5553
|
+
| nil
|
|
5554
|
+
|
|
5555
|
+
# Spec schema: `JitPrincipalResolution`.
|
|
5556
|
+
type jit_principal_resolution = { "principal" => jit_principal_option, "canPick" => bool, "labels" => jit_provider_labels }
|
|
5557
|
+
|
|
5558
|
+
# Spec schema: `JitProviderLabels`.
|
|
5559
|
+
type jit_provider_labels = {
|
|
5560
|
+
"scopeLabel" => String,
|
|
5561
|
+
"roleLabel" => String,
|
|
5562
|
+
"principalLabel" => String,
|
|
5563
|
+
?"description" => String,
|
|
5564
|
+
"providerEnforcedExpiry" => bool,
|
|
5565
|
+
"principalPicker" => bool
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
# `pending` (awaiting an approver) or `timed_out`; `denied` / `cancelled`;
|
|
5569
|
+
# `granting` (the provider call is in flight), `active`, `grant_failed`;
|
|
5570
|
+
# `revoking` then `revoked` when the window ends; `revoke_failed` while a
|
|
5571
|
+
# failed revoke is retried.
|
|
5572
|
+
#
|
|
5573
|
+
# Spec schema: `JitRequestStatus`.
|
|
5574
|
+
type jit_request_status = "pending"
|
|
5575
|
+
| "timed_out"
|
|
5576
|
+
| "denied"
|
|
5577
|
+
| "cancelled"
|
|
5578
|
+
| "granting"
|
|
5579
|
+
| "active"
|
|
5580
|
+
| "grant_failed"
|
|
5581
|
+
| "revoking"
|
|
5582
|
+
| "revoked"
|
|
5583
|
+
| "revoke_failed"
|
|
5584
|
+
|
|
5414
5585
|
# Free-form JSON object whose shape depends on the plugin.
|
|
5415
5586
|
#
|
|
5416
5587
|
# Spec schema: `JsonObject`.
|
|
@@ -10334,6 +10505,7 @@ module Infrawrench
|
|
|
10334
10505
|
| "expiring"
|
|
10335
10506
|
| "posture"
|
|
10336
10507
|
| "access-review"
|
|
10508
|
+
| "jit-access"
|
|
10337
10509
|
| "backups"
|
|
10338
10510
|
| "wallboard"
|
|
10339
10511
|
| "calendar"
|
|
@@ -11698,6 +11870,43 @@ module Infrawrench
|
|
|
11698
11870
|
def verify: (?org_id: String?, ?body: jira_verify_input?, ?request_options: Hash[Symbol, untyped]?) -> jira_verify_result
|
|
11699
11871
|
end
|
|
11700
11872
|
|
|
11873
|
+
class JitAccessAccountsNamespace
|
|
11874
|
+
def initialize: (Transport) -> void
|
|
11875
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_access_account]
|
|
11876
|
+
def roles: (account_id: String, scope_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_picker_option]
|
|
11877
|
+
def scopes: (account_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_picker_option]
|
|
11878
|
+
end
|
|
11879
|
+
|
|
11880
|
+
class JitAccessPoliciesNamespace
|
|
11881
|
+
def initialize: (Transport) -> void
|
|
11882
|
+
def create: (?org_id: String?, ?body: jit_policy_input?, ?request_options: Hash[Symbol, untyped]?) -> jit_policy
|
|
11883
|
+
def delete: (policy_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
11884
|
+
def get: (policy_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jit_policy
|
|
11885
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_policy]
|
|
11886
|
+
def principal: (policy_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jit_principal_resolution
|
|
11887
|
+
def principals: (policy_id: String, ?org_id: String?, ?q: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_principal_option & Hash[String, untyped]]
|
|
11888
|
+
def update: (policy_id: String, ?org_id: String?, ?body: jit_policy_input?, ?request_options: Hash[Symbol, untyped]?) -> jit_policy
|
|
11889
|
+
end
|
|
11890
|
+
|
|
11891
|
+
class JitAccessRequestsNamespace
|
|
11892
|
+
def initialize: (Transport) -> void
|
|
11893
|
+
def approve: (request_id: String, ?org_id: String?, ?body: { ?"note" => String }?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11894
|
+
def cancel: (request_id: String, ?org_id: String?, ?body: { ?"note" => String }?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11895
|
+
def create: (?org_id: String?, ?body: jit_create_request?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11896
|
+
def deny: (request_id: String, ?org_id: String?, ?body: { ?"note" => String }?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11897
|
+
def post_org_org_id_jit_access_requests_request_id_extend: (request_id: String, ?org_id: String?, ?body: { "minutes" => Integer }?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11898
|
+
def get: (request_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11899
|
+
def list: (?org_id: String?, ?status: jit_request_status?, ?mine: "1"?, ?holding: "1"?, ?request_options: Hash[Symbol, untyped]?) -> Array[jit_access_request]
|
|
11900
|
+
def revoke: (request_id: String, ?org_id: String?, ?body: { ?"note" => String }?, ?request_options: Hash[Symbol, untyped]?) -> jit_access_request
|
|
11901
|
+
end
|
|
11902
|
+
|
|
11903
|
+
class JitAccessNamespace
|
|
11904
|
+
attr_reader accounts: JitAccessAccountsNamespace
|
|
11905
|
+
attr_reader policies: JitAccessPoliciesNamespace
|
|
11906
|
+
attr_reader requests: JitAccessRequestsNamespace
|
|
11907
|
+
def initialize: (Transport) -> void
|
|
11908
|
+
end
|
|
11909
|
+
|
|
11701
11910
|
class KvNamespace
|
|
11702
11911
|
def initialize: (Transport) -> void
|
|
11703
11912
|
def command: (body: kv_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> kv_command_response
|
|
@@ -12417,6 +12626,7 @@ module Infrawrench
|
|
|
12417
12626
|
attr_reader invitations: InvitationsNamespace
|
|
12418
12627
|
attr_reader invoices: InvoicesNamespace
|
|
12419
12628
|
attr_reader jira: JiraNamespace
|
|
12629
|
+
attr_reader jit_access: JitAccessNamespace
|
|
12420
12630
|
attr_reader kv: KvNamespace
|
|
12421
12631
|
attr_reader leases: LeasesNamespace
|
|
12422
12632
|
attr_reader linear: LinearNamespace
|
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.
|
|
4
|
+
version: 1.77.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-10-
|
|
12
|
+
date: 2026-10-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v1.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v1.77.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.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v1.77.0).
|
|
62
62
|
test_files: []
|