lockally 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 (253) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +148 -119
  3. data/docs/AdminApi.md +33 -33
  4. data/docs/{V1AdminLoginPost200Response.md → AdminLogin200Response.md} +2 -2
  5. data/docs/{V1AdminLoginPostRequest.md → AdminLoginRequest.md} +2 -2
  6. data/docs/AdminsApi.md +76 -76
  7. data/docs/AgentSendResult.md +22 -0
  8. data/docs/AgentsApi.md +247 -247
  9. data/docs/AiApi.md +69 -69
  10. data/docs/AiConfig.md +26 -0
  11. data/docs/AiConfigUpdate.md +20 -0
  12. data/docs/AliasesApi.md +59 -59
  13. data/docs/Annotations.md +22 -0
  14. data/docs/ApiKeysApi.md +59 -59
  15. data/docs/Attachment.md +26 -0
  16. data/docs/Classification.md +24 -0
  17. data/docs/ContactLookup.md +26 -0
  18. data/docs/ContactLookupContact.md +28 -0
  19. data/docs/ContactLookupHistory.md +22 -0
  20. data/docs/CreateAiUnitsCheckout200Response.md +22 -0
  21. data/docs/{V1AliasesPostRequest.md → CreateAliasRequest.md} +2 -2
  22. data/docs/{V1ApiKeysPost201Response.md → CreateApiKey201Response.md} +2 -2
  23. data/docs/{V1ApiKeysPostRequest.md → CreateApiKeyRequest.md} +2 -2
  24. data/docs/{V1DomainsPostRequest.md → CreateDomainRequest.md} +2 -2
  25. data/docs/{V1MailboxesPostRequest.md → CreateMailboxRequest.md} +2 -2
  26. data/docs/{V1SuppressionsPostRequest.md → CreateSuppressionRequest.md} +2 -2
  27. data/docs/{V1WebhooksPostRequest.md → CreateWebhookRequest.md} +2 -2
  28. data/docs/DomainsApi.md +141 -141
  29. data/docs/Draft.md +44 -0
  30. data/docs/DraftList.md +18 -0
  31. data/docs/DraftResult.md +26 -0
  32. data/docs/DraftsApi.md +115 -115
  33. data/docs/{V1MailboxesEmailExportPost201Response.md → ExportMailbox201Response.md} +2 -2
  34. data/docs/{V1AdminMeGet200Response.md → GetCurrentAdmin200Response.md} +2 -2
  35. data/docs/{V1UsageGet200Response.md → GetUsage200Response.md} +2 -2
  36. data/docs/HealthApi.md +11 -11
  37. data/docs/{HealthzGet200Response.md → HealthCheck200Response.md} +2 -2
  38. data/docs/Inbox.md +24 -0
  39. data/docs/InboxList.md +18 -0
  40. data/docs/InjectionRisk.md +20 -0
  41. data/docs/{V1AdminsPostRequest.md → InviteAdminRequest.md} +2 -2
  42. data/docs/{V1AdminsGet200Response.md → ListAdmins200Response.md} +2 -2
  43. data/docs/{V1AliasesGet200Response.md → ListAliases200Response.md} +2 -2
  44. data/docs/{V1ApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
  45. data/docs/{V1DomainsGet200Response.md → ListDomains200Response.md} +2 -2
  46. data/docs/{V1MailboxesGet200Response.md → ListMailboxes200Response.md} +2 -2
  47. data/docs/{V1MessagesGet200Response.md → ListMessages200Response.md} +2 -2
  48. data/docs/{V1SuppressionsGet200Response.md → ListSuppressions200Response.md} +2 -2
  49. data/docs/{V1TemplatesGet200Response.md → ListTemplates200Response.md} +2 -2
  50. data/docs/{V1VacationGet200Response.md → ListVacationResponders200Response.md} +2 -2
  51. data/docs/{V1WebhooksGet200Response.md → ListWebhooks200Response.md} +2 -2
  52. data/docs/MailboxGrant.md +20 -0
  53. data/docs/MailboxGrantList.md +18 -0
  54. data/docs/MailboxesApi.md +203 -203
  55. data/docs/MarkReadResult.md +18 -0
  56. data/docs/PolicyFlags.md +28 -0
  57. data/docs/SendApi.md +121 -121
  58. data/docs/{V1SendPost200Response.md → SendEmail200Response.md} +2 -2
  59. data/docs/{V1SendPost202Response.md → SendEmail202Response.md} +2 -2
  60. data/docs/{V1SendBatchPost200Response.md → SendEmailBatch200Response.md} +2 -2
  61. data/docs/{V1SendBatchPostRequest.md → SendEmailBatchRequest.md} +2 -2
  62. data/docs/{V1SendPostRequest.md → SendEmailRequest.md} +3 -3
  63. data/docs/{V1SendPostRequestAttachmentsInner.md → SendEmailRequestAttachmentsInner.md} +2 -2
  64. data/docs/SendMessage.md +1 -1
  65. data/docs/{V1MailboxesEmailVacationPutRequest.md → SetVacationResponderRequest.md} +2 -2
  66. data/docs/SignupApi.md +4 -4
  67. data/docs/SimulatedInbound.md +22 -0
  68. data/docs/{V1InboxesMailboxMessagesPostRequest.md → StartConversationRequest.md} +2 -2
  69. data/docs/SuppressionsApi.md +75 -75
  70. data/docs/TemplatesApi.md +67 -67
  71. data/docs/TenantApi.md +20 -20
  72. data/docs/TestApi.md +11 -11
  73. data/docs/Thread.md +22 -0
  74. data/docs/ThreadClassification.md +22 -0
  75. data/docs/ThreadList.md +20 -0
  76. data/docs/ThreadMessage.md +40 -0
  77. data/docs/ThreadMessageBody.md +42 -0
  78. data/docs/ThreadMessageBodyAllOfBody.md +22 -0
  79. data/docs/ThreadSummary.md +28 -0
  80. data/docs/{V1AdminsIdPatchRequest.md → UpdateAdminRequest.md} +2 -2
  81. data/docs/{V1MailboxesEmailPatchRequest.md → UpdateMailboxRequest.md} +2 -2
  82. data/docs/{V1WebhooksIdPatchRequest.md → UpdateWebhookRequest.md} +2 -2
  83. data/docs/WebhooksApi.md +63 -63
  84. data/docs/Whoami.md +24 -0
  85. data/lib/lockally/api/admin_api.rb +30 -30
  86. data/lib/lockally/api/admins_api.rb +89 -89
  87. data/lib/lockally/api/agents_api.rb +309 -309
  88. data/lib/lockally/api/ai_api.rb +69 -69
  89. data/lib/lockally/api/aliases_api.rb +64 -64
  90. data/lib/lockally/api/api_keys_api.rb +66 -66
  91. data/lib/lockally/api/domains_api.rb +147 -147
  92. data/lib/lockally/api/drafts_api.rb +140 -140
  93. data/lib/lockally/api/health_api.rb +9 -9
  94. data/lib/lockally/api/mailboxes_api.rb +233 -233
  95. data/lib/lockally/api/send_api.rb +146 -146
  96. data/lib/lockally/api/signup_api.rb +3 -3
  97. data/lib/lockally/api/suppressions_api.rb +87 -87
  98. data/lib/lockally/api/templates_api.rb +69 -69
  99. data/lib/lockally/api/tenant_api.rb +15 -15
  100. data/lib/lockally/api/test_api.rb +9 -9
  101. data/lib/lockally/api/webhooks_api.rb +73 -73
  102. data/lib/lockally/models/{v1_admin_login_post200_response.rb → admin_login200_response.rb} +3 -3
  103. data/lib/lockally/models/{v1_admin_login_post_request.rb → admin_login_request.rb} +3 -3
  104. data/lib/lockally/models/agent_send_result.rb +184 -0
  105. data/lib/lockally/models/ai_config.rb +242 -0
  106. data/lib/lockally/models/ai_config_update.rb +214 -0
  107. data/lib/lockally/models/annotations.rb +168 -0
  108. data/lib/lockally/models/attachment.rb +185 -0
  109. data/lib/lockally/models/classification.rb +211 -0
  110. data/lib/lockally/models/contact_lookup.rb +235 -0
  111. data/lib/lockally/models/contact_lookup_contact.rb +192 -0
  112. data/lib/lockally/models/contact_lookup_history.rb +166 -0
  113. data/lib/lockally/models/create_ai_units_checkout200_response.rb +199 -0
  114. data/lib/lockally/models/{v1_aliases_post_request.rb → create_alias_request.rb} +3 -3
  115. data/lib/lockally/models/{v1_api_keys_post201_response.rb → create_api_key201_response.rb} +3 -3
  116. data/lib/lockally/models/{v1_api_keys_post_request.rb → create_api_key_request.rb} +3 -3
  117. data/lib/lockally/models/{v1_domains_post_request.rb → create_domain_request.rb} +3 -3
  118. data/lib/lockally/models/{v1_mailboxes_post_request.rb → create_mailbox_request.rb} +3 -3
  119. data/lib/lockally/models/{v1_suppressions_post_request.rb → create_suppression_request.rb} +3 -3
  120. data/lib/lockally/models/{v1_webhooks_post_request.rb → create_webhook_request.rb} +3 -3
  121. data/lib/lockally/models/draft.rb +411 -0
  122. data/lib/lockally/models/draft_list.rb +166 -0
  123. data/lib/lockally/models/draft_result.rb +258 -0
  124. data/lib/lockally/models/{v1_mailboxes_email_export_post201_response.rb → export_mailbox201_response.rb} +3 -3
  125. data/lib/lockally/models/{v1_admin_me_get200_response.rb → get_current_admin200_response.rb} +3 -3
  126. data/lib/lockally/models/{v1_usage_get200_response.rb → get_usage200_response.rb} +3 -3
  127. data/lib/lockally/models/{healthz_get200_response.rb → health_check200_response.rb} +3 -3
  128. data/lib/lockally/models/inbox.rb +225 -0
  129. data/lib/lockally/models/inbox_list.rb +166 -0
  130. data/lib/lockally/models/injection_risk.rb +159 -0
  131. data/lib/lockally/models/{v1_admins_post_request.rb → invite_admin_request.rb} +3 -3
  132. data/lib/lockally/models/list_admins200_response.rb +166 -0
  133. data/lib/lockally/models/{v1_aliases_get200_response.rb → list_aliases200_response.rb} +3 -3
  134. data/lib/lockally/models/{v1_admins_get200_response.rb → list_api_keys200_response.rb} +4 -4
  135. data/lib/lockally/models/{v1_domains_get200_response.rb → list_domains200_response.rb} +3 -3
  136. data/lib/lockally/models/{v1_mailboxes_get200_response.rb → list_mailboxes200_response.rb} +3 -3
  137. data/lib/lockally/models/{v1_messages_get200_response.rb → list_messages200_response.rb} +3 -3
  138. data/lib/lockally/models/{v1_suppressions_get200_response.rb → list_suppressions200_response.rb} +3 -3
  139. data/lib/lockally/models/{v1_send_batch_post200_response.rb → list_templates200_response.rb} +4 -4
  140. data/lib/lockally/models/{v1_vacation_get200_response.rb → list_vacation_responders200_response.rb} +3 -3
  141. data/lib/lockally/models/{v1_api_keys_get200_response.rb → list_webhooks200_response.rb} +4 -4
  142. data/lib/lockally/models/mailbox_grant.rb +156 -0
  143. data/lib/lockally/models/mailbox_grant_list.rb +166 -0
  144. data/lib/lockally/models/mark_read_result.rb +147 -0
  145. data/lib/lockally/models/policy_flags.rb +197 -0
  146. data/lib/lockally/models/{v1_send_post200_response.rb → send_email200_response.rb} +3 -3
  147. data/lib/lockally/models/{v1_send_post202_response.rb → send_email202_response.rb} +3 -3
  148. data/lib/lockally/models/{v1_templates_get200_response.rb → send_email_batch200_response.rb} +4 -4
  149. data/lib/lockally/models/{v1_send_batch_post_request.rb → send_email_batch_request.rb} +3 -3
  150. data/lib/lockally/models/{v1_send_post_request.rb → send_email_request.rb} +4 -4
  151. data/lib/lockally/models/{v1_send_post_request_attachments_inner.rb → send_email_request_attachments_inner.rb} +3 -3
  152. data/lib/lockally/models/send_message.rb +1 -1
  153. data/lib/lockally/models/{v1_mailboxes_email_vacation_put_request.rb → set_vacation_responder_request.rb} +3 -3
  154. data/lib/lockally/models/simulated_inbound.rb +165 -0
  155. data/lib/lockally/models/{v1_inboxes_mailbox_messages_post_request.rb → start_conversation_request.rb} +3 -3
  156. data/lib/lockally/models/thread.rb +219 -0
  157. data/lib/lockally/models/thread_classification.rb +183 -0
  158. data/lib/lockally/models/thread_list.rb +192 -0
  159. data/lib/lockally/models/thread_message.rb +394 -0
  160. data/lib/lockally/models/thread_message_body.rb +410 -0
  161. data/lib/lockally/models/thread_message_body_all_of_body.rb +165 -0
  162. data/lib/lockally/models/thread_summary.rb +280 -0
  163. data/lib/lockally/models/{v1_admins_id_patch_request.rb → update_admin_request.rb} +3 -3
  164. data/lib/lockally/models/{v1_mailboxes_email_patch_request.rb → update_mailbox_request.rb} +3 -3
  165. data/lib/lockally/models/{v1_webhooks_id_patch_request.rb → update_webhook_request.rb} +3 -3
  166. data/lib/lockally/models/whoami.rb +177 -0
  167. data/lib/lockally/version.rb +1 -1
  168. data/lib/lockally.rb +64 -35
  169. data/spec/api/admin_api_spec.rb +9 -9
  170. data/spec/api/admins_api_spec.rb +22 -22
  171. data/spec/api/agents_api_spec.rb +78 -78
  172. data/spec/api/ai_api_spec.rb +22 -22
  173. data/spec/api/aliases_api_spec.rb +16 -16
  174. data/spec/api/api_keys_api_spec.rb +17 -17
  175. data/spec/api/domains_api_spec.rb +42 -42
  176. data/spec/api/drafts_api_spec.rb +38 -38
  177. data/spec/api/health_api_spec.rb +3 -3
  178. data/spec/api/mailboxes_api_spec.rb +61 -61
  179. data/spec/api/send_api_spec.rb +35 -35
  180. data/spec/api/signup_api_spec.rb +1 -1
  181. data/spec/api/suppressions_api_spec.rb +18 -18
  182. data/spec/api/templates_api_spec.rb +17 -17
  183. data/spec/api/tenant_api_spec.rb +5 -5
  184. data/spec/api/test_api_spec.rb +3 -3
  185. data/spec/api/webhooks_api_spec.rb +19 -19
  186. data/spec/models/{v1_admin_login_post200_response_spec.rb → admin_login200_response_spec.rb} +6 -6
  187. data/spec/models/{v1_admin_login_post_request_spec.rb → admin_login_request_spec.rb} +6 -6
  188. data/spec/models/agent_send_result_spec.rb +48 -0
  189. data/spec/models/ai_config_spec.rb +64 -0
  190. data/spec/models/ai_config_update_spec.rb +46 -0
  191. data/spec/models/annotations_spec.rb +48 -0
  192. data/spec/models/attachment_spec.rb +60 -0
  193. data/spec/models/classification_spec.rb +58 -0
  194. data/spec/models/contact_lookup_contact_spec.rb +66 -0
  195. data/spec/models/contact_lookup_history_spec.rb +48 -0
  196. data/spec/models/contact_lookup_spec.rb +60 -0
  197. data/spec/models/create_ai_units_checkout200_response_spec.rb +48 -0
  198. data/spec/models/{v1_aliases_post_request_spec.rb → create_alias_request_spec.rb} +6 -6
  199. data/spec/models/{v1_api_keys_post201_response_spec.rb → create_api_key201_response_spec.rb} +6 -6
  200. data/spec/models/{v1_api_keys_post_request_spec.rb → create_api_key_request_spec.rb} +6 -6
  201. data/spec/models/{v1_domains_post_request_spec.rb → create_domain_request_spec.rb} +6 -6
  202. data/spec/models/{v1_mailboxes_post_request_spec.rb → create_mailbox_request_spec.rb} +6 -6
  203. data/spec/models/{v1_suppressions_post_request_spec.rb → create_suppression_request_spec.rb} +6 -6
  204. data/spec/models/{v1_webhooks_post_request_spec.rb → create_webhook_request_spec.rb} +6 -6
  205. data/spec/models/draft_list_spec.rb +36 -0
  206. data/spec/models/draft_result_spec.rb +64 -0
  207. data/spec/models/draft_spec.rb +118 -0
  208. data/spec/models/{v1_mailboxes_email_export_post201_response_spec.rb → export_mailbox201_response_spec.rb} +6 -6
  209. data/spec/models/{v1_admin_me_get200_response_spec.rb → get_current_admin200_response_spec.rb} +6 -6
  210. data/spec/models/{v1_usage_get200_response_spec.rb → get_usage200_response_spec.rb} +6 -6
  211. data/spec/models/{healthz_get200_response_spec.rb → health_check200_response_spec.rb} +6 -6
  212. data/spec/models/inbox_list_spec.rb +36 -0
  213. data/spec/models/inbox_spec.rb +54 -0
  214. data/spec/models/injection_risk_spec.rb +42 -0
  215. data/spec/models/{v1_admins_post_request_spec.rb → invite_admin_request_spec.rb} +6 -6
  216. data/spec/models/{v1_aliases_get200_response_spec.rb → list_admins200_response_spec.rb} +6 -6
  217. data/spec/models/{v1_admins_get200_response_spec.rb → list_aliases200_response_spec.rb} +6 -6
  218. data/spec/models/{v1_api_keys_get200_response_spec.rb → list_api_keys200_response_spec.rb} +6 -6
  219. data/spec/models/list_domains200_response_spec.rb +36 -0
  220. data/spec/models/{v1_mailboxes_get200_response_spec.rb → list_mailboxes200_response_spec.rb} +6 -6
  221. data/spec/models/{v1_messages_get200_response_spec.rb → list_messages200_response_spec.rb} +6 -6
  222. data/spec/models/{v1_suppressions_get200_response_spec.rb → list_suppressions200_response_spec.rb} +6 -6
  223. data/spec/models/{v1_vacation_get200_response_spec.rb → list_templates200_response_spec.rb} +6 -6
  224. data/spec/models/list_vacation_responders200_response_spec.rb +36 -0
  225. data/spec/models/{v1_domains_get200_response_spec.rb → list_webhooks200_response_spec.rb} +6 -6
  226. data/spec/models/mailbox_grant_list_spec.rb +36 -0
  227. data/spec/models/mailbox_grant_spec.rb +42 -0
  228. data/spec/models/mark_read_result_spec.rb +36 -0
  229. data/spec/models/policy_flags_spec.rb +66 -0
  230. data/spec/models/{v1_send_post200_response_spec.rb → send_email200_response_spec.rb} +6 -6
  231. data/spec/models/{v1_send_post202_response_spec.rb → send_email202_response_spec.rb} +6 -6
  232. data/spec/models/{v1_templates_get200_response_spec.rb → send_email_batch200_response_spec.rb} +6 -6
  233. data/spec/models/{v1_send_batch_post_request_spec.rb → send_email_batch_request_spec.rb} +6 -6
  234. data/spec/models/{v1_send_post_request_attachments_inner_spec.rb → send_email_request_attachments_inner_spec.rb} +6 -6
  235. data/spec/models/{v1_send_post_request_spec.rb → send_email_request_spec.rb} +6 -6
  236. data/spec/models/{v1_mailboxes_email_vacation_put_request_spec.rb → set_vacation_responder_request_spec.rb} +6 -6
  237. data/spec/models/simulated_inbound_spec.rb +48 -0
  238. data/spec/models/{v1_inboxes_mailbox_messages_post_request_spec.rb → start_conversation_request_spec.rb} +6 -6
  239. data/spec/models/thread_classification_spec.rb +48 -0
  240. data/spec/models/thread_list_spec.rb +42 -0
  241. data/spec/models/thread_message_body_all_of_body_spec.rb +48 -0
  242. data/spec/models/thread_message_body_spec.rb +112 -0
  243. data/spec/models/thread_message_spec.rb +106 -0
  244. data/spec/models/thread_spec.rb +48 -0
  245. data/spec/models/thread_summary_spec.rb +70 -0
  246. data/spec/models/{v1_admins_id_patch_request_spec.rb → update_admin_request_spec.rb} +6 -6
  247. data/spec/models/{v1_mailboxes_email_patch_request_spec.rb → update_mailbox_request_spec.rb} +6 -6
  248. data/spec/models/{v1_webhooks_id_patch_request_spec.rb → update_webhook_request_spec.rb} +6 -6
  249. data/spec/models/whoami_spec.rb +54 -0
  250. metadata +258 -142
  251. data/lib/lockally/models/v1_webhooks_get200_response.rb +0 -166
  252. data/spec/models/v1_send_batch_post200_response_spec.rb +0 -36
  253. data/spec/models/v1_webhooks_get200_response_spec.rb +0 -36
@@ -19,28 +19,37 @@ module Lockally
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Read the tenant's AI configuration
23
- # Mode (off/byok/units), model, masked key hint, AI-unit balance, whether the units tier is available on this deployment.
22
+ # LLM-classify a thread
23
+ # Returns {intent, urgency, summary, suggested_action} via the tenant's AI tier (BYOK or prepaid units — see /v1/ai-config). Cached per thread state: unchanged threads return the cache free; ?refresh=true forces a re-run. A failed model call charges nothing. 402 when the AI tier is off.
24
+ # @param thread_id [String]
24
25
  # @param [Hash] opts the optional parameters
25
- # @return [Object]
26
- def v1_ai_config_get(opts = {})
27
- data, _status_code, _headers = v1_ai_config_get_with_http_info(opts)
26
+ # @option opts [Boolean] :refresh
27
+ # @return [ThreadClassification]
28
+ def classify_thread(thread_id, opts = {})
29
+ data, _status_code, _headers = classify_thread_with_http_info(thread_id, opts)
28
30
  data
29
31
  end
30
32
 
31
- # Read the tenant's AI configuration
32
- # Mode (off/byok/units), model, masked key hint, AI-unit balance, whether the units tier is available on this deployment.
33
+ # LLM-classify a thread
34
+ # Returns {intent, urgency, summary, suggested_action} via the tenant's AI tier (BYOK or prepaid units — see /v1/ai-config). Cached per thread state: unchanged threads return the cache free; ?refresh=true forces a re-run. A failed model call charges nothing. 402 when the AI tier is off.
35
+ # @param thread_id [String]
33
36
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
- def v1_ai_config_get_with_http_info(opts = {})
37
+ # @option opts [Boolean] :refresh
38
+ # @return [Array<(ThreadClassification, Integer, Hash)>] ThreadClassification data, response status code and response headers
39
+ def classify_thread_with_http_info(thread_id, opts = {})
36
40
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: AiApi.v1_ai_config_get ...'
41
+ @api_client.config.logger.debug 'Calling API: AiApi.classify_thread ...'
42
+ end
43
+ # verify the required parameter 'thread_id' is set
44
+ if @api_client.config.client_side_validation && thread_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'thread_id' when calling AiApi.classify_thread"
38
46
  end
39
47
  # resource path
40
- local_var_path = '/v1/ai-config'
48
+ local_var_path = '/v1/threads/{threadID}/classify'.sub('{threadID}', CGI.escape(thread_id.to_s))
41
49
 
42
50
  # query parameters
43
51
  query_params = opts[:query_params] || {}
52
+ query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
44
53
 
45
54
  # header parameters
46
55
  header_params = opts[:header_params] || {}
@@ -54,13 +63,13 @@ module Lockally
54
63
  post_body = opts[:debug_body]
55
64
 
56
65
  # return_type
57
- return_type = opts[:debug_return_type] || 'Object'
66
+ return_type = opts[:debug_return_type] || 'ThreadClassification'
58
67
 
59
68
  # auth_names
60
69
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
61
70
 
62
71
  new_options = opts.merge(
63
- :operation => :"AiApi.v1_ai_config_get",
72
+ :operation => :"AiApi.classify_thread",
64
73
  :header_params => header_params,
65
74
  :query_params => query_params,
66
75
  :form_params => form_params,
@@ -69,32 +78,32 @@ module Lockally
69
78
  :return_type => return_type
70
79
  )
71
80
 
72
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
73
82
  if @api_client.config.debugging
74
- @api_client.config.logger.debug "API called: AiApi#v1_ai_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ @api_client.config.logger.debug "API called: AiApi#classify_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
84
  end
76
85
  return data, status_code, headers
77
86
  end
78
87
 
79
- # Configure the AI tier
80
- # Body: {\"mode\": \"off|byok|units\", \"model\": \"...\", \"anthropic_key\": \"sk-ant-...\"}. BYOK keys are stored AES-256-GCM encrypted; the cleartext is never returned. Omit anthropic_key to keep the stored one.
88
+ # Buy prepaid AI units
89
+ # Body: {\"bundle\": \"100|500|2000\"}. One classification = one unit; bundles expire after 6 months. Admin session required. 503 until Paystack billing is configured.
81
90
  # @param [Hash] opts the optional parameters
82
- # @return [Object]
83
- def v1_ai_config_put(opts = {})
84
- data, _status_code, _headers = v1_ai_config_put_with_http_info(opts)
91
+ # @return [CreateAiUnitsCheckout200Response]
92
+ def create_ai_units_checkout(opts = {})
93
+ data, _status_code, _headers = create_ai_units_checkout_with_http_info(opts)
85
94
  data
86
95
  end
87
96
 
88
- # Configure the AI tier
89
- # Body: {\&quot;mode\&quot;: \&quot;off|byok|units\&quot;, \&quot;model\&quot;: \&quot;...\&quot;, \&quot;anthropic_key\&quot;: \&quot;sk-ant-...\&quot;}. BYOK keys are stored AES-256-GCM encrypted; the cleartext is never returned. Omit anthropic_key to keep the stored one.
97
+ # Buy prepaid AI units
98
+ # Body: {\&quot;bundle\&quot;: \&quot;100|500|2000\&quot;}. One classification &#x3D; one unit; bundles expire after 6 months. Admin session required. 503 until Paystack billing is configured.
90
99
  # @param [Hash] opts the optional parameters
91
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
92
- def v1_ai_config_put_with_http_info(opts = {})
100
+ # @return [Array<(CreateAiUnitsCheckout200Response, Integer, Hash)>] CreateAiUnitsCheckout200Response data, response status code and response headers
101
+ def create_ai_units_checkout_with_http_info(opts = {})
93
102
  if @api_client.config.debugging
94
- @api_client.config.logger.debug 'Calling API: AiApi.v1_ai_config_put ...'
103
+ @api_client.config.logger.debug 'Calling API: AiApi.create_ai_units_checkout ...'
95
104
  end
96
105
  # resource path
97
- local_var_path = '/v1/ai-config'
106
+ local_var_path = '/v1/billing/ai-units/checkout'
98
107
 
99
108
  # query parameters
100
109
  query_params = opts[:query_params] || {}
@@ -111,13 +120,13 @@ module Lockally
111
120
  post_body = opts[:debug_body]
112
121
 
113
122
  # return_type
114
- return_type = opts[:debug_return_type] || 'Object'
123
+ return_type = opts[:debug_return_type] || 'CreateAiUnitsCheckout200Response'
115
124
 
116
125
  # auth_names
117
126
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
118
127
 
119
128
  new_options = opts.merge(
120
- :operation => :"AiApi.v1_ai_config_put",
129
+ :operation => :"AiApi.create_ai_units_checkout",
121
130
  :header_params => header_params,
122
131
  :query_params => query_params,
123
132
  :form_params => form_params,
@@ -126,32 +135,32 @@ module Lockally
126
135
  :return_type => return_type
127
136
  )
128
137
 
129
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
138
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
130
139
  if @api_client.config.debugging
131
- @api_client.config.logger.debug "API called: AiApi#v1_ai_config_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ @api_client.config.logger.debug "API called: AiApi#create_ai_units_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
141
  end
133
142
  return data, status_code, headers
134
143
  end
135
144
 
136
- # Buy prepaid AI units
137
- # Body: {\"bundle\": \"100|500|2000\"}. One classification = one unit; bundles expire after 6 months. Admin session required. 503 until Paystack billing is configured.
145
+ # Read the tenant's AI configuration
146
+ # Mode (off/byok/units), model, masked key hint, AI-unit balance, whether the units tier is available on this deployment.
138
147
  # @param [Hash] opts the optional parameters
139
- # @return [Object]
140
- def v1_billing_ai_units_checkout_post(opts = {})
141
- data, _status_code, _headers = v1_billing_ai_units_checkout_post_with_http_info(opts)
148
+ # @return [AiConfig]
149
+ def get_ai_config(opts = {})
150
+ data, _status_code, _headers = get_ai_config_with_http_info(opts)
142
151
  data
143
152
  end
144
153
 
145
- # Buy prepaid AI units
146
- # Body: {\&quot;bundle\&quot;: \&quot;100|500|2000\&quot;}. One classification &#x3D; one unit; bundles expire after 6 months. Admin session required. 503 until Paystack billing is configured.
154
+ # Read the tenant&#39;s AI configuration
155
+ # Mode (off/byok/units), model, masked key hint, AI-unit balance, whether the units tier is available on this deployment.
147
156
  # @param [Hash] opts the optional parameters
148
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
149
- def v1_billing_ai_units_checkout_post_with_http_info(opts = {})
157
+ # @return [Array<(AiConfig, Integer, Hash)>] AiConfig data, response status code and response headers
158
+ def get_ai_config_with_http_info(opts = {})
150
159
  if @api_client.config.debugging
151
- @api_client.config.logger.debug 'Calling API: AiApi.v1_billing_ai_units_checkout_post ...'
160
+ @api_client.config.logger.debug 'Calling API: AiApi.get_ai_config ...'
152
161
  end
153
162
  # resource path
154
- local_var_path = '/v1/billing/ai-units/checkout'
163
+ local_var_path = '/v1/ai-config'
155
164
 
156
165
  # query parameters
157
166
  query_params = opts[:query_params] || {}
@@ -168,13 +177,13 @@ module Lockally
168
177
  post_body = opts[:debug_body]
169
178
 
170
179
  # return_type
171
- return_type = opts[:debug_return_type] || 'Object'
180
+ return_type = opts[:debug_return_type] || 'AiConfig'
172
181
 
173
182
  # auth_names
174
183
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
175
184
 
176
185
  new_options = opts.merge(
177
- :operation => :"AiApi.v1_billing_ai_units_checkout_post",
186
+ :operation => :"AiApi.get_ai_config",
178
187
  :header_params => header_params,
179
188
  :query_params => query_params,
180
189
  :form_params => form_params,
@@ -183,44 +192,35 @@ module Lockally
183
192
  :return_type => return_type
184
193
  )
185
194
 
186
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
195
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
196
  if @api_client.config.debugging
188
- @api_client.config.logger.debug "API called: AiApi#v1_billing_ai_units_checkout_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ @api_client.config.logger.debug "API called: AiApi#get_ai_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
198
  end
190
199
  return data, status_code, headers
191
200
  end
192
201
 
193
- # LLM-classify a thread
194
- # Returns {intent, urgency, summary, suggested_action} via the tenant's AI tier (BYOK or prepaid units — see /v1/ai-config). Cached per thread state: unchanged threads return the cache free; ?refresh=true forces a re-run. A failed model call charges nothing. 402 when the AI tier is off.
195
- # @param thread_id [String]
202
+ # Configure the AI tier
203
+ # Body: {\"mode\": \"off|byok|units\", \"model\": \"...\", \"anthropic_key\": \"sk-ant-...\"}. BYOK keys are stored AES-256-GCM encrypted; the cleartext is never returned. Omit anthropic_key to keep the stored one.
196
204
  # @param [Hash] opts the optional parameters
197
- # @option opts [Boolean] :refresh
198
- # @return [Object]
199
- def v1_threads_thread_id_classify_post(thread_id, opts = {})
200
- data, _status_code, _headers = v1_threads_thread_id_classify_post_with_http_info(thread_id, opts)
205
+ # @return [AiConfigUpdate]
206
+ def update_ai_config(opts = {})
207
+ data, _status_code, _headers = update_ai_config_with_http_info(opts)
201
208
  data
202
209
  end
203
210
 
204
- # LLM-classify a thread
205
- # Returns {intent, urgency, summary, suggested_action} via the tenant&#39;s AI tier (BYOK or prepaid units — see /v1/ai-config). Cached per thread state: unchanged threads return the cache free; ?refresh&#x3D;true forces a re-run. A failed model call charges nothing. 402 when the AI tier is off.
206
- # @param thread_id [String]
211
+ # Configure the AI tier
212
+ # Body: {\&quot;mode\&quot;: \&quot;off|byok|units\&quot;, \&quot;model\&quot;: \&quot;...\&quot;, \&quot;anthropic_key\&quot;: \&quot;sk-ant-...\&quot;}. BYOK keys are stored AES-256-GCM encrypted; the cleartext is never returned. Omit anthropic_key to keep the stored one.
207
213
  # @param [Hash] opts the optional parameters
208
- # @option opts [Boolean] :refresh
209
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
210
- def v1_threads_thread_id_classify_post_with_http_info(thread_id, opts = {})
214
+ # @return [Array<(AiConfigUpdate, Integer, Hash)>] AiConfigUpdate data, response status code and response headers
215
+ def update_ai_config_with_http_info(opts = {})
211
216
  if @api_client.config.debugging
212
- @api_client.config.logger.debug 'Calling API: AiApi.v1_threads_thread_id_classify_post ...'
213
- end
214
- # verify the required parameter 'thread_id' is set
215
- if @api_client.config.client_side_validation && thread_id.nil?
216
- fail ArgumentError, "Missing the required parameter 'thread_id' when calling AiApi.v1_threads_thread_id_classify_post"
217
+ @api_client.config.logger.debug 'Calling API: AiApi.update_ai_config ...'
217
218
  end
218
219
  # resource path
219
- local_var_path = '/v1/threads/{threadID}/classify'.sub('{threadID}', CGI.escape(thread_id.to_s))
220
+ local_var_path = '/v1/ai-config'
220
221
 
221
222
  # query parameters
222
223
  query_params = opts[:query_params] || {}
223
- query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
224
224
 
225
225
  # header parameters
226
226
  header_params = opts[:header_params] || {}
@@ -234,13 +234,13 @@ module Lockally
234
234
  post_body = opts[:debug_body]
235
235
 
236
236
  # return_type
237
- return_type = opts[:debug_return_type] || 'Object'
237
+ return_type = opts[:debug_return_type] || 'AiConfigUpdate'
238
238
 
239
239
  # auth_names
240
240
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
241
241
 
242
242
  new_options = opts.merge(
243
- :operation => :"AiApi.v1_threads_thread_id_classify_post",
243
+ :operation => :"AiApi.update_ai_config",
244
244
  :header_params => header_params,
245
245
  :query_params => query_params,
246
246
  :form_params => form_params,
@@ -249,9 +249,9 @@ module Lockally
249
249
  :return_type => return_type
250
250
  )
251
251
 
252
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
252
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
253
253
  if @api_client.config.debugging
254
- @api_client.config.logger.debug "API called: AiApi#v1_threads_thread_id_classify_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
254
+ @api_client.config.logger.debug "API called: AiApi#update_ai_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
255
255
  end
256
256
  return data, status_code, headers
257
257
  end
@@ -19,31 +19,31 @@ module Lockally
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete an alias
23
- # Hard-delete (no soft-delete window — aliases are cheap to recreate).
24
- # @param address [String]
22
+ # Create an alias
23
+ # Creates an email alias. `alias_address` must be on a verified tenant-owned domain and must not be the address of an existing mailbox (live, suspended or deleted). `alias_target` must be an active mailbox in the same workspace; forwarding to an address Lockally does not host is not supported. The alias delivers as soon as the call returns.
24
+ # @param create_alias_request [CreateAliasRequest]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def v1_aliases_address_delete(address, opts = {})
28
- v1_aliases_address_delete_with_http_info(address, opts)
29
- nil
26
+ # @return [ModelAlias]
27
+ def create_alias(create_alias_request, opts = {})
28
+ data, _status_code, _headers = create_alias_with_http_info(create_alias_request, opts)
29
+ data
30
30
  end
31
31
 
32
- # Delete an alias
33
- # Hard-delete (no soft-delete window — aliases are cheap to recreate).
34
- # @param address [String]
32
+ # Create an alias
33
+ # Creates an email alias. &#x60;alias_address&#x60; must be on a verified tenant-owned domain and must not be the address of an existing mailbox (live, suspended or deleted). &#x60;alias_target&#x60; must be an active mailbox in the same workspace; forwarding to an address Lockally does not host is not supported. The alias delivers as soon as the call returns.
34
+ # @param create_alias_request [CreateAliasRequest]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
- def v1_aliases_address_delete_with_http_info(address, opts = {})
36
+ # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
37
+ def create_alias_with_http_info(create_alias_request, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: AliasesApi.v1_aliases_address_delete ...'
39
+ @api_client.config.logger.debug 'Calling API: AliasesApi.create_alias ...'
40
40
  end
41
- # verify the required parameter 'address' is set
42
- if @api_client.config.client_side_validation && address.nil?
43
- fail ArgumentError, "Missing the required parameter 'address' when calling AliasesApi.v1_aliases_address_delete"
41
+ # verify the required parameter 'create_alias_request' is set
42
+ if @api_client.config.client_side_validation && create_alias_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'create_alias_request' when calling AliasesApi.create_alias"
44
44
  end
45
45
  # resource path
46
- local_var_path = '/v1/aliases/{address}'.sub('{address}', CGI.escape(address.to_s))
46
+ local_var_path = '/v1/aliases'
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}
@@ -51,22 +51,27 @@ module Lockally
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/problem+json']) unless header_params['Accept']
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
55
60
 
56
61
  # form parameters
57
62
  form_params = opts[:form_params] || {}
58
63
 
59
64
  # http body (model)
60
- post_body = opts[:debug_body]
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_alias_request)
61
66
 
