lockally 0.3.2 → 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/AdminApi.md +3 -3
- data/docs/AdminsApi.md +1 -1
- data/docs/AgentsApi.md +2 -2
- data/docs/AiApi.md +1 -1
- data/docs/AliasesApi.md +1 -1
- data/docs/ApiKeysApi.md +161 -8
- 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 +15 -8
- 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 +4 -282
- 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 +14 -6
- 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 +138 -1
- data/docs/TenantHealthCheck.md +24 -0
- data/docs/TenantHealthReport.md +22 -0
- data/docs/TestApi.md +1 -1
- 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/docs/WebhooksApi.md +3 -3
- data/git_push.sh +2 -2
- data/lib/lockally/api/add_ons_api.rb +2 -2
- data/lib/lockally/api/admin_api.rb +8 -8
- data/lib/lockally/api/admins_api.rb +4 -4
- data/lib/lockally/api/agents_api.rb +6 -6
- data/lib/lockally/api/ai_api.rb +4 -4
- data/lib/lockally/api/aliases_api.rb +4 -4
- data/lib/lockally/api/api_keys_api.rb +166 -8
- 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 +22 -8
- 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 +10 -267
- 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 +30 -10
- 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 +129 -4
- data/lib/lockally/api/test_api.rb +4 -4
- data/lib/lockally/api/users_api.rb +8 -6
- data/lib/lockally/api/webhooks_api.rb +8 -8
- 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 +5 -5
- data/spec/api/admins_api_spec.rb +3 -3
- data/spec/api/agents_api_spec.rb +4 -4
- data/spec/api/ai_api_spec.rb +3 -3
- data/spec/api/aliases_api_spec.rb +3 -3
- data/spec/api/api_keys_api_spec.rb +33 -5
- 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 +7 -5
- 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 +6 -54
- 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 +10 -6
- 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 +26 -3
- data/spec/api/test_api_spec.rb +3 -3
- data/spec/api/users_api_spec.rb +5 -4
- data/spec/api/webhooks_api_spec.rb +5 -5
- 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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Lockally::MigrationDomainDNS
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **domain** | **String** | | |
|
|
8
|
+
| **mx** | **String** | | |
|
|
9
|
+
| **spf** | **String** | | |
|
|
10
|
+
| **dkim** | **String** | | |
|
|
11
|
+
| **dmarc** | **String** | | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'lockally'
|
|
17
|
+
|
|
18
|
+
instance = Lockally::MigrationDomainDNS.new(
|
|
19
|
+
domain: null,
|
|
20
|
+
mx: null,
|
|
21
|
+
spf: null,
|
|
22
|
+
dkim: null,
|
|
23
|
+
dmarc: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/MigrationsApi.md
CHANGED
|
@@ -96,7 +96,7 @@ end
|
|
|
96
96
|
|
|
97
97
|
## check_migration_dns
|
|
98
98
|
|
|
99
|
-
>
|
|
99
|
+
> <MigrationDNSCheck> check_migration_dns(id)
|
|
100
100
|
|
|
101
101
|
Check DNS readiness for cutover
|
|
102
102
|
|
|
@@ -127,7 +127,7 @@ end
|
|
|
127
127
|
|
|
128
128
|
This returns an Array which contains the response data, status code and headers.
|
|
129
129
|
|
|
130
|
-
> <Array(
|
|
130
|
+
> <Array(<MigrationDNSCheck>, Integer, Hash)> check_migration_dns_with_http_info(id)
|
|
131
131
|
|
|
132
132
|
```ruby
|
|
133
133
|
begin
|
|
@@ -135,7 +135,7 @@ begin
|
|
|
135
135
|
data, status_code, headers = api_instance.check_migration_dns_with_http_info(id)
|
|
136
136
|
p status_code # => 2xx
|
|
137
137
|
p headers # => { ... }
|
|
138
|
-
p data # =>
|
|
138
|
+
p data # => <MigrationDNSCheck>
|
|
139
139
|
rescue Lockally::ApiError => e
|
|
140
140
|
puts "Error when calling MigrationsApi->check_migration_dns_with_http_info: #{e}"
|
|
141
141
|
end
|
|
@@ -149,7 +149,7 @@ end
|
|
|
149
149
|
|
|
150
150
|
### Return type
|
|
151
151
|
|
|
152
|
-
**
|
|
152
|
+
[**MigrationDNSCheck**](MigrationDNSCheck.md)
|
|
153
153
|
|
|
154
154
|
### Authorization
|
|
155
155
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Lockally::RotateApiKeyRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **grace_seconds** | **Integer** | How long the old key keeps working. Defaults to 24 hours, which is long enough to cut over without a scramble. Capped at 30 days, because beyond that \"rotated\" stops meaning anything. | [optional][default to 86400] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'lockally'
|
|
13
|
+
|
|
14
|
+
instance = Lockally::RotateApiKeyRequest.new(
|
|
15
|
+
grace_seconds: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -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
|
| **encrypted_private_key** | **String** | | |
|
|
9
9
|
| **kdf_params** | **Object** | | [optional] |
|
|
10
10
|
|
data/docs/SendApi.md
CHANGED
|
@@ -153,7 +153,7 @@ end
|
|
|
153
153
|
|
|
154
154
|
Aggregate delivery stats
|
|
155
155
|
|
|
156
|
-
Counts by delivery outcome (delivered/bounced/deferred/complaint) plus rates over a window, from the delivery-event store. Privacy-first: this reflects what receiving servers reported, NOT whether a human opened the mail
|
|
156
|
+
Counts by delivery outcome (delivered/bounced/deferred/complaint) plus rates over a window, from the delivery-event store. Privacy-first: this reflects what receiving servers reported, NOT whether a human opened the mail, Lockally does no open/click tracking.
|
|
157
157
|
|
|
158
158
|
### Examples
|
|
159
159
|
|
|
@@ -170,7 +170,8 @@ api_instance = Lockally::SendApi.new
|
|
|
170
170
|
opts = {
|
|
171
171
|
from: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Window start (default 7 days ago).
|
|
172
172
|
to: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Window end (default now).
|
|
173
|
-
domain: 'domain_example' # String | Filter by sender domain.
|
|
173
|
+
domain: 'domain_example', # String | Filter by sender domain.
|
|
174
|
+
tag: 'tag_example' # String | Group the window by the sender's own tags: one tag, or a comma-separated set meaning ANY. Case-insensitive. This is the dimension that tells a transactional stream from a notification one.
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
begin
|
|
@@ -207,6 +208,7 @@ end
|
|
|
207
208
|
| **from** | **Time** | Window start (default 7 days ago). | [optional] |
|
|
208
209
|
| **to** | **Time** | Window end (default now). | [optional] |
|
|
209
210
|
| **domain** | **String** | Filter by sender domain. | [optional] |
|
|
211
|
+
| **tag** | **String** | Group the window by the sender's own tags: one tag, or a comma-separated set meaning ANY. Case-insensitive. This is the dimension that tells a transactional stream from a notification one. | [optional] |
|
|
210
212
|
|
|
211
213
|
### Return type
|
|
212
214
|
|
|
@@ -228,7 +230,7 @@ end
|
|
|
228
230
|
|
|
229
231
|
List outbound messages
|
|
230
232
|
|
|
231
|
-
Returns recent outbound messages for the calling tenant, sorted newest first.
|
|
233
|
+
Returns recent outbound messages for the calling tenant, sorted newest first.
|
|
232
234
|
|
|
233
235
|
### Examples
|
|
234
236
|
|
|
@@ -245,10 +247,13 @@ api_instance = Lockally::SendApi.new
|
|
|
245
247
|
opts = {
|
|
246
248
|
status: 'queued', # String |
|
|
247
249
|
sender: 'sender_example', # String | Exact match against the `from` mailbox.
|
|
250
|
+
tag: 'tag_example', # String | Filter to messages carrying any of these tags. One tag, or a comma-separated set meaning ANY. Case-insensitive: the value is normalised the same way tags are on write.
|
|
248
251
|
q: 'q_example', # String | Free-text search across subject + sender.
|
|
249
252
|
since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only messages queued at or after this RFC 3339 instant.
|
|
250
253
|
cursor: 'cursor_example', # String | queued_at of the prior page boundary. Pass back the `next_cursor` returned by the previous call.
|
|
251
|
-
limit: 56 # Integer |
|
|
254
|
+
limit: 56, # Integer |
|
|
255
|
+
sort: 'queued_at', # String | Field to order by. Only indexed columns are offered: an unindexed sort on this table is a full scan of the account's send history. status and sender are filters instead.
|
|
256
|
+
order: 'asc' # String | Defaults to desc for the default field and asc for any other. The order is always made total by a tie-break on id, so paging cannot repeat or skip a row that shares a timestamp. cursor encodes queued_at, so combining it with another sort is a 400 rather than a wrong page.
|
|
252
257
|
}
|
|
253
258
|
|
|
254
259
|
begin
|
|
@@ -284,10 +289,13 @@ end
|
|
|
284
289
|
| ---- | ---- | ----------- | ----- |
|
|
285
290
|
| **status** | **String** | | [optional] |
|
|
286
291
|
| **sender** | **String** | Exact match against the `from` mailbox. | [optional] |
|
|
292
|
+
| **tag** | **String** | Filter to messages carrying any of these tags. One tag, or a comma-separated set meaning ANY. Case-insensitive: the value is normalised the same way tags are on write. | [optional] |
|
|
287
293
|
| **q** | **String** | Free-text search across subject + sender. | [optional] |
|
|
288
294
|
| **since** | **Time** | Only messages queued at or after this RFC 3339 instant. | [optional] |
|
|
289
295
|
| **cursor** | **String** | queued_at of the prior page boundary. Pass back the `next_cursor` returned by the previous call. | [optional] |
|
|
290
296
|
| **limit** | **Integer** | | [optional][default to 50] |
|
|
297
|
+
| **sort** | **String** | Field to order by. Only indexed columns are offered: an unindexed sort on this table is a full scan of the account's send history. status and sender are filters instead. | [optional][default to 'queued_at'] |
|
|
298
|
+
| **order** | **String** | Defaults to desc for the default field and asc for any other. The order is always made total by a tie-break on id, so paging cannot repeat or skip a row that shares a timestamp. cursor encodes queued_at, so combining it with another sort is a 400 rather than a wrong page. | [optional] |
|
|
291
299
|
|
|
292
300
|
### Return type
|
|
293
301
|
|
|
@@ -309,7 +317,7 @@ end
|
|
|
309
317
|
|
|
310
318
|
Send an email
|
|
311
319
|
|
|
312
|
-
Submits an email for delivery via lockally. Returns 202 immediately once the message is accepted into lockally's queue; the actual SMTP submission to the recipient is async. Track delivery via `GET /v1/messages/{id}` or webhook subscriptions for `delivery.delivered` / `delivery.bounced` / `delivery.complaint`. **Idempotency-Key required.**
|
|
320
|
+
Submits an email for delivery via lockally. Returns 202 immediately once the message is accepted into lockally's queue; the actual SMTP submission to the recipient is async. Track delivery via `GET /v1/messages/{id}` or webhook subscriptions for `delivery.delivered` / `delivery.bounced` / `delivery.complaint`. **Idempotency-Key required.** Any unique string per send, 24-hour dedupe window. Repeated calls with the same key return byte-exact the original response and do NOT create a duplicate message. **Sender authorisation.** `from` must be an address the calling tenant owns on a verified domain. A mailbox always qualifies. On business and combined accounts an **alias** qualifies too, so a send-only address such as `no-reply@` need not be a billed seat. An alias on an unverified domain, or one belonging to another account, is refused with `403`. A catch-all creates no aliases and so grants no sending rights. **Rate cap.** Per-tenant `rate_cap_per_min` (returned on `/v1/tenant`) is enforced, 429 with `Retry-After: 60` once tripped. **Recipient warning.** Over 25 total recipients (To+Cc+Bcc) sets a `warning` field in the response, large fan-outs queue noticeably at scale. Hard cap is 100/send. **Not every success is a 202.** Check the status code, not just the body. A `200` means nothing was queued: either every recipient was already suppressed, or the call used a test key and the send was simulated. Both are successes, and neither produces a real delivery. See the `200` response below. **Warm-up headers.** While the platform is in its outbound warm-up ramp, accepted sends carry `X-Warmup-Day`, `X-Warmup-Daily-Cap` and `X-Warmup-Used-Today`. They describe a platform-wide cap shared by every tenant, not your own allowance, and they disappear once the ramp finishes. Hitting the cap returns 429.
|
|
313
321
|
|
|
314
322
|
### Examples
|
|
315
323
|
|
|
@@ -380,7 +388,7 @@ end
|
|
|
380
388
|
|
|
381
389
|
Send a batch of emails
|
|
382
390
|
|
|
383
|
-
Sends up to 500 messages in one call. Each is validated and enqueued independently
|
|
391
|
+
Sends up to 500 messages in one call. Each is validated and enqueued independently, a bad message fails only its own slot (partial success, HTTP 200). One `Idempotency-Key` header covers the batch; per-message keys are derived as `<key>:<index>`.
|
|
384
392
|
|
|
385
393
|
### Examples
|
|
386
394
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **messages** | [**Array<SendMessage>**](SendMessage.md) | | |
|
|
8
|
+
| **variables** | **Hash<String, String>** | Template variables every message in the batch inherits. Each message's own `variables` override these key by key, so shared values are written once and per-recipient ones stay per-recipient. Without this, a 500-message batch repeats every shared variable 500 times: most of the payload, and 500 places for one of them to differ by a typo. | [optional] |
|
|
8
9
|
|
|
9
10
|
## Example
|
|
10
11
|
|
|
@@ -12,7 +13,8 @@
|
|
|
12
13
|
require 'lockally'
|
|
13
14
|
|
|
14
15
|
instance = Lockally::SendEmailBatchRequest.new(
|
|
15
|
-
messages: null
|
|
16
|
+
messages: null,
|
|
17
|
+
variables: null
|
|
16
18
|
)
|
|
17
19
|
```
|
|
18
20
|
|
data/docs/SendEmailRequest.md
CHANGED
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
| **template_id** | **String** | Render subject/text/html from a stored template (GET /v1/templates). Mutually exclusive with inline subject/text/html. | [optional] |
|
|
19
19
|
| **variables** | **Hash<String, String>** | Values substituted into the template's {{variable}} placeholders. | [optional] |
|
|
20
20
|
| **send_at** | **Time** | Schedule delivery for a future RFC3339 time (≤ 30 days out). Omit or past = send now. Cancel with DELETE /v1/messages/{id} while scheduled. | [optional] |
|
|
21
|
+
| **metadata** | **Hash<String, String>** | Arbitrary key/value you attach to this message and get back on every delivery webhook for it, so a send can be matched to your own records without a lookup table. **It never leaves Lockally.** A custom entry in `headers` goes out on the wire to the recipient, which is why that is not a substitute: order ids and internal identifiers do not belong in a header the recipient can read. At most 20 keys, keys at most 64 characters, values at most 512. **Over a limit is refused with a `400`, never truncated**: a silently shortened order id succeeds and then fails to match weeks later. Not indexed and not filterable. | [optional] |
|
|
22
|
+
| **tags** | **Array<String>** | Labels that group this send for filtering and analytics: campaign, template, environment. **Lowercased, trimmed and deduplicated on write**, so the grouping does not depend on every caller spelling them identically. `Campaign-X` is stored as `campaign-x`, and either spelling matches it in a filter. At most 10 per message after deduplication, each at most 32 characters. Over either is a `400` rather than a trimmed list: a send missing the tag it was tagged for is worse than a refusal. Unlike `metadata`, tags ARE queryable: filter with `GET /v1/messages?tag=` and group with `GET /v1/messages/stats?tag=`. | [optional] |
|
|
23
|
+
| **track_opens** | **Boolean** | Override the account's open-tracking setting for this one send. Omit to inherit it. Three states matter here: `true`, `false`, and absent. A transactional receipt can set `false` without the account turning tracking off for its marketing. | [optional] |
|
|
24
|
+
| **track_clicks** | **Boolean** | As `track_opens`, for click tracking. Click tracking rewrites `http(s)` links in the **HTML** part only: the plain-text part is never rewritten, because a visible redirect URL is what recipients complain about. A text-only send is therefore not click-tracked. | [optional] |
|
|
21
25
|
| **attachments** | [**Array<SendEmailRequestAttachmentsInner>**](SendEmailRequestAttachmentsInner.md) | | [optional] |
|
|
22
26
|
|
|
23
27
|
## Example
|
|
@@ -40,6 +44,10 @@ instance = Lockally::SendEmailRequest.new(
|
|
|
40
44
|
template_id: null,
|
|
41
45
|
variables: null,
|
|
42
46
|
send_at: null,
|
|
47
|
+
metadata: null,
|
|
48
|
+
tags: null,
|
|
49
|
+
track_opens: null,
|
|
50
|
+
track_clicks: null,
|
|
43
51
|
attachments: null
|
|
44
52
|
)
|
|
45
53
|
```
|
data/docs/SignupRequest.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **slug** | **String** |
|
|
7
|
+
| **slug** | **String** | Workspace id. 3 to 63 characters of lowercase a-z, 0-9 and hyphens, starting and ending with a letter or digit. Anything else is refused with 400 Invalid workspace id. | |
|
|
8
8
|
| **display_name** | **String** | | [optional] |
|
|
9
9
|
| **admin_email** | **String** | | |
|
|
10
10
|
| **password** | **String** | | |
|
data/docs/TemplatesApi.md
CHANGED
|
@@ -213,7 +213,7 @@ end
|
|
|
213
213
|
|
|
214
214
|
## list_templates
|
|
215
215
|
|
|
216
|
-
> <ListTemplates200Response> list_templates
|
|
216
|
+
> <ListTemplates200Response> list_templates(opts)
|
|
217
217
|
|
|
218
218
|
List templates
|
|
219
219
|
|
|
@@ -229,10 +229,14 @@ Lockally.configure do |config|
|
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
api_instance = Lockally::TemplatesApi.new
|
|
232
|
+
opts = {
|
|
233
|
+
sort: 'name', # String | Field to order by. This list holds tens of rows per account, so every column is offered and none needs an index.
|
|
234
|
+
order: 'asc' # String | Defaults to asc for the default field and asc for any other. Always tie-broken on id, so the order is total.
|
|
235
|
+
}
|
|
232
236
|
|
|
233
237
|
begin
|
|
234
238
|
# List templates
|
|
235
|
-
result = api_instance.list_templates
|
|
239
|
+
result = api_instance.list_templates(opts)
|
|
236
240
|
p result
|
|
237
241
|
rescue Lockally::ApiError => e
|
|
238
242
|
puts "Error when calling TemplatesApi->list_templates: #{e}"
|
|
@@ -243,12 +247,12 @@ end
|
|
|
243
247
|
|
|
244
248
|
This returns an Array which contains the response data, status code and headers.
|
|
245
249
|
|
|
246
|
-
> <Array(<ListTemplates200Response>, Integer, Hash)> list_templates_with_http_info
|
|
250
|
+
> <Array(<ListTemplates200Response>, Integer, Hash)> list_templates_with_http_info(opts)
|
|
247
251
|
|
|
248
252
|
```ruby
|
|
249
253
|
begin
|
|
250
254
|
# List templates
|
|
251
|
-
data, status_code, headers = api_instance.list_templates_with_http_info
|
|
255
|
+
data, status_code, headers = api_instance.list_templates_with_http_info(opts)
|
|
252
256
|
p status_code # => 2xx
|
|
253
257
|
p headers # => { ... }
|
|
254
258
|
p data # => <ListTemplates200Response>
|
|
@@ -259,7 +263,10 @@ end
|
|
|
259
263
|
|
|
260
264
|
### Parameters
|
|
261
265
|
|
|
262
|
-
|
|
266
|
+
| Name | Type | Description | Notes |
|
|
267
|
+
| ---- | ---- | ----------- | ----- |
|
|
268
|
+
| **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 'name'] |
|
|
269
|
+
| **order** | **String** | Defaults to asc for the default field and asc for any other. Always tie-broken on id, so the order is total. | [optional] |
|
|
263
270
|
|
|
264
271
|
### Return type
|
|
265
272
|
|
data/docs/TenantApi.md
CHANGED
|
@@ -5,7 +5,9 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**get_tenant**](TenantApi.md#get_tenant) | **GET** /v1/tenant | Get the calling tenant |
|
|
8
|
+
| [**get_tracking_policy**](TenantApi.md#get_tracking_policy) | **GET** /v1/tracking | Get the engagement tracking policy |
|
|
8
9
|
| [**get_usage**](TenantApi.md#get_usage) | **GET** /v1/usage | Usage snapshot |
|
|
10
|
+
| [**update_tracking_policy**](TenantApi.md#update_tracking_policy) | **PUT** /v1/tracking | Update the engagement tracking policy |
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
## get_tenant
|
|
@@ -74,13 +76,79 @@ This endpoint does not need any parameter.
|
|
|
74
76
|
- **Accept**: application/json, application/problem+json
|
|
75
77
|
|
|
76
78
|
|
|
79
|
+
## get_tracking_policy
|
|
80
|
+
|
|
81
|
+
> <TrackingPolicy> get_tracking_policy
|
|
82
|
+
|
|
83
|
+
Get the engagement tracking policy
|
|
84
|
+
|
|
85
|
+
Whether open and click tracking are enabled for this account. **Both are off until switched on**, and an account that has never set a policy reads as off rather than as an error. `configured` reports whether this deployment holds a signing secret. Without one no tracking token can be minted or verified, so tracking cannot work however the flags are set, and a caller seeing `track_opens: true` with nothing arriving deserves to know why.
|
|
86
|
+
|
|
87
|
+
### Examples
|
|
88
|
+
|
|
89
|
+
```ruby
|
|
90
|
+
require 'time'
|
|
91
|
+
require 'lockally'
|
|
92
|
+
# setup authorization
|
|
93
|
+
Lockally.configure do |config|
|
|
94
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
95
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
api_instance = Lockally::TenantApi.new
|
|
99
|
+
|
|
100
|
+
begin
|
|
101
|
+
# Get the engagement tracking policy
|
|
102
|
+
result = api_instance.get_tracking_policy
|
|
103
|
+
p result
|
|
104
|
+
rescue Lockally::ApiError => e
|
|
105
|
+
puts "Error when calling TenantApi->get_tracking_policy: #{e}"
|
|
106
|
+
end
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Using the get_tracking_policy_with_http_info variant
|
|
110
|
+
|
|
111
|
+
This returns an Array which contains the response data, status code and headers.
|
|
112
|
+
|
|
113
|
+
> <Array(<TrackingPolicy>, Integer, Hash)> get_tracking_policy_with_http_info
|
|
114
|
+
|
|
115
|
+
```ruby
|
|
116
|
+
begin
|
|
117
|
+
# Get the engagement tracking policy
|
|
118
|
+
data, status_code, headers = api_instance.get_tracking_policy_with_http_info
|
|
119
|
+
p status_code # => 2xx
|
|
120
|
+
p headers # => { ... }
|
|
121
|
+
p data # => <TrackingPolicy>
|
|
122
|
+
rescue Lockally::ApiError => e
|
|
123
|
+
puts "Error when calling TenantApi->get_tracking_policy_with_http_info: #{e}"
|
|
124
|
+
end
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Parameters
|
|
128
|
+
|
|
129
|
+
This endpoint does not need any parameter.
|
|
130
|
+
|
|
131
|
+
### Return type
|
|
132
|
+
|
|
133
|
+
[**TrackingPolicy**](TrackingPolicy.md)
|
|
134
|
+
|
|
135
|
+
### Authorization
|
|
136
|
+
|
|
137
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
138
|
+
|
|
139
|
+
### HTTP request headers
|
|
140
|
+
|
|
141
|
+
- **Content-Type**: Not defined
|
|
142
|
+
- **Accept**: application/json, application/problem+json
|
|
143
|
+
|
|
144
|
+
|
|
77
145
|
## get_usage
|
|
78
146
|
|
|
79
147
|
> <GetUsage200Response> get_usage
|
|
80
148
|
|
|
81
149
|
Usage snapshot
|
|
82
150
|
|
|
83
|
-
Returns the tenant's current usage + cap consumption. Designed for poll-based alerting on the integrator side (e.g. \"warn when daily quota is 80% used\").
|
|
151
|
+
Returns the tenant's current usage + cap consumption. Designed for poll-based alerting on the integrator side (e.g. \"warn when daily quota is 80% used\"). Computed live on request, so there is no cache, so callers should poll at most once per minute.
|
|
84
152
|
|
|
85
153
|
### Examples
|
|
86
154
|
|
|
@@ -139,3 +207,72 @@ This endpoint does not need any parameter.
|
|
|
139
207
|
- **Content-Type**: Not defined
|
|
140
208
|
- **Accept**: application/json, application/problem+json
|
|
141
209
|
|
|
210
|
+
|
|
211
|
+
## update_tracking_policy
|
|
212
|
+
|
|
213
|
+
> <TrackingPolicy> update_tracking_policy(update_tracking_policy_request)
|
|
214
|
+
|
|
215
|
+
Update the engagement tracking policy
|
|
216
|
+
|
|
217
|
+
Enables or disables tracking for the account. Send either flag or both; an omitted flag is left unchanged rather than reset. **Enabling this changes what Lockally collects about your recipients**, who have no relationship with us. You are the controller for them. What is collected is a user-agent string, a timestamp, and for a click the destination URL: **no IP address**, ever. The change is written to your audit log.
|
|
218
|
+
|
|
219
|
+
### Examples
|
|
220
|
+
|
|
221
|
+
```ruby
|
|
222
|
+
require 'time'
|
|
223
|
+
require 'lockally'
|
|
224
|
+
# setup authorization
|
|
225
|
+
Lockally.configure do |config|
|
|
226
|
+
# Configure Bearer authorization (lk_live_<prefix>_<secret>): bearerAuth
|
|
227
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
api_instance = Lockally::TenantApi.new
|
|
231
|
+
update_tracking_policy_request = Lockally::UpdateTrackingPolicyRequest.new # UpdateTrackingPolicyRequest |
|
|
232
|
+
|
|
233
|
+
begin
|
|
234
|
+
# Update the engagement tracking policy
|
|
235
|
+
result = api_instance.update_tracking_policy(update_tracking_policy_request)
|
|
236
|
+
p result
|
|
237
|
+
rescue Lockally::ApiError => e
|
|
238
|
+
puts "Error when calling TenantApi->update_tracking_policy: #{e}"
|
|
239
|
+
end
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
#### Using the update_tracking_policy_with_http_info variant
|
|
243
|
+
|
|
244
|
+
This returns an Array which contains the response data, status code and headers.
|
|
245
|
+
|
|
246
|
+
> <Array(<TrackingPolicy>, Integer, Hash)> update_tracking_policy_with_http_info(update_tracking_policy_request)
|
|
247
|
+
|
|
248
|
+
```ruby
|
|
249
|
+
begin
|
|
250
|
+
# Update the engagement tracking policy
|
|
251
|
+
data, status_code, headers = api_instance.update_tracking_policy_with_http_info(update_tracking_policy_request)
|
|
252
|
+
p status_code # => 2xx
|
|
253
|
+
p headers # => { ... }
|
|
254
|
+
p data # => <TrackingPolicy>
|
|
255
|
+
rescue Lockally::ApiError => e
|
|
256
|
+
puts "Error when calling TenantApi->update_tracking_policy_with_http_info: #{e}"
|
|
257
|
+
end
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Parameters
|
|
261
|
+
|
|
262
|
+
| Name | Type | Description | Notes |
|
|
263
|
+
| ---- | ---- | ----------- | ----- |
|
|
264
|
+
| **update_tracking_policy_request** | [**UpdateTrackingPolicyRequest**](UpdateTrackingPolicyRequest.md) | | |
|
|
265
|
+
|
|
266
|
+
### Return type
|
|
267
|
+
|
|
268
|
+
[**TrackingPolicy**](TrackingPolicy.md)
|
|
269
|
+
|
|
270
|
+
### Authorization
|
|
271
|
+
|
|
272
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
273
|
+
|
|
274
|
+
### HTTP request headers
|
|
275
|
+
|
|
276
|
+
- **Content-Type**: application/json
|
|
277
|
+
- **Accept**: application/json, application/problem+json
|
|
278
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Lockally::TenantHealthCheck
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **key** | **String** | Stable identifier, today one of `domain_verification`, `smtp`, `storage`, `security`. Treat unknown keys as new checks, not errors. | |
|
|
8
|
+
| **label** | **String** | Human-readable name for display. | |
|
|
9
|
+
| **status** | **String** | `healthy`, `warning` or `critical`. | |
|
|
10
|
+
| **detail** | **String** | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'lockally'
|
|
16
|
+
|
|
17
|
+
instance = Lockally::TenantHealthCheck.new(
|
|
18
|
+
key: null,
|
|
19
|
+
label: null,
|
|
20
|
+
status: null,
|
|
21
|
+
detail: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Lockally::TenantHealthReport
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **overall_score** | **Integer** | | |
|
|
8
|
+
| **checks** | [**Array<TenantHealthCheck>**](TenantHealthCheck.md) | | |
|
|
9
|
+
| **generated_at** | **Time** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'lockally'
|
|
15
|
+
|
|
16
|
+
instance = Lockally::TenantHealthReport.new(
|
|
17
|
+
overall_score: null,
|
|
18
|
+
checks: null,
|
|
19
|
+
generated_at: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/TestApi.md
CHANGED
|
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
13
13
|
|
|
14
14
|
Simulate an inbound email (test keys only)
|
|
15
15
|
|
|
16
|
-
Runs a synthetic message through the REAL indexing pipeline
|
|
16
|
+
Runs a synthetic message through the REAL indexing pipeline, thread adoption, deterministic extraction (incl. injection_risk), and the message.received webhook, so the whole agent loop is testable without a real domain or MTA. Requires an lk_test_* key (create with {\"test\": true} on POST /v1/api-keys). Body: {mailbox, from, subject, text, in_reply_to?, references?}.
|
|
17
17
|
|
|
18
18
|
### Examples
|
|
19
19
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Lockally::TrackingPolicy
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **track_opens** | **Boolean** | | |
|
|
8
|
+
| **track_clicks** | **Boolean** | | |
|
|
9
|
+
| **updated_at** | **Time** | Absent until a policy has been set. | [optional] |
|
|
10
|
+
| **configured** | **Boolean** | Whether this deployment holds a tracking signing secret. False means tracking cannot work whatever the flags say. | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'lockally'
|
|
16
|
+
|
|
17
|
+
instance = Lockally::TrackingPolicy.new(
|
|
18
|
+
track_opens: null,
|
|
19
|
+
track_clicks: null,
|
|
20
|
+
updated_at: null,
|
|
21
|
+
configured: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Lockally::UpdateApiKeyRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **label** | **String** | Free-text identifier shown in the dashboard. | [optional] |
|
|
8
|
+
| **scopes** | **Array<String>** | Replaces the key's scopes entirely. | [optional] |
|
|
9
|
+
| **expires_at** | **Time** | A future timestamp to set an expiry, or null to remove one. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'lockally'
|
|
15
|
+
|
|
16
|
+
instance = Lockally::UpdateApiKeyRequest.new(
|
|
17
|
+
label: null,
|
|
18
|
+
scopes: null,
|
|
19
|
+
expires_at: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Lockally::UpdateTrackingPolicyRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **track_opens** | **Boolean** | | [optional] |
|
|
8
|
+
| **track_clicks** | **Boolean** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'lockally'
|
|
14
|
+
|
|
15
|
+
instance = Lockally::UpdateTrackingPolicyRequest.new(
|
|
16
|
+
track_opens: null,
|
|
17
|
+
track_clicks: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/UsersApi.md
CHANGED
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**create_user**](UsersApi.md#create_user) | **POST** /v1/users | Create a user |
|
|
8
|
-
| [**delete_user**](UsersApi.md#delete_user) | **DELETE** /v1/users/{id} |
|
|
8
|
+
| [**delete_user**](UsersApi.md#delete_user) | **DELETE** /v1/users/{id} | Deprovision a user |
|
|
9
9
|
| [**get_user**](UsersApi.md#get_user) | **GET** /v1/users/{id} | Get a user |
|
|
10
10
|
| [**list_users**](UsersApi.md#list_users) | **GET** /v1/users | List users |
|
|
11
11
|
| [**update_user**](UsersApi.md#update_user) | **PATCH** /v1/users/{id} | Update a user |
|
|
@@ -82,9 +82,9 @@ end
|
|
|
82
82
|
|
|
83
83
|
> delete_user(id)
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
Deprovision a user
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
Sets the user's status to `deprovisioned` and ends their access: each of their mailboxes and their console membership is disabled, app passwords are revoked, and every webmail and console session ends. Their mail is kept. API keys belong to the workspace and are not revoked; rotate any the person had access to.
|
|
88
88
|
|
|
89
89
|
### Examples
|
|
90
90
|
|
|
@@ -101,7 +101,7 @@ api_instance = Lockally::UsersApi.new
|
|
|
101
101
|
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
102
102
|
|
|
103
103
|
begin
|
|
104
|
-
#
|
|
104
|
+
# Deprovision a user
|
|
105
105
|
api_instance.delete_user(id)
|
|
106
106
|
rescue Lockally::ApiError => e
|
|
107
107
|
puts "Error when calling UsersApi->delete_user: #{e}"
|
|
@@ -116,7 +116,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
|
116
116
|
|
|
117
117
|
```ruby
|
|
118
118
|
begin
|
|
119
|
-
#
|
|
119
|
+
# Deprovision a user
|
|
120
120
|
data, status_code, headers = api_instance.delete_user_with_http_info(id)
|
|
121
121
|
p status_code # => 2xx
|
|
122
122
|
p headers # => { ... }
|
|
@@ -288,6 +288,8 @@ end
|
|
|
288
288
|
|
|
289
289
|
Update a user
|
|
290
290
|
|
|
291
|
+
Setting `status` to `suspended` or `deprovisioned` takes away everything the person signs in with: each of their mailboxes and their console membership is disabled, app passwords are revoked, and every webmail and console session ends. Setting it back to `active` restores what the suspension disabled, and nothing an admin disabled for another reason. API keys belong to the workspace, not to the person who created them, and are not revoked; rotate any the person had access to.
|
|
292
|
+
|
|
291
293
|
### Examples
|
|
292
294
|
|
|
293
295
|
```ruby
|
data/docs/WebhooksApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *https://api.lockally.com*
|
|
|
16
16
|
|
|
17
17
|
Create a webhook
|
|
18
18
|
|
|
19
|
-
Subscribes a URL to one or more event types. Returns the `signing_secret` ONCE in the response
|
|
19
|
+
Subscribes a URL to one or more event types. Returns the `signing_secret` ONCE in the response, store it immediately. Every outbound POST is signed: X-Lockally-Signature: t=<unix>,v1=<hex(hmac_sha256(secret, t + \".\" + body))> Verify on your end using HMAC-SHA256 with a 5-minute timestamp window (replay protection). A reference verifier ships in [Signature verification](https://developers.lockally.com/webhooks/verification/). Event names: see the [event catalogue](https://developers.lockally.com/webhooks/events/).
|
|
20
20
|
|
|
21
21
|
### Examples
|
|
22
22
|
|
|
@@ -153,7 +153,7 @@ nil (empty response body)
|
|
|
153
153
|
|
|
154
154
|
List webhooks
|
|
155
155
|
|
|
156
|
-
Returns the calling tenant's webhook subscriptions. Never returns the signing secret
|
|
156
|
+
Returns the calling tenant's webhook subscriptions. Never returns the signing secret, only metadata.
|
|
157
157
|
|
|
158
158
|
### Examples
|
|
159
159
|
|
|
@@ -219,7 +219,7 @@ This endpoint does not need any parameter.
|
|
|
219
219
|
|
|
220
220
|
Update a webhook
|
|
221
221
|
|
|
222
|
-
Supply at least one of `url`, `events`, `paused`. Setting `paused` to `false` ALSO resets `consecutive_failures` to 0
|
|
222
|
+
Supply at least one of `url`, `events`, `paused`. Setting `paused` to `false` ALSO resets `consecutive_failures` to 0, re-arms the 50-failure auto-pause counter.
|
|
223
223
|
|
|
224
224
|
### Examples
|
|
225
225
|
|