lockally 0.3.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +36 -0
- data/README.md +38 -21
- data/docs/APIKey.md +7 -1
- data/docs/ApiKeysApi.md +158 -5
- data/docs/BatchResult.md +3 -1
- data/docs/BulkUpsertExternalContacts200Response.md +24 -0
- data/docs/BulkUpsertExternalContacts200ResponseResultsInner.md +26 -0
- data/docs/BulkUpsertExternalContactsRequest.md +18 -0
- data/docs/BulkUpsertExternalContactsRequestContactsInner.md +36 -0
- data/docs/Contact.md +5 -1
- data/docs/ContactsApi.md +285 -0
- data/docs/CreateApiKey201Response.md +6 -0
- data/docs/CreateApiKeyRequest.md +3 -1
- data/docs/CreateEncryptionKey201Response.md +3 -1
- data/docs/CreateEncryptionKeyRequest.md +1 -1
- data/docs/CreateEncryptionRecoveryRequest.md +1 -1
- data/docs/DashboardApi.md +4 -4
- data/docs/DomainsApi.md +12 -5
- data/docs/EncryptionApi.md +82 -7
- data/docs/ExternalContactInput.md +34 -0
- data/docs/GetEncryptionKey200Response.md +11 -1
- data/docs/GetEncryptionStatus200Response.md +22 -0
- data/docs/GetEncryptionStatus200ResponseMailboxesInner.md +26 -0
- data/docs/MailboxesApi.md +0 -278
- data/docs/Message.md +5 -1
- data/docs/MessageDetail.md +4 -0
- data/docs/MigrationDNSCheck.md +20 -0
- data/docs/MigrationDomainDNS.md +26 -0
- data/docs/MigrationsApi.md +4 -4
- data/docs/RotateApiKeyRequest.md +18 -0
- data/docs/RotateEncryptionKeyRequest.md +1 -1
- data/docs/SendApi.md +10 -2
- data/docs/SendEmailBatchRequest.md +3 -1
- data/docs/SendEmailRequest.md +8 -0
- data/docs/SignupRequest.md +1 -1
- data/docs/TemplatesApi.md +12 -5
- data/docs/TenantApi.md +137 -0
- data/docs/TenantHealthCheck.md +24 -0
- data/docs/TenantHealthReport.md +22 -0
- data/docs/TrackingPolicy.md +24 -0
- data/docs/UpdateApiKeyRequest.md +22 -0
- data/docs/UpdateTrackingPolicyRequest.md +20 -0
- data/docs/UsersApi.md +7 -5
- data/git_push.sh +2 -2
- data/lib/lockally/api/add_ons_api.rb +2 -2
- data/lib/lockally/api/admin_api.rb +2 -2
- data/lib/lockally/api/admins_api.rb +2 -2
- data/lib/lockally/api/agents_api.rb +2 -2
- data/lib/lockally/api/ai_api.rb +2 -2
- data/lib/lockally/api/aliases_api.rb +2 -2
- data/lib/lockally/api/api_keys_api.rb +160 -2
- data/lib/lockally/api/billing_api.rb +2 -2
- data/lib/lockally/api/calendars_api.rb +2 -2
- data/lib/lockally/api/contact_lists_api.rb +2 -2
- data/lib/lockally/api/contacts_api.rb +322 -2
- data/lib/lockally/api/dashboard_api.rb +5 -5
- data/lib/lockally/api/directory_api.rb +2 -2
- data/lib/lockally/api/distribution_lists_api.rb +2 -2
- data/lib/lockally/api/domains_api.rb +16 -2
- data/lib/lockally/api/drafts_api.rb +2 -2
- data/lib/lockally/api/encryption_api.rb +69 -4
- data/lib/lockally/api/health_api.rb +2 -2
- data/lib/lockally/api/ip_pools_api.rb +2 -2
- data/lib/lockally/api/mailboxes_api.rb +2 -259
- data/lib/lockally/api/migrations_api.rb +5 -5
- data/lib/lockally/api/resources_api.rb +2 -2
- data/lib/lockally/api/send_api.rb +22 -2
- data/lib/lockally/api/signup_api.rb +2 -2
- data/lib/lockally/api/suppressions_api.rb +2 -2
- data/lib/lockally/api/templates_api.rb +16 -2
- data/lib/lockally/api/tenant_api.rb +127 -2
- data/lib/lockally/api/test_api.rb +2 -2
- data/lib/lockally/api/users_api.rb +8 -6
- data/lib/lockally/api/webhooks_api.rb +2 -2
- data/lib/lockally/api_client.rb +2 -2
- data/lib/lockally/api_error.rb +2 -2
- data/lib/lockally/api_model_base.rb +2 -2
- data/lib/lockally/configuration.rb +2 -2
- data/lib/lockally/models/activate_add_on200_response.rb +2 -2
- data/lib/lockally/models/add_calendar_member_request.rb +2 -2
- data/lib/lockally/models/add_contact_list_member_request.rb +2 -2
- data/lib/lockally/models/add_on.rb +2 -2
- data/lib/lockally/models/add_shared_member_request.rb +2 -2
- data/lib/lockally/models/admin.rb +2 -2
- data/lib/lockally/models/admin_full.rb +2 -2
- data/lib/lockally/models/admin_login200_response.rb +2 -2
- data/lib/lockally/models/admin_login_request.rb +2 -2
- data/lib/lockally/models/agent_send_result.rb +2 -2
- data/lib/lockally/models/ai_config.rb +2 -2
- data/lib/lockally/models/ai_config_update.rb +2 -2
- data/lib/lockally/models/annotations.rb +2 -2
- data/lib/lockally/models/api_key.rb +36 -6
- data/lib/lockally/models/attachment.rb +2 -2
- data/lib/lockally/models/audit_event.rb +2 -2
- data/lib/lockally/models/batch_lookup_public_keys200_response.rb +2 -2
- data/lib/lockally/models/batch_lookup_public_keys200_response_data_inner.rb +2 -2
- data/lib/lockally/models/batch_result.rb +16 -6
- data/lib/lockally/models/billing_status.rb +2 -2
- data/lib/lockally/models/bulk_upsert_external_contacts200_response.rb +244 -0
- data/lib/lockally/models/bulk_upsert_external_contacts200_response_results_inner.rb +258 -0
- data/lib/lockally/models/bulk_upsert_external_contacts_request.rb +184 -0
- data/lib/lockally/models/bulk_upsert_external_contacts_request_contacts_inner.rb +329 -0
- data/lib/lockally/models/calendar.rb +2 -2
- data/lib/lockally/models/calendar_event.rb +2 -2
- data/lib/lockally/models/calendar_integration.rb +2 -2
- data/lib/lockally/models/calendar_member.rb +2 -2
- data/lib/lockally/models/calendar_policies.rb +2 -2
- data/lib/lockally/models/classification.rb +2 -2
- data/lib/lockally/models/contact.rb +26 -6
- data/lib/lockally/models/contact_list.rb +2 -2
- data/lib/lockally/models/contact_lookup.rb +2 -2
- data/lib/lockally/models/contact_lookup_contact.rb +2 -2
- data/lib/lockally/models/contact_lookup_history.rb +2 -2
- data/lib/lockally/models/create_ai_units_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_alias_request.rb +2 -2
- data/lib/lockally/models/create_api_key201_response.rb +33 -3
- data/lib/lockally/models/create_api_key_request.rb +16 -6
- data/lib/lockally/models/create_billing_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_billing_checkout_request.rb +2 -2
- data/lib/lockally/models/create_calendar_event_request.rb +2 -2
- data/lib/lockally/models/create_calendar_integration_request.rb +2 -2
- data/lib/lockally/models/create_calendar_request.rb +2 -2
- data/lib/lockally/models/create_contact_list_request.rb +2 -2
- data/lib/lockally/models/create_contact_request.rb +2 -2
- data/lib/lockally/models/create_dedicated_ip_request_request.rb +2 -2
- data/lib/lockally/models/create_distribution_list_request.rb +2 -2
- data/lib/lockally/models/create_domain_request.rb +2 -2
- data/lib/lockally/models/create_encryption_key201_response.rb +15 -6
- data/lib/lockally/models/create_encryption_key_request.rb +2 -19
- data/lib/lockally/models/create_encryption_recovery_request.rb +2 -19
- data/lib/lockally/models/create_mailbox_request.rb +2 -2
- data/lib/lockally/models/create_migration_credential_request.rb +2 -2
- data/lib/lockally/models/create_migration_credential_request_credentials.rb +2 -2
- data/lib/lockally/models/create_migration_request.rb +2 -2
- data/lib/lockally/models/create_resource_request.rb +2 -2
- data/lib/lockally/models/create_suppression_request.rb +2 -2
- data/lib/lockally/models/create_units_checkout200_response.rb +2 -2
- data/lib/lockally/models/create_units_checkout_request.rb +2 -2
- data/lib/lockally/models/create_user_request.rb +2 -2
- data/lib/lockally/models/create_webhook_request.rb +2 -2
- data/lib/lockally/models/dedicated_ip_request.rb +2 -2
- data/lib/lockally/models/directory_permissions.rb +2 -2
- data/lib/lockally/models/discover_migration202_response.rb +2 -2
- data/lib/lockally/models/distribution_list_detail.rb +2 -2
- data/lib/lockally/models/distribution_list_summary.rb +2 -2
- data/lib/lockally/models/dns_record.rb +2 -2
- data/lib/lockally/models/domain.rb +2 -2
- data/lib/lockally/models/draft.rb +2 -2
- data/lib/lockally/models/draft_list.rb +2 -2
- data/lib/lockally/models/draft_result.rb +2 -2
- data/lib/lockally/models/export_mailbox201_response.rb +2 -2
- data/lib/lockally/models/external_contact_input.rb +287 -0
- data/lib/lockally/models/gal_settings.rb +2 -2
- data/lib/lockally/models/get_add_on_status200_response.rb +2 -2
- data/lib/lockally/models/get_audit_summary200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_overview200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_overview200_response_activity_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_alerts_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_delegated_access_inner.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_external_sharing.rb +2 -2
- data/lib/lockally/models/get_calendar_security200_response_public_calendar_list_inner.rb +2 -2
- data/lib/lockally/models/get_contact_list200_response.rb +2 -2
- data/lib/lockally/models/get_contact_list200_response_members_inner.rb +2 -2
- data/lib/lockally/models/get_contact_lists200_response.rb +2 -2
- data/lib/lockally/models/get_contact_lists200_response_data_inner.rb +2 -2
- data/lib/lockally/models/get_current_admin200_response.rb +2 -2
- data/lib/lockally/models/get_directory_activity200_response.rb +2 -2
- data/lib/lockally/models/get_directory_activity200_response_data_inner.rb +2 -2
- data/lib/lockally/models/get_directory_stats200_response.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response_domains_inner.rb +2 -2
- data/lib/lockally/models/get_domains_status200_response_domains_inner_checks_inner.rb +2 -2
- data/lib/lockally/models/get_encryption_key200_response.rb +51 -6
- data/lib/lockally/models/{list_vacation_responders200_response.rb → get_encryption_status200_response.rb} +31 -30
- data/lib/lockally/models/get_encryption_status200_response_mailboxes_inner.rb +183 -0
- data/lib/lockally/models/get_integrations_summary200_response.rb +2 -2
- data/lib/lockally/models/get_integrations_summary200_response_api_keys_inner.rb +2 -2
- data/lib/lockally/models/get_integrations_summary200_response_webhooks_inner.rb +2 -2
- data/lib/lockally/models/get_ip_assignment200_response.rb +2 -2
- data/lib/lockally/models/get_security200_response.rb +2 -2
- data/lib/lockally/models/get_security200_response_alerts_inner.rb +2 -2
- data/lib/lockally/models/get_security200_response_stats_inner.rb +2 -2
- data/lib/lockally/models/get_storage200_response.rb +2 -2
- data/lib/lockally/models/get_storage200_response_top_mailboxes_inner.rb +2 -2
- data/lib/lockally/models/get_storage200_response_top_messages_inner.rb +2 -2
- data/lib/lockally/models/get_usage200_response.rb +2 -2
- data/lib/lockally/models/get_user_insights200_response.rb +2 -2
- data/lib/lockally/models/health_check200_response.rb +2 -2
- data/lib/lockally/models/inbox.rb +2 -2
- data/lib/lockally/models/inbox_list.rb +2 -2
- data/lib/lockally/models/injection_risk.rb +2 -2
- data/lib/lockally/models/invite_admin_request.rb +2 -2
- data/lib/lockally/models/list_add_ons200_response.rb +2 -2
- data/lib/lockally/models/list_admins200_response.rb +2 -2
- data/lib/lockally/models/list_aliases200_response.rb +2 -2
- data/lib/lockally/models/list_api_keys200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_events200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_integrations200_response.rb +2 -2
- data/lib/lockally/models/list_calendar_members200_response.rb +2 -2
- data/lib/lockally/models/list_calendars200_response.rb +2 -2
- data/lib/lockally/models/list_contact_lists200_response.rb +2 -2
- data/lib/lockally/models/list_contacts200_response.rb +2 -2
- data/lib/lockally/models/list_dedicated_ip_requests200_response.rb +2 -2
- data/lib/lockally/models/list_distribution_lists200_response.rb +2 -2
- data/lib/lockally/models/list_domains200_response.rb +2 -2
- data/lib/lockally/models/list_mailboxes200_response.rb +2 -2
- data/lib/lockally/models/list_messages200_response.rb +2 -2
- data/lib/lockally/models/list_migration_credentials200_response.rb +2 -2
- data/lib/lockally/models/list_migration_events200_response.rb +2 -2
- data/lib/lockally/models/list_migration_mailboxes200_response.rb +2 -2
- data/lib/lockally/models/list_migrations200_response.rb +2 -2
- data/lib/lockally/models/list_resources200_response.rb +2 -2
- data/lib/lockally/models/list_shared_members200_response.rb +2 -2
- data/lib/lockally/models/list_suppressions200_response.rb +2 -2
- data/lib/lockally/models/list_templates200_response.rb +2 -2
- data/lib/lockally/models/list_users200_response.rb +2 -2
- data/lib/lockally/models/list_webhooks200_response.rb +2 -2
- data/lib/lockally/models/mailbox.rb +2 -2
- data/lib/lockally/models/mailbox_grant.rb +2 -2
- data/lib/lockally/models/mailbox_grant_list.rb +2 -2
- data/lib/lockally/models/map_migration_request.rb +2 -2
- data/lib/lockally/models/map_migration_request_mappings_inner.rb +2 -2
- data/lib/lockally/models/mark_read_result.rb +2 -2
- data/lib/lockally/models/message.rb +30 -6
- data/lib/lockally/models/message_detail.rb +27 -3
- data/lib/lockally/models/message_stats.rb +2 -2
- data/lib/lockally/models/message_stats_counts.rb +2 -2
- data/lib/lockally/models/message_stats_rates.rb +2 -2
- data/lib/lockally/models/message_stats_window.rb +2 -2
- data/lib/lockally/models/migration.rb +2 -2
- data/lib/lockally/models/migration_credential.rb +2 -2
- data/lib/lockally/models/{vacation_params.rb → migration_dns_check.rb} +39 -54
- data/lib/lockally/models/migration_domain_dns.rb +269 -0
- data/lib/lockally/models/migration_event.rb +2 -2
- data/lib/lockally/models/migration_mailbox.rb +2 -2
- data/lib/lockally/models/migration_progress.rb +2 -2
- data/lib/lockally/models/migration_progress_mailboxes_inner.rb +2 -2
- data/lib/lockally/models/migration_settings.rb +2 -2
- data/lib/lockally/models/model_alias.rb +2 -2
- data/lib/lockally/models/plan_catalog_entry.rb +2 -2
- data/lib/lockally/models/policy_flags.rb +2 -2
- data/lib/lockally/models/problem.rb +2 -2
- data/lib/lockally/models/replace_distribution_list_members200_response.rb +2 -2
- data/lib/lockally/models/replace_distribution_list_members_request.rb +2 -2
- data/lib/lockally/models/resource.rb +2 -2
- data/lib/lockally/models/return_path.rb +2 -2
- data/lib/lockally/models/return_path_check.rb +2 -2
- data/lib/lockally/models/rotate_api_key_request.rb +178 -0
- data/lib/lockally/models/rotate_encryption_key_request.rb +2 -19
- data/lib/lockally/models/send_email200_response.rb +2 -2
- data/lib/lockally/models/send_email202_response.rb +2 -2
- data/lib/lockally/models/send_email_batch200_response.rb +2 -2
- data/lib/lockally/models/send_email_batch_request.rb +18 -6
- data/lib/lockally/models/send_email_request.rb +85 -3
- data/lib/lockally/models/send_email_request_attachments_inner.rb +2 -2
- data/lib/lockally/models/send_message.rb +2 -2
- data/lib/lockally/models/shared_member.rb +2 -2
- data/lib/lockally/models/signup_request.rb +3 -2
- data/lib/lockally/models/simulated_inbound.rb +2 -2
- data/lib/lockally/models/start_conversation_request.rb +2 -2
- data/lib/lockally/models/start_migration202_response.rb +2 -2
- data/lib/lockally/models/suppression.rb +2 -2
- data/lib/lockally/models/template.rb +2 -2
- data/lib/lockally/models/template_input.rb +2 -2
- data/lib/lockally/models/tenant.rb +2 -2
- data/lib/lockally/models/tenant_health_check.rb +245 -0
- data/lib/lockally/models/tenant_health_report.rb +237 -0
- data/lib/lockally/models/thread.rb +2 -2
- data/lib/lockally/models/thread_classification.rb +2 -2
- data/lib/lockally/models/thread_list.rb +2 -2
- data/lib/lockally/models/thread_message.rb +2 -2
- data/lib/lockally/models/thread_message_body.rb +2 -2
- data/lib/lockally/models/thread_message_body_body.rb +2 -2
- data/lib/lockally/models/thread_summary.rb +2 -2
- data/lib/lockally/models/tracking_policy.rb +227 -0
- data/lib/lockally/models/unit_bundle.rb +2 -2
- data/lib/lockally/models/update_admin_request.rb +2 -2
- data/lib/lockally/models/update_api_key_request.rb +189 -0
- data/lib/lockally/models/update_calendar_event_request.rb +2 -2
- data/lib/lockally/models/update_calendar_integration_request.rb +2 -2
- data/lib/lockally/models/update_calendar_member_request.rb +2 -2
- data/lib/lockally/models/update_calendar_policies_request.rb +2 -2
- data/lib/lockally/models/update_calendar_request.rb +2 -2
- data/lib/lockally/models/update_contact_list_request.rb +2 -2
- data/lib/lockally/models/update_contact_request.rb +2 -2
- data/lib/lockally/models/update_directory_permissions_request.rb +2 -2
- data/lib/lockally/models/update_gal_settings_request.rb +2 -2
- data/lib/lockally/models/update_mailbox_request.rb +2 -2
- data/lib/lockally/models/update_migration_mailbox_request.rb +2 -2
- data/lib/lockally/models/update_migration_request.rb +2 -2
- data/lib/lockally/models/update_resource_request.rb +2 -2
- data/lib/lockally/models/{set_vacation_responder_request.rb → update_tracking_policy_request.rb} +18 -37
- data/lib/lockally/models/update_user_request.rb +2 -2
- data/lib/lockally/models/update_webhook_request.rb +2 -2
- data/lib/lockally/models/user.rb +2 -2
- data/lib/lockally/models/user_event.rb +2 -2
- data/lib/lockally/models/webhook.rb +2 -2
- data/lib/lockally/models/whoami.rb +2 -2
- data/lib/lockally/models/whoami_key.rb +2 -2
- data/lib/lockally/models/whoami_tenant.rb +2 -2
- data/lib/lockally/version.rb +3 -3
- data/lib/lockally.rb +17 -6
- data/lockally.gemspec +6 -6
- data/spec/api/add_ons_api_spec.rb +2 -2
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/admins_api_spec.rb +2 -2
- data/spec/api/agents_api_spec.rb +2 -2
- data/spec/api/ai_api_spec.rb +2 -2
- data/spec/api/aliases_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +30 -2
- data/spec/api/billing_api_spec.rb +2 -2
- data/spec/api/calendars_api_spec.rb +2 -2
- data/spec/api/contact_lists_api_spec.rb +2 -2
- data/spec/api/contacts_api_spec.rb +53 -2
- data/spec/api/dashboard_api_spec.rb +3 -3
- data/spec/api/directory_api_spec.rb +2 -2
- data/spec/api/distribution_lists_api_spec.rb +2 -2
- data/spec/api/domains_api_spec.rb +4 -2
- data/spec/api/drafts_api_spec.rb +2 -2
- data/spec/api/encryption_api_spec.rb +18 -3
- data/spec/api/health_api_spec.rb +2 -2
- data/spec/api/ip_pools_api_spec.rb +2 -2
- data/spec/api/mailboxes_api_spec.rb +2 -50
- data/spec/api/migrations_api_spec.rb +3 -3
- data/spec/api/resources_api_spec.rb +2 -2
- data/spec/api/send_api_spec.rb +6 -2
- data/spec/api/signup_api_spec.rb +2 -2
- data/spec/api/suppressions_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +4 -2
- data/spec/api/tenant_api_spec.rb +25 -2
- data/spec/api/test_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +5 -4
- data/spec/api/webhooks_api_spec.rb +2 -2
- data/spec/models/activate_add_on200_response_spec.rb +2 -2
- data/spec/models/add_calendar_member_request_spec.rb +2 -2
- data/spec/models/add_contact_list_member_request_spec.rb +2 -2
- data/spec/models/add_on_spec.rb +2 -2
- data/spec/models/add_shared_member_request_spec.rb +2 -2
- data/spec/models/admin_full_spec.rb +2 -2
- data/spec/models/admin_login200_response_spec.rb +2 -2
- data/spec/models/admin_login_request_spec.rb +2 -2
- data/spec/models/admin_spec.rb +2 -2
- data/spec/models/agent_send_result_spec.rb +2 -2
- data/spec/models/ai_config_spec.rb +2 -2
- data/spec/models/ai_config_update_spec.rb +2 -2
- data/spec/models/annotations_spec.rb +2 -2
- data/spec/models/api_key_spec.rb +20 -2
- data/spec/models/attachment_spec.rb +2 -2
- data/spec/models/audit_event_spec.rb +2 -2
- data/spec/models/batch_lookup_public_keys200_response_data_inner_spec.rb +2 -2
- data/spec/models/batch_lookup_public_keys200_response_spec.rb +2 -2
- data/spec/models/batch_result_spec.rb +8 -2
- data/spec/models/billing_status_spec.rb +2 -2
- data/spec/models/bulk_upsert_external_contacts200_response_results_inner_spec.rb +64 -0
- data/spec/models/bulk_upsert_external_contacts200_response_spec.rb +54 -0
- data/spec/models/bulk_upsert_external_contacts_request_contacts_inner_spec.rb +98 -0
- data/spec/models/bulk_upsert_external_contacts_request_spec.rb +36 -0
- data/spec/models/calendar_event_spec.rb +2 -2
- data/spec/models/calendar_integration_spec.rb +2 -2
- data/spec/models/calendar_member_spec.rb +2 -2
- data/spec/models/calendar_policies_spec.rb +2 -2
- data/spec/models/calendar_spec.rb +2 -2
- data/spec/models/classification_spec.rb +2 -2
- data/spec/models/contact_list_spec.rb +2 -2
- data/spec/models/contact_lookup_contact_spec.rb +2 -2
- data/spec/models/contact_lookup_history_spec.rb +2 -2
- data/spec/models/contact_lookup_spec.rb +2 -2
- data/spec/models/contact_spec.rb +14 -2
- data/spec/models/create_ai_units_checkout200_response_spec.rb +2 -2
- data/spec/models/create_alias_request_spec.rb +2 -2
- data/spec/models/create_api_key201_response_spec.rb +20 -2
- data/spec/models/create_api_key_request_spec.rb +8 -2
- data/spec/models/create_billing_checkout200_response_spec.rb +2 -2
- data/spec/models/create_billing_checkout_request_spec.rb +2 -2
- data/spec/models/create_calendar_event_request_spec.rb +2 -2
- data/spec/models/create_calendar_integration_request_spec.rb +2 -2
- data/spec/models/create_calendar_request_spec.rb +2 -2
- data/spec/models/create_contact_list_request_spec.rb +2 -2
- data/spec/models/create_contact_request_spec.rb +2 -2
- data/spec/models/create_dedicated_ip_request_request_spec.rb +2 -2
- data/spec/models/create_distribution_list_request_spec.rb +2 -2
- data/spec/models/create_domain_request_spec.rb +2 -2
- data/spec/models/create_encryption_key201_response_spec.rb +8 -2
- data/spec/models/create_encryption_key_request_spec.rb +2 -2
- data/spec/models/create_encryption_recovery_request_spec.rb +2 -2
- data/spec/models/create_mailbox_request_spec.rb +2 -2
- data/spec/models/create_migration_credential_request_credentials_spec.rb +2 -2
- data/spec/models/create_migration_credential_request_spec.rb +2 -2
- data/spec/models/create_migration_request_spec.rb +2 -2
- data/spec/models/create_resource_request_spec.rb +2 -2
- data/spec/models/create_suppression_request_spec.rb +2 -2
- data/spec/models/create_units_checkout200_response_spec.rb +2 -2
- data/spec/models/create_units_checkout_request_spec.rb +2 -2
- data/spec/models/create_user_request_spec.rb +2 -2
- data/spec/models/create_webhook_request_spec.rb +2 -2
- data/spec/models/dedicated_ip_request_spec.rb +2 -2
- data/spec/models/directory_permissions_spec.rb +2 -2
- data/spec/models/discover_migration202_response_spec.rb +2 -2
- data/spec/models/distribution_list_detail_spec.rb +2 -2
- data/spec/models/distribution_list_summary_spec.rb +2 -2
- data/spec/models/dns_record_spec.rb +2 -2
- data/spec/models/domain_spec.rb +2 -2
- data/spec/models/draft_list_spec.rb +2 -2
- data/spec/models/draft_result_spec.rb +2 -2
- data/spec/models/draft_spec.rb +2 -2
- data/spec/models/export_mailbox201_response_spec.rb +2 -2
- data/spec/models/external_contact_input_spec.rb +92 -0
- data/spec/models/gal_settings_spec.rb +2 -2
- data/spec/models/get_add_on_status200_response_spec.rb +2 -2
- data/spec/models/get_audit_summary200_response_spec.rb +2 -2
- data/spec/models/get_calendar_overview200_response_activity_inner_spec.rb +2 -2
- data/spec/models/get_calendar_overview200_response_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_alerts_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_delegated_access_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_external_sharing_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_public_calendar_list_inner_spec.rb +2 -2
- data/spec/models/get_calendar_security200_response_spec.rb +2 -2
- data/spec/models/get_contact_list200_response_members_inner_spec.rb +2 -2
- data/spec/models/get_contact_list200_response_spec.rb +2 -2
- data/spec/models/get_contact_lists200_response_data_inner_spec.rb +2 -2
- data/spec/models/get_contact_lists200_response_spec.rb +2 -2
- data/spec/models/get_current_admin200_response_spec.rb +2 -2
- data/spec/models/get_directory_activity200_response_data_inner_spec.rb +2 -2
- data/spec/models/get_directory_activity200_response_spec.rb +2 -2
- data/spec/models/get_directory_stats200_response_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_domains_inner_checks_inner_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_domains_inner_spec.rb +2 -2
- data/spec/models/get_domains_status200_response_spec.rb +2 -2
- data/spec/models/get_encryption_key200_response_spec.rb +32 -2
- data/spec/models/get_encryption_status200_response_mailboxes_inner_spec.rb +60 -0
- data/spec/models/get_encryption_status200_response_spec.rb +48 -0
- data/spec/models/get_integrations_summary200_response_api_keys_inner_spec.rb +2 -2
- data/spec/models/get_integrations_summary200_response_spec.rb +2 -2
- data/spec/models/get_integrations_summary200_response_webhooks_inner_spec.rb +2 -2
- data/spec/models/get_ip_assignment200_response_spec.rb +2 -2
- data/spec/models/get_security200_response_alerts_inner_spec.rb +2 -2
- data/spec/models/get_security200_response_spec.rb +2 -2
- data/spec/models/get_security200_response_stats_inner_spec.rb +2 -2
- data/spec/models/get_storage200_response_spec.rb +2 -2
- data/spec/models/get_storage200_response_top_mailboxes_inner_spec.rb +2 -2
- data/spec/models/get_storage200_response_top_messages_inner_spec.rb +2 -2
- data/spec/models/get_usage200_response_spec.rb +2 -2
- data/spec/models/get_user_insights200_response_spec.rb +2 -2
- data/spec/models/health_check200_response_spec.rb +2 -2
- data/spec/models/inbox_list_spec.rb +2 -2
- data/spec/models/inbox_spec.rb +2 -2
- data/spec/models/injection_risk_spec.rb +2 -2
- data/spec/models/invite_admin_request_spec.rb +2 -2
- data/spec/models/list_add_ons200_response_spec.rb +2 -2
- data/spec/models/list_admins200_response_spec.rb +2 -2
- data/spec/models/list_aliases200_response_spec.rb +2 -2
- data/spec/models/list_api_keys200_response_spec.rb +2 -2
- data/spec/models/list_calendar_events200_response_spec.rb +2 -2
- data/spec/models/list_calendar_integrations200_response_spec.rb +2 -2
- data/spec/models/list_calendar_members200_response_spec.rb +2 -2
- data/spec/models/list_calendars200_response_spec.rb +2 -2
- data/spec/models/list_contact_lists200_response_spec.rb +2 -2
- data/spec/models/list_contacts200_response_spec.rb +2 -2
- data/spec/models/list_dedicated_ip_requests200_response_spec.rb +2 -2
- data/spec/models/list_distribution_lists200_response_spec.rb +2 -2
- data/spec/models/list_domains200_response_spec.rb +2 -2
- data/spec/models/list_mailboxes200_response_spec.rb +2 -2
- data/spec/models/list_messages200_response_spec.rb +2 -2
- data/spec/models/list_migration_credentials200_response_spec.rb +2 -2
- data/spec/models/list_migration_events200_response_spec.rb +2 -2
- data/spec/models/list_migration_mailboxes200_response_spec.rb +2 -2
- data/spec/models/list_migrations200_response_spec.rb +2 -2
- data/spec/models/list_resources200_response_spec.rb +2 -2
- data/spec/models/list_shared_members200_response_spec.rb +2 -2
- data/spec/models/list_suppressions200_response_spec.rb +2 -2
- data/spec/models/list_templates200_response_spec.rb +2 -2
- data/spec/models/list_users200_response_spec.rb +2 -2
- data/spec/models/list_webhooks200_response_spec.rb +2 -2
- data/spec/models/mailbox_grant_list_spec.rb +2 -2
- data/spec/models/mailbox_grant_spec.rb +2 -2
- data/spec/models/mailbox_spec.rb +2 -2
- data/spec/models/map_migration_request_mappings_inner_spec.rb +2 -2
- data/spec/models/map_migration_request_spec.rb +2 -2
- data/spec/models/mark_read_result_spec.rb +2 -2
- data/spec/models/message_detail_spec.rb +14 -2
- data/spec/models/message_spec.rb +14 -2
- data/spec/models/message_stats_counts_spec.rb +2 -2
- data/spec/models/message_stats_rates_spec.rb +2 -2
- data/spec/models/message_stats_spec.rb +2 -2
- data/spec/models/message_stats_window_spec.rb +2 -2
- data/spec/models/migration_credential_spec.rb +2 -2
- data/spec/models/migration_dns_check_spec.rb +42 -0
- data/spec/models/migration_domain_dns_spec.rb +60 -0
- data/spec/models/migration_event_spec.rb +2 -2
- data/spec/models/migration_mailbox_spec.rb +2 -2
- data/spec/models/migration_progress_mailboxes_inner_spec.rb +2 -2
- data/spec/models/migration_progress_spec.rb +2 -2
- data/spec/models/migration_settings_spec.rb +2 -2
- data/spec/models/migration_spec.rb +2 -2
- data/spec/models/model_alias_spec.rb +2 -2
- data/spec/models/plan_catalog_entry_spec.rb +2 -2
- data/spec/models/policy_flags_spec.rb +2 -2
- data/spec/models/problem_spec.rb +2 -2
- data/spec/models/replace_distribution_list_members200_response_spec.rb +2 -2
- data/spec/models/replace_distribution_list_members_request_spec.rb +2 -2
- data/spec/models/resource_spec.rb +2 -2
- data/spec/models/return_path_check_spec.rb +2 -2
- data/spec/models/return_path_spec.rb +2 -2
- data/spec/models/rotate_api_key_request_spec.rb +36 -0
- data/spec/models/rotate_encryption_key_request_spec.rb +2 -2
- data/spec/models/send_email200_response_spec.rb +2 -2
- data/spec/models/send_email202_response_spec.rb +2 -2
- data/spec/models/send_email_batch200_response_spec.rb +2 -2
- data/spec/models/send_email_batch_request_spec.rb +8 -2
- data/spec/models/send_email_request_attachments_inner_spec.rb +2 -2
- data/spec/models/send_email_request_spec.rb +26 -2
- data/spec/models/send_message_spec.rb +2 -2
- data/spec/models/shared_member_spec.rb +2 -2
- data/spec/models/signup_request_spec.rb +2 -2
- data/spec/models/simulated_inbound_spec.rb +2 -2
- data/spec/models/start_conversation_request_spec.rb +2 -2
- data/spec/models/start_migration202_response_spec.rb +2 -2
- data/spec/models/suppression_spec.rb +2 -2
- data/spec/models/template_input_spec.rb +2 -2
- data/spec/models/template_spec.rb +2 -2
- data/spec/models/tenant_health_check_spec.rb +54 -0
- data/spec/models/tenant_health_report_spec.rb +48 -0
- data/spec/models/tenant_spec.rb +2 -2
- data/spec/models/thread_classification_spec.rb +2 -2
- data/spec/models/thread_list_spec.rb +2 -2
- data/spec/models/thread_message_body_body_spec.rb +2 -2
- data/spec/models/thread_message_body_spec.rb +2 -2
- data/spec/models/thread_message_spec.rb +2 -2
- data/spec/models/thread_spec.rb +2 -2
- data/spec/models/thread_summary_spec.rb +2 -2
- data/spec/models/tracking_policy_spec.rb +54 -0
- data/spec/models/unit_bundle_spec.rb +2 -2
- data/spec/models/update_admin_request_spec.rb +2 -2
- data/spec/models/update_api_key_request_spec.rb +48 -0
- data/spec/models/update_calendar_event_request_spec.rb +2 -2
- data/spec/models/update_calendar_integration_request_spec.rb +2 -2
- data/spec/models/update_calendar_member_request_spec.rb +2 -2
- data/spec/models/update_calendar_policies_request_spec.rb +2 -2
- data/spec/models/update_calendar_request_spec.rb +2 -2
- data/spec/models/update_contact_list_request_spec.rb +2 -2
- data/spec/models/update_contact_request_spec.rb +2 -2
- data/spec/models/update_directory_permissions_request_spec.rb +2 -2
- data/spec/models/update_gal_settings_request_spec.rb +2 -2
- data/spec/models/update_mailbox_request_spec.rb +2 -2
- data/spec/models/update_migration_mailbox_request_spec.rb +2 -2
- data/spec/models/update_migration_request_spec.rb +2 -2
- data/spec/models/update_resource_request_spec.rb +2 -2
- data/spec/models/update_tracking_policy_request_spec.rb +42 -0
- data/spec/models/update_user_request_spec.rb +2 -2
- data/spec/models/update_webhook_request_spec.rb +2 -2
- data/spec/models/user_event_spec.rb +2 -2
- data/spec/models/user_spec.rb +2 -2
- data/spec/models/webhook_spec.rb +2 -2
- data/spec/models/whoami_key_spec.rb +2 -2
- data/spec/models/whoami_spec.rb +2 -2
- data/spec/models/whoami_tenant_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +274 -233
- data/docs/ListVacationResponders200Response.md +0 -18
- data/docs/SetVacationResponderRequest.md +0 -20
- data/docs/VacationParams.md +0 -24
- data/docs/VacationResponder.md +0 -30
- data/lib/lockally/models/vacation_responder.rb +0 -305
- data/spec/models/list_vacation_responders200_response_spec.rb +0 -36
- data/spec/models/set_vacation_responder_request_spec.rb +0 -42
- data/spec/models/vacation_params_spec.rb +0 -54
- data/spec/models/vacation_responder_spec.rb +0 -72
data/docs/ContactsApi.md
CHANGED
|
@@ -4,12 +4,87 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**bulk_upsert_external_contacts**](ContactsApi.md#bulk_upsert_external_contacts) | **PUT** /v1/contacts/external/{system} | Create or update up to 500 contacts by their ids in another system |
|
|
7
8
|
| [**create_contact**](ContactsApi.md#create_contact) | **POST** /v1/contacts | Create a contact |
|
|
8
9
|
| [**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /v1/contacts/{id} | Delete a contact |
|
|
10
|
+
| [**delete_external_contact**](ContactsApi.md#delete_external_contact) | **DELETE** /v1/contacts/external/{system}/{external_id} | Delete a contact by its id in another system |
|
|
9
11
|
| [**get_contact**](ContactsApi.md#get_contact) | **GET** /v1/contacts/{id} | Get a contact |
|
|
10
12
|
| [**get_contact_lists**](ContactsApi.md#get_contact_lists) | **GET** /v1/contacts/{id}/lists | Get lists a contact belongs to |
|
|
13
|
+
| [**get_external_contact**](ContactsApi.md#get_external_contact) | **GET** /v1/contacts/external/{system}/{external_id} | Get a contact by its id in another system |
|
|
11
14
|
| [**list_contacts**](ContactsApi.md#list_contacts) | **GET** /v1/contacts | List contacts |
|
|
12
15
|
| [**update_contact**](ContactsApi.md#update_contact) | **PATCH** /v1/contacts/{id} | Update a contact |
|
|
16
|
+
| [**upsert_external_contact**](ContactsApi.md#upsert_external_contact) | **PUT** /v1/contacts/external/{system}/{external_id} | Create or update a contact by its id in another system |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## bulk_upsert_external_contacts
|
|
20
|
+
|
|
21
|
+
> <BulkUpsertExternalContacts200Response> bulk_upsert_external_contacts(system, bulk_upsert_external_contacts_request)
|
|
22
|
+
|
|
23
|
+
Create or update up to 500 contacts by their ids in another system
|
|
24
|
+
|
|
25
|
+
For a sync. Each row stands alone: a bad row is reported in `results` with its index and the rest are stored, so the response is 200 whenever the request itself is well formed. Read `failed` and `results`. Two rows with the same `external_id` in one request are refused (the later one), because which is current cannot be known. Rerunning the same payload updates rather than duplicates.
|
|
26
|
+
|
|
27
|
+
### Examples
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
require 'time'
|
|
31
|
+
require 'lockally'
|
|
32
|
+
# setup authorization
|
|
33
|
+
Lockally.configure do |config|
|
|
34
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
35
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
api_instance = Lockally::ContactsApi.new
|
|
39
|
+
system = 'system_example' # String |
|
|
40
|
+
bulk_upsert_external_contacts_request = Lockally::BulkUpsertExternalContactsRequest.new({contacts: [Lockally::BulkUpsertExternalContactsRequestContactsInner.new({email: 'email_example', external_id: 'external_id_example'})]}) # BulkUpsertExternalContactsRequest |
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Create or update up to 500 contacts by their ids in another system
|
|
44
|
+
result = api_instance.bulk_upsert_external_contacts(system, bulk_upsert_external_contacts_request)
|
|
45
|
+
p result
|
|
46
|
+
rescue Lockally::ApiError => e
|
|
47
|
+
puts "Error when calling ContactsApi->bulk_upsert_external_contacts: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the bulk_upsert_external_contacts_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<BulkUpsertExternalContacts200Response>, Integer, Hash)> bulk_upsert_external_contacts_with_http_info(system, bulk_upsert_external_contacts_request)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Create or update up to 500 contacts by their ids in another system
|
|
60
|
+
data, status_code, headers = api_instance.bulk_upsert_external_contacts_with_http_info(system, bulk_upsert_external_contacts_request)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <BulkUpsertExternalContacts200Response>
|
|
64
|
+
rescue Lockally::ApiError => e
|
|
65
|
+
puts "Error when calling ContactsApi->bulk_upsert_external_contacts_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **system** | **String** | | |
|
|
74
|
+
| **bulk_upsert_external_contacts_request** | [**BulkUpsertExternalContactsRequest**](BulkUpsertExternalContactsRequest.md) | | |
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
[**BulkUpsertExternalContacts200Response**](BulkUpsertExternalContacts200Response.md)
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: application/json
|
|
87
|
+
- **Accept**: application/json, application/problem+json
|
|
13
88
|
|
|
14
89
|
|
|
15
90
|
## create_contact
|
|
@@ -145,6 +220,74 @@ nil (empty response body)
|
|
|
145
220
|
- **Accept**: application/problem+json
|
|
146
221
|
|
|
147
222
|
|
|
223
|
+
## delete_external_contact
|
|
224
|
+
|
|
225
|
+
> delete_external_contact(system, external_id)
|
|
226
|
+
|
|
227
|
+
Delete a contact by its id in another system
|
|
228
|
+
|
|
229
|
+
### Examples
|
|
230
|
+
|
|
231
|
+
```ruby
|
|
232
|
+
require 'time'
|
|
233
|
+
require 'lockally'
|
|
234
|
+
# setup authorization
|
|
235
|
+
Lockally.configure do |config|
|
|
236
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
237
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
api_instance = Lockally::ContactsApi.new
|
|
241
|
+
system = 'system_example' # String | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded).
|
|
242
|
+
external_id = 'external_id_example' # String | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it.
|
|
243
|
+
|
|
244
|
+
begin
|
|
245
|
+
# Delete a contact by its id in another system
|
|
246
|
+
api_instance.delete_external_contact(system, external_id)
|
|
247
|
+
rescue Lockally::ApiError => e
|
|
248
|
+
puts "Error when calling ContactsApi->delete_external_contact: #{e}"
|
|
249
|
+
end
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
#### Using the delete_external_contact_with_http_info variant
|
|
253
|
+
|
|
254
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
255
|
+
|
|
256
|
+
> <Array(nil, Integer, Hash)> delete_external_contact_with_http_info(system, external_id)
|
|
257
|
+
|
|
258
|
+
```ruby
|
|
259
|
+
begin
|
|
260
|
+
# Delete a contact by its id in another system
|
|
261
|
+
data, status_code, headers = api_instance.delete_external_contact_with_http_info(system, external_id)
|
|
262
|
+
p status_code # => 2xx
|
|
263
|
+
p headers # => { ... }
|
|
264
|
+
p data # => nil
|
|
265
|
+
rescue Lockally::ApiError => e
|
|
266
|
+
puts "Error when calling ContactsApi->delete_external_contact_with_http_info: #{e}"
|
|
267
|
+
end
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
|
|
272
|
+
| Name | Type | Description | Notes |
|
|
273
|
+
| ---- | ---- | ----------- | ----- |
|
|
274
|
+
| **system** | **String** | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded). | |
|
|
275
|
+
| **external_id** | **String** | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it. | |
|
|
276
|
+
|
|
277
|
+
### Return type
|
|
278
|
+
|
|
279
|
+
nil (empty response body)
|
|
280
|
+
|
|
281
|
+
### Authorization
|
|
282
|
+
|
|
283
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
284
|
+
|
|
285
|
+
### HTTP request headers
|
|
286
|
+
|
|
287
|
+
- **Content-Type**: Not defined
|
|
288
|
+
- **Accept**: application/problem+json
|
|
289
|
+
|
|
290
|
+
|
|
148
291
|
## get_contact
|
|
149
292
|
|
|
150
293
|
> <Contact> get_contact(id)
|
|
@@ -279,6 +422,75 @@ end
|
|
|
279
422
|
- **Accept**: application/json, application/problem+json
|
|
280
423
|
|
|
281
424
|
|
|
425
|
+
## get_external_contact
|
|
426
|
+
|
|
427
|
+
> <Contact> get_external_contact(system, external_id)
|
|
428
|
+
|
|
429
|
+
Get a contact by its id in another system
|
|
430
|
+
|
|
431
|
+
### Examples
|
|
432
|
+
|
|
433
|
+
```ruby
|
|
434
|
+
require 'time'
|
|
435
|
+
require 'lockally'
|
|
436
|
+
# setup authorization
|
|
437
|
+
Lockally.configure do |config|
|
|
438
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
439
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
api_instance = Lockally::ContactsApi.new
|
|
443
|
+
system = 'system_example' # String | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded).
|
|
444
|
+
external_id = 'external_id_example' # String | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it.
|
|
445
|
+
|
|
446
|
+
begin
|
|
447
|
+
# Get a contact by its id in another system
|
|
448
|
+
result = api_instance.get_external_contact(system, external_id)
|
|
449
|
+
p result
|
|
450
|
+
rescue Lockally::ApiError => e
|
|
451
|
+
puts "Error when calling ContactsApi->get_external_contact: #{e}"
|
|
452
|
+
end
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
#### Using the get_external_contact_with_http_info variant
|
|
456
|
+
|
|
457
|
+
This returns an Array which contains the response data, status code and headers.
|
|
458
|
+
|
|
459
|
+
> <Array(<Contact>, Integer, Hash)> get_external_contact_with_http_info(system, external_id)
|
|
460
|
+
|
|
461
|
+
```ruby
|
|
462
|
+
begin
|
|
463
|
+
# Get a contact by its id in another system
|
|
464
|
+
data, status_code, headers = api_instance.get_external_contact_with_http_info(system, external_id)
|
|
465
|
+
p status_code # => 2xx
|
|
466
|
+
p headers # => { ... }
|
|
467
|
+
p data # => <Contact>
|
|
468
|
+
rescue Lockally::ApiError => e
|
|
469
|
+
puts "Error when calling ContactsApi->get_external_contact_with_http_info: #{e}"
|
|
470
|
+
end
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
### Parameters
|
|
474
|
+
|
|
475
|
+
| Name | Type | Description | Notes |
|
|
476
|
+
| ---- | ---- | ----------- | ----- |
|
|
477
|
+
| **system** | **String** | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded). | |
|
|
478
|
+
| **external_id** | **String** | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it. | |
|
|
479
|
+
|
|
480
|
+
### Return type
|
|
481
|
+
|
|
482
|
+
[**Contact**](Contact.md)
|
|
483
|
+
|
|
484
|
+
### Authorization
|
|
485
|
+
|
|
486
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
487
|
+
|
|
488
|
+
### HTTP request headers
|
|
489
|
+
|
|
490
|
+
- **Content-Type**: Not defined
|
|
491
|
+
- **Accept**: application/json, application/problem+json
|
|
492
|
+
|
|
493
|
+
|
|
282
494
|
## list_contacts
|
|
283
495
|
|
|
284
496
|
> <ListContacts200Response> list_contacts(opts)
|
|
@@ -424,3 +636,76 @@ end
|
|
|
424
636
|
- **Content-Type**: application/json
|
|
425
637
|
- **Accept**: application/json, application/problem+json
|
|
426
638
|
|
|
639
|
+
|
|
640
|
+
## upsert_external_contact
|
|
641
|
+
|
|
642
|
+
> <Contact> upsert_external_contact(system, external_id, external_contact_input)
|
|
643
|
+
|
|
644
|
+
Create or update a contact by its id in another system
|
|
645
|
+
|
|
646
|
+
Idempotent: the path is the identity, so sending the same request twice cannot create a second contact, and you never need to store our id. Returns 201 when the contact was created and 200 when it already existed. The body is the full representation: a field you leave out is cleared. Email is an ordinary attribute, not a key, so changing it updates the same contact. `mailboxes:write` is also accepted.
|
|
647
|
+
|
|
648
|
+
### Examples
|
|
649
|
+
|
|
650
|
+
```ruby
|
|
651
|
+
require 'time'
|
|
652
|
+
require 'lockally'
|
|
653
|
+
# setup authorization
|
|
654
|
+
Lockally.configure do |config|
|
|
655
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
656
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
api_instance = Lockally::ContactsApi.new
|
|
660
|
+
system = 'system_example' # String | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded).
|
|
661
|
+
external_id = 'external_id_example' # String | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it.
|
|
662
|
+
external_contact_input = Lockally::ExternalContactInput.new({email: 'email_example'}) # ExternalContactInput |
|
|
663
|
+
|
|
664
|
+
begin
|
|
665
|
+
# Create or update a contact by its id in another system
|
|
666
|
+
result = api_instance.upsert_external_contact(system, external_id, external_contact_input)
|
|
667
|
+
p result
|
|
668
|
+
rescue Lockally::ApiError => e
|
|
669
|
+
puts "Error when calling ContactsApi->upsert_external_contact: #{e}"
|
|
670
|
+
end
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
#### Using the upsert_external_contact_with_http_info variant
|
|
674
|
+
|
|
675
|
+
This returns an Array which contains the response data, status code and headers.
|
|
676
|
+
|
|
677
|
+
> <Array(<Contact>, Integer, Hash)> upsert_external_contact_with_http_info(system, external_id, external_contact_input)
|
|
678
|
+
|
|
679
|
+
```ruby
|
|
680
|
+
begin
|
|
681
|
+
# Create or update a contact by its id in another system
|
|
682
|
+
data, status_code, headers = api_instance.upsert_external_contact_with_http_info(system, external_id, external_contact_input)
|
|
683
|
+
p status_code # => 2xx
|
|
684
|
+
p headers # => { ... }
|
|
685
|
+
p data # => <Contact>
|
|
686
|
+
rescue Lockally::ApiError => e
|
|
687
|
+
puts "Error when calling ContactsApi->upsert_external_contact_with_http_info: #{e}"
|
|
688
|
+
end
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
### Parameters
|
|
692
|
+
|
|
693
|
+
| Name | Type | Description | Notes |
|
|
694
|
+
| ---- | ---- | ----------- | ----- |
|
|
695
|
+
| **system** | **String** | Your label for the system the record comes from, for example `salesforce`, `hubspot` or `odoo`. 1 to 64 characters: lowercase letters, digits, dot, underscore or hyphen (upper case is folded). | |
|
|
696
|
+
| **external_id** | **String** | The record's id in that system, kept exactly as given (case matters). 1 to 255 characters, no spaces. URL-encode it. | |
|
|
697
|
+
| **external_contact_input** | [**ExternalContactInput**](ExternalContactInput.md) | | |
|
|
698
|
+
|
|
699
|
+
### Return type
|
|
700
|
+
|
|
701
|
+
[**Contact**](Contact.md)
|
|
702
|
+
|
|
703
|
+
### Authorization
|
|
704
|
+
|
|
705
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
706
|
+
|
|
707
|
+
### HTTP request headers
|
|
708
|
+
|
|
709
|
+
- **Content-Type**: application/json
|
|
710
|
+
- **Accept**: application/json, application/problem+json
|
|
711
|
+
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
| **last_used_at** | **Time** | | [optional] |
|
|
13
13
|
| **revoked_at** | **Time** | | [optional] |
|
|
14
14
|
| **created_at** | **Time** | | |
|
|
15
|
+
| **test** | **Boolean** | True for an lk_test_* key: the whole request path runs but a send never reaches the mail server and nothing counts against the account. | [optional] |
|
|
16
|
+
| **expires_at** | **Time** | When the key stops authenticating. Null means it does not expire, which is how every key behaved before expiry existed. Enforced at authentication, so the key fails the first request after this moment rather than whenever a sweep runs. | [optional] |
|
|
17
|
+
| **rotated_to** | **String** | The successor issued by `POST /v1/api-keys/{id}/rotate`. Set on the PREDECESSOR, so you can see which key replaced this one while both still work through the overlap window. | [optional] |
|
|
15
18
|
| **secret** | **String** | The full `lk_live_<prefix>_<secret>` token. Shown ONCE. | |
|
|
16
19
|
|
|
17
20
|
## Example
|
|
@@ -28,6 +31,9 @@ instance = Lockally::CreateApiKey201Response.new(
|
|
|
28
31
|
last_used_at: null,
|
|
29
32
|
revoked_at: null,
|
|
30
33
|
created_at: null,
|
|
34
|
+
test: null,
|
|
35
|
+
expires_at: null,
|
|
36
|
+
rotated_to: null,
|
|
31
37
|
secret: lk_live_fbl73bhj_sfvqy7y757cnvu33bgqdpyrrhq3tyyf3
|
|
32
38
|
)
|
|
33
39
|
```
|
data/docs/CreateApiKeyRequest.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **label** | **String** | Free-text identifier shown in the dashboard. | |
|
|
8
8
|
| **scopes** | **Array<String>** | Allowed scopes on this key. | |
|
|
9
9
|
| **test** | **Boolean** | Issue a test key (`lk_test_` prefix). A test key accepts sends, records them and fires a simulated delivery webhook without sending mail, and counts against no limit or allowance. | [optional][default to false] |
|
|
10
|
+
| **expires_at** | **Time** | Optional. When the key stops authenticating. Omit it for a key that does not expire. Must be in the future: an expiry already past would mint a key that fails its first request. | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'lockally'
|
|
|
16
17
|
instance = Lockally::CreateApiKeyRequest.new(
|
|
17
18
|
label: ci-pipeline,
|
|
18
19
|
scopes: null,
|
|
19
|
-
test: null
|
|
20
|
+
test: null,
|
|
21
|
+
expires_at: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **id** | **String** | | [optional] |
|
|
8
8
|
| **mailbox_id** | **String** | | [optional] |
|
|
9
9
|
| **created_at** | **Time** | | [optional] |
|
|
10
|
+
| **replaced_old** | **Boolean** | | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'lockally'
|
|
|
16
17
|
instance = Lockally::CreateEncryptionKey201Response.new(
|
|
17
18
|
id: null,
|
|
18
19
|
mailbox_id: null,
|
|
19
|
-
created_at: null
|
|
20
|
+
created_at: null,
|
|
21
|
+
replaced_old: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **mailbox_email** | **String** | |
|
|
7
|
+
| **mailbox_email** | **String** | | [optional] |
|
|
8
8
|
| **public_key** | **String** | | |
|
|
9
9
|
| **encrypted_private_key** | **String** | | |
|
|
10
10
|
| **kdf_params** | **Object** | | [optional] |
|
data/docs/DashboardApi.md
CHANGED
|
@@ -335,7 +335,7 @@ This endpoint does not need any parameter.
|
|
|
335
335
|
|
|
336
336
|
## get_tenant_health
|
|
337
337
|
|
|
338
|
-
>
|
|
338
|
+
> <TenantHealthReport> get_tenant_health
|
|
339
339
|
|
|
340
340
|
Full tenant health report
|
|
341
341
|
|
|
@@ -365,7 +365,7 @@ end
|
|
|
365
365
|
|
|
366
366
|
This returns an Array which contains the response data, status code and headers.
|
|
367
367
|
|
|
368
|
-
> <Array(
|
|
368
|
+
> <Array(<TenantHealthReport>, Integer, Hash)> get_tenant_health_with_http_info
|
|
369
369
|
|
|
370
370
|
```ruby
|
|
371
371
|
begin
|
|
@@ -373,7 +373,7 @@ begin
|
|
|
373
373
|
data, status_code, headers = api_instance.get_tenant_health_with_http_info
|
|
374
374
|
p status_code # => 2xx
|
|
375
375
|
p headers # => { ... }
|
|
376
|
-
p data # =>
|
|
376
|
+
p data # => <TenantHealthReport>
|
|
377
377
|
rescue Lockally::ApiError => e
|
|
378
378
|
puts "Error when calling DashboardApi->get_tenant_health_with_http_info: #{e}"
|
|
379
379
|
end
|
|
@@ -385,7 +385,7 @@ This endpoint does not need any parameter.
|
|
|
385
385
|
|
|
386
386
|
### Return type
|
|
387
387
|
|
|
388
|
-
**
|
|
388
|
+
[**TenantHealthReport**](TenantHealthReport.md)
|
|
389
389
|
|
|
390
390
|
### Authorization
|
|
391
391
|
|
data/docs/DomainsApi.md
CHANGED
|
@@ -427,7 +427,7 @@ end
|
|
|
427
427
|
|
|
428
428
|
## list_domains
|
|
429
429
|
|
|
430
|
-
> <ListDomains200Response> list_domains
|
|
430
|
+
> <ListDomains200Response> list_domains(opts)
|
|
431
431
|
|
|
432
432
|
List domains
|
|
433
433
|
|
|
@@ -445,10 +445,14 @@ Lockally.configure do |config|
|
|
|
445
445
|
end
|
|
446
446
|
|
|
447
447
|
api_instance = Lockally::DomainsApi.new
|
|
448
|
+
opts = {
|
|
449
|
+
sort: 'domain', # String | Field to order by. This list holds tens of rows per account, so every column is offered and none needs an index.
|
|
450
|
+
order: 'asc' # String | Defaults to desc for the default field and asc for any other. Always tie-broken on id, so the order is total.
|
|
451
|
+
}
|
|
448
452
|
|
|
449
453
|
begin
|
|
450
454
|
# List domains
|
|
451
|
-
result = api_instance.list_domains
|
|
455
|
+
result = api_instance.list_domains(opts)
|
|
452
456
|
p result
|
|
453
457
|
rescue Lockally::ApiError => e
|
|
454
458
|
puts "Error when calling DomainsApi->list_domains: #{e}"
|
|
@@ -459,12 +463,12 @@ end
|
|
|
459
463
|
|
|
460
464
|
This returns an Array which contains the response data, status code and headers.
|
|
461
465
|
|
|
462
|
-
> <Array(<ListDomains200Response>, Integer, Hash)> list_domains_with_http_info
|
|
466
|
+
> <Array(<ListDomains200Response>, Integer, Hash)> list_domains_with_http_info(opts)
|
|
463
467
|
|
|
464
468
|
```ruby
|
|
465
469
|
begin
|
|
466
470
|
# List domains
|
|
467
|
-
data, status_code, headers = api_instance.list_domains_with_http_info
|
|
471
|
+
data, status_code, headers = api_instance.list_domains_with_http_info(opts)
|
|
468
472
|
p status_code # => 2xx
|
|
469
473
|
p headers # => { ... }
|
|
470
474
|
p data # => <ListDomains200Response>
|
|
@@ -475,7 +479,10 @@ end
|
|
|
475
479
|
|
|
476
480
|
### Parameters
|
|
477
481
|
|
|
478
|
-
|
|
482
|
+
| Name | Type | Description | Notes |
|
|
483
|
+
| ---- | ---- | ----------- | ----- |
|
|
484
|
+
| **sort** | **String** | Field to order by. This list holds tens of rows per account, so every column is offered and none needs an index. | [optional][default to 'created_at'] |
|
|
485
|
+
| **order** | **String** | Defaults to desc for the default field and asc for any other. Always tie-broken on id, so the order is total. | [optional] |
|
|
479
486
|
|
|
480
487
|
### Return type
|
|
481
488
|
|
data/docs/EncryptionApi.md
CHANGED
|
@@ -8,7 +8,8 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
8
8
|
| [**create_encryption_key**](EncryptionApi.md#create_encryption_key) | **POST** /v1/encryption/keys | Upload an encryption key pair |
|
|
9
9
|
| [**create_encryption_recovery**](EncryptionApi.md#create_encryption_recovery) | **POST** /v1/encryption/recovery | Store an encryption recovery blob |
|
|
10
10
|
| [**get_encryption_key**](EncryptionApi.md#get_encryption_key) | **GET** /v1/encryption/keys/{email} | Get encryption key for a mailbox |
|
|
11
|
-
| [**
|
|
11
|
+
| [**get_encryption_status**](EncryptionApi.md#get_encryption_status) | **GET** /v1/encryption/status | End-to-end encryption status for the workspace |
|
|
12
|
+
| [**rotate_encryption_key**](EncryptionApi.md#rotate_encryption_key) | **POST** /v1/encryption/keys/rotate | Re-seal an encryption key under a new password |
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
## batch_lookup_public_keys
|
|
@@ -84,6 +85,8 @@ end
|
|
|
84
85
|
|
|
85
86
|
Upload an encryption key pair
|
|
86
87
|
|
|
88
|
+
Only the mailbox's own webmail session may call this; an API key is refused with 403. The private key is sealed under that mailbox's password, which an administrator never has. `mailbox_email`, if sent, must be the caller's own mailbox. A mailbox that already has a key is starting over: the old key is kept inactive, not destroyed, and the new one starts without a recovery code.
|
|
89
|
+
|
|
87
90
|
### Examples
|
|
88
91
|
|
|
89
92
|
```ruby
|
|
@@ -96,7 +99,7 @@ Lockally.configure do |config|
|
|
|
96
99
|
end
|
|
97
100
|
|
|
98
101
|
api_instance = Lockally::EncryptionApi.new
|
|
99
|
-
create_encryption_key_request = Lockally::CreateEncryptionKeyRequest.new({
|
|
102
|
+
create_encryption_key_request = Lockally::CreateEncryptionKeyRequest.new({public_key: 'public_key_example', encrypted_private_key: 'encrypted_private_key_example'}) # CreateEncryptionKeyRequest |
|
|
100
103
|
|
|
101
104
|
begin
|
|
102
105
|
# Upload an encryption key pair
|
|
@@ -151,6 +154,8 @@ end
|
|
|
151
154
|
|
|
152
155
|
Store an encryption recovery blob
|
|
153
156
|
|
|
157
|
+
Only the mailbox's own webmail session may call this; an API key is refused with 403. The private key is sealed under that mailbox's password, which an administrator never has. `mailbox_email`, if sent, must be the caller's own mailbox. The blob is the private key sealed under a recovery code the browser generated; the code itself is never sent. Replaces any earlier one.
|
|
158
|
+
|
|
154
159
|
### Examples
|
|
155
160
|
|
|
156
161
|
```ruby
|
|
@@ -163,7 +168,7 @@ Lockally.configure do |config|
|
|
|
163
168
|
end
|
|
164
169
|
|
|
165
170
|
api_instance = Lockally::EncryptionApi.new
|
|
166
|
-
create_encryption_recovery_request = Lockally::CreateEncryptionRecoveryRequest.new({
|
|
171
|
+
create_encryption_recovery_request = Lockally::CreateEncryptionRecoveryRequest.new({recovery_blob: 'recovery_blob_example'}) # CreateEncryptionRecoveryRequest |
|
|
167
172
|
|
|
168
173
|
begin
|
|
169
174
|
# Store an encryption recovery blob
|
|
@@ -217,6 +222,8 @@ nil (empty response body)
|
|
|
217
222
|
|
|
218
223
|
Get encryption key for a mailbox
|
|
219
224
|
|
|
225
|
+
Anyone in the workspace gets the public key. The mailbox's own webmail session also gets its sealed private key, its sealed recovery copy and the recovery state.
|
|
226
|
+
|
|
220
227
|
### Examples
|
|
221
228
|
|
|
222
229
|
```ruby
|
|
@@ -278,11 +285,79 @@ end
|
|
|
278
285
|
- **Accept**: application/json, application/problem+json
|
|
279
286
|
|
|
280
287
|
|
|
288
|
+
## get_encryption_status
|
|
289
|
+
|
|
290
|
+
> <GetEncryptionStatus200Response> get_encryption_status
|
|
291
|
+
|
|
292
|
+
End-to-end encryption status for the workspace
|
|
293
|
+
|
|
294
|
+
For administrators: whether the add-on is on, and for each mailbox whether it has a key and a recovery code. Carries no key material.
|
|
295
|
+
|
|
296
|
+
### Examples
|
|
297
|
+
|
|
298
|
+
```ruby
|
|
299
|
+
require 'time'
|
|
300
|
+
require 'lockally'
|
|
301
|
+
# setup authorization
|
|
302
|
+
Lockally.configure do |config|
|
|
303
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
304
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
api_instance = Lockally::EncryptionApi.new
|
|
308
|
+
|
|
309
|
+
begin
|
|
310
|
+
# End-to-end encryption status for the workspace
|
|
311
|
+
result = api_instance.get_encryption_status
|
|
312
|
+
p result
|
|
313
|
+
rescue Lockally::ApiError => e
|
|
314
|
+
puts "Error when calling EncryptionApi->get_encryption_status: #{e}"
|
|
315
|
+
end
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
#### Using the get_encryption_status_with_http_info variant
|
|
319
|
+
|
|
320
|
+
This returns an Array which contains the response data, status code and headers.
|
|
321
|
+
|
|
322
|
+
> <Array(<GetEncryptionStatus200Response>, Integer, Hash)> get_encryption_status_with_http_info
|
|
323
|
+
|
|
324
|
+
```ruby
|
|
325
|
+
begin
|
|
326
|
+
# End-to-end encryption status for the workspace
|
|
327
|
+
data, status_code, headers = api_instance.get_encryption_status_with_http_info
|
|
328
|
+
p status_code # => 2xx
|
|
329
|
+
p headers # => { ... }
|
|
330
|
+
p data # => <GetEncryptionStatus200Response>
|
|
331
|
+
rescue Lockally::ApiError => e
|
|
332
|
+
puts "Error when calling EncryptionApi->get_encryption_status_with_http_info: #{e}"
|
|
333
|
+
end
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Parameters
|
|
337
|
+
|
|
338
|
+
This endpoint does not need any parameter.
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**GetEncryptionStatus200Response**](GetEncryptionStatus200Response.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: application/json, application/problem+json
|
|
352
|
+
|
|
353
|
+
|
|
281
354
|
## rotate_encryption_key
|
|
282
355
|
|
|
283
356
|
> rotate_encryption_key(rotate_encryption_key_request)
|
|
284
357
|
|
|
285
|
-
|
|
358
|
+
Re-seal an encryption key under a new password
|
|
359
|
+
|
|
360
|
+
Only the mailbox's own webmail session may call this; an API key is refused with 403. The private key is sealed under that mailbox's password, which an administrator never has. `mailbox_email`, if sent, must be the caller's own mailbox. The key pair does not change, so every message stays readable.
|
|
286
361
|
|
|
287
362
|
### Examples
|
|
288
363
|
|
|
@@ -296,10 +371,10 @@ Lockally.configure do |config|
|
|
|
296
371
|
end
|
|
297
372
|
|
|
298
373
|
api_instance = Lockally::EncryptionApi.new
|
|
299
|
-
rotate_encryption_key_request = Lockally::RotateEncryptionKeyRequest.new({
|
|
374
|
+
rotate_encryption_key_request = Lockally::RotateEncryptionKeyRequest.new({encrypted_private_key: 'encrypted_private_key_example'}) # RotateEncryptionKeyRequest |
|
|
300
375
|
|
|
301
376
|
begin
|
|
302
|
-
#
|
|
377
|
+
# Re-seal an encryption key under a new password
|
|
303
378
|
api_instance.rotate_encryption_key(rotate_encryption_key_request)
|
|
304
379
|
rescue Lockally::ApiError => e
|
|
305
380
|
puts "Error when calling EncryptionApi->rotate_encryption_key: #{e}"
|
|
@@ -314,7 +389,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
|
314
389
|
|
|
315
390
|
```ruby
|
|
316
391
|
begin
|
|
317
|
-
#
|
|
392
|
+
# Re-seal an encryption key under a new password
|
|
318
393
|
data, status_code, headers = api_instance.rotate_encryption_key_with_http_info(rotate_encryption_key_request)
|
|
319
394
|
p status_code # => 2xx
|
|
320
395
|
p headers # => { ... }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Lockally::ExternalContactInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email** | **String** | | |
|
|
8
|
+
| **name** | **String** | Defaults to the email address when empty. | [optional] |
|
|
9
|
+
| **phone** | **String** | | [optional] |
|
|
10
|
+
| **company** | **String** | | [optional] |
|
|
11
|
+
| **notes** | **String** | | [optional] |
|
|
12
|
+
| **contact_type** | **String** | | [optional][default to 'external'] |
|
|
13
|
+
| **department** | **String** | | [optional] |
|
|
14
|
+
| **role** | **String** | | [optional] |
|
|
15
|
+
| **status** | **String** | | [optional][default to 'active'] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'lockally'
|
|
21
|
+
|
|
22
|
+
instance = Lockally::ExternalContactInput.new(
|
|
23
|
+
email: null,
|
|
24
|
+
name: null,
|
|
25
|
+
phone: null,
|
|
26
|
+
company: null,
|
|
27
|
+
notes: null,
|
|
28
|
+
contact_type: null,
|
|
29
|
+
department: null,
|
|
30
|
+
role: null,
|
|
31
|
+
status: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|