62
67
  # return_type
63
- return_type = opts[:debug_return_type]
68
+ return_type = opts[:debug_return_type] || 'ModelAlias'
64
69
 
65
70
  # auth_names
66
71
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
72
 
68
73
  new_options = opts.merge(
69
- :operation => :"AliasesApi.v1_aliases_address_delete",
74
+ :operation => :"AliasesApi.create_alias",
70
75
  :header_params => header_params,
71
76
  :query_params => query_params,
72
77
  :form_params => form_params,
@@ -75,30 +80,38 @@ module Lockally
75
80
  :return_type => return_type
76
81
  )
77
82
 
78
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
79
84
  if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: AliasesApi#v1_aliases_address_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ @api_client.config.logger.debug "API called: AliasesApi#create_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
86
  end
82
87
  return data, status_code, headers
83
88
  end
84
89
 
85
- # List aliases
90
+ # Delete an alias
91
+ # Hard-delete (no soft-delete window — aliases are cheap to recreate).
92
+ # @param address [String]
86
93
  # @param [Hash] opts the optional parameters
87
- # @return [V1AliasesGet200Response]
88
- def v1_aliases_get(opts = {})
89
- data, _status_code, _headers = v1_aliases_get_with_http_info(opts)
90
- data
94
+ # @return [nil]
95
+ def delete_alias(address, opts = {})
96
+ delete_alias_with_http_info(address, opts)
97
+ nil
91
98
  end
