tungo-sdk 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -1
  3. data/README.md +6 -6
  4. data/lib/tungo/client.rb +16 -8
  5. data/lib/tungo/helpers.rb +3 -1
  6. data/lib/tungo/internal/sse.rb +91 -0
  7. data/lib/tungo/internal/util.rb +31 -0
  8. data/lib/tungo/models/api_key.rb +9 -1
  9. data/lib/tungo/models/api_key_create.rb +9 -2
  10. data/lib/tungo/models/api_key_created.rb +9 -1
  11. data/lib/tungo/models/api_key_details.rb +9 -1
  12. data/lib/tungo/models/api_key_patch.rb +7 -0
  13. data/lib/tungo/models/api_key_rolled.rb +19 -4
  14. data/lib/tungo/models/api_key_self.rb +9 -1
  15. data/lib/tungo/models/api_key_updated.rb +9 -1
  16. data/lib/tungo/models/api_key_usage_by_model_item.rb +1 -1
  17. data/lib/tungo/models/audit_entry.rb +16 -6
  18. data/lib/tungo/models/audit_entry_action.rb +70 -3
  19. data/lib/tungo/models/audit_entry_object.rb +43 -0
  20. data/lib/tungo/models/audit_entry_object_purpose.rb +25 -0
  21. data/lib/tungo/models/batch_statement.rb +38 -0
  22. data/lib/tungo/models/batch_statement_account.rb +50 -0
  23. data/lib/tungo/models/batch_summary.rb +6 -0
  24. data/lib/tungo/models/card_session.rb +6 -0
  25. data/lib/tungo/models/card_session_state.rb +28 -0
  26. data/lib/tungo/models/card_session_state_failure_code.rb +20 -0
  27. data/lib/tungo/models/card_session_state_status.rb +19 -0
  28. data/lib/tungo/models/chat_assistant_message.rb +22 -0
  29. data/lib/tungo/models/chat_choice_answer.rb +9 -1
  30. data/lib/tungo/models/chat_choice_question.rb +9 -1
  31. data/lib/tungo/models/chat_citation.rb +62 -5
  32. data/lib/tungo/models/chat_dialog.rb +17 -1
  33. data/lib/tungo/models/chat_dialog_patch.rb +2 -1
  34. data/lib/tungo/models/chat_dialog_rated.rb +25 -0
  35. data/lib/tungo/models/chat_dialog_rating.rb +25 -0
  36. data/lib/tungo/models/chat_dialog_rating_body.rb +21 -0
  37. data/lib/tungo/models/chat_dialog_renamed.rb +4 -0
  38. data/lib/tungo/models/chat_dialog_summary.rb +6 -2
  39. data/lib/tungo/models/chat_event.rb +6 -2
  40. data/lib/tungo/models/chat_event_citation.rb +54 -5
  41. data/lib/tungo/models/chat_event_done.rb +8 -1
  42. data/lib/tungo/models/chat_event_next.rb +27 -0
  43. data/lib/tungo/models/chat_event_title.rb +22 -0
  44. data/lib/tungo/models/chat_history_batch.rb +21 -0
  45. data/lib/tungo/models/chat_history_block.rb +3 -1
  46. data/lib/tungo/models/chat_history_error.rb +3 -3
  47. data/lib/tungo/models/chat_history_error_code.rb +4 -3
  48. data/lib/tungo/models/chat_history_mention.rb +29 -0
  49. data/lib/tungo/models/chat_history_mention_type.rb +20 -0
  50. data/lib/tungo/models/chat_history_question.rb +6 -1
  51. data/lib/tungo/models/chat_history_question_answer.rb +31 -0
  52. data/lib/tungo/models/chat_history_question_answer_via.rb +17 -0
  53. data/lib/tungo/models/chat_mention.rb +22 -0
  54. data/lib/tungo/models/chat_mention_item.rb +33 -0
  55. data/lib/tungo/models/chat_mention_item_type.rb +20 -0
  56. data/lib/tungo/models/chat_mention_search.rb +21 -0
  57. data/lib/tungo/models/chat_mention_type.rb +20 -0
  58. data/lib/tungo/models/chat_mention_unavailable.rb +23 -0
  59. data/lib/tungo/models/chat_mention_unavailable_reason.rb +19 -0
  60. data/lib/tungo/models/chat_mention_unavailable_type.rb +20 -0
  61. data/lib/tungo/models/chat_message_rated.rb +31 -0
  62. data/lib/tungo/models/chat_message_rating.rb +30 -0
  63. data/lib/tungo/models/chat_message_rating_body.rb +27 -0
  64. data/lib/tungo/models/chat_message_rating_body_vote.rb +17 -0
  65. data/lib/tungo/models/chat_message_rating_vote.rb +17 -0
  66. data/lib/tungo/models/chat_message_request.rb +14 -0
  67. data/lib/tungo/models/chat_message_request_effort.rb +22 -0
  68. data/lib/tungo/models/chat_next_action.rb +31 -0
  69. data/lib/tungo/models/chat_next_action_code.rb +21 -0
  70. data/lib/tungo/models/chat_next_action_params_value.rb +20 -0
  71. data/lib/tungo/models/chat_rating_dismissed.rb +21 -0
  72. data/lib/tungo/models/chat_rating_options.rb +25 -0
  73. data/lib/tungo/models/chat_rating_options_dialog_scores.rb +20 -0
  74. data/lib/tungo/models/chat_rating_options_reason_item.rb +20 -0
  75. data/lib/tungo/models/chat_suggestion.rb +41 -0
  76. data/lib/tungo/models/chat_suggestion_action.rb +17 -0
  77. data/lib/tungo/models/chat_suggestion_group.rb +26 -0
  78. data/lib/tungo/models/chat_suggestions.rb +25 -0
  79. data/lib/tungo/models/chat_suggestions_locale.rb +17 -0
  80. data/lib/tungo/models/chat_title_source.rb +20 -0
  81. data/lib/tungo/models/chat_turn_error.rb +9 -5
  82. data/lib/tungo/models/chat_turn_error_code.rb +4 -3
  83. data/lib/tungo/models/chat_turn_error_limit_kind.rb +7 -1
  84. data/lib/tungo/models/chat_turn_result.rb +11 -0
  85. data/lib/tungo/models/chat_user_message.rb +5 -0
  86. data/lib/tungo/models/company.rb +2 -2
  87. data/lib/tungo/models/company_legal_form.rb +2 -1
  88. data/lib/tungo/models/company_list_item.rb +2 -2
  89. data/lib/tungo/models/error_detail.rb +32 -2
  90. data/lib/tungo/models/error_detail_free_blocked_reason.rb +25 -0
  91. data/lib/tungo/models/get_workspace_platform_audit_response.rb +11 -0
  92. data/lib/tungo/models/list_company_chat_rating_options_lang.rb +17 -0
  93. data/lib/tungo/models/list_company_chat_suggestions_lang.rb +18 -0
  94. data/lib/tungo/models/list_company_proposals_approval_requested.rb +17 -0
  95. data/lib/tungo/models/list_workspace_platform_requests_response.rb +11 -0
  96. data/lib/tungo/models/pay_form.rb +6 -0
  97. data/lib/tungo/models/platform_account_purchase_limits.rb +6 -0
  98. data/lib/tungo/models/platform_ledger_entry.rb +7 -0
  99. data/lib/tungo/models/platform_ledger_entry_documents.rb +33 -0
  100. data/lib/tungo/models/platform_ledger_entry_documents_receipt_status.rb +20 -0
  101. data/lib/tungo/models/platform_request.rb +7 -0
  102. data/lib/tungo/models/proposal_approval_request.rb +27 -0
  103. data/lib/tungo/models/proposal_approval_request_body.rb +15 -0
  104. data/lib/tungo/models/proposal_approval_request_result.rb +31 -0
  105. data/lib/tungo/models/proposal_approval_requested.rb +32 -0
  106. data/lib/tungo/models/proposal_card.rb +16 -1
  107. data/lib/tungo/models/proposal_card_status_reason.rb +23 -0
  108. data/lib/tungo/models/proposal_history_event.rb +7 -0
  109. data/lib/tungo/models/proposal_list_item.rb +16 -1
  110. data/lib/tungo/models/proposal_list_item_status_reason.rb +23 -0
  111. data/lib/tungo/models/proposal_origin.rb +33 -0
  112. data/lib/tungo/models/proposal_origin_source.rb +21 -0
  113. data/lib/tungo/models/proposal_page.rb +9 -2
  114. data/lib/tungo/models/usage_rate.rb +15 -2
  115. data/lib/tungo/models.rb +58 -0
  116. data/lib/tungo/money.rb +14 -1
  117. data/lib/tungo/request_options.rb +3 -1
  118. data/lib/tungo/resources/automations.rb +6 -3
  119. data/lib/tungo/resources/chat.rb +175 -2
  120. data/lib/tungo/resources/proposals.rb +49 -2
  121. data/lib/tungo/transport.rb +9 -1
  122. data/lib/tungo/version.rb +1 -1
  123. data/sig/tungo/models/api_key.rbs +2 -1
  124. data/sig/tungo/models/api_key_create.rbs +3 -2
  125. data/sig/tungo/models/api_key_created.rbs +2 -1
  126. data/sig/tungo/models/api_key_details.rbs +2 -1
  127. data/sig/tungo/models/api_key_patch.rbs +2 -1
  128. data/sig/tungo/models/api_key_rolled.rbs +4 -2
  129. data/sig/tungo/models/api_key_self.rbs +2 -1
  130. data/sig/tungo/models/api_key_updated.rbs +2 -1
  131. data/sig/tungo/models/audit_entry.rbs +2 -1
  132. data/sig/tungo/models/audit_entry_action.rbs +67 -0
  133. data/sig/tungo/models/audit_entry_object.rbs +16 -0
  134. data/sig/tungo/models/audit_entry_object_purpose.rbs +19 -0
  135. data/sig/tungo/models/batch_statement.rbs +16 -0
  136. data/sig/tungo/models/batch_statement_account.rbs +19 -0
  137. data/sig/tungo/models/batch_summary.rbs +2 -1
  138. data/sig/tungo/models/card_session.rbs +2 -1
  139. data/sig/tungo/models/card_session_state.rbs +14 -0
  140. data/sig/tungo/models/card_session_state_failure_code.rbs +14 -0
  141. data/sig/tungo/models/card_session_state_status.rbs +14 -0
  142. data/sig/tungo/models/chat_assistant_message.rbs +5 -1
  143. data/sig/tungo/models/chat_choice_answer.rbs +2 -1
  144. data/sig/tungo/models/chat_choice_question.rbs +2 -1
  145. data/sig/tungo/models/chat_citation.rbs +11 -1
  146. data/sig/tungo/models/chat_dialog.rbs +4 -1
  147. data/sig/tungo/models/chat_dialog_rated.rbs +14 -0
  148. data/sig/tungo/models/chat_dialog_rating.rbs +14 -0
  149. data/sig/tungo/models/chat_dialog_rating_body.rbs +13 -0
  150. data/sig/tungo/models/chat_dialog_renamed.rbs +2 -1
  151. data/sig/tungo/models/chat_dialog_summary.rbs +2 -1
  152. data/sig/tungo/models/chat_event.rbs +1 -1
  153. data/sig/tungo/models/chat_event_citation.rbs +10 -1
  154. data/sig/tungo/models/chat_event_done.rbs +2 -1
  155. data/sig/tungo/models/chat_event_next.rbs +14 -0
  156. data/sig/tungo/models/chat_event_title.rbs +13 -0
  157. data/sig/tungo/models/chat_history_batch.rbs +13 -0
  158. data/sig/tungo/models/chat_history_block.rbs +1 -1
  159. data/sig/tungo/models/chat_history_error_code.rbs +1 -0
  160. data/sig/tungo/models/chat_history_mention.rbs +14 -0
  161. data/sig/tungo/models/chat_history_mention_type.rbs +14 -0
  162. data/sig/tungo/models/chat_history_question.rbs +2 -1
  163. data/sig/tungo/models/chat_history_question_answer.rbs +15 -0
  164. data/sig/tungo/models/chat_history_question_answer_via.rbs +13 -0
  165. data/sig/tungo/models/chat_mention.rbs +13 -0
  166. data/sig/tungo/models/chat_mention_item.rbs +15 -0
  167. data/sig/tungo/models/chat_mention_item_type.rbs +14 -0
  168. data/sig/tungo/models/chat_mention_search.rbs +13 -0
  169. data/sig/tungo/models/chat_mention_type.rbs +14 -0
  170. data/sig/tungo/models/chat_mention_unavailable.rbs +13 -0
  171. data/sig/tungo/models/chat_mention_unavailable_reason.rbs +14 -0
  172. data/sig/tungo/models/chat_mention_unavailable_type.rbs +14 -0
  173. data/sig/tungo/models/chat_message_rated.rbs +15 -0
  174. data/sig/tungo/models/chat_message_rating.rbs +15 -0
  175. data/sig/tungo/models/chat_message_rating_body.rbs +14 -0
  176. data/sig/tungo/models/chat_message_rating_body_vote.rbs +13 -0
  177. data/sig/tungo/models/chat_message_rating_vote.rbs +13 -0
  178. data/sig/tungo/models/chat_message_request.rbs +3 -1
  179. data/sig/tungo/models/chat_message_request_effort.rbs +16 -0
  180. data/sig/tungo/models/chat_next_action.rbs +14 -0
  181. data/sig/tungo/models/chat_next_action_code.rbs +15 -0
  182. data/sig/tungo/models/chat_next_action_params_value.rbs +12 -0
  183. data/sig/tungo/models/chat_rating_dismissed.rbs +13 -0
  184. data/sig/tungo/models/chat_rating_options.rbs +14 -0
  185. data/sig/tungo/models/chat_rating_options_dialog_scores.rbs +13 -0
  186. data/sig/tungo/models/chat_rating_options_reason_item.rbs +13 -0
  187. data/sig/tungo/models/chat_suggestion.rbs +17 -0
  188. data/sig/tungo/models/chat_suggestion_action.rbs +13 -0
  189. data/sig/tungo/models/chat_suggestion_group.rbs +14 -0
  190. data/sig/tungo/models/chat_suggestions.rbs +14 -0
  191. data/sig/tungo/models/chat_suggestions_locale.rbs +13 -0
  192. data/sig/tungo/models/chat_title_source.rbs +14 -0
  193. data/sig/tungo/models/chat_turn_error_code.rbs +1 -0
  194. data/sig/tungo/models/chat_turn_error_limit_kind.rbs +4 -0
  195. data/sig/tungo/models/chat_turn_result.rbs +3 -1
  196. data/sig/tungo/models/chat_user_message.rbs +2 -1
  197. data/sig/tungo/models/company.rbs +2 -2
  198. data/sig/tungo/models/company_list_item.rbs +2 -2
  199. data/sig/tungo/models/error_detail.rbs +6 -1
  200. data/sig/tungo/models/error_detail_free_blocked_reason.rbs +19 -0
  201. data/sig/tungo/models/get_workspace_platform_audit_response.rbs +3 -1
  202. data/sig/tungo/models/list_company_chat_rating_options_lang.rbs +13 -0
  203. data/sig/tungo/models/list_company_chat_suggestions_lang.rbs +13 -0
  204. data/sig/tungo/models/list_company_proposals_approval_requested.rbs +13 -0
  205. data/sig/tungo/models/list_workspace_platform_requests_response.rbs +3 -1
  206. data/sig/tungo/models/pay_form.rbs +2 -1
  207. data/sig/tungo/models/platform_account_purchase_limits.rbs +2 -1
  208. data/sig/tungo/models/platform_ledger_entry.rbs +2 -1
  209. data/sig/tungo/models/platform_ledger_entry_documents.rbs +15 -0
  210. data/sig/tungo/models/platform_ledger_entry_documents_receipt_status.rbs +15 -0
  211. data/sig/tungo/models/platform_request.rbs +2 -1
  212. data/sig/tungo/models/proposal_approval_request.rbs +14 -0
  213. data/sig/tungo/models/proposal_approval_request_body.rbs +12 -0
  214. data/sig/tungo/models/proposal_approval_request_result.rbs +15 -0
  215. data/sig/tungo/models/proposal_approval_requested.rbs +15 -0
  216. data/sig/tungo/models/proposal_card.rbs +4 -1
  217. data/sig/tungo/models/proposal_card_status_reason.rbs +13 -0
  218. data/sig/tungo/models/proposal_history_event.rbs +2 -1
  219. data/sig/tungo/models/proposal_list_item.rbs +4 -1
  220. data/sig/tungo/models/proposal_list_item_status_reason.rbs +13 -0
  221. data/sig/tungo/models/proposal_origin.rbs +15 -0
  222. data/sig/tungo/models/proposal_origin_source.rbs +15 -0
  223. data/sig/tungo/models/proposal_page.rbs +2 -1
  224. data/sig/tungo/models/usage_rate.rbs +3 -1
  225. data/sig/tungo/resources/automations.rbs +1 -1
  226. data/sig/tungo/resources/chat.rbs +9 -2
  227. data/sig/tungo/resources/proposals.rbs +3 -2
  228. metadata +117 -1
