tungo-sdk 0.2.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 +7 -0
- data/CHANGELOG.md +34 -0
- data/LICENSE +21 -0
- data/README.md +316 -0
- data/SECURITY.md +19 -0
- data/lib/tungo/api_response.rb +52 -0
- data/lib/tungo/client.rb +426 -0
- data/lib/tungo/contract.rb +37 -0
- data/lib/tungo/errors.rb +266 -0
- data/lib/tungo/helpers.rb +146 -0
- data/lib/tungo/internal/model.rb +432 -0
- data/lib/tungo/internal/sse.rb +122 -0
- data/lib/tungo/internal/util.rb +223 -0
- data/lib/tungo/models/api_key.rb +132 -0
- data/lib/tungo/models/api_key_create.rb +75 -0
- data/lib/tungo/models/api_key_create_write_kind_item.rb +26 -0
- data/lib/tungo/models/api_key_created.rb +154 -0
- data/lib/tungo/models/api_key_created_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_created_status.rb +21 -0
- data/lib/tungo/models/api_key_details.rb +139 -0
- data/lib/tungo/models/api_key_details_blocked_reason.rb +27 -0
- data/lib/tungo/models/api_key_details_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_details_status.rb +21 -0
- data/lib/tungo/models/api_key_month.rb +28 -0
- data/lib/tungo/models/api_key_patch.rb +78 -0
- data/lib/tungo/models/api_key_patch_write_kind_item.rb +26 -0
- data/lib/tungo/models/api_key_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_person.rb +25 -0
- data/lib/tungo/models/api_key_roll.rb +16 -0
- data/lib/tungo/models/api_key_rolled.rb +147 -0
- data/lib/tungo/models/api_key_rolled_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_rolled_status.rb +21 -0
- data/lib/tungo/models/api_key_self.rb +154 -0
- data/lib/tungo/models/api_key_self_blocked_reason.rb +27 -0
- data/lib/tungo/models/api_key_self_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_self_rate_limit.rb +26 -0
- data/lib/tungo/models/api_key_self_status.rb +21 -0
- data/lib/tungo/models/api_key_self_workspace.rb +25 -0
- data/lib/tungo/models/api_key_self_workspace_kind.rb +18 -0
- data/lib/tungo/models/api_key_status.rb +21 -0
- data/lib/tungo/models/api_key_transfer.rb +16 -0
- data/lib/tungo/models/api_key_updated.rb +139 -0
- data/lib/tungo/models/api_key_updated_permission_item.rb +22 -0
- data/lib/tungo/models/api_key_updated_status.rb +21 -0
- data/lib/tungo/models/api_key_usage.rb +49 -0
- data/lib/tungo/models/api_key_usage_by_company_item.rb +25 -0
- data/lib/tungo/models/api_key_usage_by_day_item.rb +25 -0
- data/lib/tungo/models/api_key_usage_by_model_item.rb +25 -0
- data/lib/tungo/models/api_key_usage_totals.rb +40 -0
- data/lib/tungo/models/api_key_warning.rb +22 -0
- data/lib/tungo/models/api_key_warning_code.rb +21 -0
- data/lib/tungo/models/approve_batch_company_proposals_response.rb +20 -0
- data/lib/tungo/models/approve_error.rb +25 -0
- data/lib/tungo/models/approve_error_error.rb +96 -0
- data/lib/tungo/models/approve_request.rb +26 -0
- data/lib/tungo/models/audit_entry.rb +64 -0
- data/lib/tungo/models/audit_entry_action.rb +148 -0
- data/lib/tungo/models/audit_entry_actor.rb +26 -0
- data/lib/tungo/models/audit_entry_actor_type.rb +18 -0
- data/lib/tungo/models/audit_entry_target.rb +20 -0
- data/lib/tungo/models/automation_auto_approve.rb +40 -0
- data/lib/tungo/models/automation_auto_approve_kind_item.rb +25 -0
- data/lib/tungo/models/automation_deleted.rb +20 -0
- data/lib/tungo/models/automation_event_filter.rb +16 -0
- data/lib/tungo/models/automation_filter_condition.rb +30 -0
- data/lib/tungo/models/automation_filter_condition_op.rb +26 -0
- data/lib/tungo/models/automation_filter_condition_value.rb +23 -0
- data/lib/tungo/models/automation_filter_condition_value_option4_item.rb +20 -0
- data/lib/tungo/models/automation_hook.rb +65 -0
- data/lib/tungo/models/automation_hook_accepted.rb +34 -0
- data/lib/tungo/models/automation_hook_create.rb +38 -0
- data/lib/tungo/models/automation_hook_event.rb +64 -0
- data/lib/tungo/models/automation_hook_event_encoding.rb +17 -0
- data/lib/tungo/models/automation_hook_event_source.rb +17 -0
- data/lib/tungo/models/automation_hook_patch.rb +44 -0
- data/lib/tungo/models/automation_hook_test_input.rb +30 -0
- data/lib/tungo/models/automation_hook_test_result.rb +63 -0
- data/lib/tungo/models/automation_hook_test_result_external_id_source.rb +20 -0
- data/lib/tungo/models/automation_hook_test_scenario.rb +46 -0
- data/lib/tungo/models/automation_hook_test_scenario_failed_condition.rb +26 -0
- data/lib/tungo/models/automation_hook_with_token.rb +85 -0
- data/lib/tungo/models/automation_manual_run.rb +189 -0
- data/lib/tungo/models/automation_manual_run_output_error.rb +18 -0
- data/lib/tungo/models/automation_manual_run_output_value.rb +20 -0
- data/lib/tungo/models/automation_manual_run_state.rb +23 -0
- data/lib/tungo/models/automation_manual_run_trigger.rb +22 -0
- data/lib/tungo/models/automation_output_field.rb +31 -0
- data/lib/tungo/models/automation_output_field_option1.rb +20 -0
- data/lib/tungo/models/automation_output_field_option2.rb +20 -0
- data/lib/tungo/models/automation_output_field_option3.rb +20 -0
- data/lib/tungo/models/automation_output_field_option4.rb +20 -0
- data/lib/tungo/models/automation_output_field_option5.rb +25 -0
- data/lib/tungo/models/automation_output_spec.rb +16 -0
- data/lib/tungo/models/automation_run.rb +183 -0
- data/lib/tungo/models/automation_run_detail.rb +189 -0
- data/lib/tungo/models/automation_run_detail_output_error.rb +18 -0
- data/lib/tungo/models/automation_run_detail_output_value.rb +20 -0
- data/lib/tungo/models/automation_run_detail_state.rb +23 -0
- data/lib/tungo/models/automation_run_detail_trigger.rb +22 -0
- data/lib/tungo/models/automation_run_output_error.rb +18 -0
- data/lib/tungo/models/automation_run_output_value.rb +20 -0
- data/lib/tungo/models/automation_run_proposal.rb +52 -0
- data/lib/tungo/models/automation_run_proposal_auto.rb +21 -0
- data/lib/tungo/models/automation_run_proposal_code.rb +23 -0
- data/lib/tungo/models/automation_run_proposal_status.rb +59 -0
- data/lib/tungo/models/automation_run_proposal_status_auto.rb +21 -0
- data/lib/tungo/models/automation_run_proposal_status_code.rb +23 -0
- data/lib/tungo/models/automation_run_state.rb +23 -0
- data/lib/tungo/models/automation_run_step.rb +79 -0
- data/lib/tungo/models/automation_run_step_action.rb +20 -0
- data/lib/tungo/models/automation_run_step_output_error.rb +17 -0
- data/lib/tungo/models/automation_run_step_output_value.rb +20 -0
- data/lib/tungo/models/automation_run_step_skipped_by.rb +19 -0
- data/lib/tungo/models/automation_run_step_state.rb +22 -0
- data/lib/tungo/models/automation_run_trigger.rb +22 -0
- data/lib/tungo/models/automation_scenario.rb +82 -0
- data/lib/tungo/models/automation_scenario_action.rb +20 -0
- data/lib/tungo/models/automation_scenario_enabled.rb +16 -0
- data/lib/tungo/models/automation_scenario_input.rb +62 -0
- data/lib/tungo/models/automation_scenario_input_action.rb +20 -0
- data/lib/tungo/models/automation_scenario_input_auto_approve.rb +40 -0
- data/lib/tungo/models/automation_scenario_input_auto_approve_kind_item.rb +25 -0
- data/lib/tungo/models/automation_scenario_input_trigger.rb +30 -0
- data/lib/tungo/models/automation_scenario_input_trigger_option1.rb +24 -0
- data/lib/tungo/models/automation_scenario_input_trigger_option2.rb +19 -0
- data/lib/tungo/models/automation_scenario_input_trigger_option3.rb +26 -0
- data/lib/tungo/models/automation_scenario_input_trigger_option3_event.rb +26 -0
- data/lib/tungo/models/automation_scenario_input_trigger_option4.rb +15 -0
- data/lib/tungo/models/automation_scenario_run_input.rb +17 -0
- data/lib/tungo/models/automation_scenario_saved.rb +89 -0
- data/lib/tungo/models/automation_scenario_saved_action.rb +20 -0
- data/lib/tungo/models/automation_scenario_step.rb +32 -0
- data/lib/tungo/models/automation_scenario_step_action.rb +20 -0
- data/lib/tungo/models/automation_scenario_step_when.rb +19 -0
- data/lib/tungo/models/automation_schedule.rb +30 -0
- data/lib/tungo/models/automation_schedule_daily.rb +21 -0
- data/lib/tungo/models/automation_schedule_interval.rb +36 -0
- data/lib/tungo/models/automation_schedule_monthly.rb +40 -0
- data/lib/tungo/models/automation_schedule_weekly.rb +27 -0
- data/lib/tungo/models/automation_state.rb +36 -0
- data/lib/tungo/models/automation_state_input.rb +22 -0
- data/lib/tungo/models/automation_step.rb +34 -0
- data/lib/tungo/models/automation_step_action.rb +21 -0
- data/lib/tungo/models/automation_step_when.rb +21 -0
- data/lib/tungo/models/automation_trigger.rb +29 -0
- data/lib/tungo/models/automation_trigger_event.rb +27 -0
- data/lib/tungo/models/automation_trigger_event_event.rb +26 -0
- data/lib/tungo/models/automation_trigger_hook.rb +24 -0
- data/lib/tungo/models/automation_trigger_manual.rb +15 -0
- data/lib/tungo/models/automation_trigger_schedule.rb +24 -0
- data/lib/tungo/models/autonomy_level.rb +24 -0
- data/lib/tungo/models/bank_statement_job_request.rb +32 -0
- data/lib/tungo/models/batch_approve_job.rb +71 -0
- data/lib/tungo/models/batch_approve_job_kind.rb +21 -0
- data/lib/tungo/models/batch_approve_request.rb +47 -0
- data/lib/tungo/models/batch_approve_response.rb +72 -0
- data/lib/tungo/models/batch_approve_response_stopped.rb +21 -0
- data/lib/tungo/models/batch_approve_result.rb +54 -0
- data/lib/tungo/models/batch_approve_result_outcome.rb +30 -0
- data/lib/tungo/models/batch_job.rb +56 -0
- data/lib/tungo/models/batch_job_kind.rb +21 -0
- data/lib/tungo/models/batch_job_list.rb +22 -0
- data/lib/tungo/models/batch_job_report.rb +78 -0
- data/lib/tungo/models/batch_job_report_gateway.rb +20 -0
- data/lib/tungo/models/batch_job_row.rb +56 -0
- data/lib/tungo/models/batch_job_row_status.rb +21 -0
- data/lib/tungo/models/batch_manual_row.rb +30 -0
- data/lib/tungo/models/batch_row_question.rb +25 -0
- data/lib/tungo/models/batch_row_question_option_item.rb +20 -0
- data/lib/tungo/models/batch_stop_result.rb +20 -0
- data/lib/tungo/models/batch_summary.rb +65 -0
- data/lib/tungo/models/batch_summary_approve.rb +25 -0
- data/lib/tungo/models/batch_summary_approve_body.rb +20 -0
- data/lib/tungo/models/batch_summary_kind.rb +19 -0
- data/lib/tungo/models/batch_summary_proposal.rb +56 -0
- data/lib/tungo/models/batch_summary_proposal_outcome.rb +23 -0
- data/lib/tungo/models/batch_summary_totals.rb +63 -0
- data/lib/tungo/models/card_session.rb +29 -0
- data/lib/tungo/models/chat_answer_request.rb +25 -0
- data/lib/tungo/models/chat_assistant_message.rb +51 -0
- data/lib/tungo/models/chat_assistant_message_state.rb +18 -0
- data/lib/tungo/models/chat_attachment.rb +25 -0
- data/lib/tungo/models/chat_attachment_meta.rb +25 -0
- data/lib/tungo/models/chat_choice_answer.rb +21 -0
- data/lib/tungo/models/chat_choice_option.rb +25 -0
- data/lib/tungo/models/chat_choice_question.rb +30 -0
- data/lib/tungo/models/chat_citation.rb +30 -0
- data/lib/tungo/models/chat_dialog.rb +72 -0
- data/lib/tungo/models/chat_dialog_closed.rb +20 -0
- data/lib/tungo/models/chat_dialog_deleted.rb +21 -0
- data/lib/tungo/models/chat_dialog_list.rb +22 -0
- data/lib/tungo/models/chat_dialog_patch.rb +15 -0
- data/lib/tungo/models/chat_dialog_renamed.rb +21 -0
- data/lib/tungo/models/chat_dialog_summary.rb +37 -0
- data/lib/tungo/models/chat_event.rb +49 -0
- data/lib/tungo/models/chat_event_batch.rb +46 -0
- data/lib/tungo/models/chat_event_batch_outcome.rb +21 -0
- data/lib/tungo/models/chat_event_batch_report.rb +24 -0
- data/lib/tungo/models/chat_event_batch_stage.rb +18 -0
- data/lib/tungo/models/chat_event_choice.rb +26 -0
- data/lib/tungo/models/chat_event_citation.rb +35 -0
- data/lib/tungo/models/chat_event_done.rb +42 -0
- data/lib/tungo/models/chat_event_error.rb +24 -0
- data/lib/tungo/models/chat_event_progress.rb +26 -0
- data/lib/tungo/models/chat_event_proposal.rb +24 -0
- data/lib/tungo/models/chat_event_question.rb +25 -0
- data/lib/tungo/models/chat_event_status.rb +27 -0
- data/lib/tungo/models/chat_event_status_code.rb +20 -0
- data/lib/tungo/models/chat_event_text.rb +26 -0
- data/lib/tungo/models/chat_event_thinking.rb +20 -0
- data/lib/tungo/models/chat_event_tool.rb +35 -0
- data/lib/tungo/models/chat_event_tool_status.rb +18 -0
- data/lib/tungo/models/chat_history_block.rb +32 -0
- data/lib/tungo/models/chat_history_error.rb +27 -0
- data/lib/tungo/models/chat_history_error_code.rb +32 -0
- data/lib/tungo/models/chat_history_proposal.rb +20 -0
- data/lib/tungo/models/chat_history_question.rb +25 -0
- data/lib/tungo/models/chat_history_text.rb +20 -0
- data/lib/tungo/models/chat_history_tool.rb +35 -0
- data/lib/tungo/models/chat_history_tool_status.rb +17 -0
- data/lib/tungo/models/chat_message.rb +25 -0
- data/lib/tungo/models/chat_message_request.rb +64 -0
- data/lib/tungo/models/chat_message_request_mode.rb +19 -0
- data/lib/tungo/models/chat_pending_question.rb +20 -0
- data/lib/tungo/models/chat_question.rb +20 -0
- data/lib/tungo/models/chat_stop_result.rb +26 -0
- data/lib/tungo/models/chat_token_count.rb +35 -0
- data/lib/tungo/models/chat_token_count_request.rb +32 -0
- data/lib/tungo/models/chat_token_count_request_mode.rb +18 -0
- data/lib/tungo/models/chat_turn_error.rb +41 -0
- data/lib/tungo/models/chat_turn_error_code.rb +32 -0
- data/lib/tungo/models/chat_turn_error_limit_kind.rb +17 -0
- data/lib/tungo/models/chat_turn_proposal.rb +19 -0
- data/lib/tungo/models/chat_turn_result.rb +61 -0
- data/lib/tungo/models/chat_turn_usage.rb +36 -0
- data/lib/tungo/models/chat_usage.rb +31 -0
- data/lib/tungo/models/chat_user_message.rb +41 -0
- data/lib/tungo/models/company.rb +61 -0
- data/lib/tungo/models/company_autonomy.rb +43 -0
- data/lib/tungo/models/company_autonomy_custom.rb +20 -0
- data/lib/tungo/models/company_autonomy_defaults.rb +20 -0
- data/lib/tungo/models/company_autonomy_input.rb +29 -0
- data/lib/tungo/models/company_autonomy_input_levels.rb +72 -0
- data/lib/tungo/models/company_autonomy_input_levels_advance_report.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_bank_payment.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_bank_receipt.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_cash_order_in.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_cash_order_out.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_contract.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_counterparty.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_inventory_writeoff.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_purchase.rb +19 -0
- data/lib/tungo/models/company_autonomy_input_levels_sale.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels.rb +71 -0
- data/lib/tungo/models/company_autonomy_levels_advance_report.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_bank_payment.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_bank_receipt.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_cash_order_in.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_cash_order_out.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_contract.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_counterparty.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_inventory_writeoff.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_purchase.rb +19 -0
- data/lib/tungo/models/company_autonomy_levels_sale.rb +19 -0
- data/lib/tungo/models/company_counts.rb +23 -0
- data/lib/tungo/models/company_legal_form.rb +19 -0
- data/lib/tungo/models/company_list_item.rb +65 -0
- data/lib/tungo/models/company_permission.rb +26 -0
- data/lib/tungo/models/company_status.rb +19 -0
- data/lib/tungo/models/data_gap_form.rb +30 -0
- data/lib/tungo/models/data_gap_form_status.rb +66 -0
- data/lib/tungo/models/data_gap_item.rb +49 -0
- data/lib/tungo/models/data_gap_object.rb +25 -0
- data/lib/tungo/models/data_gaps.rb +41 -0
- data/lib/tungo/models/data_gaps_summary.rb +40 -0
- data/lib/tungo/models/direct_bank_poll_result.rb +25 -0
- data/lib/tungo/models/epay_return_links.rb +21 -0
- data/lib/tungo/models/error.rb +28 -0
- data/lib/tungo/models/error_detail.rb +74 -0
- data/lib/tungo/models/error_detail_allowed_method_item.rb +20 -0
- data/lib/tungo/models/error_detail_type.rb +27 -0
- data/lib/tungo/models/esf_incoming_action.rb +22 -0
- data/lib/tungo/models/esf_incoming_item.rb +76 -0
- data/lib/tungo/models/esf_incoming_match.rb +32 -0
- data/lib/tungo/models/esf_incoming_match_document.rb +29 -0
- data/lib/tungo/models/esf_incoming_match_status.rb +21 -0
- data/lib/tungo/models/esf_incoming_report.rb +41 -0
- data/lib/tungo/models/esf_outgoing_item.rb +53 -0
- data/lib/tungo/models/esf_outgoing_item_esf.rb +35 -0
- data/lib/tungo/models/esf_outgoing_item_tax_invoice.rb +25 -0
- data/lib/tungo/models/esf_outgoing_report.rb +36 -0
- data/lib/tungo/models/esf_purchases_job_request.rb +26 -0
- data/lib/tungo/models/esf_sale.rb +44 -0
- data/lib/tungo/models/esf_verdict.rb +20 -0
- data/lib/tungo/models/feed_action.rb +49 -0
- data/lib/tungo/models/feed_action_action.rb +23 -0
- data/lib/tungo/models/feed_action_method.rb +17 -0
- data/lib/tungo/models/feed_item.rb +91 -0
- data/lib/tungo/models/feed_page.rb +30 -0
- data/lib/tungo/models/feed_section.rb +20 -0
- data/lib/tungo/models/feed_section_counts.rb +25 -0
- data/lib/tungo/models/feed_section_titles.rb +25 -0
- data/lib/tungo/models/field_error.rb +28 -0
- data/lib/tungo/models/field_error_code.rb +28 -0
- data/lib/tungo/models/financial_notes.rb +50 -0
- data/lib/tungo/models/financial_notes_organization.rb +20 -0
- data/lib/tungo/models/financial_notes_section.rb +55 -0
- data/lib/tungo/models/financial_notes_table.rb +25 -0
- data/lib/tungo/models/financial_notes_table_row_item_item.rb +20 -0
- data/lib/tungo/models/financial_notes_to_fill.rb +29 -0
- data/lib/tungo/models/form_missing_action.rb +23 -0
- data/lib/tungo/models/form_missing_data.rb +39 -0
- data/lib/tungo/models/form_onec_object.rb +20 -0
- data/lib/tungo/models/get_workspace_platform_audit_response.rb +22 -0
- data/lib/tungo/models/get_workspace_platform_ledger_response.rb +22 -0
- data/lib/tungo/models/isna_file.rb +12 -0
- data/lib/tungo/models/isna_response.rb +20 -0
- data/lib/tungo/models/isna_summary.rb +95 -0
- data/lib/tungo/models/isna_summary_download.rb +20 -0
- data/lib/tungo/models/isna_summary_format.rb +25 -0
- data/lib/tungo/models/isna_summary_period.rb +31 -0
- data/lib/tungo/models/isna_summary_reconciliation.rb +19 -0
- data/lib/tungo/models/list_companies_response.rb +16 -0
- data/lib/tungo/models/list_company_automations_hooks_response.rb +15 -0
- data/lib/tungo/models/list_company_automations_runs_response.rb +22 -0
- data/lib/tungo/models/list_company_automations_scenarios_response.rb +15 -0
- data/lib/tungo/models/list_usage_rates_response.rb +15 -0
- data/lib/tungo/models/list_workspace_platform_requests_response.rb +22 -0
- data/lib/tungo/models/list_workspace_webhooks_endpoint_attempts_response.rb +22 -0
- data/lib/tungo/models/list_workspace_webhooks_endpoint_attempts_status.rb +20 -0
- data/lib/tungo/models/list_workspace_webhooks_endpoints_response.rb +22 -0
- data/lib/tungo/models/list_workspace_webhooks_event_types_response.rb +15 -0
- data/lib/tungo/models/list_workspace_webhooks_message_attempts_response.rb +22 -0
- data/lib/tungo/models/list_workspace_webhooks_messages_response.rb +22 -0
- data/lib/tungo/models/list_workspaces_response.rb +15 -0
- data/lib/tungo/models/money.rb +27 -0
- data/lib/tungo/models/my_workspace.rb +37 -0
- data/lib/tungo/models/my_workspace_kind.rb +19 -0
- data/lib/tungo/models/one_c_capability.rb +33 -0
- data/lib/tungo/models/one_c_capability_id.rb +26 -0
- data/lib/tungo/models/one_c_capability_status.rb +20 -0
- data/lib/tungo/models/one_c_gateway.rb +21 -0
- data/lib/tungo/models/one_c_status.rb +32 -0
- data/lib/tungo/models/one_c_status_last_check.rb +36 -0
- data/lib/tungo/models/one_c_status_last_check_verdict.rb +18 -0
- data/lib/tungo/models/pay_form.rb +34 -0
- data/lib/tungo/models/payment_method.rb +42 -0
- data/lib/tungo/models/platform_account.rb +60 -0
- data/lib/tungo/models/platform_account_blocked_reason.rb +19 -0
- data/lib/tungo/models/platform_account_purchase_limits.rb +25 -0
- data/lib/tungo/models/platform_auto_reload.rb +32 -0
- data/lib/tungo/models/platform_ledger_entry.rb +63 -0
- data/lib/tungo/models/platform_ledger_entry_kind.rb +20 -0
- data/lib/tungo/models/platform_limits.rb +25 -0
- data/lib/tungo/models/platform_limits_concurrent_turns.rb +20 -0
- data/lib/tungo/models/platform_limits_files.rb +56 -0
- data/lib/tungo/models/platform_limits_rate.rb +20 -0
- data/lib/tungo/models/platform_limits_rate_key.rb +26 -0
- data/lib/tungo/models/platform_limits_rate_workspace.rb +26 -0
- data/lib/tungo/models/platform_purchase.rb +33 -0
- data/lib/tungo/models/platform_purchase_input.rb +22 -0
- data/lib/tungo/models/platform_purchase_status.rb +26 -0
- data/lib/tungo/models/platform_request.rb +71 -0
- data/lib/tungo/models/platform_settings_input.rb +26 -0
- data/lib/tungo/models/platform_settings_input_auto_reload.rb +31 -0
- data/lib/tungo/models/platform_usage.rb +45 -0
- data/lib/tungo/models/platform_usage_by_company_item.rb +45 -0
- data/lib/tungo/models/platform_usage_by_day_item.rb +45 -0
- data/lib/tungo/models/platform_usage_by_key_item.rb +45 -0
- data/lib/tungo/models/platform_usage_by_model_item.rb +45 -0
- data/lib/tungo/models/platform_usage_totals.rb +40 -0
- data/lib/tungo/models/proposal_account.rb +32 -0
- data/lib/tungo/models/proposal_action.rb +52 -0
- data/lib/tungo/models/proposal_action_action.rb +19 -0
- data/lib/tungo/models/proposal_advance_offset.rb +33 -0
- data/lib/tungo/models/proposal_approval.rb +32 -0
- data/lib/tungo/models/proposal_card.rb +158 -0
- data/lib/tungo/models/proposal_contract.rb +35 -0
- data/lib/tungo/models/proposal_decision.rb +43 -0
- data/lib/tungo/models/proposal_document.rb +26 -0
- data/lib/tungo/models/proposal_header.rb +71 -0
- data/lib/tungo/models/proposal_history_event.rb +35 -0
- data/lib/tungo/models/proposal_kind.rb +28 -0
- data/lib/tungo/models/proposal_line.rb +66 -0
- data/lib/tungo/models/proposal_line_item.rb +20 -0
- data/lib/tungo/models/proposal_line_section.rb +17 -0
- data/lib/tungo/models/proposal_list_item.rb +100 -0
- data/lib/tungo/models/proposal_page.rb +33 -0
- data/lib/tungo/models/proposal_party.rb +26 -0
- data/lib/tungo/models/proposal_posting.rb +38 -0
- data/lib/tungo/models/proposal_result.rb +31 -0
- data/lib/tungo/models/proposal_source.rb +21 -0
- data/lib/tungo/models/proposal_source_channel.rb +21 -0
- data/lib/tungo/models/proposal_status.rb +25 -0
- data/lib/tungo/models/reject_request.rb +23 -0
- data/lib/tungo/models/statement_day.rb +66 -0
- data/lib/tungo/models/statement_day_counts.rb +40 -0
- data/lib/tungo/models/statement_day_kind.rb +21 -0
- data/lib/tungo/models/statement_day_list.rb +22 -0
- data/lib/tungo/models/tax_form_cell.rb +77 -0
- data/lib/tungo/models/tax_form_cell_cause.rb +44 -0
- data/lib/tungo/models/tax_form_cell_diff.rb +20 -0
- data/lib/tungo/models/tax_form_cell_one_c_value.rb +22 -0
- data/lib/tungo/models/tax_form_cell_ours_value.rb +22 -0
- data/lib/tungo/models/tax_form_cell_status.rb +21 -0
- data/lib/tungo/models/tax_form_cell_type.rb +22 -0
- data/lib/tungo/models/tax_form_due.rb +57 -0
- data/lib/tungo/models/tax_form_list_item.rb +67 -0
- data/lib/tungo/models/tax_form_list_item_coverage.rb +17 -0
- data/lib/tungo/models/tax_form_list_item_group.rb +20 -0
- data/lib/tungo/models/tax_form_list_item_required.rb +19 -0
- data/lib/tungo/models/tax_form_only_in_one_c.rb +20 -0
- data/lib/tungo/models/tax_form_period.rb +36 -0
- data/lib/tungo/models/tax_form_reference.rb +30 -0
- data/lib/tungo/models/tax_form_totals.rb +30 -0
- data/lib/tungo/models/tax_form_view.rb +83 -0
- data/lib/tungo/models/tax_form_view_coverage.rb +17 -0
- data/lib/tungo/models/tax_form_view_uncovered.rb +20 -0
- data/lib/tungo/models/tax_form_view_uncovered_cell_item.rb +20 -0
- data/lib/tungo/models/tax_forms_year.rb +31 -0
- data/lib/tungo/models/tax_period_kind.rb +21 -0
- data/lib/tungo/models/tax_period_ref.rb +21 -0
- data/lib/tungo/models/usage_rate.rb +42 -0
- data/lib/tungo/models/webhook_attempt.rb +56 -0
- data/lib/tungo/models/webhook_attempt_status.rb +20 -0
- data/lib/tungo/models/webhook_attempt_trigger.rb +17 -0
- data/lib/tungo/models/webhook_endpoint.rb +51 -0
- data/lib/tungo/models/webhook_endpoint_create.rb +39 -0
- data/lib/tungo/models/webhook_endpoint_created.rb +66 -0
- data/lib/tungo/models/webhook_endpoint_patch.rb +39 -0
- data/lib/tungo/models/webhook_envelope.rb +41 -0
- data/lib/tungo/models/webhook_event.rb +65 -0
- data/lib/tungo/models/webhook_event_api_key_cap_reached.rb +42 -0
- data/lib/tungo/models/webhook_event_api_key_cap_reached_data.rb +40 -0
- data/lib/tungo/models/webhook_event_api_key_expiring.rb +42 -0
- data/lib/tungo/models/webhook_event_api_key_expiring_data.rb +30 -0
- data/lib/tungo/models/webhook_event_automation_run_completed.rb +42 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data.rb +110 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data_output_error.rb +18 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data_output_value.rb +20 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data_proposal_item.rb +53 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data_proposal_item_auto.rb +20 -0
- data/lib/tungo/models/webhook_event_automation_run_completed_data_proposal_item_auto_code.rb +22 -0
- data/lib/tungo/models/webhook_event_automation_run_failed.rb +42 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data.rb +110 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data_output_error.rb +18 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data_output_value.rb +20 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data_proposal_item.rb +53 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data_proposal_item_auto.rb +20 -0
- data/lib/tungo/models/webhook_event_automation_run_failed_data_proposal_item_auto_code.rb +22 -0
- data/lib/tungo/models/webhook_event_automation_run_notice.rb +42 -0
- data/lib/tungo/models/webhook_event_automation_run_notice_data.rb +60 -0
- data/lib/tungo/models/webhook_event_automation_run_notice_data_reason.rb +19 -0
- data/lib/tungo/models/webhook_event_automation_write_unknown.rb +42 -0
- data/lib/tungo/models/webhook_event_automation_write_unknown_data.rb +37 -0
- data/lib/tungo/models/webhook_event_bank_statement_received.rb +41 -0
- data/lib/tungo/models/webhook_event_bank_statement_received_data.rb +40 -0
- data/lib/tungo/models/webhook_event_bank_statement_received_data_source.rb +17 -0
- data/lib/tungo/models/webhook_event_batch_completed.rb +42 -0
- data/lib/tungo/models/webhook_event_batch_completed_data.rb +65 -0
- data/lib/tungo/models/webhook_event_batch_completed_data_kind.rb +17 -0
- data/lib/tungo/models/webhook_event_batch_failed.rb +41 -0
- data/lib/tungo/models/webhook_event_batch_failed_data.rb +25 -0
- data/lib/tungo/models/webhook_event_batch_failed_data_kind.rb +17 -0
- data/lib/tungo/models/webhook_event_chat_turn_completed.rb +42 -0
- data/lib/tungo/models/webhook_event_chat_turn_completed_data.rb +41 -0
- data/lib/tungo/models/webhook_event_chat_turn_completed_data_usage.rb +35 -0
- data/lib/tungo/models/webhook_event_esf_incoming_received.rb +41 -0
- data/lib/tungo/models/webhook_event_esf_incoming_received_data.rb +40 -0
- data/lib/tungo/models/webhook_event_onec_connection_changed.rb +42 -0
- data/lib/tungo/models/webhook_event_onec_connection_changed_data.rb +35 -0
- data/lib/tungo/models/webhook_event_onec_connection_changed_data_reason.rb +24 -0
- data/lib/tungo/models/webhook_event_onec_connection_changed_data_state.rb +17 -0
- data/lib/tungo/models/webhook_event_payment_failed.rb +40 -0
- data/lib/tungo/models/webhook_event_payment_failed_data.rb +41 -0
- data/lib/tungo/models/webhook_event_payment_succeeded.rb +40 -0
- data/lib/tungo/models/webhook_event_payment_succeeded_data.rb +41 -0
- data/lib/tungo/models/webhook_event_ping.rb +42 -0
- data/lib/tungo/models/webhook_event_ping_data.rb +11 -0
- data/lib/tungo/models/webhook_event_platform_balance_exhausted.rb +41 -0
- data/lib/tungo/models/webhook_event_platform_balance_exhausted_data.rb +20 -0
- data/lib/tungo/models/webhook_event_platform_balance_low.rb +41 -0
- data/lib/tungo/models/webhook_event_platform_balance_low_data.rb +20 -0
- data/lib/tungo/models/webhook_event_platform_cap_threshold_reached.rb +41 -0
- data/lib/tungo/models/webhook_event_platform_cap_threshold_reached_data.rb +30 -0
- data/lib/tungo/models/webhook_event_proposal_awaiting_approval.rb +40 -0
- data/lib/tungo/models/webhook_event_proposal_awaiting_approval_data.rb +40 -0
- data/lib/tungo/models/webhook_event_proposal_failed.rb +41 -0
- data/lib/tungo/models/webhook_event_proposal_failed_data.rb +30 -0
- data/lib/tungo/models/webhook_event_proposal_rejected.rb +41 -0
- data/lib/tungo/models/webhook_event_proposal_rejected_data.rb +30 -0
- data/lib/tungo/models/webhook_event_proposal_written.rb +41 -0
- data/lib/tungo/models/webhook_event_proposal_written_data.rb +35 -0
- data/lib/tungo/models/webhook_event_type.rb +30 -0
- data/lib/tungo/models/webhook_message.rb +31 -0
- data/lib/tungo/models/webhook_resend.rb +15 -0
- data/lib/tungo/models/webhook_secret.rb +24 -0
- data/lib/tungo/models/webhook_secret_rotated.rb +29 -0
- data/lib/tungo/models/webhook_usage.rb +31 -0
- data/lib/tungo/models/workspace_plan.rb +25 -0
- data/lib/tungo/models.rb +497 -0
- data/lib/tungo/money.rb +112 -0
- data/lib/tungo/page.rb +94 -0
- data/lib/tungo/request_options.rb +57 -0
- data/lib/tungo/resources/api_keys.rb +74 -0
- data/lib/tungo/resources/automations.rb +681 -0
- data/lib/tungo/resources/batches.rb +242 -0
- data/lib/tungo/resources/chat.rb +355 -0
- data/lib/tungo/resources/companies.rb +48 -0
- data/lib/tungo/resources/esf.rb +148 -0
- data/lib/tungo/resources/feed.rb +91 -0
- data/lib/tungo/resources/forms.rb +118 -0
- data/lib/tungo/resources/onec.rb +33 -0
- data/lib/tungo/resources/platform.rb +316 -0
- data/lib/tungo/resources/proposals.rb +230 -0
- data/lib/tungo/resources/webhooks.rb +423 -0
- data/lib/tungo/resources/workspaces.rb +31 -0
- data/lib/tungo/resources.rb +88 -0
- data/lib/tungo/stream.rb +189 -0
- data/lib/tungo/transport.rb +373 -0
- data/lib/tungo/version.rb +6 -0
- data/lib/tungo/webhooks.rb +155 -0
- data/lib/tungo-sdk.rb +4 -0
- data/lib/tungo.rb +34 -0
- data/sig/manifest.yaml +8 -0
- data/sig/tungo/contract.rbs +8 -0
- data/sig/tungo/models/api_key.rbs +32 -0
- data/sig/tungo/models/api_key_create.rbs +21 -0
- data/sig/tungo/models/api_key_create_write_kind_item.rbs +22 -0
- data/sig/tungo/models/api_key_created.rbs +35 -0
- data/sig/tungo/models/api_key_created_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_created_status.rbs +15 -0
- data/sig/tungo/models/api_key_details.rbs +33 -0
- data/sig/tungo/models/api_key_details_blocked_reason.rbs +21 -0
- data/sig/tungo/models/api_key_details_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_details_status.rbs +15 -0
- data/sig/tungo/models/api_key_month.rbs +14 -0
- data/sig/tungo/models/api_key_patch.rbs +21 -0
- data/sig/tungo/models/api_key_patch_write_kind_item.rbs +22 -0
- data/sig/tungo/models/api_key_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_person.rbs +14 -0
- data/sig/tungo/models/api_key_roll.rbs +12 -0
- data/sig/tungo/models/api_key_rolled.rbs +34 -0
- data/sig/tungo/models/api_key_rolled_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_rolled_status.rbs +15 -0
- data/sig/tungo/models/api_key_self.rbs +36 -0
- data/sig/tungo/models/api_key_self_blocked_reason.rbs +21 -0
- data/sig/tungo/models/api_key_self_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_self_rate_limit.rbs +14 -0
- data/sig/tungo/models/api_key_self_status.rbs +15 -0
- data/sig/tungo/models/api_key_self_workspace.rbs +14 -0
- data/sig/tungo/models/api_key_self_workspace_kind.rbs +14 -0
- data/sig/tungo/models/api_key_status.rbs +15 -0
- data/sig/tungo/models/api_key_transfer.rbs +12 -0
- data/sig/tungo/models/api_key_updated.rbs +33 -0
- data/sig/tungo/models/api_key_updated_permission_item.rbs +18 -0
- data/sig/tungo/models/api_key_updated_status.rbs +15 -0
- data/sig/tungo/models/api_key_usage.rbs +19 -0
- data/sig/tungo/models/api_key_usage_by_company_item.rbs +14 -0
- data/sig/tungo/models/api_key_usage_by_day_item.rbs +14 -0
- data/sig/tungo/models/api_key_usage_by_model_item.rbs +14 -0
- data/sig/tungo/models/api_key_usage_totals.rbs +17 -0
- data/sig/tungo/models/api_key_warning.rbs +13 -0
- data/sig/tungo/models/api_key_warning_code.rbs +15 -0
- data/sig/tungo/models/approve_batch_company_proposals_response.rbs +12 -0
- data/sig/tungo/models/approve_error.rbs +14 -0
- data/sig/tungo/models/approve_error_error.rbs +27 -0
- data/sig/tungo/models/approve_request.rbs +14 -0
- data/sig/tungo/models/audit_entry.rbs +21 -0
- data/sig/tungo/models/audit_entry_action.rbs +142 -0
- data/sig/tungo/models/audit_entry_actor.rbs +14 -0
- data/sig/tungo/models/audit_entry_actor_type.rbs +14 -0
- data/sig/tungo/models/audit_entry_target.rbs +13 -0
- data/sig/tungo/models/automation_auto_approve.rbs +15 -0
- data/sig/tungo/models/automation_auto_approve_kind_item.rbs +21 -0
- data/sig/tungo/models/automation_deleted.rbs +13 -0
- data/sig/tungo/models/automation_event_filter.rbs +12 -0
- data/sig/tungo/models/automation_filter_condition.rbs +14 -0
- data/sig/tungo/models/automation_filter_condition_op.rbs +20 -0
- data/sig/tungo/models/automation_filter_condition_value.rbs +12 -0
- data/sig/tungo/models/automation_filter_condition_value_option4_item.rbs +12 -0
- data/sig/tungo/models/automation_hook.rbs +21 -0
- data/sig/tungo/models/automation_hook_accepted.rbs +15 -0
- data/sig/tungo/models/automation_hook_create.rbs +15 -0
- data/sig/tungo/models/automation_hook_event.rbs +21 -0
- data/sig/tungo/models/automation_hook_event_encoding.rbs +13 -0
- data/sig/tungo/models/automation_hook_event_source.rbs +13 -0
- data/sig/tungo/models/automation_hook_patch.rbs +16 -0
- data/sig/tungo/models/automation_hook_test_input.rbs +14 -0
- data/sig/tungo/models/automation_hook_test_result.rbs +21 -0
- data/sig/tungo/models/automation_hook_test_result_external_id_source.rbs +15 -0
- data/sig/tungo/models/automation_hook_test_scenario.rbs +18 -0
- data/sig/tungo/models/automation_hook_test_scenario_failed_condition.rbs +14 -0
- data/sig/tungo/models/automation_hook_with_token.rbs +24 -0
- data/sig/tungo/models/automation_manual_run.rbs +42 -0
- data/sig/tungo/models/automation_manual_run_output_error.rbs +13 -0
- data/sig/tungo/models/automation_manual_run_output_value.rbs +12 -0
- data/sig/tungo/models/automation_manual_run_state.rbs +17 -0
- data/sig/tungo/models/automation_manual_run_trigger.rbs +16 -0
- data/sig/tungo/models/automation_output_field.rbs +12 -0
- data/sig/tungo/models/automation_output_field_option1.rbs +13 -0
- data/sig/tungo/models/automation_output_field_option2.rbs +13 -0
- data/sig/tungo/models/automation_output_field_option3.rbs +13 -0
- data/sig/tungo/models/automation_output_field_option4.rbs +13 -0
- data/sig/tungo/models/automation_output_field_option5.rbs +14 -0
- data/sig/tungo/models/automation_output_spec.rbs +11 -0
- data/sig/tungo/models/automation_run.rbs +41 -0
- data/sig/tungo/models/automation_run_detail.rbs +42 -0
- data/sig/tungo/models/automation_run_detail_output_error.rbs +13 -0
- data/sig/tungo/models/automation_run_detail_output_value.rbs +12 -0
- data/sig/tungo/models/automation_run_detail_state.rbs +17 -0
- data/sig/tungo/models/automation_run_detail_trigger.rbs +16 -0
- data/sig/tungo/models/automation_run_output_error.rbs +13 -0
- data/sig/tungo/models/automation_run_output_value.rbs +12 -0
- data/sig/tungo/models/automation_run_proposal.rbs +18 -0
- data/sig/tungo/models/automation_run_proposal_auto.rbs +15 -0
- data/sig/tungo/models/automation_run_proposal_code.rbs +17 -0
- data/sig/tungo/models/automation_run_proposal_status.rbs +19 -0
- data/sig/tungo/models/automation_run_proposal_status_auto.rbs +15 -0
- data/sig/tungo/models/automation_run_proposal_status_code.rbs +17 -0
- data/sig/tungo/models/automation_run_state.rbs +17 -0
- data/sig/tungo/models/automation_run_step.rbs +24 -0
- data/sig/tungo/models/automation_run_step_action.rbs +15 -0
- data/sig/tungo/models/automation_run_step_output_error.rbs +13 -0
- data/sig/tungo/models/automation_run_step_output_value.rbs +12 -0
- data/sig/tungo/models/automation_run_step_skipped_by.rbs +15 -0
- data/sig/tungo/models/automation_run_step_state.rbs +16 -0
- data/sig/tungo/models/automation_run_trigger.rbs +16 -0
- data/sig/tungo/models/automation_scenario.rbs +24 -0
- data/sig/tungo/models/automation_scenario_action.rbs +14 -0
- data/sig/tungo/models/automation_scenario_enabled.rbs +12 -0
- data/sig/tungo/models/automation_scenario_input.rbs +19 -0
- data/sig/tungo/models/automation_scenario_input_action.rbs +14 -0
- data/sig/tungo/models/automation_scenario_input_auto_approve.rbs +15 -0
- data/sig/tungo/models/automation_scenario_input_auto_approve_kind_item.rbs +21 -0
- data/sig/tungo/models/automation_scenario_input_trigger.rbs +12 -0
- data/sig/tungo/models/automation_scenario_input_trigger_option1.rbs +14 -0
- data/sig/tungo/models/automation_scenario_input_trigger_option2.rbs +13 -0
- data/sig/tungo/models/automation_scenario_input_trigger_option3.rbs +14 -0
- data/sig/tungo/models/automation_scenario_input_trigger_option3_event.rbs +20 -0
- data/sig/tungo/models/automation_scenario_input_trigger_option4.rbs +12 -0
- data/sig/tungo/models/automation_scenario_run_input.rbs +12 -0
- data/sig/tungo/models/automation_scenario_saved.rbs +25 -0
- data/sig/tungo/models/automation_scenario_saved_action.rbs +14 -0
- data/sig/tungo/models/automation_scenario_step.rbs +15 -0
- data/sig/tungo/models/automation_scenario_step_action.rbs +15 -0
- data/sig/tungo/models/automation_scenario_step_when.rbs +15 -0
- data/sig/tungo/models/automation_schedule.rbs +12 -0
- data/sig/tungo/models/automation_schedule_daily.rbs +13 -0
- data/sig/tungo/models/automation_schedule_interval.rbs +16 -0
- data/sig/tungo/models/automation_schedule_monthly.rbs +16 -0
- data/sig/tungo/models/automation_schedule_weekly.rbs +14 -0
- data/sig/tungo/models/automation_state.rbs +16 -0
- data/sig/tungo/models/automation_state_input.rbs +13 -0
- data/sig/tungo/models/automation_step.rbs +15 -0
- data/sig/tungo/models/automation_step_action.rbs +15 -0
- data/sig/tungo/models/automation_step_when.rbs +15 -0
- data/sig/tungo/models/automation_trigger.rbs +12 -0
- data/sig/tungo/models/automation_trigger_event.rbs +14 -0
- data/sig/tungo/models/automation_trigger_event_event.rbs +20 -0
- data/sig/tungo/models/automation_trigger_hook.rbs +14 -0
- data/sig/tungo/models/automation_trigger_manual.rbs +12 -0
- data/sig/tungo/models/automation_trigger_schedule.rbs +14 -0
- data/sig/tungo/models/autonomy_level.rbs +18 -0
- data/sig/tungo/models/bank_statement_job_request.rbs +15 -0
- data/sig/tungo/models/batch_approve_job.rbs +23 -0
- data/sig/tungo/models/batch_approve_job_kind.rbs +15 -0
- data/sig/tungo/models/batch_approve_request.rbs +18 -0
- data/sig/tungo/models/batch_approve_response.rbs +23 -0
- data/sig/tungo/models/batch_approve_response_stopped.rbs +13 -0
- data/sig/tungo/models/batch_approve_result.rbs +19 -0
- data/sig/tungo/models/batch_approve_result_outcome.rbs +24 -0
- data/sig/tungo/models/batch_job.rbs +20 -0
- data/sig/tungo/models/batch_job_kind.rbs +15 -0
- data/sig/tungo/models/batch_job_list.rbs +13 -0
- data/sig/tungo/models/batch_job_report.rbs +24 -0
- data/sig/tungo/models/batch_job_report_gateway.rbs +13 -0
- data/sig/tungo/models/batch_job_row.rbs +20 -0
- data/sig/tungo/models/batch_job_row_status.rbs +16 -0
- data/sig/tungo/models/batch_manual_row.rbs +15 -0
- data/sig/tungo/models/batch_row_question.rbs +14 -0
- data/sig/tungo/models/batch_row_question_option_item.rbs +13 -0
- data/sig/tungo/models/batch_stop_result.rbs +13 -0
- data/sig/tungo/models/batch_summary.rbs +22 -0
- data/sig/tungo/models/batch_summary_approve.rbs +14 -0
- data/sig/tungo/models/batch_summary_approve_body.rbs +13 -0
- data/sig/tungo/models/batch_summary_kind.rbs +15 -0
- data/sig/tungo/models/batch_summary_proposal.rbs +20 -0
- data/sig/tungo/models/batch_summary_proposal_outcome.rbs +17 -0
- data/sig/tungo/models/batch_summary_totals.rbs +22 -0
- data/sig/tungo/models/card_session.rbs +14 -0
- data/sig/tungo/models/chat_answer_request.rbs +14 -0
- data/sig/tungo/models/chat_assistant_message.rbs +19 -0
- data/sig/tungo/models/chat_assistant_message_state.rbs +14 -0
- data/sig/tungo/models/chat_attachment.rbs +14 -0
- data/sig/tungo/models/chat_attachment_meta.rbs +14 -0
- data/sig/tungo/models/chat_choice_answer.rbs +13 -0
- data/sig/tungo/models/chat_choice_option.rbs +14 -0
- data/sig/tungo/models/chat_choice_question.rbs +15 -0
- data/sig/tungo/models/chat_citation.rbs +15 -0
- data/sig/tungo/models/chat_dialog.rbs +23 -0
- data/sig/tungo/models/chat_dialog_closed.rbs +13 -0
- data/sig/tungo/models/chat_dialog_deleted.rbs +13 -0
- data/sig/tungo/models/chat_dialog_list.rbs +13 -0
- data/sig/tungo/models/chat_dialog_patch.rbs +12 -0
- data/sig/tungo/models/chat_dialog_renamed.rbs +13 -0
- data/sig/tungo/models/chat_dialog_summary.rbs +16 -0
- data/sig/tungo/models/chat_event.rbs +12 -0
- data/sig/tungo/models/chat_event_batch.rbs +18 -0
- data/sig/tungo/models/chat_event_batch_outcome.rbs +16 -0
- data/sig/tungo/models/chat_event_batch_report.rbs +14 -0
- data/sig/tungo/models/chat_event_batch_stage.rbs +14 -0
- data/sig/tungo/models/chat_event_choice.rbs +14 -0
- data/sig/tungo/models/chat_event_citation.rbs +16 -0
- data/sig/tungo/models/chat_event_done.rbs +17 -0
- data/sig/tungo/models/chat_event_error.rbs +14 -0
- data/sig/tungo/models/chat_event_progress.rbs +14 -0
- data/sig/tungo/models/chat_event_proposal.rbs +14 -0
- data/sig/tungo/models/chat_event_question.rbs +14 -0
- data/sig/tungo/models/chat_event_status.rbs +14 -0
- data/sig/tungo/models/chat_event_status_code.rbs +14 -0
- data/sig/tungo/models/chat_event_text.rbs +14 -0
- data/sig/tungo/models/chat_event_thinking.rbs +13 -0
- data/sig/tungo/models/chat_event_tool.rbs +16 -0
- data/sig/tungo/models/chat_event_tool_status.rbs +14 -0
- data/sig/tungo/models/chat_history_block.rbs +12 -0
- data/sig/tungo/models/chat_history_error.rbs +14 -0
- data/sig/tungo/models/chat_history_error_code.rbs +26 -0
- data/sig/tungo/models/chat_history_proposal.rbs +13 -0
- data/sig/tungo/models/chat_history_question.rbs +14 -0
- data/sig/tungo/models/chat_history_text.rbs +13 -0
- data/sig/tungo/models/chat_history_tool.rbs +16 -0
- data/sig/tungo/models/chat_history_tool_status.rbs +13 -0
- data/sig/tungo/models/chat_message.rbs +12 -0
- data/sig/tungo/models/chat_message_request.rbs +20 -0
- data/sig/tungo/models/chat_message_request_mode.rbs +14 -0
- data/sig/tungo/models/chat_pending_question.rbs +13 -0
- data/sig/tungo/models/chat_question.rbs +13 -0
- data/sig/tungo/models/chat_stop_result.rbs +14 -0
- data/sig/tungo/models/chat_token_count.rbs +16 -0
- data/sig/tungo/models/chat_token_count_request.rbs +15 -0
- data/sig/tungo/models/chat_token_count_request_mode.rbs +14 -0
- data/sig/tungo/models/chat_turn_error.rbs +16 -0
- data/sig/tungo/models/chat_turn_error_code.rbs +26 -0
- data/sig/tungo/models/chat_turn_error_limit_kind.rbs +13 -0
- data/sig/tungo/models/chat_turn_proposal.rbs +13 -0
- data/sig/tungo/models/chat_turn_result.rbs +21 -0
- data/sig/tungo/models/chat_turn_usage.rbs +16 -0
- data/sig/tungo/models/chat_usage.rbs +15 -0
- data/sig/tungo/models/chat_user_message.rbs +17 -0
- data/sig/tungo/models/company.rbs +21 -0
- data/sig/tungo/models/company_autonomy.rbs +17 -0
- data/sig/tungo/models/company_autonomy_custom.rbs +13 -0
- data/sig/tungo/models/company_autonomy_defaults.rbs +13 -0
- data/sig/tungo/models/company_autonomy_input.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels.rbs +21 -0
- data/sig/tungo/models/company_autonomy_input_levels_advance_report.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_bank_payment.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_bank_receipt.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_cash_order_in.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_cash_order_out.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_contract.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_counterparty.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_inventory_writeoff.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_purchase.rbs +14 -0
- data/sig/tungo/models/company_autonomy_input_levels_sale.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels.rbs +21 -0
- data/sig/tungo/models/company_autonomy_levels_advance_report.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_bank_payment.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_bank_receipt.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_cash_order_in.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_cash_order_out.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_contract.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_counterparty.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_inventory_writeoff.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_purchase.rbs +14 -0
- data/sig/tungo/models/company_autonomy_levels_sale.rbs +14 -0
- data/sig/tungo/models/company_counts.rbs +13 -0
- data/sig/tungo/models/company_legal_form.rbs +15 -0
- data/sig/tungo/models/company_list_item.rbs +22 -0
- data/sig/tungo/models/company_permission.rbs +20 -0
- data/sig/tungo/models/company_status.rbs +14 -0
- data/sig/tungo/models/data_gap_form.rbs +15 -0
- data/sig/tungo/models/data_gap_form_status.rbs +22 -0
- data/sig/tungo/models/data_gap_item.rbs +19 -0
- data/sig/tungo/models/data_gap_object.rbs +14 -0
- data/sig/tungo/models/data_gaps.rbs +17 -0
- data/sig/tungo/models/data_gaps_summary.rbs +17 -0
- data/sig/tungo/models/direct_bank_poll_result.rbs +14 -0
- data/sig/tungo/models/epay_return_links.rbs +13 -0
- data/sig/tungo/models/error.rbs +14 -0
- data/sig/tungo/models/error_detail.rbs +20 -0
- data/sig/tungo/models/error_detail_allowed_method_item.rbs +16 -0
- data/sig/tungo/models/error_detail_type.rbs +21 -0
- data/sig/tungo/models/esf_incoming_action.rbs +16 -0
- data/sig/tungo/models/esf_incoming_item.rbs +25 -0
- data/sig/tungo/models/esf_incoming_match.rbs +15 -0
- data/sig/tungo/models/esf_incoming_match_document.rbs +15 -0
- data/sig/tungo/models/esf_incoming_match_status.rbs +16 -0
- data/sig/tungo/models/esf_incoming_report.rbs +17 -0
- data/sig/tungo/models/esf_outgoing_item.rbs +20 -0
- data/sig/tungo/models/esf_outgoing_item_esf.rbs +16 -0
- data/sig/tungo/models/esf_outgoing_item_tax_invoice.rbs +14 -0
- data/sig/tungo/models/esf_outgoing_report.rbs +16 -0
- data/sig/tungo/models/esf_purchases_job_request.rbs +14 -0
- data/sig/tungo/models/esf_sale.rbs +18 -0
- data/sig/tungo/models/esf_verdict.rbs +14 -0
- data/sig/tungo/models/feed_action.rbs +18 -0
- data/sig/tungo/models/feed_action_action.rbs +17 -0
- data/sig/tungo/models/feed_action_method.rbs +13 -0
- data/sig/tungo/models/feed_item.rbs +27 -0
- data/sig/tungo/models/feed_page.rbs +15 -0
- data/sig/tungo/models/feed_section.rbs +14 -0
- data/sig/tungo/models/feed_section_counts.rbs +14 -0
- data/sig/tungo/models/feed_section_titles.rbs +14 -0
- data/sig/tungo/models/field_error.rbs +14 -0
- data/sig/tungo/models/field_error_code.rbs +22 -0
- data/sig/tungo/models/financial_notes.rbs +19 -0
- data/sig/tungo/models/financial_notes_organization.rbs +13 -0
- data/sig/tungo/models/financial_notes_section.rbs +20 -0
- data/sig/tungo/models/financial_notes_table.rbs +14 -0
- data/sig/tungo/models/financial_notes_table_row_item_item.rbs +12 -0
- data/sig/tungo/models/financial_notes_to_fill.rbs +15 -0
- data/sig/tungo/models/form_missing_action.rbs +17 -0
- data/sig/tungo/models/form_missing_data.rbs +17 -0
- data/sig/tungo/models/form_onec_object.rbs +13 -0
- data/sig/tungo/models/get_workspace_platform_audit_response.rbs +13 -0
- data/sig/tungo/models/get_workspace_platform_ledger_response.rbs +13 -0
- data/sig/tungo/models/isna_file.rbs +11 -0
- data/sig/tungo/models/isna_response.rbs +12 -0
- data/sig/tungo/models/isna_summary.rbs +28 -0
- data/sig/tungo/models/isna_summary_download.rbs +13 -0
- data/sig/tungo/models/isna_summary_format.rbs +14 -0
- data/sig/tungo/models/isna_summary_period.rbs +15 -0
- data/sig/tungo/models/isna_summary_reconciliation.rbs +13 -0
- data/sig/tungo/models/list_companies_response.rbs +12 -0
- data/sig/tungo/models/list_company_automations_hooks_response.rbs +12 -0
- data/sig/tungo/models/list_company_automations_runs_response.rbs +13 -0
- data/sig/tungo/models/list_company_automations_scenarios_response.rbs +12 -0
- data/sig/tungo/models/list_usage_rates_response.rbs +12 -0
- data/sig/tungo/models/list_workspace_platform_requests_response.rbs +13 -0
- data/sig/tungo/models/list_workspace_webhooks_endpoint_attempts_response.rbs +13 -0
- data/sig/tungo/models/list_workspace_webhooks_endpoint_attempts_status.rbs +15 -0
- data/sig/tungo/models/list_workspace_webhooks_endpoints_response.rbs +13 -0
- data/sig/tungo/models/list_workspace_webhooks_event_types_response.rbs +12 -0
- data/sig/tungo/models/list_workspace_webhooks_message_attempts_response.rbs +13 -0
- data/sig/tungo/models/list_workspace_webhooks_messages_response.rbs +13 -0
- data/sig/tungo/models/list_workspaces_response.rbs +12 -0
- data/sig/tungo/models/money.rbs +14 -0
- data/sig/tungo/models/my_workspace.rbs +16 -0
- data/sig/tungo/models/my_workspace_kind.rbs +14 -0
- data/sig/tungo/models/one_c_capability.rbs +15 -0
- data/sig/tungo/models/one_c_capability_id.rbs +20 -0
- data/sig/tungo/models/one_c_capability_status.rbs +15 -0
- data/sig/tungo/models/one_c_gateway.rbs +15 -0
- data/sig/tungo/models/one_c_status.rbs +15 -0
- data/sig/tungo/models/one_c_status_last_check.rbs +16 -0
- data/sig/tungo/models/one_c_status_last_check_verdict.rbs +14 -0
- data/sig/tungo/models/pay_form.rbs +15 -0
- data/sig/tungo/models/payment_method.rbs +17 -0
- data/sig/tungo/models/platform_account.rbs +20 -0
- data/sig/tungo/models/platform_account_blocked_reason.rbs +14 -0
- data/sig/tungo/models/platform_account_purchase_limits.rbs +14 -0
- data/sig/tungo/models/platform_auto_reload.rbs +15 -0
- data/sig/tungo/models/platform_ledger_entry.rbs +21 -0
- data/sig/tungo/models/platform_ledger_entry_kind.rbs +15 -0
- data/sig/tungo/models/platform_limits.rbs +14 -0
- data/sig/tungo/models/platform_limits_concurrent_turns.rbs +13 -0
- data/sig/tungo/models/platform_limits_files.rbs +20 -0
- data/sig/tungo/models/platform_limits_rate.rbs +13 -0
- data/sig/tungo/models/platform_limits_rate_key.rbs +14 -0
- data/sig/tungo/models/platform_limits_rate_workspace.rbs +14 -0
- data/sig/tungo/models/platform_purchase.rbs +15 -0
- data/sig/tungo/models/platform_purchase_input.rbs +13 -0
- data/sig/tungo/models/platform_purchase_status.rbs +21 -0
- data/sig/tungo/models/platform_request.rbs +23 -0
- data/sig/tungo/models/platform_settings_input.rbs +14 -0
- data/sig/tungo/models/platform_settings_input_auto_reload.rbs +15 -0
- data/sig/tungo/models/platform_usage.rbs +18 -0
- data/sig/tungo/models/platform_usage_by_company_item.rbs +18 -0
- data/sig/tungo/models/platform_usage_by_day_item.rbs +18 -0
- data/sig/tungo/models/platform_usage_by_key_item.rbs +18 -0
- data/sig/tungo/models/platform_usage_by_model_item.rbs +18 -0
- data/sig/tungo/models/platform_usage_totals.rbs +17 -0
- data/sig/tungo/models/proposal_account.rbs +15 -0
- data/sig/tungo/models/proposal_action.rbs +19 -0
- data/sig/tungo/models/proposal_action_action.rbs +14 -0
- data/sig/tungo/models/proposal_advance_offset.rbs +16 -0
- data/sig/tungo/models/proposal_approval.rbs +15 -0
- data/sig/tungo/models/proposal_card.rbs +42 -0
- data/sig/tungo/models/proposal_contract.rbs +16 -0
- data/sig/tungo/models/proposal_decision.rbs +18 -0
- data/sig/tungo/models/proposal_document.rbs +14 -0
- data/sig/tungo/models/proposal_header.rbs +24 -0
- data/sig/tungo/models/proposal_history_event.rbs +16 -0
- data/sig/tungo/models/proposal_kind.rbs +22 -0
- data/sig/tungo/models/proposal_line.rbs +23 -0
- data/sig/tungo/models/proposal_line_item.rbs +13 -0
- data/sig/tungo/models/proposal_line_section.rbs +13 -0
- data/sig/tungo/models/proposal_list_item.rbs +30 -0
- data/sig/tungo/models/proposal_page.rbs +15 -0
- data/sig/tungo/models/proposal_party.rbs +14 -0
- data/sig/tungo/models/proposal_posting.rbs +16 -0
- data/sig/tungo/models/proposal_result.rbs +15 -0
- data/sig/tungo/models/proposal_source.rbs +13 -0
- data/sig/tungo/models/proposal_source_channel.rbs +16 -0
- data/sig/tungo/models/proposal_status.rbs +19 -0
- data/sig/tungo/models/reject_request.rbs +13 -0
- data/sig/tungo/models/statement_day.rbs +22 -0
- data/sig/tungo/models/statement_day_counts.rbs +17 -0
- data/sig/tungo/models/statement_day_kind.rbs +15 -0
- data/sig/tungo/models/statement_day_list.rbs +13 -0
- data/sig/tungo/models/tax_form_cell.rbs +23 -0
- data/sig/tungo/models/tax_form_cell_cause.rbs +18 -0
- data/sig/tungo/models/tax_form_cell_diff.rbs +12 -0
- data/sig/tungo/models/tax_form_cell_one_c_value.rbs +12 -0
- data/sig/tungo/models/tax_form_cell_ours_value.rbs +12 -0
- data/sig/tungo/models/tax_form_cell_status.rbs +15 -0
- data/sig/tungo/models/tax_form_cell_type.rbs +16 -0
- data/sig/tungo/models/tax_form_due.rbs +20 -0
- data/sig/tungo/models/tax_form_list_item.rbs +22 -0
- data/sig/tungo/models/tax_form_list_item_coverage.rbs +13 -0
- data/sig/tungo/models/tax_form_list_item_group.rbs +15 -0
- data/sig/tungo/models/tax_form_list_item_required.rbs +12 -0
- data/sig/tungo/models/tax_form_only_in_one_c.rbs +13 -0
- data/sig/tungo/models/tax_form_period.rbs +16 -0
- data/sig/tungo/models/tax_form_reference.rbs +15 -0
- data/sig/tungo/models/tax_form_totals.rbs +15 -0
- data/sig/tungo/models/tax_form_view.rbs +26 -0
- data/sig/tungo/models/tax_form_view_coverage.rbs +13 -0
- data/sig/tungo/models/tax_form_view_uncovered.rbs +13 -0
- data/sig/tungo/models/tax_form_view_uncovered_cell_item.rbs +13 -0
- data/sig/tungo/models/tax_forms_year.rbs +15 -0
- data/sig/tungo/models/tax_period_kind.rbs +16 -0
- data/sig/tungo/models/tax_period_ref.rbs +13 -0
- data/sig/tungo/models/usage_rate.rbs +17 -0
- data/sig/tungo/models/webhook_attempt.rbs +20 -0
- data/sig/tungo/models/webhook_attempt_status.rbs +15 -0
- data/sig/tungo/models/webhook_attempt_trigger.rbs +13 -0
- data/sig/tungo/models/webhook_endpoint.rbs +19 -0
- data/sig/tungo/models/webhook_endpoint_create.rbs +16 -0
- data/sig/tungo/models/webhook_endpoint_created.rbs +21 -0
- data/sig/tungo/models/webhook_endpoint_patch.rbs +16 -0
- data/sig/tungo/models/webhook_envelope.rbs +17 -0
- data/sig/tungo/models/webhook_event.rbs +12 -0
- data/sig/tungo/models/webhook_event_api_key_cap_reached.rbs +17 -0
- data/sig/tungo/models/webhook_event_api_key_cap_reached_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_api_key_expiring.rbs +17 -0
- data/sig/tungo/models/webhook_event_api_key_expiring_data.rbs +15 -0
- data/sig/tungo/models/webhook_event_automation_run_completed.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data.rbs +29 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data_output_error.rbs +13 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data_output_value.rbs +12 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data_proposal_item.rbs +19 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data_proposal_item_auto.rbs +15 -0
- data/sig/tungo/models/webhook_event_automation_run_completed_data_proposal_item_auto_code.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_run_failed.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data.rbs +29 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data_output_error.rbs +13 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data_output_value.rbs +12 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data_proposal_item.rbs +19 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data_proposal_item_auto.rbs +15 -0
- data/sig/tungo/models/webhook_event_automation_run_failed_data_proposal_item_auto_code.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_run_notice.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_run_notice_data.rbs +21 -0
- data/sig/tungo/models/webhook_event_automation_run_notice_data_reason.rbs +15 -0
- data/sig/tungo/models/webhook_event_automation_write_unknown.rbs +17 -0
- data/sig/tungo/models/webhook_event_automation_write_unknown_data.rbs +16 -0
- data/sig/tungo/models/webhook_event_bank_statement_received.rbs +17 -0
- data/sig/tungo/models/webhook_event_bank_statement_received_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_bank_statement_received_data_source.rbs +13 -0
- data/sig/tungo/models/webhook_event_batch_completed.rbs +17 -0
- data/sig/tungo/models/webhook_event_batch_completed_data.rbs +22 -0
- data/sig/tungo/models/webhook_event_batch_completed_data_kind.rbs +13 -0
- data/sig/tungo/models/webhook_event_batch_failed.rbs +17 -0
- data/sig/tungo/models/webhook_event_batch_failed_data.rbs +14 -0
- data/sig/tungo/models/webhook_event_batch_failed_data_kind.rbs +13 -0
- data/sig/tungo/models/webhook_event_chat_turn_completed.rbs +17 -0
- data/sig/tungo/models/webhook_event_chat_turn_completed_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_chat_turn_completed_data_usage.rbs +16 -0
- data/sig/tungo/models/webhook_event_esf_incoming_received.rbs +17 -0
- data/sig/tungo/models/webhook_event_esf_incoming_received_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_onec_connection_changed.rbs +17 -0
- data/sig/tungo/models/webhook_event_onec_connection_changed_data.rbs +16 -0
- data/sig/tungo/models/webhook_event_onec_connection_changed_data_reason.rbs +20 -0
- data/sig/tungo/models/webhook_event_onec_connection_changed_data_state.rbs +13 -0
- data/sig/tungo/models/webhook_event_payment_failed.rbs +17 -0
- data/sig/tungo/models/webhook_event_payment_failed_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_payment_succeeded.rbs +17 -0
- data/sig/tungo/models/webhook_event_payment_succeeded_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_ping.rbs +17 -0
- data/sig/tungo/models/webhook_event_ping_data.rbs +11 -0
- data/sig/tungo/models/webhook_event_platform_balance_exhausted.rbs +17 -0
- data/sig/tungo/models/webhook_event_platform_balance_exhausted_data.rbs +13 -0
- data/sig/tungo/models/webhook_event_platform_balance_low.rbs +17 -0
- data/sig/tungo/models/webhook_event_platform_balance_low_data.rbs +13 -0
- data/sig/tungo/models/webhook_event_platform_cap_threshold_reached.rbs +17 -0
- data/sig/tungo/models/webhook_event_platform_cap_threshold_reached_data.rbs +15 -0
- data/sig/tungo/models/webhook_event_proposal_awaiting_approval.rbs +17 -0
- data/sig/tungo/models/webhook_event_proposal_awaiting_approval_data.rbs +17 -0
- data/sig/tungo/models/webhook_event_proposal_failed.rbs +17 -0
- data/sig/tungo/models/webhook_event_proposal_failed_data.rbs +15 -0
- data/sig/tungo/models/webhook_event_proposal_rejected.rbs +17 -0
- data/sig/tungo/models/webhook_event_proposal_rejected_data.rbs +15 -0
- data/sig/tungo/models/webhook_event_proposal_written.rbs +17 -0
- data/sig/tungo/models/webhook_event_proposal_written_data.rbs +16 -0
- data/sig/tungo/models/webhook_event_type.rbs +15 -0
- data/sig/tungo/models/webhook_message.rbs +15 -0
- data/sig/tungo/models/webhook_resend.rbs +12 -0
- data/sig/tungo/models/webhook_secret.rbs +13 -0
- data/sig/tungo/models/webhook_secret_rotated.rbs +14 -0
- data/sig/tungo/models/webhook_usage.rbs +15 -0
- data/sig/tungo/models/workspace_plan.rbs +14 -0
- data/sig/tungo/resources/api_keys.rbs +12 -0
- data/sig/tungo/resources/automations.rbs +33 -0
- data/sig/tungo/resources/batches.rbs +20 -0
- data/sig/tungo/resources/chat.rbs +21 -0
- data/sig/tungo/resources/companies.rbs +11 -0
- data/sig/tungo/resources/esf.rbs +13 -0
- data/sig/tungo/resources/feed.rbs +12 -0
- data/sig/tungo/resources/forms.rbs +14 -0
- data/sig/tungo/resources/onec.rbs +10 -0
- data/sig/tungo/resources/platform.rbs +19 -0
- data/sig/tungo/resources/proposals.rbs +15 -0
- data/sig/tungo/resources/webhooks.rbs +26 -0
- data/sig/tungo/resources/workspaces.rbs +10 -0
- data/sig/tungo/resources.rbs +25 -0
- data/sig/tungo/runtime.rbs +392 -0
- metadata +1110 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module Tungo
|
|
6
|
+
module Resources
|
|
7
|
+
# Пачки обработки банковских выписок, входящих ЭСФ и DirectBank
|
|
8
|
+
class Batches
|
|
9
|
+
# @api private
|
|
10
|
+
def initialize(client)
|
|
11
|
+
@client = client
|
|
12
|
+
freeze
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Свои задания и выписки дня, свежие сверху
|
|
16
|
+
#
|
|
17
|
+
# +GET /v1/companies/{co}/batch+
|
|
18
|
+
#
|
|
19
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
20
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
21
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
22
|
+
# @param company_id [String, nil] overrides the client's company
|
|
23
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
24
|
+
# @return [Tungo::Page<Tungo::Models::BatchJob>]
|
|
25
|
+
def list(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
26
|
+
@client.page(
|
|
27
|
+
method: :get,
|
|
28
|
+
path: "/v1/companies/{co}/batch",
|
|
29
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
30
|
+
query: { "cursor" => cursor, "limit" => limit },
|
|
31
|
+
model: :BatchJobList,
|
|
32
|
+
options: request_options
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Свои задания и выписки дня, свежие сверху. Iterates over every item of every page, fetching pages
|
|
37
|
+
# lazily.
|
|
38
|
+
#
|
|
39
|
+
# +GET /v1/companies/{co}/batch+
|
|
40
|
+
#
|
|
41
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
42
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
43
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
44
|
+
# @param company_id [String, nil] overrides the client's company
|
|
45
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
46
|
+
# @return [Enumerator<Tungo::Models::BatchJob>]
|
|
47
|
+
def list_all(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
48
|
+
Tungo::Page.auto_paging do
|
|
49
|
+
list(cursor: cursor, limit: limit, company_id: company_id, request_options: request_options)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Разобрать банковскую выписку в предложения
|
|
54
|
+
#
|
|
55
|
+
# +POST /v1/companies/{co}/batch/bank-statement+
|
|
56
|
+
#
|
|
57
|
+
# @param file [String] Файл выписки в base64 как есть из банка (обычно в кодировке cp1251). Нужно одно
|
|
58
|
+
# из двух: text или file
|
|
59
|
+
# @param file_name [String] Имя файла — попадёт в название задания
|
|
60
|
+
# @param limit [Integer] Сколько строк взять в работу (1–2000); без него — все
|
|
61
|
+
# @param text [String] Содержимое выписки в формате 1CClientBankExchange («выгрузка для 1С» из
|
|
62
|
+
# интернет-банка) текстом, до 8 МБ
|
|
63
|
+
# @param company_id [String, nil] overrides the client's company
|
|
64
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
65
|
+
# @return [Tungo::Models::BatchJob]
|
|
66
|
+
def create_bank_statement(
|
|
67
|
+
file: OMIT,
|
|
68
|
+
file_name: OMIT,
|
|
69
|
+
limit: OMIT,
|
|
70
|
+
text: OMIT,
|
|
71
|
+
company_id: nil,
|
|
72
|
+
request_options: nil
|
|
73
|
+
)
|
|
74
|
+
@client.request(
|
|
75
|
+
method: :post,
|
|
76
|
+
path: "/v1/companies/{co}/batch/bank-statement",
|
|
77
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
78
|
+
body: { "file" => file, "file_name" => file_name, "limit" => limit, "text" => text },
|
|
79
|
+
idempotency_header: "Idempotency-Key",
|
|
80
|
+
model: :BatchJob,
|
|
81
|
+
options: request_options
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Поступления по непривязанным входящим ЭСФ
|
|
86
|
+
#
|
|
87
|
+
# +POST /v1/companies/{co}/batch/esf-purchases+
|
|
88
|
+
#
|
|
89
|
+
# @param from [String] С даты ЭСФ — ГГГГ-ММ-ДД, календарная дата без часового пояса
|
|
90
|
+
# @param limit [Integer] Сколько строк взять в работу (1–2000); без него — все
|
|
91
|
+
# @param to [String] По дату ЭСФ включительно — ГГГГ-ММ-ДД, календарная дата без часового пояса
|
|
92
|
+
# @param company_id [String, nil] overrides the client's company
|
|
93
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
94
|
+
# @return [Tungo::Models::BatchJob]
|
|
95
|
+
def create_esf_purchases(from: OMIT, limit: OMIT, to: OMIT, company_id: nil, request_options: nil)
|
|
96
|
+
@client.request(
|
|
97
|
+
method: :post,
|
|
98
|
+
path: "/v1/companies/{co}/batch/esf-purchases",
|
|
99
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
100
|
+
body: { "from" => from, "limit" => limit, "to" => to },
|
|
101
|
+
body_required: false,
|
|
102
|
+
idempotency_header: "Idempotency-Key",
|
|
103
|
+
model: :BatchJob,
|
|
104
|
+
options: request_options
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Задание с отчётом
|
|
109
|
+
#
|
|
110
|
+
# +GET /v1/companies/{co}/batch/{id}+
|
|
111
|
+
#
|
|
112
|
+
# @param id [String] id задания пачки (bat_…) — поле id из ответа запуска задания, из GET …/batch или
|
|
113
|
+
# batch_id из ленты
|
|
114
|
+
# @param company_id [String, nil] overrides the client's company
|
|
115
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
116
|
+
# @return [Tungo::Models::BatchJob]
|
|
117
|
+
def get(id, company_id: nil, request_options: nil)
|
|
118
|
+
@client.request(
|
|
119
|
+
method: :get,
|
|
120
|
+
path: "/v1/companies/{co}/batch/{id}",
|
|
121
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
122
|
+
model: :BatchJob,
|
|
123
|
+
options: request_options
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Прогресс задания потоком SSE
|
|
128
|
+
#
|
|
129
|
+
# +GET /v1/companies/{co}/batch/{id}/events+
|
|
130
|
+
#
|
|
131
|
+
# @param id [String] id задания пачки (bat_…) — поле id из ответа запуска задания, из GET …/batch или
|
|
132
|
+
# batch_id из ленты
|
|
133
|
+
# @param last_event_id [String, nil] resume after this event id (Last-Event-ID header)
|
|
134
|
+
# @param company_id [String, nil] overrides the client's company
|
|
135
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
136
|
+
# @return [Tungo::ChatStream]
|
|
137
|
+
def list_events(id, last_event_id: nil, company_id: nil, request_options: nil)
|
|
138
|
+
@client.stream(
|
|
139
|
+
method: :get,
|
|
140
|
+
path: "/v1/companies/{co}/batch/{id}/events",
|
|
141
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
142
|
+
event: :ChatEvent,
|
|
143
|
+
stream_class: Tungo::ChatStream,
|
|
144
|
+
last_event_id: last_event_id,
|
|
145
|
+
options: request_options
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Остановить задание
|
|
150
|
+
#
|
|
151
|
+
# +POST /v1/companies/{co}/batch/{id}/stop+
|
|
152
|
+
#
|
|
153
|
+
# @param id [String] id задания пачки (bat_…) — поле id из ответа запуска задания, из GET …/batch или
|
|
154
|
+
# batch_id из ленты
|
|
155
|
+
# @param company_id [String, nil] overrides the client's company
|
|
156
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
157
|
+
# @return [Tungo::Models::BatchStopResult]
|
|
158
|
+
def stop(id, company_id: nil, request_options: nil)
|
|
159
|
+
@client.request(
|
|
160
|
+
method: :post,
|
|
161
|
+
path: "/v1/companies/{co}/batch/{id}/stop",
|
|
162
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
163
|
+
model: :BatchStopResult,
|
|
164
|
+
options: request_options
|
|
165
|
+
)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Сводка задания для «Одобрить и отправить в 1С»
|
|
169
|
+
#
|
|
170
|
+
# +GET /v1/companies/{co}/batch/{id}/summary+
|
|
171
|
+
#
|
|
172
|
+
# @param id [String] id задания пачки (bat_…) — поле id из ответа запуска задания, из GET …/batch или
|
|
173
|
+
# batch_id из ленты
|
|
174
|
+
# @param company_id [String, nil] overrides the client's company
|
|
175
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
176
|
+
# @return [Tungo::Models::BatchSummary]
|
|
177
|
+
def get_summary(id, company_id: nil, request_options: nil)
|
|
178
|
+
@client.request(
|
|
179
|
+
method: :get,
|
|
180
|
+
path: "/v1/companies/{co}/batch/{id}/summary",
|
|
181
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
182
|
+
model: :BatchSummary,
|
|
183
|
+
options: request_options
|
|
184
|
+
)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Выписки DirectBank по дням
|
|
188
|
+
#
|
|
189
|
+
# +GET /v1/companies/{co}/statements+
|
|
190
|
+
#
|
|
191
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
192
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
193
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
194
|
+
# @param company_id [String, nil] overrides the client's company
|
|
195
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
196
|
+
# @return [Tungo::Page<Tungo::Models::StatementDay>]
|
|
197
|
+
def list_statements(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
198
|
+
@client.page(
|
|
199
|
+
method: :get,
|
|
200
|
+
path: "/v1/companies/{co}/statements",
|
|
201
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
202
|
+
query: { "cursor" => cursor, "limit" => limit },
|
|
203
|
+
model: :StatementDayList,
|
|
204
|
+
options: request_options
|
|
205
|
+
)
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Выписки DirectBank по дням. Iterates over every item of every page, fetching pages lazily.
|
|
209
|
+
#
|
|
210
|
+
# +GET /v1/companies/{co}/statements+
|
|
211
|
+
#
|
|
212
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
213
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
214
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
215
|
+
# @param company_id [String, nil] overrides the client's company
|
|
216
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
217
|
+
# @return [Enumerator<Tungo::Models::StatementDay>]
|
|
218
|
+
def list_statements_all(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
219
|
+
Tungo::Page.auto_paging do
|
|
220
|
+
list_statements(cursor: cursor, limit: limit, company_id: company_id, request_options: request_options)
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Опросить DirectBank сейчас
|
|
225
|
+
#
|
|
226
|
+
# +POST /v1/companies/{co}/statements/directbank+
|
|
227
|
+
#
|
|
228
|
+
# @param company_id [String, nil] overrides the client's company
|
|
229
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
230
|
+
# @return [Tungo::Models::DirectBankPollResult]
|
|
231
|
+
def poll_directbank(company_id: nil, request_options: nil)
|
|
232
|
+
@client.request(
|
|
233
|
+
method: :post,
|
|
234
|
+
path: "/v1/companies/{co}/statements/directbank",
|
|
235
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
236
|
+
model: :DirectBankPollResult,
|
|
237
|
+
options: request_options
|
|
238
|
+
)
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module Tungo
|
|
6
|
+
module Resources
|
|
7
|
+
# Диалоги с ИИ-бухгалтером: вопросы, потоковый чат (SSE), подсчёт токенов и история
|
|
8
|
+
class Chat
|
|
9
|
+
# @api private
|
|
10
|
+
def initialize(client)
|
|
11
|
+
@client = client
|
|
12
|
+
freeze
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Свои разговоры в компании, свежие сверху
|
|
16
|
+
#
|
|
17
|
+
# +GET /v1/companies/{co}/chat+
|
|
18
|
+
#
|
|
19
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
20
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
21
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
22
|
+
# @param company_id [String, nil] overrides the client's company
|
|
23
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
24
|
+
# @return [Tungo::Page<Tungo::Models::ChatDialogSummary>]
|
|
25
|
+
def list(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
26
|
+
@client.page(
|
|
27
|
+
method: :get,
|
|
28
|
+
path: "/v1/companies/{co}/chat",
|
|
29
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
30
|
+
query: { "cursor" => cursor, "limit" => limit },
|
|
31
|
+
model: :ChatDialogList,
|
|
32
|
+
options: request_options
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Свои разговоры в компании, свежие сверху. Iterates over every item of every page, fetching pages
|
|
37
|
+
# lazily.
|
|
38
|
+
#
|
|
39
|
+
# +GET /v1/companies/{co}/chat+
|
|
40
|
+
#
|
|
41
|
+
# @param cursor [String] next_cursor из ответа прошлой страницы; без него — первая (самая свежая)
|
|
42
|
+
# страница. Остальные фильтры — те же, что у первой страницы.
|
|
43
|
+
# @param limit [Integer] Сколько на странице: 1–100, по умолчанию 50
|
|
44
|
+
# @param company_id [String, nil] overrides the client's company
|
|
45
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
46
|
+
# @return [Enumerator<Tungo::Models::ChatDialogSummary>]
|
|
47
|
+
def list_all(cursor: OMIT, limit: OMIT, company_id: nil, request_options: nil)
|
|
48
|
+
Tungo::Page.auto_paging do
|
|
49
|
+
list(cursor: cursor, limit: limit, company_id: company_id, request_options: request_options)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Сообщение ИИ-бухгалтеру (ход потоком SSE)
|
|
54
|
+
#
|
|
55
|
+
# +POST /v1/companies/{co}/chat+
|
|
56
|
+
#
|
|
57
|
+
# @param attachments [Array<Tungo::Models::ChatAttachment>] Файлы к вопросу. До 5 файлов, каждый до 10
|
|
58
|
+
# МБ, все вместе до 14 МБ (до кодирования в base64). Картинка — до 5 МБ, PDF — до 100 страниц. Форматы
|
|
59
|
+
# (по расширению имени): .pdf, .jpg, .jpeg, .png, .webp, .docx, .xlsx, .xls, .…
|
|
60
|
+
# @param capabilities [Array<String>] Что умеет клиент: ["choice"] — показывать уточняющие вопросы с
|
|
61
|
+
# вариантами (событие choice). Без него ИИ спрашивает обычным текстом
|
|
62
|
+
# @param dialog_id [String, nil] Продолжить разговор с этим id. Без него — новый разговор, его id
|
|
63
|
+
# придёт в заголовке X-Dialog-Id
|
|
64
|
+
# @param message [String] Вопрос человека, до 4000 знаков; можно не писать, если приложены файлы
|
|
65
|
+
# @param mode [String] Режим хода: auto (по умолчанию) — ИИ сам решает, ответить или подготовить
|
|
66
|
+
# документ; ask — только ответ и разбор, без документов; document — подготовить документ
|
|
67
|
+
# @param new_dialog [Boolean] true — начать новый разговор именно с этим dialog_id (клиент задаёт id
|
|
68
|
+
# сам); id уже занят — 409
|
|
69
|
+
# @param proposal_id [String, nil] Вопрос по предложению (кнопка «Ответить в чате» у карточки или в
|
|
70
|
+
# ленте): ход начнётся с этим предложением в контексте — ИИ увидит его номер, статус, блокеры и
|
|
71
|
+
# предупреждения. Нет такого предложения в компании — 404
|
|
72
|
+
# @param turn [Integer, nil] Номер последнего хода, который видел клиент (заголовок X-Turn-No): если
|
|
73
|
+
# сервер этот ход потерял (перезапуск) — 410, начните новый разговор
|
|
74
|
+
# @param company_id [String, nil] overrides the client's company
|
|
75
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
76
|
+
# @return [Tungo::Models::ChatTurnResult]
|
|
77
|
+
def create(
|
|
78
|
+
attachments: OMIT,
|
|
79
|
+
capabilities: OMIT,
|
|
80
|
+
dialog_id: OMIT,
|
|
81
|
+
message: OMIT,
|
|
82
|
+
mode: OMIT,
|
|
83
|
+
new_dialog: OMIT,
|
|
84
|
+
proposal_id: OMIT,
|
|
85
|
+
turn: OMIT,
|
|
86
|
+
company_id: nil,
|
|
87
|
+
request_options: nil
|
|
88
|
+
)
|
|
89
|
+
@client.request(
|
|
90
|
+
method: :post,
|
|
91
|
+
path: "/v1/companies/{co}/chat",
|
|
92
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
93
|
+
body: {
|
|
94
|
+
"attachments" => attachments,
|
|
95
|
+
"capabilities" => capabilities,
|
|
96
|
+
"dialog_id" => dialog_id,
|
|
97
|
+
"message" => message,
|
|
98
|
+
"mode" => mode,
|
|
99
|
+
"new_dialog" => new_dialog,
|
|
100
|
+
"proposal_id" => proposal_id,
|
|
101
|
+
"stream" => false,
|
|
102
|
+
"turn" => turn
|
|
103
|
+
},
|
|
104
|
+
idempotency_header: "Idempotency-Key",
|
|
105
|
+
model: :ChatTurnResult,
|
|
106
|
+
long_running: true,
|
|
107
|
+
options: request_options
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Сообщение ИИ-бухгалтеру (ход потоком SSE). Streams the turn as server-sent events.
|
|
112
|
+
#
|
|
113
|
+
# +POST /v1/companies/{co}/chat+
|
|
114
|
+
#
|
|
115
|
+
# @param attachments [Array<Tungo::Models::ChatAttachment>] Файлы к вопросу. До 5 файлов, каждый до 10
|
|
116
|
+
# МБ, все вместе до 14 МБ (до кодирования в base64). Картинка — до 5 МБ, PDF — до 100 страниц. Форматы
|
|
117
|
+
# (по расширению имени): .pdf, .jpg, .jpeg, .png, .webp, .docx, .xlsx, .xls, .…
|
|
118
|
+
# @param capabilities [Array<String>] Что умеет клиент: ["choice"] — показывать уточняющие вопросы с
|
|
119
|
+
# вариантами (событие choice). Без него ИИ спрашивает обычным текстом
|
|
120
|
+
# @param dialog_id [String, nil] Продолжить разговор с этим id. Без него — новый разговор, его id
|
|
121
|
+
# придёт в заголовке X-Dialog-Id
|
|
122
|
+
# @param message [String] Вопрос человека, до 4000 знаков; можно не писать, если приложены файлы
|
|
123
|
+
# @param mode [String] Режим хода: auto (по умолчанию) — ИИ сам решает, ответить или подготовить
|
|
124
|
+
# документ; ask — только ответ и разбор, без документов; document — подготовить документ
|
|
125
|
+
# @param new_dialog [Boolean] true — начать новый разговор именно с этим dialog_id (клиент задаёт id
|
|
126
|
+
# сам); id уже занят — 409
|
|
127
|
+
# @param proposal_id [String, nil] Вопрос по предложению (кнопка «Ответить в чате» у карточки или в
|
|
128
|
+
# ленте): ход начнётся с этим предложением в контексте — ИИ увидит его номер, статус, блокеры и
|
|
129
|
+
# предупреждения. Нет такого предложения в компании — 404
|
|
130
|
+
# @param turn [Integer, nil] Номер последнего хода, который видел клиент (заголовок X-Turn-No): если
|
|
131
|
+
# сервер этот ход потерял (перезапуск) — 410, начните новый разговор
|
|
132
|
+
# @param company_id [String, nil] overrides the client's company
|
|
133
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
134
|
+
# @return [Tungo::ChatStream]
|
|
135
|
+
def create_stream(
|
|
136
|
+
attachments: OMIT,
|
|
137
|
+
capabilities: OMIT,
|
|
138
|
+
dialog_id: OMIT,
|
|
139
|
+
message: OMIT,
|
|
140
|
+
mode: OMIT,
|
|
141
|
+
new_dialog: OMIT,
|
|
142
|
+
proposal_id: OMIT,
|
|
143
|
+
turn: OMIT,
|
|
144
|
+
company_id: nil,
|
|
145
|
+
request_options: nil
|
|
146
|
+
)
|
|
147
|
+
@client.stream(
|
|
148
|
+
method: :post,
|
|
149
|
+
path: "/v1/companies/{co}/chat",
|
|
150
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
151
|
+
body: {
|
|
152
|
+
"attachments" => attachments,
|
|
153
|
+
"capabilities" => capabilities,
|
|
154
|
+
"dialog_id" => dialog_id,
|
|
155
|
+
"message" => message,
|
|
156
|
+
"mode" => mode,
|
|
157
|
+
"new_dialog" => new_dialog,
|
|
158
|
+
"proposal_id" => proposal_id,
|
|
159
|
+
"stream" => true,
|
|
160
|
+
"turn" => turn
|
|
161
|
+
},
|
|
162
|
+
idempotency_header: "Idempotency-Key",
|
|
163
|
+
event: :ChatEvent,
|
|
164
|
+
stream_class: Tungo::ChatStream,
|
|
165
|
+
options: request_options
|
|
166
|
+
)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Сколько токенов и денег займёт вопрос, не задавая его
|
|
170
|
+
#
|
|
171
|
+
# +POST /v1/companies/{co}/chat/count-tokens+
|
|
172
|
+
#
|
|
173
|
+
# @param attachments [Array<Tungo::Models::ChatAttachment>] Файлы, как в POST …/chat. До 5 файлов,
|
|
174
|
+
# каждый до 10 МБ, все вместе до 14 МБ (до кодирования в base64). Картинка — до 5 МБ, PDF — до 100
|
|
175
|
+
# страниц. Форматы (по расширению имени): .pdf, .jpg, .jpeg, .png, .webp, .docx, .xlsx…
|
|
176
|
+
# @param dialog_id [String] Разговор, чья история считается; нет — новый разговор
|
|
177
|
+
# @param message [String] Текст вопроса; без него нужны файлы
|
|
178
|
+
# @param mode [String] Режим хода, как в POST …/chat: от него зависят инструменты
|
|
179
|
+
# @param company_id [String, nil] overrides the client's company
|
|
180
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
181
|
+
# @return [Tungo::Models::ChatTokenCount]
|
|
182
|
+
def count_tokens(
|
|
183
|
+
attachments: OMIT,
|
|
184
|
+
dialog_id: OMIT,
|
|
185
|
+
message: OMIT,
|
|
186
|
+
mode: OMIT,
|
|
187
|
+
company_id: nil,
|
|
188
|
+
request_options: nil
|
|
189
|
+
)
|
|
190
|
+
@client.request(
|
|
191
|
+
method: :post,
|
|
192
|
+
path: "/v1/companies/{co}/chat/count-tokens",
|
|
193
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
194
|
+
body: { "attachments" => attachments, "dialog_id" => dialog_id, "message" => message, "mode" => mode },
|
|
195
|
+
model: :ChatTokenCount,
|
|
196
|
+
options: request_options
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Разговор целиком
|
|
201
|
+
#
|
|
202
|
+
# +GET /v1/companies/{co}/chat/{id}+
|
|
203
|
+
#
|
|
204
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
205
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
206
|
+
# @param company_id [String, nil] overrides the client's company
|
|
207
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
208
|
+
# @return [Tungo::Models::ChatDialog]
|
|
209
|
+
def get(id, company_id: nil, request_options: nil)
|
|
210
|
+
@client.request(
|
|
211
|
+
method: :get,
|
|
212
|
+
path: "/v1/companies/{co}/chat/{id}",
|
|
213
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
214
|
+
model: :ChatDialog,
|
|
215
|
+
options: request_options
|
|
216
|
+
)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Переименовать свой разговор
|
|
220
|
+
#
|
|
221
|
+
# +PATCH /v1/companies/{co}/chat/{id}+
|
|
222
|
+
#
|
|
223
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
224
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
225
|
+
# @param title [String] Новое название, до 64 символов; пустая строка — вернуть заголовок по первому
|
|
226
|
+
# вопросу
|
|
227
|
+
# @param company_id [String, nil] overrides the client's company
|
|
228
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
229
|
+
# @return [Tungo::Models::ChatDialogRenamed]
|
|
230
|
+
def update(id, title:, company_id: nil, request_options: nil)
|
|
231
|
+
@client.request(
|
|
232
|
+
method: :patch,
|
|
233
|
+
path: "/v1/companies/{co}/chat/{id}",
|
|
234
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
235
|
+
body: { "title" => title },
|
|
236
|
+
model: :ChatDialogRenamed,
|
|
237
|
+
options: request_options
|
|
238
|
+
)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Стереть свой разговор
|
|
242
|
+
#
|
|
243
|
+
# +DELETE /v1/companies/{co}/chat/{id}+
|
|
244
|
+
#
|
|
245
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
246
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
247
|
+
# @param company_id [String, nil] overrides the client's company
|
|
248
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
249
|
+
# @return [Tungo::Models::ChatDialogDeleted]
|
|
250
|
+
def delete(id, company_id: nil, request_options: nil)
|
|
251
|
+
@client.request(
|
|
252
|
+
method: :delete,
|
|
253
|
+
path: "/v1/companies/{co}/chat/{id}",
|
|
254
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
255
|
+
model: :ChatDialogDeleted,
|
|
256
|
+
options: request_options
|
|
257
|
+
)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Ответ на уточняющий вопрос ИИ (событие choice)
|
|
261
|
+
#
|
|
262
|
+
# +POST /v1/companies/{co}/chat/{id}/answer+
|
|
263
|
+
#
|
|
264
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
265
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
266
|
+
# @param answers [Array<Tungo::Models::ChatChoiceAnswer>] Ответы — по одному на каждый вопрос, в том
|
|
267
|
+
# же порядке, что questions
|
|
268
|
+
# @param choice_id [String] id вопроса — choice_id из события choice (или из awaiting /
|
|
269
|
+
# pending_question)
|
|
270
|
+
# @param company_id [String, nil] overrides the client's company
|
|
271
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
272
|
+
# @return [Tungo::Models::ChatTurnResult]
|
|
273
|
+
def answer(id, answers:, choice_id:, company_id: nil, request_options: nil)
|
|
274
|
+
@client.request(
|
|
275
|
+
method: :post,
|
|
276
|
+
path: "/v1/companies/{co}/chat/{id}/answer",
|
|
277
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
278
|
+
body: { "answers" => answers, "choice_id" => choice_id, "stream" => false },
|
|
279
|
+
model: :ChatTurnResult,
|
|
280
|
+
long_running: true,
|
|
281
|
+
options: request_options
|
|
282
|
+
)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Ответ на уточняющий вопрос ИИ (событие choice). Streams the turn as server-sent events.
|
|
286
|
+
#
|
|
287
|
+
# +POST /v1/companies/{co}/chat/{id}/answer+
|
|
288
|
+
#
|
|
289
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
290
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
291
|
+
# @param answers [Array<Tungo::Models::ChatChoiceAnswer>] Ответы — по одному на каждый вопрос, в том
|
|
292
|
+
# же порядке, что questions
|
|
293
|
+
# @param choice_id [String] id вопроса — choice_id из события choice (или из awaiting /
|
|
294
|
+
# pending_question)
|
|
295
|
+
# @param company_id [String, nil] overrides the client's company
|
|
296
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
297
|
+
# @return [Tungo::ChatStream]
|
|
298
|
+
def answer_stream(id, answers:, choice_id:, company_id: nil, request_options: nil)
|
|
299
|
+
@client.stream(
|
|
300
|
+
method: :post,
|
|
301
|
+
path: "/v1/companies/{co}/chat/{id}/answer",
|
|
302
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
303
|
+
body: { "answers" => answers, "choice_id" => choice_id, "stream" => true },
|
|
304
|
+
event: :ChatEvent,
|
|
305
|
+
stream_class: Tungo::ChatStream,
|
|
306
|
+
options: request_options
|
|
307
|
+
)
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Переподключиться к идущему ходу
|
|
311
|
+
#
|
|
312
|
+
# +GET /v1/companies/{co}/chat/{id}/events+
|
|
313
|
+
#
|
|
314
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
315
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
316
|
+
# @param turn [Integer, nil] Номер хода (X-Turn-No), к которому переподключиться; без него — к
|
|
317
|
+
# текущему
|
|
318
|
+
# @param last_event_id [String, nil] resume after this event id (Last-Event-ID header)
|
|
319
|
+
# @param company_id [String, nil] overrides the client's company
|
|
320
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
321
|
+
# @return [Tungo::ChatStream]
|
|
322
|
+
def list_events(id, turn: OMIT, last_event_id: nil, company_id: nil, request_options: nil)
|
|
323
|
+
@client.stream(
|
|
324
|
+
method: :get,
|
|
325
|
+
path: "/v1/companies/{co}/chat/{id}/events",
|
|
326
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
327
|
+
query: { "turn" => turn },
|
|
328
|
+
event: :ChatEvent,
|
|
329
|
+
stream_class: Tungo::ChatStream,
|
|
330
|
+
last_event_id: last_event_id,
|
|
331
|
+
options: request_options
|
|
332
|
+
)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Остановить ход или закрыть открытый вопрос
|
|
336
|
+
#
|
|
337
|
+
# +POST /v1/companies/{co}/chat/{id}/stop+
|
|
338
|
+
#
|
|
339
|
+
# @param id [String] id разговора: dialog_id из ответа (заголовок X-Dialog-Id, поле id в списке
|
|
340
|
+
# разговоров). Обычно UUID; клиент мог задать свой (до 64 знаков A–Z, a–z, 0–9, _ и -)
|
|
341
|
+
# @param company_id [String, nil] overrides the client's company
|
|
342
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
343
|
+
# @return [Tungo::Models::ChatStopResult]
|
|
344
|
+
def stop(id, company_id: nil, request_options: nil)
|
|
345
|
+
@client.request(
|
|
346
|
+
method: :post,
|
|
347
|
+
path: "/v1/companies/{co}/chat/{id}/stop",
|
|
348
|
+
path_params: { co: @client.resolve_company_id(company_id), id: id },
|
|
349
|
+
model: :ChatStopResult,
|
|
350
|
+
options: request_options
|
|
351
|
+
)
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module Tungo
|
|
6
|
+
module Resources
|
|
7
|
+
# Компании организации и их карточки
|
|
8
|
+
class Companies
|
|
9
|
+
# @api private
|
|
10
|
+
def initialize(client)
|
|
11
|
+
@client = client
|
|
12
|
+
freeze
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Мои компании во всех workspace
|
|
16
|
+
#
|
|
17
|
+
# +GET /v1/companies+
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
20
|
+
# @return [Tungo::Models::ListCompaniesResponse]
|
|
21
|
+
def list(request_options: nil)
|
|
22
|
+
@client.request(
|
|
23
|
+
method: :get,
|
|
24
|
+
path: "/v1/companies",
|
|
25
|
+
model: :ListCompaniesResponse,
|
|
26
|
+
options: request_options
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Компания
|
|
31
|
+
#
|
|
32
|
+
# +GET /v1/companies/{co}+
|
|
33
|
+
#
|
|
34
|
+
# @param company_id [String, nil] overrides the client's company
|
|
35
|
+
# @param request_options [Tungo::RequestOptions, Hash, nil] per-request overrides
|
|
36
|
+
# @return [Tungo::Models::Company]
|
|
37
|
+
def get(company_id: nil, request_options: nil)
|
|
38
|
+
@client.request(
|
|
39
|
+
method: :get,
|
|
40
|
+
path: "/v1/companies/{co}",
|
|
41
|
+
path_params: { co: @client.resolve_company_id(company_id) },
|
|
42
|
+
model: :Company,
|
|
43
|
+
options: request_options
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|