92
99
 
93
- # List aliases
100
+ # Delete an alias
101
+ # Hard-delete (no soft-delete window — aliases are cheap to recreate).
102
+ # @param address [String]
94
103
  # @param [Hash] opts the optional parameters
95
- # @return [Array<(V1AliasesGet200Response, Integer, Hash)>] V1AliasesGet200Response data, response status code and response headers
96
- def v1_aliases_get_with_http_info(opts = {})
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def delete_alias_with_http_info(address, opts = {})
97
106
  if @api_client.config.debugging
98
- @api_client.config.logger.debug 'Calling API: AliasesApi.v1_aliases_get ...'
107
+ @api_client.config.logger.debug 'Calling API: AliasesApi.delete_alias ...'
108
+ end
109
+ # verify the required parameter 'address' is set
110
+ if @api_client.config.client_side_validation && address.nil?
111
+ fail ArgumentError, "Missing the required parameter 'address' when calling AliasesApi.delete_alias"
99
112
  end
100
113
  # resource path
101
- local_var_path = '/v1/aliases'
114
+ local_var_path = '/v1/aliases/{address}'.sub('{address}', CGI.escape(address.to_s))
102
115
 
103
116
  # query parameters
104
117
  query_params = opts[:query_params] || {}
@@ -106,7 +119,7 @@ module Lockally
106
119
  # header parameters