@@ -351,7 +351,8 @@ module Tungo
351
351
 
352
352
  def connect(url)
353
353
  connection = if @proxy
354
- Net::HTTP.new(url.host, url.port, @proxy.host, @proxy.port, @proxy.user, @proxy.password)
354
+ Net::HTTP.new(url.host, url.port, @proxy.host, @proxy.port,
355
+ proxy_credential(@proxy.user), proxy_credential(@proxy.password))
355
356
  else
356
357
  Net::HTTP.new(url.host, url.port)
357
358
  end
@@ -363,6 +364,13 @@ module Tungo
363
364
  connection
364
365
  end
365
366
 
367
+ # URI#user and URI#password keep the percent-encoding of the URL ("p%40ss"), and Net::HTTP
368
+ # sends an explicit proxy's credentials as given (it decodes only those of http_proxy).
369
+ # URI.decode_uri_component, unlike a form decoder, keeps a "+" as it is.
370
+ def proxy_credential(value)
371
+ value && URI.decode_uri_component(value)
372
+ end
373
+
366
374
  def finish(connection)
367
375
  connection.finish if connection.started?
368
376
  rescue StandardError
data/lib/tungo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Tungo
4
4
  # The version of the gem; also sent in the User-Agent header.
5
- VERSION = "0.2.0" # x-release-version
5
+ VERSION = "0.3.1" # x-release-version
6
6
  end
