infrawrench-sdk 1.25.0 → 1.26.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 +263 -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 +107 -2
- 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: cb59cf971d8395531a0b761e09199bf6d21f4bca51f2f1b137db4b0ea804c771
|
|
4
|
+
data.tar.gz: 93952148454bfa20505d6ea4cb66b6bcdedc599164edcd76b22527f14c6101d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75a1e06bd67e2db9c0de76bb99d19d77fc0f7f5a85524e8bd33a1846102dadc6c089f090a9ceb3a05280b724bbe46fa353f8c29042c86d6e26bc5710a0287679
|
|
7
|
+
data.tar.gz: 6ac50fcb026e21ac3397220120d176213384f16799622ec775cb7308e356594c73228ee240365d57cfe454561d7ed2fa487d7e59bf99b4336cebe21ddcf178fd
|
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.26.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
|
+
676 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.26.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.26.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.26.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.26.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.26.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.26.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -857,6 +857,261 @@ module Infrawrench
|
|
|
857
857
|
end
|
|
858
858
|
end
|
|
859
859
|
|
|
860
|
+
# `client.agent.claim`
|
|
861
|
+
class AgentClaimNamespace
|
|
862
|
+
# @api private
|
|
863
|
+
# @param transport [Transport]
|
|
864
|
+
def initialize(transport)
|
|
865
|
+
@transport = transport
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Confirm a claim, binding the workspace to the signed-in user
|
|
869
|
+
#
|
|
870
|
+
# The code is re-resolved here rather than trusting a registration id from
|
|
871
|
+
# the lookup, so the lookup cannot be used as an oracle. Rate limited per
|
|
872
|
+
# user.
|
|
873
|
+
#
|
|
874
|
+
# POST /api/agent/claim
|
|
875
|
+
#
|
|
876
|
+
# Raises on 400: Bad code, already claimed, revoked, or a merge with no
|
|
877
|
+
# valid target
|
|
878
|
+
#
|
|
879
|
+
# Raises on 401: Unauthenticated
|
|
880
|
+
#
|
|
881
|
+
# Raises on 402: The merge would put a free target organization over its
|
|
882
|
+
# plan limits
|
|
883
|
+
#
|
|
884
|
+
# Raises on 403: You lack the permission the merge needs in the target
|
|
885
|
+
# organization (`accounts:write`, plus `costs:write` when moving history).
|
|
886
|
+
#
|
|
887
|
+
# Raises on 429: Too many attempts
|
|
888
|
+
#
|
|
889
|
+
# @param body [Hash, nil] Request body, shaped as `AgentClaimRequest`.
|
|
890
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
891
|
+
# @return [Hash] Parsed JSON, shaped as `AgentClaimResult` — see `sig/infrawrench/sdk.rbs`.
|
|
892
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
893
|
+
def create(body: nil, request_options: nil)
|
|
894
|
+
@transport.request(
|
|
895
|
+
http_method: "POST",
|
|
896
|
+
path: "/api/agent/claim",
|
|
897
|
+
body: body,
|
|
898
|
+
request_options: request_options
|
|
899
|
+
)
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
# Resolve a user code so the claim page can show what is being claimed
|
|
903
|
+
#
|
|
904
|
+
# A POST rather than a GET with the code in the path: the code is a live
|
|
905
|
+
# bearer secret for 15 minutes, and a URL lands in history, in `Referer`,
|
|
906
|
+
# and in access logs. Rate limited per user.
|
|
907
|
+
#
|
|
908
|
+
# POST /api/agent/claim/lookup
|
|
909
|
+
#
|
|
910
|
+
# Raises on 400: Missing, malformed, or expired code
|
|
911
|
+
#
|
|
912
|
+
# Raises on 401: Unauthenticated
|
|
913
|
+
#
|
|
914
|
+
# Raises on 404: The workspace no longer exists
|
|
915
|
+
#
|
|
916
|
+
# Raises on 429: Too many attempts
|
|
917
|
+
#
|
|
918
|
+
# @param body [Hash, nil] Request body, shaped as `AgentClaimLookupRequest`.
|
|
919
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
920
|
+
# @return [Hash] Parsed JSON, shaped as `AgentClaimLookup` — see `sig/infrawrench/sdk.rbs`.
|
|
921
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
922
|
+
def lookup(body: nil, request_options: nil)
|
|
923
|
+
@transport.request(
|
|
924
|
+
http_method: "POST",
|
|
925
|
+
path: "/api/agent/claim/lookup",
|
|
926
|
+
body: body,
|
|
927
|
+
request_options: request_options
|
|
928
|
+
)
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# `client.agent.identity`
|
|
933
|
+
class AgentIdentityNamespace
|
|
934
|
+
# @api private
|
|
935
|
+
# @param transport [Transport]
|
|
936
|
+
def initialize(transport)
|
|
937
|
+
@transport = transport
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Start the claim ceremony and mint a user code
|
|
941
|
+
#
|
|
942
|
+
# Returns a code to show the user together with the verification URL.
|
|
943
|
+
# Replaces any code already outstanding for this registration.
|
|
944
|
+
#
|
|
945
|
+
# POST /api/agent/identity/claim
|
|
946
|
+
#
|
|
947
|
+
# Raises on 400: Already claimed
|
|
948
|
+
#
|
|
949
|
+
# Raises on 401: Unknown or revoked credential
|
|
950
|
+
#
|
|
951
|
+
# Raises on 403: Registration revoked
|
|
952
|
+
#
|
|
953
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
954
|
+
# @return [Hash] Parsed JSON, shaped as `AgentClaimStarted` — see `sig/infrawrench/sdk.rbs`.
|
|
955
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
956
|
+
def claim(request_options: nil)
|
|
957
|
+
@transport.request(
|
|
958
|
+
http_method: "POST",
|
|
959
|
+
path: "/api/agent/identity/claim",
|
|
960
|
+
request_options: request_options
|
|
961
|
+
)
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
# Open an anonymous registration and a 24-hour trial workspace
|
|
965
|
+
#
|
|
966
|
+
# Requires no authentication — this is how a client with no credentials gets
|
|
967
|
+
# one. Rate limited per source address. The workspace it opens is deleted 24
|
|
968
|
+
# hours later unless a person completes the claim ceremony.
|
|
969
|
+
#
|
|
970
|
+
# POST /api/agent/identity
|
|
971
|
+
#
|
|
972
|
+
# Raises on 429: Too many registrations from this address
|
|
973
|
+
#
|
|
974
|
+
# Raises on 500: Could not open a workspace
|
|
975
|
+
#
|
|
976
|
+
# @param body [Hash, nil] Request body, shaped as `AgentRegisterRequest`.
|
|
977
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
978
|
+
# @return [Hash] Parsed JSON, shaped as `RegisteredAgent` — see `sig/infrawrench/sdk.rbs`.
|
|
979
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
980
|
+
def create(body: nil, request_options: nil)
|
|
981
|
+
@transport.request(
|
|
982
|
+
http_method: "POST",
|
|
983
|
+
path: "/api/agent/identity",
|
|
984
|
+
body: body,
|
|
985
|
+
request_options: request_options
|
|
986
|
+
)
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# Poll this registration's claim status and time remaining
|
|
990
|
+
#
|
|
991
|
+
# GET /api/agent/identity
|
|
992
|
+
#
|
|
993
|
+
# Raises on 401: Unknown or revoked credential
|
|
994
|
+
#
|
|
995
|
+
# Raises on 404: Unknown registration
|
|
996
|
+
#
|
|
997
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
998
|
+
# @return [Hash] Parsed JSON, shaped as `AgentIdentity` — see `sig/infrawrench/sdk.rbs`.
|
|
999
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1000
|
+
def get(request_options: nil)
|
|
1001
|
+
@transport.request(
|
|
1002
|
+
http_method: "GET",
|
|
1003
|
+
path: "/api/agent/identity",
|
|
1004
|
+
request_options: request_options
|
|
1005
|
+
)
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
# `client.agent`
|
|
1010
|
+
class AgentNamespace
|
|
1011
|
+
# @return [AgentClaimNamespace] `client.agent.claim`
|
|
1012
|
+
attr_reader :claim
|
|
1013
|
+
# @return [AgentIdentityNamespace] `client.agent.identity`
|
|
1014
|
+
attr_reader :identity
|
|
1015
|
+
|
|
1016
|
+
# @api private
|
|
1017
|
+
# @param transport [Transport]
|
|
1018
|
+
def initialize(transport)
|
|
1019
|
+
@transport = transport
|
|
1020
|
+
@claim = AgentClaimNamespace.new(@transport)
|
|
1021
|
+
@identity = AgentIdentityNamespace.new(@transport)
|
|
1022
|
+
end
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# `client.agent_registrations`
|
|
1026
|
+
class AgentRegistrationsNamespace
|
|
1027
|
+
# @api private
|
|
1028
|
+
# @param transport [Transport]
|
|
1029
|
+
def initialize(transport)
|
|
1030
|
+
@transport = transport
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
# Revoke an agent registration
|
|
1034
|
+
#
|
|
1035
|
+
# The row is kept so audit entries naming this agent stay legible; its
|
|
1036
|
+
# credential stops working on the next request. Closed to agent credentials.
|
|
1037
|
+
#
|
|
1038
|
+
# DELETE /api/org/{orgId}/agent-registrations/{id}
|
|
1039
|
+
#
|
|
1040
|
+
# Raises on 400: Bad request
|
|
1041
|
+
#
|
|
1042
|
+
# Raises on 401: Unauthenticated
|
|
1043
|
+
#
|
|
1044
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
1045
|
+
# this
|
|
1046
|
+
#
|
|
1047
|
+
# Raises on 403: Forbidden
|
|
1048
|
+
#
|
|
1049
|
+
# Raises on 404: Not found
|
|
1050
|
+
#
|
|
1051
|
+
# Raises on 409: Conflict
|
|
1052
|
+
#
|
|
1053
|
+
# Raises on 500: Server error
|
|
1054
|
+
#
|
|
1055
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
1056
|
+
#
|
|
1057
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
1058
|
+
# again and retry; the request itself was well-formed.
|
|
1059
|
+
#
|
|
1060
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1061
|
+
# constructed with.
|
|
1062
|
+
# @param id [String]
|
|
1063
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1064
|
+
# @return [Hash] Parsed JSON, shaped as `AgentRevoked` — see `sig/infrawrench/sdk.rbs`.
|
|
1065
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1066
|
+
def delete(id:, org_id: nil, request_options: nil)
|
|
1067
|
+
@transport.request(
|
|
1068
|
+
http_method: "DELETE",
|
|
1069
|
+
path: "/api/org/{orgId}/agent-registrations/{id}",
|
|
1070
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
1071
|
+
request_options: request_options
|
|
1072
|
+
)
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
# List the agent registrations acting in this organization
|
|
1076
|
+
#
|
|
1077
|
+
# GET /api/org/{orgId}/agent-registrations
|
|
1078
|
+
#
|
|
1079
|
+
# Raises on 400: Bad request
|
|
1080
|
+
#
|
|
1081
|
+
# Raises on 401: Unauthenticated
|
|
1082
|
+
#
|
|
1083
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
1084
|
+
# this
|
|
1085
|
+
#
|
|
1086
|
+
# Raises on 403: Forbidden
|
|
1087
|
+
#
|
|
1088
|
+
# Raises on 404: Not found
|
|
1089
|
+
#
|
|
1090
|
+
# Raises on 409: Conflict
|
|
1091
|
+
#
|
|
1092
|
+
# Raises on 500: Server error
|
|
1093
|
+
#
|
|
1094
|
+
# Raises on 503: A backing service this endpoint depends on is not available
|
|
1095
|
+
#
|
|
1096
|
+
# Raises on reauth: Recent sign-in required. Send the user through sign-in
|
|
1097
|
+
# again and retry; the request itself was well-formed.
|
|
1098
|
+
#
|
|
1099
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1100
|
+
# constructed with.
|
|
1101
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1102
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<AgentRegistration>` — see
|
|
1103
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
1104
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1105
|
+
def list(org_id: nil, request_options: nil)
|
|
1106
|
+
@transport.request(
|
|
1107
|
+
http_method: "GET",
|
|
1108
|
+
path: "/api/org/{orgId}/agent-registrations",
|
|
1109
|
+
path_params: { "orgId" => org_id },
|
|
1110
|
+
request_options: request_options
|
|
1111
|
+
)
|
|
1112
|
+
end
|
|
1113
|
+
end
|
|
1114
|
+
|
|
860
1115
|
# `client.agents.sessions`
|
|
861
1116
|
class AgentsSessionsNamespace
|
|
862
1117
|
# @api private
|
|
@@ -15169,6 +15424,10 @@ module Infrawrench
|
|
|
15169
15424
|
attr_reader :access_review
|
|
15170
15425
|
# @return [AccountsNamespace] `client.accounts`
|
|
15171
15426
|
attr_reader :accounts
|
|
15427
|
+
# @return [AgentNamespace] `client.agent`
|
|
15428
|
+
attr_reader :agent
|
|
15429
|
+
# @return [AgentRegistrationsNamespace] `client.agent_registrations`
|
|
15430
|
+
attr_reader :agent_registrations
|
|
15172
15431
|
# @return [AgentsNamespace] `client.agents`
|
|
15173
15432
|
attr_reader :agents
|
|
15174
15433
|
# @return [AlertRulesNamespace] `client.alert_rules`
|
|
@@ -15350,6 +15609,8 @@ module Infrawrench
|
|
|
15350
15609
|
@access_requests = AccessRequestsNamespace.new(@transport)
|
|
15351
15610
|
@access_review = AccessReviewNamespace.new(@transport)
|
|
15352
15611
|
@accounts = AccountsNamespace.new(@transport)
|
|
15612
|
+
@agent = AgentNamespace.new(@transport)
|
|
15613
|
+
@agent_registrations = AgentRegistrationsNamespace.new(@transport)
|
|
15353
15614
|
@agents = AgentsNamespace.new(@transport)
|
|
15354
15615
|
@alert_rules = AlertRulesNamespace.new(@transport)
|
|
15355
15616
|
@api_keys = ApiKeysNamespace.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.26.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.26.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.26.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.26.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.26.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.26.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.26.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.26.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.26.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.26.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.26.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -292,6 +292,74 @@ module Infrawrench
|
|
|
292
292
|
# Spec schema: `ActiveTunnel`.
|
|
293
293
|
type active_tunnel = { "localPort" => Integer, "sshHost" => String, "remotePort" => Integer }
|
|
294
294
|
|
|
295
|
+
# Spec schema: `AgentClaimLookup`.
|
|
296
|
+
type agent_claim_lookup = {
|
|
297
|
+
"registrationId" => String,
|
|
298
|
+
"workspaceName" => String,
|
|
299
|
+
"trialExpiresInMs" => Integer | nil,
|
|
300
|
+
"mergeTargets" => Array[agent_claim_merge_target]
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
# Spec schema: `AgentClaimLookupRequest`.
|
|
304
|
+
type agent_claim_lookup_request = { "code" => String }
|
|
305
|
+
|
|
306
|
+
# Spec schema: `AgentClaimMergeTarget`.
|
|
307
|
+
type agent_claim_merge_target = { "id" => String, "displayName" => String }
|
|
308
|
+
|
|
309
|
+
# Spec schema: `AgentClaimRequest`.
|
|
310
|
+
type agent_claim_request = {
|
|
311
|
+
"code" => String,
|
|
312
|
+
?"mode" => "adopt" | "merge",
|
|
313
|
+
?"targetOrganizationId" => String,
|
|
314
|
+
?"moveHistory" => bool
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
# Spec schema: `AgentClaimResult`.
|
|
318
|
+
type agent_claim_result = {
|
|
319
|
+
"organizationId" => String,
|
|
320
|
+
"mode" => "adopt" | "merge",
|
|
321
|
+
"accountsMoved" => Integer,
|
|
322
|
+
"historyMoved" => bool
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
# Spec schema: `AgentClaimStarted`.
|
|
326
|
+
type agent_claim_started = {
|
|
327
|
+
"user_code" => String,
|
|
328
|
+
"verification_uri" => String,
|
|
329
|
+
"verification_uri_complete" => String,
|
|
330
|
+
"expires_at" => String,
|
|
331
|
+
"interval" => Integer
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
# Spec schema: `AgentIdentity`.
|
|
335
|
+
type agent_identity = {
|
|
336
|
+
"registration_id" => String,
|
|
337
|
+
"organization_id" => String,
|
|
338
|
+
"claimed" => bool,
|
|
339
|
+
"claim_pending" => bool,
|
|
340
|
+
"trial_expires_in_ms" => Integer | nil
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
# Spec schema: `AgentRegisterRequest`.
|
|
344
|
+
type agent_register_request = { ?"label" => String }
|
|
345
|
+
|
|
346
|
+
# Spec schema: `AgentRegistration`.
|
|
347
|
+
type agent_registration = {
|
|
348
|
+
"id" => String,
|
|
349
|
+
"label" => String | nil,
|
|
350
|
+
"kind" => "anonymous" | "service_auth",
|
|
351
|
+
"prefix" => String | nil,
|
|
352
|
+
"claimedAt" => String | nil,
|
|
353
|
+
"claimedByUserId" => String | nil,
|
|
354
|
+
"claimedByEmail" => String | nil,
|
|
355
|
+
"lastSeenAt" => String | nil,
|
|
356
|
+
"revokedAt" => String | nil,
|
|
357
|
+
"createdAt" => String
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
# Spec schema: `AgentRevoked`.
|
|
361
|
+
type agent_revoked = { "ok" => bool, "revoked" => bool }
|
|
362
|
+
|
|
295
363
|
# Spec schema: `AgentSession`.
|
|
296
364
|
type agent_session = {
|
|
297
365
|
"id" => String,
|
|
@@ -5021,6 +5089,16 @@ module Infrawrench
|
|
|
5021
5089
|
# Spec schema: `ReauthenticationRequired`.
|
|
5022
5090
|
type reauthentication_required = { "error" => String, "code" => "reauthentication_required" }
|
|
5023
5091
|
|
|
5092
|
+
# Spec schema: `RegisteredAgent`.
|
|
5093
|
+
type registered_agent = {
|
|
5094
|
+
"registration_id" => String,
|
|
5095
|
+
"credential" => String,
|
|
5096
|
+
"organization_id" => String,
|
|
5097
|
+
"trial_expires_at" => String,
|
|
5098
|
+
"claim_url" => String,
|
|
5099
|
+
"notice" => String
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5024
5102
|
# Spec schema: `ReorderRequest`.
|
|
5025
5103
|
type reorder_request = {
|
|
5026
5104
|
?"cards" => Array[{ "kind" => "resource" | "workflow" | "widget", "id" => String }],
|
|
@@ -6809,6 +6887,31 @@ module Infrawrench
|
|
|
6809
6887
|
def update: (id: String, body: update_account_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> updated_account
|
|
6810
6888
|
end
|
|
6811
6889
|
|
|
6890
|
+
class AgentClaimNamespace
|
|
6891
|
+
def initialize: (Transport) -> void
|
|
6892
|
+
def create: (?body: agent_claim_request?, ?request_options: Hash[Symbol, untyped]?) -> agent_claim_result
|
|
6893
|
+
def lookup: (?body: agent_claim_lookup_request?, ?request_options: Hash[Symbol, untyped]?) -> agent_claim_lookup
|
|
6894
|
+
end
|
|
6895
|
+
|
|
6896
|
+
class AgentIdentityNamespace
|
|
6897
|
+
def initialize: (Transport) -> void
|
|
6898
|
+
def claim: (?request_options: Hash[Symbol, untyped]?) -> agent_claim_started
|
|
6899
|
+
def create: (?body: agent_register_request?, ?request_options: Hash[Symbol, untyped]?) -> registered_agent
|
|
6900
|
+
def get: (?request_options: Hash[Symbol, untyped]?) -> agent_identity
|
|
6901
|
+
end
|
|
6902
|
+
|
|
6903
|
+
class AgentNamespace
|
|
6904
|
+
attr_reader claim: AgentClaimNamespace
|
|
6905
|
+
attr_reader identity: AgentIdentityNamespace
|
|
6906
|
+
def initialize: (Transport) -> void
|
|
6907
|
+
end
|
|
6908
|
+
|
|
6909
|
+
class AgentRegistrationsNamespace
|
|
6910
|
+
def initialize: (Transport) -> void
|
|
6911
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_revoked
|
|
6912
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[agent_registration]
|
|
6913
|
+
end
|
|
6914
|
+
|
|
6812
6915
|
class AgentsSessionsNamespace
|
|
6813
6916
|
def initialize: (Transport) -> void
|
|
6814
6917
|
def create: (body: create_agent_session, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> agent_session
|
|
@@ -7893,6 +7996,8 @@ module Infrawrench
|
|
|
7893
7996
|
attr_reader access_requests: AccessRequestsNamespace
|
|
7894
7997
|
attr_reader access_review: AccessReviewNamespace
|
|
7895
7998
|
attr_reader accounts: AccountsNamespace
|
|
7999
|
+
attr_reader agent: AgentNamespace
|
|
8000
|
+
attr_reader agent_registrations: AgentRegistrationsNamespace
|
|
7896
8001
|
attr_reader agents: AgentsNamespace
|
|
7897
8002
|
attr_reader alert_rules: AlertRulesNamespace
|
|
7898
8003
|
attr_reader api_keys: ApiKeysNamespace
|
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.26.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-08-
|
|
12
|
+
date: 2026-08-15 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.26.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.26.0).
|
|
62
62
|
test_files: []
|