107
120
  header_params = opts[:header_params] || {}
108
121
  # HTTP header 'Accept' (if needed)
109
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/problem+json']) unless header_params['Accept']
110
123
 
111
124
  # form parameters
112
125
  form_params = opts[:form_params] || {}
@@ -115,13 +128,13 @@ module Lockally
115
128
  post_body = opts[:debug_body]
116
129
 
117
130
  # return_type
118
- return_type = opts[:debug_return_type] || 'V1AliasesGet200Response'
131
+ return_type = opts[:debug_return_type]
119
132
 
120
133
  # auth_names
121
134
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
122
135
 
123
136
  new_options = opts.merge(
124
- :operation => :"AliasesApi.v1_aliases_get",
137
+ :operation => :"AliasesApi.delete_alias",
125
138
  :header_params => header_params,
126
139
  :query_params => query_params,
127
140
  :form_params => form_params,
@@ -130,35 +143,27 @@ module Lockally
130
143
  :return_type => return_type
131
144
  )
132
145
 
133
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
134
147
  if @api_client.config.debugging
135
- @api_client.config.logger.debug "API called: AliasesApi#v1_aliases_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ @api_client.config.logger.debug "API called: AliasesApi#delete_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
149
  end
137
150
  return data, status_code, headers
138
151
  end