@@ -15,6 +15,7 @@ module Tungo
15
15
  def last_used_ip: () -> String?
16
16
  def monthly_cap_tiyn: () -> Integer?
17
17
  def name: () -> String
18
+ def no_companies: () -> bool
18
19
  def permissions: () -> Array[Tungo::Models::ApiKeyPermissionItem::t]
19
20
  def prefix: () -> String
20
21
  def previous_secret_valid_until: () -> String?
@@ -24,7 +25,7 @@ module Tungo
24
25
  def write_kinds: () -> Array[String]?
25
26
  def write_max_amount_per_day_tiyn: () -> Integer?
26
27
  def write_max_amount_per_document_tiyn: () -> Integer?
27
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeyPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
28
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeyPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
28
29
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKey
29
30
  def with: (**untyped) -> Tungo::Models::ApiKey
30
31
  end
@@ -9,11 +9,12 @@ module Tungo
9
9
  def expires_at: () -> String?
10
10
  def monthly_cap_tiyn: () -> Integer?
11
11
  def name: () -> String
12
- def permissions: () -> Array[String]
12
+ def no_companies: () -> bool?
13
+ def permissions: () -> Array[String]?
13
14
  def write_kinds: () -> Array[Tungo::Models::ApiKeyCreateWriteKindItem::t]?
