tungo-sdk 0.2.0 → 0.3.1
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/CHANGELOG.md +64 -1
- data/README.md +6 -6
- data/lib/tungo/client.rb +16 -8
- data/lib/tungo/helpers.rb +3 -1
- data/lib/tungo/internal/sse.rb +91 -0
- data/lib/tungo/internal/util.rb +31 -0
- data/lib/tungo/models/api_key.rb +9 -1
- data/lib/tungo/models/api_key_create.rb +9 -2
- data/lib/tungo/models/api_key_created.rb +9 -1
- data/lib/tungo/models/api_key_details.rb +9 -1
- data/lib/tungo/models/api_key_patch.rb +7 -0
- data/lib/tungo/models/api_key_rolled.rb +19 -4
- data/lib/tungo/models/api_key_self.rb +9 -1
- data/lib/tungo/models/api_key_updated.rb +9 -1
- data/lib/tungo/models/api_key_usage_by_model_item.rb +1 -1
- data/lib/tungo/models/audit_entry.rb +16 -6
- data/lib/tungo/models/audit_entry_action.rb +70 -3
- data/lib/tungo/models/audit_entry_object.rb +43 -0
- data/lib/tungo/models/audit_entry_object_purpose.rb +25 -0
- data/lib/tungo/models/batch_statement.rb +38 -0
- data/lib/tungo/models/batch_statement_account.rb +50 -0
- data/lib/tungo/models/batch_summary.rb +6 -0
- data/lib/tungo/models/card_session.rb +6 -0
- data/lib/tungo/models/card_session_state.rb +28 -0
- data/lib/tungo/models/card_session_state_failure_code.rb +20 -0
- data/lib/tungo/models/card_session_state_status.rb +19 -0
- data/lib/tungo/models/chat_assistant_message.rb +22 -0
- data/lib/tungo/models/chat_choice_answer.rb +9 -1
- data/lib/tungo/models/chat_choice_question.rb +9 -1
- data/lib/tungo/models/chat_citation.rb +62 -5
- data/lib/tungo/models/chat_dialog.rb +17 -1
- data/lib/tungo/models/chat_dialog_patch.rb +2 -1
- data/lib/tungo/models/chat_dialog_rated.rb +25 -0
- data/lib/tungo/models/chat_dialog_rating.rb +25 -0
- data/lib/tungo/models/chat_dialog_rating_body.rb +21 -0
- data/lib/tungo/models/chat_dialog_renamed.rb +4 -0
- data/lib/tungo/models/chat_dialog_summary.rb +6 -2
- data/lib/tungo/models/chat_event.rb +6 -2
- data/lib/tungo/models/chat_event_citation.rb +54 -5
- data/lib/tungo/models/chat_event_done.rb +8 -1
- data/lib/tungo/models/chat_event_next.rb +27 -0
- data/lib/tungo/models/chat_event_title.rb +22 -0
- data/lib/tungo/models/chat_history_batch.rb +21 -0
- data/lib/tungo/models/chat_history_block.rb +3 -1
- data/lib/tungo/models/chat_history_error.rb +3 -3
- data/lib/tungo/models/chat_history_error_code.rb +4 -3
- data/lib/tungo/models/chat_history_mention.rb +29 -0
- data/lib/tungo/models/chat_history_mention_type.rb +20 -0
- data/lib/tungo/models/chat_history_question.rb +6 -1
- data/lib/tungo/models/chat_history_question_answer.rb +31 -0
- data/lib/tungo/models/chat_history_question_answer_via.rb +17 -0
- data/lib/tungo/models/chat_mention.rb +22 -0
- data/lib/tungo/models/chat_mention_item.rb +33 -0
- data/lib/tungo/models/chat_mention_item_type.rb +20 -0
- data/lib/tungo/models/chat_mention_search.rb +21 -0
- data/lib/tungo/models/chat_mention_type.rb +20 -0
- data/lib/tungo/models/chat_mention_unavailable.rb +23 -0
- data/lib/tungo/models/chat_mention_unavailable_reason.rb +19 -0
- data/lib/tungo/models/chat_mention_unavailable_type.rb +20 -0
- data/lib/tungo/models/chat_message_rated.rb +31 -0
- data/lib/tungo/models/chat_message_rating.rb +30 -0
- data/lib/tungo/models/chat_message_rating_body.rb +27 -0
- data/lib/tungo/models/chat_message_rating_body_vote.rb +17 -0
- data/lib/tungo/models/chat_message_rating_vote.rb +17 -0
- data/lib/tungo/models/chat_message_request.rb +14 -0
- data/lib/tungo/models/chat_message_request_effort.rb +22 -0
- data/lib/tungo/models/chat_next_action.rb +31 -0
- data/lib/tungo/models/chat_next_action_code.rb +21 -0
- data/lib/tungo/models/chat_next_action_params_value.rb +20 -0
- data/lib/tungo/models/chat_rating_dismissed.rb +21 -0
- data/lib/tungo/models/chat_rating_options.rb +25 -0
- data/lib/tungo/models/chat_rating_options_dialog_scores.rb +20 -0
- data/lib/tungo/models/chat_rating_options_reason_item.rb +20 -0
- data/lib/tungo/models/chat_suggestion.rb +41 -0
- data/lib/tungo/models/chat_suggestion_action.rb +17 -0
- data/lib/tungo/models/chat_suggestion_group.rb +26 -0
- data/lib/tungo/models/chat_suggestions.rb +25 -0
- data/lib/tungo/models/chat_suggestions_locale.rb +17 -0
- data/lib/tungo/models/chat_title_source.rb +20 -0
- data/lib/tungo/models/chat_turn_error.rb +9 -5
- data/lib/tungo/models/chat_turn_error_code.rb +4 -3
- data/lib/tungo/models/chat_turn_error_limit_kind.rb +7 -1
- data/lib/tungo/models/chat_turn_result.rb +11 -0
- data/lib/tungo/models/chat_user_message.rb +5 -0
- data/lib/tungo/models/company.rb +2 -2
- data/lib/tungo/models/company_legal_form.rb +2 -1
- data/lib/tungo/models/company_list_item.rb +2 -2
- data/lib/tungo/models/error_detail.rb +32 -2
- data/lib/tungo/models/error_detail_free_blocked_reason.rb +25 -0
- data/lib/tungo/models/get_workspace_platform_audit_response.rb +11 -0
- data/lib/tungo/models/list_company_chat_rating_options_lang.rb +17 -0
- data/lib/tungo/models/list_company_chat_suggestions_lang.rb +18 -0
- data/lib/tungo/models/list_company_proposals_approval_requested.rb +17 -0
- data/lib/tungo/models/list_workspace_platform_requests_response.rb +11 -0
- data/lib/tungo/models/pay_form.rb +6 -0
- data/lib/tungo/models/platform_account_purchase_limits.rb +6 -0
- data/lib/tungo/models/platform_ledger_entry.rb +7 -0
- data/lib/tungo/models/platform_ledger_entry_documents.rb +33 -0
- data/lib/tungo/models/platform_ledger_entry_documents_receipt_status.rb +20 -0
- data/lib/tungo/models/platform_request.rb +7 -0
- data/lib/tungo/models/proposal_approval_request.rb +27 -0
- data/lib/tungo/models/proposal_approval_request_body.rb +15 -0
- data/lib/tungo/models/proposal_approval_request_result.rb +31 -0
- data/lib/tungo/models/proposal_approval_requested.rb +32 -0
- data/lib/tungo/models/proposal_card.rb +16 -1
- data/lib/tungo/models/proposal_card_status_reason.rb +23 -0
- data/lib/tungo/models/proposal_history_event.rb +7 -0
- data/lib/tungo/models/proposal_list_item.rb +16 -1
- data/lib/tungo/models/proposal_list_item_status_reason.rb +23 -0
- data/lib/tungo/models/proposal_origin.rb +33 -0
- data/lib/tungo/models/proposal_origin_source.rb +21 -0
- data/lib/tungo/models/proposal_page.rb +9 -2
- data/lib/tungo/models/usage_rate.rb +15 -2
- data/lib/tungo/models.rb +58 -0
- data/lib/tungo/money.rb +14 -1
- data/lib/tungo/request_options.rb +3 -1
- data/lib/tungo/resources/automations.rb +6 -3
- data/lib/tungo/resources/chat.rb +175 -2
- data/lib/tungo/resources/proposals.rb +49 -2
- data/lib/tungo/transport.rb +9 -1
- data/lib/tungo/version.rb +1 -1
- data/sig/tungo/models/api_key.rbs +2 -1
- data/sig/tungo/models/api_key_create.rbs +3 -2
- data/sig/tungo/models/api_key_created.rbs +2 -1
- data/sig/tungo/models/api_key_details.rbs +2 -1
- data/sig/tungo/models/api_key_patch.rbs +2 -1
- data/sig/tungo/models/api_key_rolled.rbs +4 -2
- data/sig/tungo/models/api_key_self.rbs +2 -1
- data/sig/tungo/models/api_key_updated.rbs +2 -1
- data/sig/tungo/models/audit_entry.rbs +2 -1
- data/sig/tungo/models/audit_entry_action.rbs +67 -0
- data/sig/tungo/models/audit_entry_object.rbs +16 -0
- data/sig/tungo/models/audit_entry_object_purpose.rbs +19 -0
- data/sig/tungo/models/batch_statement.rbs +16 -0
- data/sig/tungo/models/batch_statement_account.rbs +19 -0
- data/sig/tungo/models/batch_summary.rbs +2 -1
- data/sig/tungo/models/card_session.rbs +2 -1
- data/sig/tungo/models/card_session_state.rbs +14 -0
- data/sig/tungo/models/card_session_state_failure_code.rbs +14 -0
- data/sig/tungo/models/card_session_state_status.rbs +14 -0
- data/sig/tungo/models/chat_assistant_message.rbs +5 -1
- data/sig/tungo/models/chat_choice_answer.rbs +2 -1
- data/sig/tungo/models/chat_choice_question.rbs +2 -1
- data/sig/tungo/models/chat_citation.rbs +11 -1
- data/sig/tungo/models/chat_dialog.rbs +4 -1
- data/sig/tungo/models/chat_dialog_rated.rbs +14 -0
- data/sig/tungo/models/chat_dialog_rating.rbs +14 -0
- data/sig/tungo/models/chat_dialog_rating_body.rbs +13 -0
- data/sig/tungo/models/chat_dialog_renamed.rbs +2 -1
- data/sig/tungo/models/chat_dialog_summary.rbs +2 -1
- data/sig/tungo/models/chat_event.rbs +1 -1
- data/sig/tungo/models/chat_event_citation.rbs +10 -1
- data/sig/tungo/models/chat_event_done.rbs +2 -1
- data/sig/tungo/models/chat_event_next.rbs +14 -0
- data/sig/tungo/models/chat_event_title.rbs +13 -0
- data/sig/tungo/models/chat_history_batch.rbs +13 -0
- data/sig/tungo/models/chat_history_block.rbs +1 -1
- data/sig/tungo/models/chat_history_error_code.rbs +1 -0
- data/sig/tungo/models/chat_history_mention.rbs +14 -0
- data/sig/tungo/models/chat_history_mention_type.rbs +14 -0
- data/sig/tungo/models/chat_history_question.rbs +2 -1
- data/sig/tungo/models/chat_history_question_answer.rbs +15 -0
- data/sig/tungo/models/chat_history_question_answer_via.rbs +13 -0
- data/sig/tungo/models/chat_mention.rbs +13 -0
- data/sig/tungo/models/chat_mention_item.rbs +15 -0
- data/sig/tungo/models/chat_mention_item_type.rbs +14 -0
- data/sig/tungo/models/chat_mention_search.rbs +13 -0
- data/sig/tungo/models/chat_mention_type.rbs +14 -0
- data/sig/tungo/models/chat_mention_unavailable.rbs +13 -0
- data/sig/tungo/models/chat_mention_unavailable_reason.rbs +14 -0
- data/sig/tungo/models/chat_mention_unavailable_type.rbs +14 -0
- data/sig/tungo/models/chat_message_rated.rbs +15 -0
- data/sig/tungo/models/chat_message_rating.rbs +15 -0
- data/sig/tungo/models/chat_message_rating_body.rbs +14 -0
- data/sig/tungo/models/chat_message_rating_body_vote.rbs +13 -0
- data/sig/tungo/models/chat_message_rating_vote.rbs +13 -0
- data/sig/tungo/models/chat_message_request.rbs +3 -1
- data/sig/tungo/models/chat_message_request_effort.rbs +16 -0
- data/sig/tungo/models/chat_next_action.rbs +14 -0
- data/sig/tungo/models/chat_next_action_code.rbs +15 -0
- data/sig/tungo/models/chat_next_action_params_value.rbs +12 -0
- data/sig/tungo/models/chat_rating_dismissed.rbs +13 -0
- data/sig/tungo/models/chat_rating_options.rbs +14 -0
- data/sig/tungo/models/chat_rating_options_dialog_scores.rbs +13 -0
- data/sig/tungo/models/chat_rating_options_reason_item.rbs +13 -0
- data/sig/tungo/models/chat_suggestion.rbs +17 -0
- data/sig/tungo/models/chat_suggestion_action.rbs +13 -0
- data/sig/tungo/models/chat_suggestion_group.rbs +14 -0
- data/sig/tungo/models/chat_suggestions.rbs +14 -0
- data/sig/tungo/models/chat_suggestions_locale.rbs +13 -0
- data/sig/tungo/models/chat_title_source.rbs +14 -0
- data/sig/tungo/models/chat_turn_error_code.rbs +1 -0
- data/sig/tungo/models/chat_turn_error_limit_kind.rbs +4 -0
- data/sig/tungo/models/chat_turn_result.rbs +3 -1
- data/sig/tungo/models/chat_user_message.rbs +2 -1
- data/sig/tungo/models/company.rbs +2 -2
- data/sig/tungo/models/company_list_item.rbs +2 -2
- data/sig/tungo/models/error_detail.rbs +6 -1
- data/sig/tungo/models/error_detail_free_blocked_reason.rbs +19 -0
- data/sig/tungo/models/get_workspace_platform_audit_response.rbs +3 -1
- data/sig/tungo/models/list_company_chat_rating_options_lang.rbs +13 -0
- data/sig/tungo/models/list_company_chat_suggestions_lang.rbs +13 -0
- data/sig/tungo/models/list_company_proposals_approval_requested.rbs +13 -0
- data/sig/tungo/models/list_workspace_platform_requests_response.rbs +3 -1
- data/sig/tungo/models/pay_form.rbs +2 -1
- data/sig/tungo/models/platform_account_purchase_limits.rbs +2 -1
- data/sig/tungo/models/platform_ledger_entry.rbs +2 -1
- data/sig/tungo/models/platform_ledger_entry_documents.rbs +15 -0
- data/sig/tungo/models/platform_ledger_entry_documents_receipt_status.rbs +15 -0
- data/sig/tungo/models/platform_request.rbs +2 -1
- data/sig/tungo/models/proposal_approval_request.rbs +14 -0
- data/sig/tungo/models/proposal_approval_request_body.rbs +12 -0
- data/sig/tungo/models/proposal_approval_request_result.rbs +15 -0
- data/sig/tungo/models/proposal_approval_requested.rbs +15 -0
- data/sig/tungo/models/proposal_card.rbs +4 -1
- data/sig/tungo/models/proposal_card_status_reason.rbs +13 -0
- data/sig/tungo/models/proposal_history_event.rbs +2 -1
- data/sig/tungo/models/proposal_list_item.rbs +4 -1
- data/sig/tungo/models/proposal_list_item_status_reason.rbs +13 -0
- data/sig/tungo/models/proposal_origin.rbs +15 -0
- data/sig/tungo/models/proposal_origin_source.rbs +15 -0
- data/sig/tungo/models/proposal_page.rbs +2 -1
- data/sig/tungo/models/usage_rate.rbs +3 -1
- data/sig/tungo/resources/automations.rbs +1 -1
- data/sig/tungo/resources/chat.rbs +9 -2
- data/sig/tungo/resources/proposals.rbs +3 -2
- metadata +117 -1
|
@@ -4,7 +4,7 @@ module Tungo
|
|
|
4
4
|
module Models
|
|
5
5
|
module ChatEvent
|
|
6
6
|
extend Tungo::Internal::Union
|
|
7
|
-
type t = Tungo::Models::ChatEventText | Tungo::Models::ChatEventProgress | Tungo::Models::ChatEventThinking | Tungo::Models::ChatEventStatus | Tungo::Models::ChatEventTool | Tungo::Models::ChatEventProposal | Tungo::Models::ChatEventCitation | Tungo::Models::ChatEventQuestion | Tungo::Models::ChatEventChoice | Tungo::Models::ChatEventError | Tungo::Models::ChatEventBatch | Tungo::Models::ChatEventBatchReport | Tungo::Models::ChatEventDone | Tungo::UnknownVariant
|
|
7
|
+
type t = Tungo::Models::ChatEventText | Tungo::Models::ChatEventProgress | Tungo::Models::ChatEventThinking | Tungo::Models::ChatEventStatus | Tungo::Models::ChatEventTool | Tungo::Models::ChatEventProposal | Tungo::Models::ChatEventCitation | Tungo::Models::ChatEventQuestion | Tungo::Models::ChatEventChoice | Tungo::Models::ChatEventError | Tungo::Models::ChatEventBatch | Tungo::Models::ChatEventBatchReport | Tungo::Models::ChatEventNext | Tungo::Models::ChatEventDone | Tungo::Models::ChatEventTitle | Tungo::UnknownVariant
|
|
8
8
|
type input = t | Hash[Symbol, untyped] | Hash[String, untyped]
|
|
9
9
|
def self.coerce: (untyped value) -> t
|
|
10
10
|
end
|
|
@@ -3,12 +3,21 @@
|
|
|
3
3
|
module Tungo
|
|
4
4
|
module Models
|
|
5
5
|
class ChatEventCitation < Tungo::Model
|
|
6
|
+
def article: () -> String?
|
|
7
|
+
def chapter: () -> String?
|
|
8
|
+
def document: () -> String
|
|
6
9
|
def edition: () -> String?
|
|
10
|
+
def edition_date: () -> String?
|
|
11
|
+
def heading: () -> String?
|
|
12
|
+
def label: () -> String
|
|
13
|
+
def note: () -> String?
|
|
14
|
+
def point: () -> String?
|
|
7
15
|
def source: () -> String
|
|
16
|
+
def subpoint: () -> String?
|
|
8
17
|
def title: () -> String
|
|
9
18
|
def type: () -> String
|
|
10
19
|
def url: () -> String?
|
|
11
|
-
def initialize: (?edition: String, ?source: String, ?title: String, ?type: String, ?url: String, **untyped) -> void
|
|
20
|
+
def initialize: (?article: String, ?chapter: String, ?document: String, ?edition: String, ?edition_date: String, ?heading: String, ?label: String, ?note: String, ?point: String, ?source: String, ?subpoint: String, ?title: String, ?type: String, ?url: String, **untyped) -> void
|
|
12
21
|
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatEventCitation
|
|
13
22
|
def with: (**untyped) -> Tungo::Models::ChatEventCitation
|
|
14
23
|
end
|
|
@@ -6,10 +6,11 @@ module Tungo
|
|
|
6
6
|
def answer: () -> String?
|
|
7
7
|
def choice_id: () -> String?
|
|
8
8
|
def cost_tiyn: () -> Integer?
|
|
9
|
+
def rating_prompt: () -> bool?
|
|
9
10
|
def stop_reason: () -> String?
|
|
10
11
|
def type: () -> String
|
|
11
12
|
def usage: () -> Tungo::Models::ChatUsage?
|
|
12
|
-
def initialize: (?answer: String, ?choice_id: String, ?cost_tiyn: Integer, ?stop_reason: String, ?type: String, ?usage: Tungo::input[Tungo::Models::ChatUsage], **untyped) -> void
|
|
13
|
+
def initialize: (?answer: String, ?choice_id: String, ?cost_tiyn: Integer, ?rating_prompt: bool, ?stop_reason: String, ?type: String, ?usage: Tungo::input[Tungo::Models::ChatUsage], **untyped) -> void
|
|
13
14
|
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatEventDone
|
|
14
15
|
def with: (**untyped) -> Tungo::Models::ChatEventDone
|
|
15
16
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatEventNext < Tungo::Model
|
|
6
|
+
def action: () -> Tungo::Models::ChatNextAction?
|
|
7
|
+
def followups: () -> Array[String]
|
|
8
|
+
def type: () -> String
|
|
9
|
+
def initialize: (?action: Tungo::input[Tungo::Models::ChatNextAction]?, ?followups: Array[String], ?type: String, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatEventNext
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatEventNext
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatEventTitle < Tungo::Model
|
|
6
|
+
def title: () -> String
|
|
7
|
+
def type: () -> String
|
|
8
|
+
def initialize: (?title: String, ?type: String, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatEventTitle
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatEventTitle
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatHistoryBatch < Tungo::Model
|
|
6
|
+
def job_id: () -> String
|
|
7
|
+
def kind: () -> String
|
|
8
|
+
def initialize: (?job_id: String, ?kind: String, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatHistoryBatch
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatHistoryBatch
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -4,7 +4,7 @@ module Tungo
|
|
|
4
4
|
module Models
|
|
5
5
|
module ChatHistoryBlock
|
|
6
6
|
extend Tungo::Internal::Union
|
|
7
|
-
type t = Tungo::Models::ChatHistoryText | Tungo::Models::ChatHistoryTool | Tungo::Models::ChatHistoryProposal | Tungo::Models::ChatHistoryQuestion | Tungo::Models::ChatHistoryError | Tungo::UnknownVariant
|
|
7
|
+
type t = Tungo::Models::ChatHistoryText | Tungo::Models::ChatHistoryTool | Tungo::Models::ChatHistoryProposal | Tungo::Models::ChatHistoryBatch | Tungo::Models::ChatHistoryQuestion | Tungo::Models::ChatHistoryError | Tungo::UnknownVariant
|
|
8
8
|
type input = t | Hash[Symbol, untyped] | Hash[String, untyped]
|
|
9
9
|
def self.coerce: (untyped value) -> t
|
|
10
10
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatHistoryMention < Tungo::Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def title: () -> String?
|
|
8
|
+
def type: () -> Tungo::Models::ChatHistoryMentionType::t
|
|
9
|
+
def initialize: (?id: String, ?title: String?, ?type: Tungo::Models::ChatHistoryMentionType::input, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatHistoryMention
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatHistoryMention
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatHistoryMentionType
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
PROPOSAL: String
|
|
10
|
+
COUNTERPARTY: String
|
|
11
|
+
BATCH: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
module Tungo
|
|
4
4
|
module Models
|
|
5
5
|
class ChatHistoryQuestion < Tungo::Model
|
|
6
|
+
def answer: () -> Tungo::Models::ChatHistoryQuestionAnswer?
|
|
6
7
|
def kind: () -> String
|
|
7
8
|
def proposal_id: () -> String?
|
|
8
9
|
def text: () -> String
|
|
9
|
-
def initialize: (?kind: String, ?proposal_id: String, ?text: String, **untyped) -> void
|
|
10
|
+
def initialize: (?answer: Tungo::input[Tungo::Models::ChatHistoryQuestionAnswer], ?kind: String, ?proposal_id: String, ?text: String, **untyped) -> void
|
|
10
11
|
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatHistoryQuestion
|
|
11
12
|
def with: (**untyped) -> Tungo::Models::ChatHistoryQuestion
|
|
12
13
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatHistoryQuestionAnswer < Tungo::Model
|
|
6
|
+
def other: () -> String?
|
|
7
|
+
def selected: () -> Array[String]
|
|
8
|
+
def skipped: () -> bool?
|
|
9
|
+
def via: () -> Tungo::Models::ChatHistoryQuestionAnswerVia::t
|
|
10
|
+
def initialize: (?other: String, ?selected: Array[String], ?skipped: bool, ?via: Tungo::Models::ChatHistoryQuestionAnswerVia::input, **untyped) -> void
|
|
11
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatHistoryQuestionAnswer
|
|
12
|
+
def with: (**untyped) -> Tungo::Models::ChatHistoryQuestionAnswer
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatHistoryQuestionAnswerVia
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
CHOICE: String
|
|
10
|
+
MESSAGE: String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMention < Tungo::Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def type: () -> Tungo::Models::ChatMentionType::t
|
|
8
|
+
def initialize: (?id: String, ?type: Tungo::Models::ChatMentionType::input, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMention
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatMention
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMentionItem < Tungo::Model
|
|
6
|
+
def hint: () -> String?
|
|
7
|
+
def id: () -> String
|
|
8
|
+
def title: () -> String
|
|
9
|
+
def type: () -> Tungo::Models::ChatMentionItemType::t
|
|
10
|
+
def initialize: (?hint: String?, ?id: String, ?title: String, ?type: Tungo::Models::ChatMentionItemType::input, **untyped) -> void
|
|
11
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMentionItem
|
|
12
|
+
def with: (**untyped) -> Tungo::Models::ChatMentionItem
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMentionItemType
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
PROPOSAL: String
|
|
10
|
+
COUNTERPARTY: String
|
|
11
|
+
BATCH: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMentionSearch < Tungo::Model
|
|
6
|
+
def data: () -> Array[Tungo::Models::ChatMentionItem]
|
|
7
|
+
def unavailable: () -> Array[Tungo::Models::ChatMentionUnavailable]
|
|
8
|
+
def initialize: (?data: Array[Tungo::input[Tungo::Models::ChatMentionItem]], ?unavailable: Array[Tungo::input[Tungo::Models::ChatMentionUnavailable]], **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMentionSearch
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatMentionSearch
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMentionType
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
PROPOSAL: String
|
|
10
|
+
COUNTERPARTY: String
|
|
11
|
+
BATCH: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMentionUnavailable < Tungo::Model
|
|
6
|
+
def reason: () -> Tungo::Models::ChatMentionUnavailableReason::t
|
|
7
|
+
def type: () -> Tungo::Models::ChatMentionUnavailableType::t
|
|
8
|
+
def initialize: (?reason: Tungo::Models::ChatMentionUnavailableReason::input, ?type: Tungo::Models::ChatMentionUnavailableType::input, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMentionUnavailable
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatMentionUnavailable
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMentionUnavailableReason
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
NO_ACCESS: String
|
|
10
|
+
ONEC_NOT_LINKED: String
|
|
11
|
+
ONEC_UNAVAILABLE: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMentionUnavailableType
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
PROPOSAL: String
|
|
10
|
+
COUNTERPARTY: String
|
|
11
|
+
BATCH: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMessageRated < Tungo::Model
|
|
6
|
+
def dialog_id: () -> String
|
|
7
|
+
def message_id: () -> String
|
|
8
|
+
def rating: () -> Tungo::Models::ChatMessageRating?
|
|
9
|
+
def turn_no: () -> Integer
|
|
10
|
+
def initialize: (?dialog_id: String, ?message_id: String, ?rating: Tungo::input[Tungo::Models::ChatMessageRating]?, ?turn_no: Integer, **untyped) -> void
|
|
11
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMessageRated
|
|
12
|
+
def with: (**untyped) -> Tungo::Models::ChatMessageRated
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMessageRating < Tungo::Model
|
|
6
|
+
def at: () -> String
|
|
7
|
+
def comment: () -> String?
|
|
8
|
+
def reason: () -> String?
|
|
9
|
+
def vote: () -> Tungo::Models::ChatMessageRatingVote::t
|
|
10
|
+
def initialize: (?at: (String | Time), ?comment: String?, ?reason: String?, ?vote: Tungo::Models::ChatMessageRatingVote::input, **untyped) -> void
|
|
11
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMessageRating
|
|
12
|
+
def with: (**untyped) -> Tungo::Models::ChatMessageRating
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatMessageRatingBody < Tungo::Model
|
|
6
|
+
def comment: () -> String?
|
|
7
|
+
def reason: () -> String?
|
|
8
|
+
def vote: () -> Tungo::Models::ChatMessageRatingBodyVote::t
|
|
9
|
+
def initialize: (?comment: String?, ?reason: String?, ?vote: Tungo::Models::ChatMessageRatingBodyVote::input, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMessageRatingBody
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatMessageRatingBody
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMessageRatingBodyVote
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
UP: String
|
|
10
|
+
DOWN: String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMessageRatingVote
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
UP: String
|
|
10
|
+
DOWN: String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -6,13 +6,15 @@ module Tungo
|
|
|
6
6
|
def attachments: () -> Array[Tungo::Models::ChatAttachment]?
|
|
7
7
|
def capabilities: () -> Array[String]?
|
|
8
8
|
def dialog_id: () -> String?
|
|
9
|
+
def effort: () -> Tungo::Models::ChatMessageRequestEffort::t?
|
|
10
|
+
def mentions: () -> Array[Tungo::Models::ChatMention]?
|
|
9
11
|
def message: () -> String?
|
|
10
12
|
def mode: () -> Tungo::Models::ChatMessageRequestMode::t?
|
|
11
13
|
def new_dialog: () -> bool?
|
|
12
14
|
def proposal_id: () -> String?
|
|
13
15
|
def stream: () -> bool?
|
|
14
16
|
def turn: () -> Integer?
|
|
15
|
-
def initialize: (?attachments: Array[Tungo::input[Tungo::Models::ChatAttachment]], ?capabilities: Array[String], ?dialog_id: String?, ?message: String, ?mode: Tungo::Models::ChatMessageRequestMode::input, ?new_dialog: bool, ?proposal_id: String?, ?stream: bool, ?turn: Integer?, **untyped) -> void
|
|
17
|
+
def initialize: (?attachments: Array[Tungo::input[Tungo::Models::ChatAttachment]], ?capabilities: Array[String], ?dialog_id: String?, ?effort: Tungo::Models::ChatMessageRequestEffort::input?, ?mentions: Array[Tungo::input[Tungo::Models::ChatMention]], ?message: String, ?mode: Tungo::Models::ChatMessageRequestMode::input, ?new_dialog: bool, ?proposal_id: String?, ?stream: bool, ?turn: Integer?, **untyped) -> void
|
|
16
18
|
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatMessageRequest
|
|
17
19
|
def with: (**untyped) -> Tungo::Models::ChatMessageRequest
|
|
18
20
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatMessageRequestEffort
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
LOW: String
|
|
10
|
+
MEDIUM: String
|
|
11
|
+
HIGH: String
|
|
12
|
+
XHIGH: String
|
|
13
|
+
MAX: String
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatNextAction < Tungo::Model
|
|
6
|
+
def code: () -> Tungo::Models::ChatNextActionCode::t
|
|
7
|
+
def params: () -> Hash[String, Tungo::Models::ChatNextActionParamsValue::t]
|
|
8
|
+
def prompt: () -> String
|
|
9
|
+
def initialize: (?code: Tungo::Models::ChatNextActionCode::input, ?params: Hash[String | Symbol, Tungo::Models::ChatNextActionParamsValue::input], ?prompt: String, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatNextAction
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatNextAction
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatNextActionCode
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
PREPARE_DOCUMENT: String
|
|
10
|
+
RUN_CHECK: String
|
|
11
|
+
BUILD_TAX_FORM: String
|
|
12
|
+
CHECK_COUNTERPARTY: String
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatNextActionParamsValue
|
|
6
|
+
extend Tungo::Internal::Union
|
|
7
|
+
type t = String | (Integer | BigDecimal) | bool
|
|
8
|
+
type input = t
|
|
9
|
+
def self.coerce: (untyped value) -> t
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatRatingDismissed < Tungo::Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def rating_prompt: () -> bool
|
|
8
|
+
def initialize: (?id: String, ?rating_prompt: bool, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatRatingDismissed
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatRatingDismissed
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatRatingOptions < Tungo::Model
|
|
6
|
+
def comment_chars: () -> Integer
|
|
7
|
+
def dialog_scores: () -> Tungo::Models::ChatRatingOptionsDialogScores
|
|
8
|
+
def reasons: () -> Array[Tungo::Models::ChatRatingOptionsReasonItem]
|
|
9
|
+
def initialize: (?comment_chars: Integer, ?dialog_scores: Tungo::input[Tungo::Models::ChatRatingOptionsDialogScores], ?reasons: Array[Tungo::input[Tungo::Models::ChatRatingOptionsReasonItem]], **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatRatingOptions
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatRatingOptions
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatRatingOptionsDialogScores < Tungo::Model
|
|
6
|
+
def max: () -> Integer
|
|
7
|
+
def min: () -> Integer
|
|
8
|
+
def initialize: (?max: Integer, ?min: Integer, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatRatingOptionsDialogScores
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatRatingOptionsDialogScores
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatRatingOptionsReasonItem < Tungo::Model
|
|
6
|
+
def key: () -> String
|
|
7
|
+
def title: () -> String
|
|
8
|
+
def initialize: (?key: String, ?title: String, **untyped) -> void
|
|
9
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatRatingOptionsReasonItem
|
|
10
|
+
def with: (**untyped) -> Tungo::Models::ChatRatingOptionsReasonItem
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatSuggestion < Tungo::Model
|
|
6
|
+
def action: () -> Tungo::Models::ChatSuggestionAction::t
|
|
7
|
+
def code: () -> String
|
|
8
|
+
def hint: () -> String
|
|
9
|
+
def prompt: () -> String
|
|
10
|
+
def seasonal: () -> bool
|
|
11
|
+
def title: () -> String
|
|
12
|
+
def initialize: (?action: Tungo::Models::ChatSuggestionAction::input, ?code: String, ?hint: String, ?prompt: String, ?seasonal: bool, ?title: String, **untyped) -> void
|
|
13
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatSuggestion
|
|
14
|
+
def with: (**untyped) -> Tungo::Models::ChatSuggestion
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatSuggestionAction
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
ASK: String
|
|
10
|
+
CONNECT_ONEC: String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatSuggestionGroup < Tungo::Model
|
|
6
|
+
def code: () -> String
|
|
7
|
+
def suggestions: () -> Array[Tungo::Models::ChatSuggestion]
|
|
8
|
+
def title: () -> String
|
|
9
|
+
def initialize: (?code: String, ?suggestions: Array[Tungo::input[Tungo::Models::ChatSuggestion]], ?title: String, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatSuggestionGroup
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatSuggestionGroup
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
class ChatSuggestions < Tungo::Model
|
|
6
|
+
def data: () -> Array[Tungo::Models::ChatSuggestionGroup]
|
|
7
|
+
def locale: () -> Tungo::Models::ChatSuggestionsLocale::t
|
|
8
|
+
def onec_linked: () -> bool
|
|
9
|
+
def initialize: (?data: Array[Tungo::input[Tungo::Models::ChatSuggestionGroup]], ?locale: Tungo::Models::ChatSuggestionsLocale::input, ?onec_linked: bool, **untyped) -> void
|
|
10
|
+
def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatSuggestions
|
|
11
|
+
def with: (**untyped) -> Tungo::Models::ChatSuggestions
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatSuggestionsLocale
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
RU: String
|
|
10
|
+
KK: String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
module Tungo
|
|
4
|
+
module Models
|
|
5
|
+
module ChatTitleSource
|
|
6
|
+
extend Tungo::Internal::Enum
|
|
7
|
+
type t = String
|
|
8
|
+
type input = String
|
|
9
|
+
FIRST_MESSAGE: String
|
|
10
|
+
AI: String
|
|
11
|
+
USER: String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|