Class: Infrawrench::ChatConversationsSecretRequestsNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs

Overview

client.chat.conversations.secret_requests

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ ChatConversationsSecretRequestsNamespace

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ChatConversationsSecretRequestsNamespace.

Parameters:



3069
3070
3071
# File 'lib/infrawrench/client.rb', line 3069

def initialize(transport)
  @transport = transport
end

Instance Method Details

#create(conversation_id:, request_id:, body:, org_id: nil, request_options: nil) ⇒ Hash

Submit a requested workflow secret

Human-only, write-only handoff from the chat password field to encrypted workflow-secret storage. The value is never returned or added to chat history.

POST /api/org/orgId/chat/conversations/conversationId/secret-requests/requestId

Raises on 400: Bad request

Raises on 403: Forbidden

Raises on 404: Not found

Raises on 409: Conflict

Parameters:

  • org_id (String, nil) (defaults to: nil)

    Organization id. Defaults to the org_id the client was constructed with.

  • conversation_id (String)

    Chat conversation id

  • request_id (String)

    Pending secret request id

  • body (Hash)

    Request body, shaped as WorkflowSecretValueWrite.

  • request_options (Hash, nil) (defaults to: nil)

    Per-call :headers, :timeout and :open_timeout.

  • conversation_id: (String)
  • request_id: (String)
  • body: (workflow_secret_value_write)
  • org_id: (String, nil) (defaults to: nil)
  • request_options: (Hash[Symbol, untyped], nil) (defaults to: nil)

Returns:

  • (Hash)

    Parsed JSON, shaped as ChatSecretRequestResult — see sig/infrawrench/sdk.rbs.

Raises:



3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
# File 'lib/infrawrench/client.rb', line 3099

def create(conversation_id:, request_id:, body:, org_id: nil, request_options: nil)
  @transport.request(
    http_method: "POST",
    path: "/api/org/{orgId}/chat/conversations/{conversationId}/secret-requests/{requestId}",
    path_params: {
      "orgId" => org_id,
      "conversationId" => conversation_id,
      "requestId" => request_id
    },
    body: body,
    request_options: request_options
  )
end