14
15
  def write_max_amount_per_day_tiyn: () -> Integer?
15
16
  def write_max_amount_per_document_tiyn: () -> Integer?
16
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?expires_at: (String | Time)?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[String], ?write_kinds: Array[Tungo::Models::ApiKeyCreateWriteKindItem::input]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
17
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?expires_at: (String | Time)?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[String], ?write_kinds: Array[Tungo::Models::ApiKeyCreateWriteKindItem::input]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
17
18
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyCreate
18
19
  def with: (**untyped) -> Tungo::Models::ApiKeyCreate
19
20
  end
@@ -17,6 +17,7 @@ module Tungo
17
17
  def last_used_ip: () -> String?
18
18
  def monthly_cap_tiyn: () -> Integer?
19
19
  def name: () -> String
20
+ def no_companies: () -> bool
20
21
  def permissions: () -> Array[Tungo::Models::ApiKeyCreatedPermissionItem::t]
21
22
  def prefix: () -> String
22
23
  def previous_secret_valid_until: () -> String?
@@ -27,7 +28,7 @@ module Tungo
27
28
  def write_kinds: () -> Array[String]?
28
29
  def write_max_amount_per_day_tiyn: () -> Integer?
29
30
  def write_max_amount_per_document_tiyn: () -> Integer?
30
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?key: String?, ?key_note: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeyCreatedPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyCreatedStatus::input, ?warnings: Array[Tungo::input[Tungo::Models::ApiKeyWarning]], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
31
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?key: String?, ?key_note: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeyCreatedPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyCreatedStatus::input, ?warnings: Array[Tungo::input[Tungo::Models::ApiKeyWarning]], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
31
32
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyCreated
32
33
  def with: (**untyped) -> Tungo::Models::ApiKeyCreated
33
34
  end
@@ -16,6 +16,7 @@ module Tungo
16
16
  def last_used_ip: () -> String?
17
17
  def monthly_cap_tiyn: () -> Integer?
18
18
  def name: () -> String
19
+ def no_companies: () -> bool
19
20
  def permissions: () -> Array[Tungo::Models::ApiKeyDetailsPermissionItem::t]
20
21
  def prefix: () -> String
21
22
  def previous_secret_valid_until: () -> String?
@@ -25,7 +26,7 @@ module Tungo
25
26
  def write_kinds: () -> Array[String]?
26
27
  def write_max_amount_per_day_tiyn: () -> Integer?
27
28
  def write_max_amount_per_document_tiyn: () -> Integer?
28
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?blocked_reason: Tungo::Models::ApiKeyDetailsBlockedReason::input?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeyDetailsPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyDetailsStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
29
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?blocked_reason: Tungo::Models::ApiKeyDetailsBlockedReason::input?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeyDetailsPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyDetailsStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
29
30
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyDetails
30
31
  def with: (**untyped) -> Tungo::Models::ApiKeyDetails
31
32
  end
@@ -9,11 +9,12 @@ module Tungo
9
9
  def expires_at: () -> String?
10
10
  def monthly_cap_tiyn: () -> Integer?
11
11
  def name: () -> String?
12
+ def no_companies: () -> bool?
12
13
  def permissions: () -> Array[String]?
13
14
  def write_kinds: () -> Array[Tungo::Models::ApiKeyPatchWriteKindItem::t]?
14
15
  def write_max_amount_per_day_tiyn: () -> Integer?
15
16
  def write_max_amount_per_document_tiyn: () -> Integer?
16
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?expires_at: (String | Time)?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[String], ?write_kinds: Array[Tungo::Models::ApiKeyPatchWriteKindItem::input]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
17
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?expires_at: (String | Time)?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[String], ?write_kinds: Array[Tungo::Models::ApiKeyPatchWriteKindItem::input]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
17
18
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyPatch
18
19
  def with: (**untyped) -> Tungo::Models::ApiKeyPatch
19
20
  end
@@ -11,11 +11,13 @@ module Tungo
11
11
  def disabled_at: () -> String?
12
12
  def expires_at: () -> String
13
13
  def id: () -> String
14
- def key: () -> String
14
+ def key: () -> String?
15
+ def key_note: () -> String?
15
16
  def last_used_at: () -> String?
16
17
  def last_used_ip: () -> String?
17
18
  def monthly_cap_tiyn: () -> Integer?
18
19
  def name: () -> String
20
+ def no_companies: () -> bool
19
21
  def permissions: () -> Array[Tungo::Models::ApiKeyRolledPermissionItem::t]
20
22
  def prefix: () -> String
21
23
  def previous_secret_valid_until: () -> String?
@@ -26,7 +28,7 @@ module Tungo
26
28
  def write_kinds: () -> Array[String]?
27
29
  def write_max_amount_per_day_tiyn: () -> Integer?
28
30
  def write_max_amount_per_document_tiyn: () -> Integer?
29
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?key: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeyRolledPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?previous_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyRolledStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
31
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?key: String?, ?key_note: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeyRolledPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?previous_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyRolledStatus::input, ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
30
32
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyRolled
31
33
  def with: (**untyped) -> Tungo::Models::ApiKeyRolled
32
34
  end
@@ -17,6 +17,7 @@ module Tungo
17
17
  def month: () -> Tungo::Models::ApiKeyMonth
18
18
  def monthly_cap_tiyn: () -> Integer?
19
19
  def name: () -> String
20
+ def no_companies: () -> bool
20
21
  def permissions: () -> Array[Tungo::Models::ApiKeySelfPermissionItem::t]
21
22
  def prefix: () -> String
22
23
  def previous_secret_valid_until: () -> String?
@@ -28,7 +29,7 @@ module Tungo
28
29
  def write_kinds: () -> Array[String]?
29
30
  def write_max_amount_per_day_tiyn: () -> Integer?
30
31
  def write_max_amount_per_document_tiyn: () -> Integer?
31
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?blocked_reason: Tungo::Models::ApiKeySelfBlockedReason::input?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?month: Tungo::input[Tungo::Models::ApiKeyMonth], ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeySelfPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?rate_limit: Tungo::input[Tungo::Models::ApiKeySelfRateLimit]?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeySelfStatus::input, ?workspace: Tungo::input[Tungo::Models::ApiKeySelfWorkspace], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
32
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?blocked_reason: Tungo::Models::ApiKeySelfBlockedReason::input?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?month: Tungo::input[Tungo::Models::ApiKeyMonth], ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeySelfPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?rate_limit: Tungo::input[Tungo::Models::ApiKeySelfRateLimit]?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeySelfStatus::input, ?workspace: Tungo::input[Tungo::Models::ApiKeySelfWorkspace], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
32
33
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeySelf
33
34
  def with: (**untyped) -> Tungo::Models::ApiKeySelf
