infrawrench-sdk 1.24.0 → 1.25.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 +3 -3
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +56 -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 +17 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10a383170e662790905795c2e478efcc3e18f0e38bc207c339c405f7b8929634
|
|
4
|
+
data.tar.gz: b8edc9af2fbd4d9250b17fd0b63288f3e464baa3c46e78c938d57d4c67e9c1d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fc9822609ed783e60b495f8b79574f8211546750a21b389105bc765ba3a3292215c42e16e1d9529d274d12aa1ebdafe31901f4154657adfccfec19f955c8705
|
|
7
|
+
data.tar.gz: e0174d19aedf2430a009265b81ebb24ed56d4db734f75a378e18a7604e459589ef79a8a0160d16a9baee3c1d762358969519b2e59cc0dbb6e52914c197beff12
|
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.25.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
|
|
@@ -30,7 +30,7 @@ end
|
|
|
30
30
|
Calls are namespaced to mirror the URL structure, so
|
|
31
31
|
`POST /api/org/{orgId}/accounts/{id}/sync` is
|
|
32
32
|
`client.accounts.sync(id: id)`, and nesting goes as deep as the paths do —
|
|
33
|
-
`client.chat.conversations.
|
|
33
|
+
`client.chat.conversations.pending.answer`. Set `org_id:` once on the client and every org-scoped call can
|
|
34
34
|
omit it; pass `org_id:` on an individual call to override it.
|
|
35
35
|
|
|
36
36
|
Every method takes an optional trailing `request_options:` hash (`:headers`,
|
|
@@ -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
|
+
665 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.25.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.25.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.25.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.25.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.25.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.25.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -3011,6 +3011,57 @@ module Infrawrench
|
|
|
3011
3011
|
end
|
|
3012
3012
|
end
|
|
3013
3013
|
|
|
3014
|
+
# `client.chat.conversations.pending`
|
|
3015
|
+
class ChatConversationsPendingNamespace
|
|
3016
|
+
# @api private
|
|
3017
|
+
# @param transport [Transport]
|
|
3018
|
+
def initialize(transport)
|
|
3019
|
+
@transport = transport
|
|
3020
|
+
end
|
|
3021
|
+
|
|
3022
|
+
# Answer an agent question
|
|
3023
|
+
#
|
|
3024
|
+
# Submit answers to a chat-only `ask_question` pending action (selection
|
|
3025
|
+
# with an Other field, or a textarea). Not used for destructive-tool
|
|
3026
|
+
# approval.
|
|
3027
|
+
#
|
|
3028
|
+
# _Requires permission: `chat:write`._
|
|
3029
|
+
#
|
|
3030
|
+
# POST
|
|
3031
|
+
# /api/org/{orgId}/chat/conversations/{conversationId}/pending/{pendingId}/answer
|
|
3032
|
+
#
|
|
3033
|
+
# Raises on 400: Bad request
|
|
3034
|
+
#
|
|
3035
|
+
# Raises on 403: Forbidden
|
|
3036
|
+
#
|
|
3037
|
+
# Raises on 404: Not found
|
|
3038
|
+
#
|
|
3039
|
+
# Raises on 409: Conflict
|
|
3040
|
+
#
|
|
3041
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
3042
|
+
# constructed with.
|
|
3043
|
+
# @param conversation_id [String] Chat conversation id
|
|
3044
|
+
# @param pending_id [String] Pending ask_question action id
|
|
3045
|
+
# @param body [Hash] Request body, shaped as `ChatAskQuestionInput`.
|
|
3046
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
3047
|
+
# @return [Hash] Parsed JSON, shaped as `ChatAskQuestionResult` — see
|
|
3048
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
3049
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
3050
|
+
def answer(conversation_id:, pending_id:, body:, org_id: nil, request_options: nil)
|
|
3051
|
+
@transport.request(
|
|
3052
|
+
http_method: "POST",
|
|
3053
|
+
path: "/api/org/{orgId}/chat/conversations/{conversationId}/pending/{pendingId}/answer",
|
|
3054
|
+
path_params: {
|
|
3055
|
+
"orgId" => org_id,
|
|
3056
|
+
"conversationId" => conversation_id,
|
|
3057
|
+
"pendingId" => pending_id
|
|
3058
|
+
},
|
|
3059
|
+
body: body,
|
|
3060
|
+
request_options: request_options
|
|
3061
|
+
)
|
|
3062
|
+
end
|
|
3063
|
+
end
|
|
3064
|
+
|
|
3014
3065
|
# `client.chat.conversations.secret_requests`
|
|
3015
3066
|
class ChatConversationsSecretRequestsNamespace
|
|
3016
3067
|
# @api private
|
|
@@ -3062,6 +3113,8 @@ module Infrawrench
|
|
|
3062
3113
|
|
|
3063
3114
|
# `client.chat.conversations`
|
|
3064
3115
|
class ChatConversationsNamespace
|
|
3116
|
+
# @return [ChatConversationsPendingNamespace] `client.chat.conversations.pending`
|
|
3117
|
+
attr_reader :pending
|
|
3065
3118
|
# @return [ChatConversationsSecretRequestsNamespace] `client.chat.conversations.secret_requests`
|
|
3066
3119
|
attr_reader :secret_requests
|
|
3067
3120
|
|
|
@@ -3069,6 +3122,7 @@ module Infrawrench
|
|
|
3069
3122
|
# @param transport [Transport]
|
|
3070
3123
|
def initialize(transport)
|
|
3071
3124
|
@transport = transport
|
|
3125
|
+
@pending = ChatConversationsPendingNamespace.new(@transport)
|
|
3072
3126
|
@secret_requests = ChatConversationsSecretRequestsNamespace.new(@transport)
|
|
3073
3127
|
end
|
|
3074
3128
|
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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.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.25.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1143,6 +1143,15 @@ module Infrawrench
|
|
|
1143
1143
|
# Spec schema: `ChangeFreezeStatus`.
|
|
1144
1144
|
type change_freeze_status = { "freeze" => change_freeze & (Hash[String, untyped] | nil) }
|
|
1145
1145
|
|
|
1146
|
+
# Spec schema: `ChatAskQuestionAnswer`.
|
|
1147
|
+
type chat_ask_question_answer = { "questionId" => String, ?"optionId" => String, ?"text" => String }
|
|
1148
|
+
|
|
1149
|
+
# Spec schema: `ChatAskQuestionInput`.
|
|
1150
|
+
type chat_ask_question_input = { "answers" => Array[chat_ask_question_answer] }
|
|
1151
|
+
|
|
1152
|
+
# Spec schema: `ChatAskQuestionResult`.
|
|
1153
|
+
type chat_ask_question_result = { "ok" => bool, "allResolved" => bool }
|
|
1154
|
+
|
|
1146
1155
|
# Spec schema: `ChatSecretRequestResult`.
|
|
1147
1156
|
type chat_secret_request_result = { "ok" => bool, "allResolved" => bool }
|
|
1148
1157
|
|
|
@@ -6978,12 +6987,18 @@ module Infrawrench
|
|
|
6978
6987
|
def resource: (resource_id: String, ?org_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> resource_change_list_response
|
|
6979
6988
|
end
|
|
6980
6989
|
|
|
6990
|
+
class ChatConversationsPendingNamespace
|
|
6991
|
+
def initialize: (Transport) -> void
|
|
6992
|
+
def answer: (conversation_id: String, pending_id: String, body: chat_ask_question_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_ask_question_result
|
|
6993
|
+
end
|
|
6994
|
+
|
|
6981
6995
|
class ChatConversationsSecretRequestsNamespace
|
|
6982
6996
|
def initialize: (Transport) -> void
|
|
6983
6997
|
def create: (conversation_id: String, request_id: String, body: workflow_secret_value_write, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_secret_request_result
|
|
6984
6998
|
end
|
|
6985
6999
|
|
|
6986
7000
|
class ChatConversationsNamespace
|
|
7001
|
+
attr_reader pending: ChatConversationsPendingNamespace
|
|
6987
7002
|
attr_reader secret_requests: ChatConversationsSecretRequestsNamespace
|
|
6988
7003
|
def initialize: (Transport) -> void
|
|
6989
7004
|
end
|
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.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Infrawrench LLC
|
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2026-08-13 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.25.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.25.0).
|
|
62
62
|
test_files: []
|