139
152
 
140
- # Create an alias
141
- # Creates an email alias. `alias_address` must be on a verified tenant-owned domain and must not be the address of an existing mailbox (live, suspended or deleted). `alias_target` must be an active mailbox in the same workspace; forwarding to an address Lockally does not host is not supported. The alias delivers as soon as the call returns.
142
- # @param v1_aliases_post_request [V1AliasesPostRequest]
153
+ # List aliases
143
154
  # @param [Hash] opts the optional parameters
144
- # @return [ModelAlias]
145
- def v1_aliases_post(v1_aliases_post_request, opts = {})
146
- data, _status_code, _headers = v1_aliases_post_with_http_info(v1_aliases_post_request, opts)
155
+ # @return [ListAliases200Response]
156
+ def list_aliases(opts = {})
157
+ data, _status_code, _headers = list_aliases_with_http_info(opts)
147
158
  data
148
159
  end
149
160
 
150
- # Create an alias
151
- # Creates an email alias. &#x60;alias_address&#x60; must be on a verified tenant-owned domain and must not be the address of an existing mailbox (live, suspended or deleted). &#x60;alias_target&#x60; must be an active mailbox in the same workspace; forwarding to an address Lockally does not host is not supported. The alias delivers as soon as the call returns.
152
- # @param v1_aliases_post_request [V1AliasesPostRequest]
161
+ # List aliases
153
162
  # @param [Hash] opts the optional parameters
