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.
- checksums.yaml +4 -4
- data/README.md +148 -119
- data/docs/AdminApi.md +33 -33
- data/docs/{V1AdminLoginPost200Response.md → AdminLogin200Response.md} +2 -2
- data/docs/{V1AdminLoginPostRequest.md → AdminLoginRequest.md} +2 -2
- data/docs/AdminsApi.md +76 -76
- data/docs/AgentSendResult.md +22 -0
- data/docs/AgentsApi.md +247 -247
- data/docs/AiApi.md +69 -69
- data/docs/AiConfig.md +26 -0
- data/docs/AiConfigUpdate.md +20 -0
- data/docs/AliasesApi.md +59 -59
- data/docs/Annotations.md +22 -0
- data/docs/ApiKeysApi.md +59 -59
- data/docs/Attachment.md +26 -0
- data/docs/Classification.md +24 -0
- data/docs/ContactLookup.md +26 -0
- data/docs/ContactLookupContact.md +28 -0
- data/docs/ContactLookupHistory.md +22 -0
- data/docs/CreateAiUnitsCheckout200Response.md +22 -0
- data/docs/{V1AliasesPostRequest.md → CreateAliasRequest.md} +2 -2
- data/docs/{V1ApiKeysPost201Response.md → CreateApiKey201Response.md} +2 -2
- data/docs/{V1ApiKeysPostRequest.md → CreateApiKeyRequest.md} +2 -2
- data/docs/{V1DomainsPostRequest.md → CreateDomainRequest.md} +2 -2
- data/docs/{V1MailboxesPostRequest.md → CreateMailboxRequest.md} +2 -2
- data/docs/{V1SuppressionsPostRequest.md → CreateSuppressionRequest.md} +2 -2
- data/docs/{V1WebhooksPostRequest.md → CreateWebhookRequest.md} +2 -2
- data/docs/DomainsApi.md +141 -141
- data/docs/Draft.md +44 -0
- data/docs/DraftList.md +18 -0
- data/docs/DraftResult.md +26 -0
- data/docs/DraftsApi.md +115 -115
- data/docs/{V1MailboxesEmailExportPost201Response.md → ExportMailbox201Response.md} +2 -2
- data/docs/{V1AdminMeGet200Response.md → GetCurrentAdmin200Response.md} +2 -2
- data/docs/{V1UsageGet200Response.md → GetUsage200Response.md} +2 -2
- data/docs/HealthApi.md +11 -11
- data/docs/{HealthzGet200Response.md → HealthCheck200Response.md} +2 -2
- data/docs/Inbox.md +24 -0
- data/docs/InboxList.md +18 -0
- data/docs/InjectionRisk.md +20 -0
- data/docs/{V1AdminsPostRequest.md → InviteAdminRequest.md} +2 -2
- data/docs/{V1AdminsGet200Response.md → ListAdmins200Response.md} +2 -2
- data/docs/{V1AliasesGet200Response.md → ListAliases200Response.md} +2 -2
- data/docs/{V1ApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/{V1DomainsGet200Response.md → ListDomains200Response.md} +2 -2
- data/docs/{V1MailboxesGet200Response.md → ListMailboxes200Response.md} +2 -2
- data/docs/{V1MessagesGet200Response.md → ListMessages200Response.md} +2 -2
- data/docs/{V1SuppressionsGet200Response.md → ListSuppressions200Response.md} +2 -2
- data/docs/{V1TemplatesGet200Response.md → ListTemplates200Response.md} +2 -2
- data/docs/{V1VacationGet200Response.md → ListVacationResponders200Response.md} +2 -2
- data/docs/{V1WebhooksGet200Response.md → ListWebhooks200Response.md} +2 -2
- data/docs/MailboxGrant.md +20 -0
- data/docs/MailboxGrantList.md +18 -0
- data/docs/MailboxesApi.md +203 -203
- data/docs/MarkReadResult.md +18 -0
- data/docs/PolicyFlags.md +28 -0
- data/docs/SendApi.md +121 -121
- data/docs/{V1SendPost200Response.md → SendEmail200Response.md} +2 -2
- data/docs/{V1SendPost202Response.md → SendEmail202Response.md} +2 -2
- data/docs/{V1SendBatchPost200Response.md → SendEmailBatch200Response.md} +2 -2
- data/docs/{V1SendBatchPostRequest.md → SendEmailBatchRequest.md} +2 -2
- data/docs/{V1SendPostRequest.md → SendEmailRequest.md} +3 -3
- data/docs/{V1SendPostRequestAttachmentsInner.md → SendEmailRequestAttachmentsInner.md} +2 -2
- data/docs/SendMessage.md +1 -1
- data/docs/{V1MailboxesEmailVacationPutRequest.md → SetVacationResponderRequest.md} +2 -2
- data/docs/SignupApi.md +4 -4
- data/docs/SimulatedInbound.md +22 -0
- data/docs/{V1InboxesMailboxMessagesPostRequest.md → StartConversationRequest.md} +2 -2
- data/docs/SuppressionsApi.md +75 -75
- data/docs/TemplatesApi.md +67 -67
- data/docs/TenantApi.md +20 -20
- data/docs/TestApi.md +11 -11
- data/docs/Thread.md +22 -0
- data/docs/ThreadClassification.md +22 -0
- data/docs/ThreadList.md +20 -0
- data/docs/ThreadMessage.md +40 -0
- data/docs/ThreadMessageBody.md +42 -0
- data/docs/ThreadMessageBodyAllOfBody.md +22 -0
- data/docs/ThreadSummary.md +28 -0
- data/docs/{V1AdminsIdPatchRequest.md → UpdateAdminRequest.md} +2 -2
- data/docs/{V1MailboxesEmailPatchRequest.md → UpdateMailboxRequest.md} +2 -2
- data/docs/{V1WebhooksIdPatchRequest.md → UpdateWebhookRequest.md} +2 -2
- data/docs/WebhooksApi.md +63 -63
- data/docs/Whoami.md +24 -0
- data/lib/lockally/api/admin_api.rb +30 -30
- data/lib/lockally/api/admins_api.rb +89 -89
- data/lib/lockally/api/agents_api.rb +309 -309
- data/lib/lockally/api/ai_api.rb +69 -69
- data/lib/lockally/api/aliases_api.rb +64 -64
- data/lib/lockally/api/api_keys_api.rb +66 -66
- data/lib/lockally/api/domains_api.rb +147 -147
- data/lib/lockally/api/drafts_api.rb +140 -140
- data/lib/lockally/api/health_api.rb +9 -9
- data/lib/lockally/api/mailboxes_api.rb +233 -233
- data/lib/lockally/api/send_api.rb +146 -146
- data/lib/lockally/api/signup_api.rb +3 -3
- data/lib/lockally/api/suppressions_api.rb +87 -87
- data/lib/lockally/api/templates_api.rb +69 -69
- data/lib/lockally/api/tenant_api.rb +15 -15
- data/lib/lockally/api/test_api.rb +9 -9
- data/lib/lockally/api/webhooks_api.rb +73 -73
- data/lib/lockally/models/{v1_admin_login_post200_response.rb → admin_login200_response.rb} +3 -3
- data/lib/lockally/models/{v1_admin_login_post_request.rb → admin_login_request.rb} +3 -3
- data/lib/lockally/models/agent_send_result.rb +184 -0
- data/lib/lockally/models/ai_config.rb +242 -0
- data/lib/lockally/models/ai_config_update.rb +214 -0
- data/lib/lockally/models/annotations.rb +168 -0
- data/lib/lockally/models/attachment.rb +185 -0
- data/lib/lockally/models/classification.rb +211 -0
- data/lib/lockally/models/contact_lookup.rb +235 -0
- data/lib/lockally/models/contact_lookup_contact.rb +192 -0
- data/lib/lockally/models/contact_lookup_history.rb +166 -0
- data/lib/lockally/models/create_ai_units_checkout200_response.rb +199 -0
- data/lib/lockally/models/{v1_aliases_post_request.rb → create_alias_request.rb} +3 -3
- data/lib/lockally/models/{v1_api_keys_post201_response.rb → create_api_key201_response.rb} +3 -3
- data/lib/lockally/models/{v1_api_keys_post_request.rb → create_api_key_request.rb} +3 -3
- data/lib/lockally/models/{v1_domains_post_request.rb → create_domain_request.rb} +3 -3
- data/lib/lockally/models/{v1_mailboxes_post_request.rb → create_mailbox_request.rb} +3 -3
- data/lib/lockally/models/{v1_suppressions_post_request.rb → create_suppression_request.rb} +3 -3
- data/lib/lockally/models/{v1_webhooks_post_request.rb → create_webhook_request.rb} +3 -3
- data/lib/lockally/models/draft.rb +411 -0
- data/lib/lockally/models/draft_list.rb +166 -0
- data/lib/lockally/models/draft_result.rb +258 -0
- data/lib/lockally/models/{v1_mailboxes_email_export_post201_response.rb → export_mailbox201_response.rb} +3 -3
- data/lib/lockally/models/{v1_admin_me_get200_response.rb → get_current_admin200_response.rb} +3 -3
- data/lib/lockally/models/{v1_usage_get200_response.rb → get_usage200_response.rb} +3 -3
- data/lib/lockally/models/{healthz_get200_response.rb → health_check200_response.rb} +3 -3
- data/lib/lockally/models/inbox.rb +225 -0
- data/lib/lockally/models/inbox_list.rb +166 -0
- data/lib/lockally/models/injection_risk.rb +159 -0
- data/lib/lockally/models/{v1_admins_post_request.rb → invite_admin_request.rb} +3 -3
- data/lib/lockally/models/list_admins200_response.rb +166 -0
- data/lib/lockally/models/{v1_aliases_get200_response.rb → list_aliases200_response.rb} +3 -3
- data/lib/lockally/models/{v1_admins_get200_response.rb → list_api_keys200_response.rb} +4 -4
- data/lib/lockally/models/{v1_domains_get200_response.rb → list_domains200_response.rb} +3 -3
- data/lib/lockally/models/{v1_mailboxes_get200_response.rb → list_mailboxes200_response.rb} +3 -3
- data/lib/lockally/models/{v1_messages_get200_response.rb → list_messages200_response.rb} +3 -3
- data/lib/lockally/models/{v1_suppressions_get200_response.rb → list_suppressions200_response.rb} +3 -3
- data/lib/lockally/models/{v1_send_batch_post200_response.rb → list_templates200_response.rb} +4 -4
- data/lib/lockally/models/{v1_vacation_get200_response.rb → list_vacation_responders200_response.rb} +3 -3
- data/lib/lockally/models/{v1_api_keys_get200_response.rb → list_webhooks200_response.rb} +4 -4
- data/lib/lockally/models/mailbox_grant.rb +156 -0
- data/lib/lockally/models/mailbox_grant_list.rb +166 -0
- data/lib/lockally/models/mark_read_result.rb +147 -0
- data/lib/lockally/models/policy_flags.rb +197 -0
- data/lib/lockally/models/{v1_send_post200_response.rb → send_email200_response.rb} +3 -3
- data/lib/lockally/models/{v1_send_post202_response.rb → send_email202_response.rb} +3 -3
- data/lib/lockally/models/{v1_templates_get200_response.rb → send_email_batch200_response.rb} +4 -4
- data/lib/lockally/models/{v1_send_batch_post_request.rb → send_email_batch_request.rb} +3 -3
- data/lib/lockally/models/{v1_send_post_request.rb → send_email_request.rb} +4 -4
- data/lib/lockally/models/{v1_send_post_request_attachments_inner.rb → send_email_request_attachments_inner.rb} +3 -3
- data/lib/lockally/models/send_message.rb +1 -1
- data/lib/lockally/models/{v1_mailboxes_email_vacation_put_request.rb → set_vacation_responder_request.rb} +3 -3
- data/lib/lockally/models/simulated_inbound.rb +165 -0
- data/lib/lockally/models/{v1_inboxes_mailbox_messages_post_request.rb → start_conversation_request.rb} +3 -3
- data/lib/lockally/models/thread.rb +219 -0
- data/lib/lockally/models/thread_classification.rb +183 -0
- data/lib/lockally/models/thread_list.rb +192 -0
- data/lib/lockally/models/thread_message.rb +394 -0
- data/lib/lockally/models/thread_message_body.rb +410 -0
- data/lib/lockally/models/thread_message_body_all_of_body.rb +165 -0
- data/lib/lockally/models/thread_summary.rb +280 -0
- data/lib/lockally/models/{v1_admins_id_patch_request.rb → update_admin_request.rb} +3 -3
- data/lib/lockally/models/{v1_mailboxes_email_patch_request.rb → update_mailbox_request.rb} +3 -3
- data/lib/lockally/models/{v1_webhooks_id_patch_request.rb → update_webhook_request.rb} +3 -3
- data/lib/lockally/models/whoami.rb +177 -0
- data/lib/lockally/version.rb +1 -1
- data/lib/lockally.rb +64 -35
- data/spec/api/admin_api_spec.rb +9 -9
- data/spec/api/admins_api_spec.rb +22 -22
- data/spec/api/agents_api_spec.rb +78 -78
- data/spec/api/ai_api_spec.rb +22 -22
- data/spec/api/aliases_api_spec.rb +16 -16
- data/spec/api/api_keys_api_spec.rb +17 -17
- data/spec/api/domains_api_spec.rb +42 -42
- data/spec/api/drafts_api_spec.rb +38 -38
- data/spec/api/health_api_spec.rb +3 -3
- data/spec/api/mailboxes_api_spec.rb +61 -61
- data/spec/api/send_api_spec.rb +35 -35
- data/spec/api/signup_api_spec.rb +1 -1
- data/spec/api/suppressions_api_spec.rb +18 -18
- data/spec/api/templates_api_spec.rb +17 -17
- data/spec/api/tenant_api_spec.rb +5 -5
- data/spec/api/test_api_spec.rb +3 -3
- data/spec/api/webhooks_api_spec.rb +19 -19
- data/spec/models/{v1_admin_login_post200_response_spec.rb → admin_login200_response_spec.rb} +6 -6
- data/spec/models/{v1_admin_login_post_request_spec.rb → admin_login_request_spec.rb} +6 -6
- data/spec/models/agent_send_result_spec.rb +48 -0
- data/spec/models/ai_config_spec.rb +64 -0
- data/spec/models/ai_config_update_spec.rb +46 -0
- data/spec/models/annotations_spec.rb +48 -0
- data/spec/models/attachment_spec.rb +60 -0
- data/spec/models/classification_spec.rb +58 -0
- data/spec/models/contact_lookup_contact_spec.rb +66 -0
- data/spec/models/contact_lookup_history_spec.rb +48 -0
- data/spec/models/contact_lookup_spec.rb +60 -0
- data/spec/models/create_ai_units_checkout200_response_spec.rb +48 -0
- data/spec/models/{v1_aliases_post_request_spec.rb → create_alias_request_spec.rb} +6 -6
- data/spec/models/{v1_api_keys_post201_response_spec.rb → create_api_key201_response_spec.rb} +6 -6
- data/spec/models/{v1_api_keys_post_request_spec.rb → create_api_key_request_spec.rb} +6 -6
- data/spec/models/{v1_domains_post_request_spec.rb → create_domain_request_spec.rb} +6 -6
- data/spec/models/{v1_mailboxes_post_request_spec.rb → create_mailbox_request_spec.rb} +6 -6
- data/spec/models/{v1_suppressions_post_request_spec.rb → create_suppression_request_spec.rb} +6 -6
- data/spec/models/{v1_webhooks_post_request_spec.rb → create_webhook_request_spec.rb} +6 -6
- data/spec/models/draft_list_spec.rb +36 -0
- data/spec/models/draft_result_spec.rb +64 -0
- data/spec/models/draft_spec.rb +118 -0
- data/spec/models/{v1_mailboxes_email_export_post201_response_spec.rb → export_mailbox201_response_spec.rb} +6 -6
- data/spec/models/{v1_admin_me_get200_response_spec.rb → get_current_admin200_response_spec.rb} +6 -6
- data/spec/models/{v1_usage_get200_response_spec.rb → get_usage200_response_spec.rb} +6 -6
- data/spec/models/{healthz_get200_response_spec.rb → health_check200_response_spec.rb} +6 -6
- data/spec/models/inbox_list_spec.rb +36 -0
- data/spec/models/inbox_spec.rb +54 -0
- data/spec/models/injection_risk_spec.rb +42 -0
- data/spec/models/{v1_admins_post_request_spec.rb → invite_admin_request_spec.rb} +6 -6
- data/spec/models/{v1_aliases_get200_response_spec.rb → list_admins200_response_spec.rb} +6 -6
- data/spec/models/{v1_admins_get200_response_spec.rb → list_aliases200_response_spec.rb} +6 -6
- data/spec/models/{v1_api_keys_get200_response_spec.rb → list_api_keys200_response_spec.rb} +6 -6
- data/spec/models/list_domains200_response_spec.rb +36 -0
- data/spec/models/{v1_mailboxes_get200_response_spec.rb → list_mailboxes200_response_spec.rb} +6 -6
- data/spec/models/{v1_messages_get200_response_spec.rb → list_messages200_response_spec.rb} +6 -6
- data/spec/models/{v1_suppressions_get200_response_spec.rb → list_suppressions200_response_spec.rb} +6 -6
- data/spec/models/{v1_vacation_get200_response_spec.rb → list_templates200_response_spec.rb} +6 -6
- data/spec/models/list_vacation_responders200_response_spec.rb +36 -0
- data/spec/models/{v1_domains_get200_response_spec.rb → list_webhooks200_response_spec.rb} +6 -6
- data/spec/models/mailbox_grant_list_spec.rb +36 -0
- data/spec/models/mailbox_grant_spec.rb +42 -0
- data/spec/models/mark_read_result_spec.rb +36 -0
- data/spec/models/policy_flags_spec.rb +66 -0
- data/spec/models/{v1_send_post200_response_spec.rb → send_email200_response_spec.rb} +6 -6
- data/spec/models/{v1_send_post202_response_spec.rb → send_email202_response_spec.rb} +6 -6
- data/spec/models/{v1_templates_get200_response_spec.rb → send_email_batch200_response_spec.rb} +6 -6
- data/spec/models/{v1_send_batch_post_request_spec.rb → send_email_batch_request_spec.rb} +6 -6
- data/spec/models/{v1_send_post_request_attachments_inner_spec.rb → send_email_request_attachments_inner_spec.rb} +6 -6
- data/spec/models/{v1_send_post_request_spec.rb → send_email_request_spec.rb} +6 -6
- data/spec/models/{v1_mailboxes_email_vacation_put_request_spec.rb → set_vacation_responder_request_spec.rb} +6 -6
- data/spec/models/simulated_inbound_spec.rb +48 -0
- data/spec/models/{v1_inboxes_mailbox_messages_post_request_spec.rb → start_conversation_request_spec.rb} +6 -6
- data/spec/models/thread_classification_spec.rb +48 -0
- data/spec/models/thread_list_spec.rb +42 -0
- data/spec/models/thread_message_body_all_of_body_spec.rb +48 -0
- data/spec/models/thread_message_body_spec.rb +112 -0
- data/spec/models/thread_message_spec.rb +106 -0
- data/spec/models/thread_spec.rb +48 -0
- data/spec/models/thread_summary_spec.rb +70 -0
- data/spec/models/{v1_admins_id_patch_request_spec.rb → update_admin_request_spec.rb} +6 -6
- data/spec/models/{v1_mailboxes_email_patch_request_spec.rb → update_mailbox_request_spec.rb} +6 -6
- data/spec/models/{v1_webhooks_id_patch_request_spec.rb → update_webhook_request_spec.rb} +6 -6
- data/spec/models/whoami_spec.rb +54 -0
- metadata +258 -142
- data/lib/lockally/models/v1_webhooks_get200_response.rb +0 -166
- data/spec/models/v1_send_batch_post200_response_spec.rb +0 -36
- data/spec/models/v1_webhooks_get200_response_spec.rb +0 -36
data/lib/lockally/api/ai_api.rb
CHANGED
|
@@ -19,28 +19,37 @@ module Lockally
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
#
|
|
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
|
-
# @
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
#
|
|
32
|
-
#
|
|
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
|
-
# @
|
|
35
|
-
|
|
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.
|
|
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/
|
|
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] || '
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
80
|
-
# Body: {\"
|
|
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 [
|
|
83
|
-
def
|
|
84
|
-
data, _status_code, _headers =
|
|
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
|
-
#
|
|
89
|
-
# Body: {\"
|
|
97
|
+
# Buy prepaid AI units
|
|
98
|
+
# Body: {\"bundle\": \"100|500|2000\"}. One classification = 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<(
|
|
92
|
-
def
|
|
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.
|
|
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-
|
|
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] || '
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
137
|
-
#
|
|
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 [
|
|
140
|
-
def
|
|
141
|
-
data, _status_code, _headers =
|
|
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
|
-
#
|
|
146
|
-
#
|
|
154
|
+
# Read the tenant'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<(
|
|
149
|
-
def
|
|
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.
|
|
160
|
+
@api_client.config.logger.debug 'Calling API: AiApi.get_ai_config ...'
|
|
152
161
|
end
|
|
153
162
|
# resource path
|
|
154
|
-
local_var_path = '/v1/
|
|
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] || '
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
194
|
-
#
|
|
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
|
-
# @
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
#
|
|
205
|
-
#
|
|
206
|
-
# @param thread_id [String]
|
|
211
|
+
# Configure the AI tier
|
|
212
|
+
# 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.
|
|
207
213
|
# @param [Hash] opts the optional parameters
|
|
208
|
-
# @
|
|
209
|
-
|
|
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.
|
|
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/
|
|
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] || '
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
23
|
-
#
|
|
24
|
-
# @param
|
|
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 [
|
|
27
|
-
def
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# @param
|
|
32
|
+
# Create an alias
|
|
33
|
+
# 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.
|
|
34
|
+
# @param create_alias_request [CreateAliasRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def
|
|
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.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AliasesApi.create_alias ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
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 [
|
|
88
|
-
def
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
#
|
|
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<(
|
|
96
|
-
def
|
|
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.
|
|
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/
|
|
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]
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|
-
#
|
|
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 [
|
|
145
|
-
def
|
|
146
|
-
data, _status_code, _headers =
|
|
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
|
-
#
|
|
151
|
-
# 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.
|
|
152
|
-
# @param v1_aliases_post_request [V1AliasesPostRequest]
|
|
161
|
+
# List aliases
|
|
153
162
|
# @param [Hash] opts the optional parameters
|
|
154
|
-
# @return [Array<(
|
|
155
|
-
def
|
|
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.
|
|
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]
|
|
183
|
+
post_body = opts[:debug_body]
|
|
184
184
|
|
|
185
185
|
# return_type
|
|
186
|
-
return_type = opts[:debug_return_type] || '
|
|
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.
|
|
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(:
|
|
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#
|
|
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
|