34
35
  end
@@ -15,6 +15,7 @@ module Tungo
15
15
  def last_used_ip: () -> String?
16
16
  def monthly_cap_tiyn: () -> Integer?
17
17
  def name: () -> String
18
+ def no_companies: () -> bool
18
19
  def permissions: () -> Array[Tungo::Models::ApiKeyUpdatedPermissionItem::t]
19
20
  def prefix: () -> String
20
21
  def previous_secret_valid_until: () -> String?
@@ -25,7 +26,7 @@ module Tungo
25
26
  def write_kinds: () -> Array[String]?
26
27
  def write_max_amount_per_day_tiyn: () -> Integer?
27
28
  def write_max_amount_per_document_tiyn: () -> Integer?
28
- def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?permissions: Array[Tungo::Models::ApiKeyUpdatedPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyUpdatedStatus::input, ?warnings: Array[Tungo::input[Tungo::Models::ApiKeyWarning]], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
29
+ def initialize: (?all_companies: bool, ?allowed_ips: Array[String]?, ?company_ids: Array[String], ?created_at: (String | Time), ?created_by: String, ?disabled_at: (String | Time)?, ?expires_at: (String | Time), ?id: String, ?last_used_at: (String | Time)?, ?last_used_ip: String?, ?monthly_cap_tiyn: Integer?, ?name: String, ?no_companies: bool, ?permissions: Array[Tungo::Models::ApiKeyUpdatedPermissionItem::input], ?prefix: String, ?previous_secret_valid_until: (String | Time)?, ?revoked_at: (String | Time)?, ?status: Tungo::Models::ApiKeyUpdatedStatus::input, ?warnings: Array[Tungo::input[Tungo::Models::ApiKeyWarning]], ?workspace_id: String, ?write_kinds: Array[String]?, ?write_max_amount_per_day_tiyn: Integer?, ?write_max_amount_per_document_tiyn: Integer?, **untyped) -> void
29
30
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ApiKeyUpdated
30
31
  def with: (**untyped) -> Tungo::Models::ApiKeyUpdated
31
32
  end
@@ -11,9 +11,10 @@ module Tungo
11
11
  def data: () -> untyped
12
12
  def id: () -> String
13
13
  def ip: () -> String?
14
+ def object: () -> Tungo::Models::AuditEntryObject?
14
15
  def request_id: () -> String?
15
16
  def target: () -> Tungo::Models::AuditEntryTarget?
16
- def initialize: (?action: Tungo::Models::AuditEntryAction::input, ?action_title: String, ?actor: Tungo::input[Tungo::Models::AuditEntryActor], ?at: (String | Time)?, ?company_id: String?, ?data: untyped, ?id: String, ?ip: String?, ?request_id: String?, ?target: Tungo::input[Tungo::Models::AuditEntryTarget]?, **untyped) -> void
17
+ def initialize: (?action: Tungo::Models::AuditEntryAction::input, ?action_title: String, ?actor: Tungo::input[Tungo::Models::AuditEntryActor], ?at: (String | Time)?, ?company_id: String?, ?data: untyped, ?id: String, ?ip: String?, ?object: Tungo::input[Tungo::Models::AuditEntryObject]?, ?request_id: String?, ?target: Tungo::input[Tungo::Models::AuditEntryTarget]?, **untyped) -> void
17
18
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::AuditEntry
18
19
  def with: (**untyped) -> Tungo::Models::AuditEntry
19
20
  end
@@ -22,12 +22,14 @@ module Tungo
22
22
  COMPANY_ONEC_CONNECTOR_CODE_CREATED: String
23
23
  COMPANY_ONEC_CONNECTOR_PAIRED: String
24
24
  COMPANY_ONEC_CONNECTOR_ROTATED: String
25
+ COMPANY_ONEC_CONNECTOR_ROTATE_REFUSED: String
25
26
  COMPANY_ONEC_CONNECTOR_REVOKED: String
26
27
  COMPANY_ONEC_CONNECTOR_LINK_APPROVED: String
27
28
  CONNECTOR_LINK_CREATED: String
28
29
  CONNECTOR_LINK_DENIED: String
29
30
  COMPANY_ONEC_LINK_APPROVED: String
30
31
  COMPANY_ONEC_LINK_REVOKED: String
32
+ ONEC_LINK_WRONG_MATCH: String
31
33
  COMPANY_PROFILE_REBUILD: String
32
34
  WORKSPACE_MEMBER_JOINED: String
33
35
  WORKSPACE_MEMBER_ROLE_CHANGED: String
@@ -49,6 +51,8 @@ module Tungo
49
51
  WORKSPACE_OWNERSHIP_TRANSFERRED: String
50
52
  WORKSPACE_DELETED: String
51
53
  WORKSPACE_CREATED: String
54
+ TEAM_CHECKOUT_ABANDONED: String
55
+ ENTERPRISE_REQUEST_CREATED: String
52
56
  WORKSPACE_CONVERTED_TO_TEAM: String
53
57
  WORKSPACE_DELETION_SCHEDULED: String
54
58
  WORKSPACE_DELETION_CANCELLED: String
@@ -57,6 +61,16 @@ module Tungo
57
61
  TEAM_SEATS_REDUCED: String
58
62
  ADMIN_WORKSPACE_KIND_CHANGED: String
59
63
  ADMIN_WORKSPACE_CONTRACT_SEATS: String
64
+ ADMIN_PLAN_GRANT_CREATED: String
65
+ ADMIN_PLAN_GRANT_EXTENDED: String
66
+ ADMIN_PLAN_GRANT_REVOKED: String
67
+ ADMIN_PLAN_GRANT_ENDED: String
68
+ ADMIN_PLATFORM_DISCOUNT_CREATED: String
69
+ ADMIN_PLATFORM_DISCOUNT_REVOKED: String
70
+ ADMIN_SUBSCRIPTION_CANCELLED: String
71
+ ADMIN_SUBSCRIPTION_RESUMED: String
72
+ ADMIN_MONEY_EXPORTED: String
73
+ ADMIN_PAYMENT_SEARCH_PD_VIEWED: String
60
74
  WORKSPACE_SSO_PROVIDER_CREATED: String
61
75
  WORKSPACE_GROUP_CREATED: String
62
76
  WORKSPACE_GROUP_UPDATED: String
@@ -94,6 +108,7 @@ module Tungo
94
108
  BILLING_PROFILE_UPDATED: String
95
109
  BILLING_PAYMENT_METHOD_DISABLED: String
96
110
  BILLING_REFUND_SUCCEEDED: String
111
+ BILLING_MANUAL_CHARGE: String
97
112
  SUBSCRIPTION_CREATED: String
98
113
  SUBSCRIPTION_CHANGED: String
99
114
  SUBSCRIPTION_CANCEL_SCHEDULED: String
@@ -119,13 +134,65 @@ module Tungo
119
134
  ACCOUNT_DELETION_SCHEDULED: String
120
135
  ACCOUNT_DELETION_CANCELLED: String
121
136
  ACCOUNT_DELETED: String
137
+ LANGFUSE_TRACES_PURGED: String
138
+ ADMIN_DIALOG_LANGFUSE_DATASET: String
139
+ ADMIN_DIALOG_LANGFUSE_ANNOTATION: String
140
+ ACCOUNT_EMAIL_CODE_SENT: String
141
+ ACCOUNT_EMAIL_BOUND: String
142
+ ACCOUNT_TELEGRAM_MERGED: String
143
+ ACCOUNT_GOOGLE_LINKED: String
144
+ ACCOUNT_TELEGRAM_MERGE_REFUSED: String
145
+ ADMIN_ADS_CONVERSIONS_RELEASED: String
146
+ ADMIN_ADS_CONVERSIONS_REJECTED: String
147
+ ADMIN_ADS_SIGNUPS_EXPORTED: String
148
+ ADMIN_ACCESS_SIGNED_IN: String
149
+ ADMIN_ACCESS_REFUSED: String
150
+ ADMIN_TWO_FACTOR_VERIFIED: String
151
+ ADMIN_TWO_FACTOR_ENABLE_REQUESTED: String
152
+ ADMIN_TWO_FACTOR_ENABLED: String
153
+ ADMIN_TWO_FACTOR_DISABLED: String
154
+ ADMIN_SESSION_SIGNED_IN: String
155
+ ADMIN_USER_BANNED: String
156
+ ADMIN_USER_UNBANNED: String
122
157
  ADMIN_WORKSPACE_BLOCKED: String
123
158
  ADMIN_WORKSPACE_UNBLOCKED: String
124
159
  ADMIN_WORKSPACE_TRAINING_CONSENT: String
125
160
  ADMIN_USER_PLATFORM_ROLES_CHANGED: String
126
161
  ADMIN_USER_FREE_ELIGIBILITY_CHANGED: String
162
+ ADMIN_USER_LIMIT_RESETS_GRANTED: String
163
+ ADMIN_USER_LIMIT_RESETS_REVOKED: String
164
+ USAGE_LIMIT_RESET_APPLIED: String
165
+ REFERRAL_CLAIMED: String
166
+ REFERRAL_REWARDED: String
167
+ ADMIN_ENTERPRISE_REQUEST_STATUS_CHANGED: String
127
168
  ADMIN_TRAINING_EXPORTED: String
169
+ ADMIN_SETTING_CHANGED: String
170
+ ADMIN_LOGS_PURGED: String
128
171
  ADMIN_DIALOG_PD_VIEWED: String
172
+ ADMIN_DIALOG_RATING_COMMENTS_VIEWED: String
173
+ ADMIN_DIALOG_LABEL_SET: String
174
+ ADMIN_DIALOG_LABEL_REMOVED: String
175
+ ADMIN_JOURNAL_PD_VIEWED: String
176
+ ADMIN_COMPANY_PD_VIEWED: String
177
+ ADMIN_COMPANY_PD_SEARCHED: String
178
+ ADMIN_PAYMENT_PD_VIEWED: String
179
+ SITE_POST_PUBLISHED: String
180
+ SITE_POST_UNPUBLISHED: String
181
+ SITE_POST_DELETED: String
182
+ SITE_LEGAL_PUBLISHED: String
183
+ SITE_TRACKERS_SAVED: String
184
+ HELP_SECTION_CREATED: String
185
+ HELP_SECTION_UPDATED: String
186
+ HELP_SECTION_DELETED: String
187
+ HELP_ARTICLE_CREATED: String
188
+ HELP_ARTICLE_UPDATED: String
189
+ HELP_ARTICLE_DELETED: String
190
+ HELP_REORDERED: String
191
+ SUPPORT_TICKET_CREATED: String
192
+ ADMIN_SUPPORT_REPLIED: String
193
+ ADMIN_SUPPORT_NOTE_ADDED: String
194
+ ADMIN_SUPPORT_TICKET_UPDATED: String
195
+ ADMIN_SUPPORT_ATTACHMENT_VIEWED: String
129
196
  CANARY_TRIGGERED: String
130
197
  BILLING_PAYMENT_NEW: String
131
198
  BILLING_PAYMENT_PENDING: String
@@ -0,0 +1,16 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class AuditEntryObject < Tungo::Model
6
+ def amount_tiyn: () -> Integer?
7
+ def id: () -> String?
8
+ def name: () -> String?
9
+ def purpose: () -> Tungo::Models::AuditEntryObjectPurpose::t?
10
+ def type: () -> String
11
+ def initialize: (?amount_tiyn: Integer?, ?id: String?, ?name: String?, ?purpose: Tungo::Models::AuditEntryObjectPurpose::input?, ?type: String, **untyped) -> void
12
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::AuditEntryObject
13
+ def with: (**untyped) -> Tungo::Models::AuditEntryObject
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ module AuditEntryObjectPurpose
6
+ extend Tungo::Internal::Enum
7
+ type t = String
8
+ type input = String
9
+ SUBSCRIPTION: String
10
+ ONE_OFF: String
11
+ ONBOARDING: String
12
+ EXTRA_USAGE: String
13
+ PLATFORM_TOPUP: String
14
+ SEATS: String
15
+ MANUAL: String
16
+ CARD_VERIFICATION: String
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class BatchStatement < Tungo::Model
6
+ def accounts: () -> Array[Tungo::Models::BatchStatementAccount]
7
+ def balanced: () -> bool?
8
+ def period_from: () -> String?
9
+ def period_to: () -> String?
10
+ def sender: () -> String?
11
+ def initialize: (?accounts: Array[Tungo::input[Tungo::Models::BatchStatementAccount]], ?balanced: bool?, ?period_from: (String | Date)?, ?period_to: (String | Date)?, ?sender: String?, **untyped) -> void
12
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::BatchStatement
13
+ def with: (**untyped) -> Tungo::Models::BatchStatement
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class BatchStatementAccount < Tungo::Model
6
+ def account: () -> String
7
+ def balanced: () -> bool?
8
+ def bank: () -> String?
9
+ def bank_bic: () -> String?
10
+ def closing_balance: () -> Tungo::Models::Money?
11
+ def incoming: () -> Tungo::Models::Money
12
+ def opening_balance: () -> Tungo::Models::Money?
13
+ def outgoing: () -> Tungo::Models::Money
14
+ def initialize: (?account: String, ?balanced: bool?, ?bank: String?, ?bank_bic: String?, ?closing_balance: Tungo::input[Tungo::Models::Money]?, ?incoming: Tungo::input[Tungo::Models::Money], ?opening_balance: Tungo::input[Tungo::Models::Money]?, ?outgoing: Tungo::input[Tungo::Models::Money], **untyped) -> void
15
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::BatchStatementAccount
16
+ def with: (**untyped) -> Tungo::Models::BatchStatementAccount
17
+ end
18
+ end
19
+ end
@@ -12,9 +12,10 @@ module Tungo
12
12
  def proposals: () -> Array[Tungo::Models::BatchSummaryProposal]
13
13
  def reason: () -> String?
14
14
  def running: () -> bool
15
+ def statement: () -> Tungo::Models::BatchStatement?
15
16
  def title: () -> String
16
17
  def totals: () -> Tungo::Models::BatchSummaryTotals
17
- def initialize: (?approve: Tungo::input[Tungo::Models::BatchSummaryApprove], ?can_approve: bool, ?finished_at: (String | Time), ?job_id: String, ?kind: Tungo::Models::BatchSummaryKind::input, ?manual_rows: Array[Tungo::input[Tungo::Models::BatchManualRow]], ?proposals: Array[Tungo::input[Tungo::Models::BatchSummaryProposal]], ?reason: String, ?running: bool, ?title: String, ?totals: Tungo::input[Tungo::Models::BatchSummaryTotals], **untyped) -> void
18
+ def initialize: (?approve: Tungo::input[Tungo::Models::BatchSummaryApprove], ?can_approve: bool, ?finished_at: (String | Time), ?job_id: String, ?kind: Tungo::Models::BatchSummaryKind::input, ?manual_rows: Array[Tungo::input[Tungo::Models::BatchManualRow]], ?proposals: Array[Tungo::input[Tungo::Models::BatchSummaryProposal]], ?reason: String, ?running: bool, ?statement: Tungo::input[Tungo::Models::BatchStatement]?, ?title: String, ?totals: Tungo::input[Tungo::Models::BatchSummaryTotals], **untyped) -> void
18
19
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::BatchSummary
19
20
  def with: (**untyped) -> Tungo::Models::BatchSummary
20
21
  end
@@ -6,7 +6,8 @@ module Tungo
6
6
  def payment_id: () -> String
7
7
  def payment_object: () -> Hash[String, untyped]
8
8
  def script_url: () -> String
9
- def initialize: (?payment_id: String, ?payment_object: Hash[String | Symbol, untyped], ?script_url: String, **untyped) -> void
9
+ def test_mode: () -> bool
10
+ def initialize: (?payment_id: String, ?payment_object: Hash[String | Symbol, untyped], ?script_url: String, ?test_mode: bool, **untyped) -> void
10
11
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::CardSession
11
12
  def with: (**untyped) -> Tungo::Models::CardSession
12
13
  end
@@ -0,0 +1,14 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class CardSessionState < Tungo::Model
6
+ def failure_code: () -> Tungo::Models::CardSessionStateFailureCode::t?
7
+ def payment_id: () -> String
8
+ def status: () -> Tungo::Models::CardSessionStateStatus::t
9
+ def initialize: (?failure_code: Tungo::Models::CardSessionStateFailureCode::input?, ?payment_id: String, ?status: Tungo::Models::CardSessionStateStatus::input, **untyped) -> void
10
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::CardSessionState
11
+ def with: (**untyped) -> Tungo::Models::CardSessionState
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ module CardSessionStateFailureCode
6
+ extend Tungo::Internal::Enum
7
+ type t = String
8
+ type input = String
9
+ CARD_TAKEN: String
10
+ ABANDONED: String
11
+ DECLINED: String
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ module CardSessionStateStatus
6
+ extend Tungo::Internal::Enum
7
+ type t = String
8
+ type input = String
9
+ PENDING: String
10
+ VERIFIED: String
11
+ FAILED: String
12
+ end
13
+ end
14
+ end
@@ -6,12 +6,16 @@ module Tungo
6
6
  def at: () -> String
7
7
  def blocks: () -> Array[Tungo::Models::ChatHistoryBlock::t]
8
8
  def citations: () -> Array[Tungo::Models::ChatCitation]
9
+ def followups: () -> Array[String]
9
10
  def id: () -> String
11
+ def next_action: () -> Tungo::Models::ChatNextAction?
10
12
  def proposal_ids: () -> Array[String]
13
+ def rating: () -> Tungo::Models::ChatMessageRating?
11
14
  def role: () -> String
12
15
  def state: () -> Tungo::Models::ChatAssistantMessageState::t
13
16
  def thinking: () -> String
14
- def initialize: (?at: (String | Time), ?blocks: Array[Tungo::Models::ChatHistoryBlock::input], ?citations: Array[Tungo::input[Tungo::Models::ChatCitation]], ?id: String, ?proposal_ids: Array[String], ?role: String, ?state: Tungo::Models::ChatAssistantMessageState::input, ?thinking: String, **untyped) -> void
17
+ def turn_no: () -> Integer
18
+ def initialize: (?at: (String | Time), ?blocks: Array[Tungo::Models::ChatHistoryBlock::input], ?citations: Array[Tungo::input[Tungo::Models::ChatCitation]], ?followups: Array[String], ?id: String, ?next_action: Tungo::input[Tungo::Models::ChatNextAction]?, ?proposal_ids: Array[String], ?rating: Tungo::input[Tungo::Models::ChatMessageRating]?, ?role: String, ?state: Tungo::Models::ChatAssistantMessageState::input, ?thinking: String, ?turn_no: Integer, **untyped) -> void
15
19
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatAssistantMessage
16
20
  def with: (**untyped) -> Tungo::Models::ChatAssistantMessage
17
21
  end
@@ -5,7 +5,8 @@ module Tungo
5
5
  class ChatChoiceAnswer < Tungo::Model
6
6
  def other: () -> String?
7
7
  def selected: () -> Array[String]?
8
- def initialize: (?other: String, ?selected: Array[String], **untyped) -> void
8
+ def skipped: () -> bool?
9
+ def initialize: (?other: String, ?selected: Array[String], ?skipped: bool, **untyped) -> void
9
10
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatChoiceAnswer
10
11
  def with: (**untyped) -> Tungo::Models::ChatChoiceAnswer
11
12
  end
@@ -3,11 +3,12 @@
3
3
  module Tungo
4
4
  module Models
5
5
  class ChatChoiceQuestion < Tungo::Model
6
+ def confirm: () -> bool
6
7
  def header: () -> String
7
8
  def multi_select: () -> bool
8
9
  def options: () -> Array[Tungo::Models::ChatChoiceOption]
9
10
  def question: () -> String
10
- def initialize: (?header: String, ?multi_select: bool, ?options: Array[Tungo::input[Tungo::Models::ChatChoiceOption]], ?question: String, **untyped) -> void
11
+ def initialize: (?confirm: bool, ?header: String, ?multi_select: bool, ?options: Array[Tungo::input[Tungo::Models::ChatChoiceOption]], ?question: String, **untyped) -> void
11
12
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatChoiceQuestion
12
13
  def with: (**untyped) -> Tungo::Models::ChatChoiceQuestion
13
14
  end
@@ -3,11 +3,21 @@
3
3
  module Tungo
4
4
  module Models
5
5
  class ChatCitation < Tungo::Model
6
+ def article: () -> String?
7
+ def chapter: () -> String?
8
+ def document: () -> String
6
9
  def edition: () -> String?
10
+ def edition_date: () -> String?
11
+ def heading: () -> String?
12
+ def label: () -> String
13
+ def mentions: () -> Array[String]?
14
+ def note: () -> String?
15
+ def point: () -> String?
7
16
  def source: () -> String
17
+ def subpoint: () -> String?
8
18
  def title: () -> String
9
19
  def url: () -> String?
10
- def initialize: (?edition: String, ?source: String, ?title: String, ?url: String, **untyped) -> void
20
+ def initialize: (?article: String, ?chapter: String, ?document: String, ?edition: String, ?edition_date: String, ?heading: String, ?label: String, ?mentions: Array[String], ?note: String, ?point: String, ?source: String, ?subpoint: String, ?title: String, ?url: String, **untyped) -> void
11
21
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatCitation
12
22
  def with: (**untyped) -> Tungo::Models::ChatCitation
13
23
  end
@@ -11,11 +11,14 @@ module Tungo
11
11
  def message_count: () -> (Integer | BigDecimal)
12
12
  def messages: () -> Array[Tungo::Models::ChatMessage::t]
13
13
  def pd_restored: () -> bool
14
+ def rating: () -> Tungo::Models::ChatDialogRating?
15
+ def rating_prompt: () -> bool
14
16
  def running: () -> bool
15
17
  def title: () -> String
18
+ def title_source: () -> Tungo::Models::ChatTitleSource::t
16
19
  def turn: () -> (Integer | BigDecimal)
17
20
  def updated_at: () -> String
18
- def initialize: (?awaiting: Tungo::input[Tungo::Models::ChatPendingQuestion], ?closed: Tungo::input[Tungo::Models::ChatDialogClosed], ?created_at: (String | Time), ?id: String, ?masked: (Integer | Float | BigDecimal), ?message_count: (Integer | Float | BigDecimal), ?messages: Array[Tungo::Models::ChatMessage::input], ?pd_restored: bool, ?running: bool, ?title: String, ?turn: (Integer | Float | BigDecimal), ?updated_at: (String | Time), **untyped) -> void
21
+ def initialize: (?awaiting: Tungo::input[Tungo::Models::ChatPendingQuestion], ?closed: Tungo::input[Tungo::Models::ChatDialogClosed], ?created_at: (String | Time), ?id: String, ?masked: (Integer | Float | BigDecimal), ?message_count: (Integer | Float | BigDecimal), ?messages: Array[Tungo::Models::ChatMessage::input], ?pd_restored: bool, ?rating: Tungo::input[Tungo::Models::ChatDialogRating]?, ?rating_prompt: bool, ?running: bool, ?title: String, ?title_source: Tungo::Models::ChatTitleSource::input, ?turn: (Integer | Float | BigDecimal), ?updated_at: (String | Time), **untyped) -> void
19
22
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialog
20
23
  def with: (**untyped) -> Tungo::Models::ChatDialog
21
24
  end
@@ -0,0 +1,14 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class ChatDialogRated < Tungo::Model
6
+ def id: () -> String
7
+ def rating: () -> Tungo::Models::ChatDialogRating
8
+ def rating_prompt: () -> bool
9
+ def initialize: (?id: String, ?rating: Tungo::input[Tungo::Models::ChatDialogRating], ?rating_prompt: bool, **untyped) -> void
10
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialogRated
11
+ def with: (**untyped) -> Tungo::Models::ChatDialogRated
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class ChatDialogRating < Tungo::Model
6
+ def at: () -> String
7
+ def comment: () -> String?
8
+ def score: () -> Integer
9
+ def initialize: (?at: (String | Time), ?comment: String?, ?score: Integer, **untyped) -> void
10
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialogRating
11
+ def with: (**untyped) -> Tungo::Models::ChatDialogRating
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,13 @@
1
+ # Code generated by tungo-sdkgen from the Tungo Platform API contract. DO NOT EDIT.
2
+
3
+ module Tungo
4
+ module Models
5
+ class ChatDialogRatingBody < Tungo::Model
6
+ def comment: () -> String?
7
+ def score: () -> Integer
8
+ def initialize: (?comment: String?, ?score: Integer, **untyped) -> void
9
+ def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialogRatingBody
10
+ def with: (**untyped) -> Tungo::Models::ChatDialogRatingBody
11
+ end
12
+ end
13
+ end
@@ -5,7 +5,8 @@ module Tungo
5
5
  class ChatDialogRenamed < Tungo::Model
6
6
  def id: () -> String
7
7
  def title: () -> String
8
- def initialize: (?id: String, ?title: String, **untyped) -> void
8
+ def title_source: () -> Tungo::Models::ChatTitleSource::t
9
+ def initialize: (?id: String, ?title: String, ?title_source: Tungo::Models::ChatTitleSource::input, **untyped) -> void
9
10
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialogRenamed
10
11
  def with: (**untyped) -> Tungo::Models::ChatDialogRenamed
11
12
  end
@@ -7,8 +7,9 @@ module Tungo
7
7
  def message_count: () -> (Integer | BigDecimal)
8
8
  def running: () -> bool
9
9
  def title: () -> String
10
+ def title_source: () -> Tungo::Models::ChatTitleSource::t
10
11
  def updated_at: () -> String
11
- def initialize: (?id: String, ?message_count: (Integer | Float | BigDecimal), ?running: bool, ?title: String, ?updated_at: (String | Time), **untyped) -> void
12
+ def initialize: (?id: String, ?message_count: (Integer | Float | BigDecimal), ?running: bool, ?title: String, ?title_source: Tungo::Models::ChatTitleSource::input, ?updated_at: (String | Time), **untyped) -> void
12
13
  def self.from_wire: (Hash[String, untyped] | Hash[Symbol, untyped] data, ?api_response: Tungo::APIResponse?) -> Tungo::Models::ChatDialogSummary
13
14
  def with: (**untyped) -> Tungo::Models::ChatDialogSummary
14
15
  end