154
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
155
- def v1_aliases_post_with_http_info(v1_aliases_post_request, opts = {})
163
+ # @return [Array<(ListAliases200Response, Integer, Hash)>] ListAliases200Response data, response status code and response headers
164
+ def list_aliases_with_http_info(opts = {})
156
165
  if @api_client.config.debugging
157
- @api_client.config.logger.debug 'Calling API: AliasesApi.v1_aliases_post ...'
158
- end
159
- # verify the required parameter 'v1_aliases_post_request' is set
160
- if @api_client.config.client_side_validation && v1_aliases_post_request.nil?
161
- fail ArgumentError, "Missing the required parameter 'v1_aliases_post_request' when calling AliasesApi.v1_aliases_post"
166
+ @api_client.config.logger.debug 'Calling API: AliasesApi.list_aliases ...'
162
167
  end
163
168
  # resource path
164
169
  local_var_path = '/v1/aliases'
@@ -170,26 +175,21 @@ module Lockally
170
175
  header_params = opts[:header_params] || {}
171
176
  # HTTP header 'Accept' (if needed)
172
177
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
173
- # HTTP header 'Content-Type'
174
- content_type = @api_client.select_header_content_type(['application/json'])
175
- if !content_type.nil?
176
- header_params['Content-Type'] = content_type
177
- end
178
178
 
179
179
  # form parameters
180
180
  form_params = opts[:form_params] || {}
181
181
 
182
182
  # http body (model)
183
- post_body = opts[:debug_body] || @api_client.object_to_http_body(v1_aliases_post_request)
183
+ post_body = opts[:debug_body]
184
184
 
185
185
  # return_type
186
- return_type = opts[:debug_return_type] || 'ModelAlias'
186
+ return_type = opts[:debug_return_type] || 'ListAliases200Response'
187
187
 
188
188
  # auth_names
189
189
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
190
190
 
191
191
  new_options = opts.merge(
192
- :operation => :"AliasesApi.v1_aliases_post",
192
+ :operation => :"AliasesApi.list_aliases",
193
193
  :header_params => header_params,
194
194
  :query_params => query_params,
195
195
  :form_params => form_params,
@@ -198,9 +198,9 @@ module Lockally
198
198
  :return_type => return_type
199
199
  )
200
200
 
201
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
202
  if @api_client.config.debugging
203
- @api_client.config.logger.debug "API called: AliasesApi#v1_aliases_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ @api_client.config.logger.debug "API called: AliasesApi#list_aliases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
204
  end
205
205
  return data, status_code, headers
206
206
  end