coss 0.1.0 → 0.3.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/CHANGELOG.md +10 -0
- data/lib/coss/audit_events/client.rb +2 -0
- data/lib/coss/billing/types/usage_billing_request_meter.rb +14 -1
- data/lib/coss/client.rb +26 -1
- data/lib/coss/domains/client.rb +54 -2
- data/lib/coss/domains/types/create_domain_request.rb +2 -0
- data/lib/coss/domains/types/list_domains_request.rb +11 -0
- data/lib/coss/domains/types/update_domain_request.rb +13 -0
- data/lib/coss/email/audiences/client.rb +9 -0
- data/lib/coss/email/broadcasts/client.rb +2 -0
- data/lib/coss/email/broadcasts/types/create_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/broadcasts/types/update_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/client.rb +7 -0
- data/lib/coss/email/contacts/client.rb +2 -0
- data/lib/coss/email/contacts/properties/client.rb +4 -0
- data/lib/coss/email/contacts/properties/types/create_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/contacts/properties/types/update_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/segments/client.rb +6 -0
- data/lib/coss/email/subaccounts/client.rb +322 -0
- data/lib/coss/email/subaccounts/types/create_subaccount_request.rb +19 -0
- data/lib/coss/email/subaccounts/types/create_subaccount_request_quotas.rb +18 -0
- data/lib/coss/email/subaccounts/types/delete_subaccounts_request.rb +13 -0
- data/lib/coss/email/subaccounts/types/get_subaccounts_request.rb +13 -0
- data/lib/coss/email/subaccounts/types/list_subaccounts_request.rb +15 -0
- data/lib/coss/email/subaccounts/types/reinstate_subaccounts_request.rb +13 -0
- data/lib/coss/email/subaccounts/types/stats_subaccounts_request.rb +17 -0
- data/lib/coss/email/subaccounts/types/update_subaccount_request.rb +23 -0
- data/lib/coss/email/subaccounts/types/update_subaccount_request_quotas.rb +18 -0
- data/lib/coss/email/subaccounts/types/update_subaccount_request_status.rb +16 -0
- data/lib/coss/email/suppressions/client.rb +9 -1
- data/lib/coss/email/suppressions/types/check_suppressions_request.rb +2 -0
- data/lib/coss/email/suppressions/types/create_suppression_request.rb +2 -0
- data/lib/coss/email/suppressions/types/export_suppressions_request.rb +2 -0
- data/lib/coss/email/suppressions/types/import_suppressions_request.rb +2 -0
- data/lib/coss/email/suppressions/types/list_suppressions_request.rb +2 -0
- data/lib/coss/email/topics/client.rb +2 -0
- data/lib/coss/email/types/list_email_request.rb +2 -0
- data/lib/coss/forms/client.rb +235 -0
- data/lib/coss/forms/submissions/client.rb +231 -0
- data/lib/coss/forms/submissions/types/file_submissions_request.rb +17 -0
- data/lib/coss/forms/submissions/types/get_submissions_request.rb +15 -0
- data/lib/coss/forms/submissions/types/list_submissions_request.rb +19 -0
- data/lib/coss/forms/submissions/types/release_submissions_request.rb +15 -0
- data/lib/coss/forms/submissions/types/remove_submissions_request.rb +15 -0
- data/lib/coss/forms/types/create_form_request.rb +33 -0
- data/lib/coss/forms/types/create_form_request_contacts.rb +24 -0
- data/lib/coss/forms/types/create_form_request_files.rb +18 -0
- data/lib/coss/forms/types/create_form_request_hosted.rb +20 -0
- data/lib/coss/forms/types/create_form_request_notifications.rb +14 -0
- data/lib/coss/forms/types/create_form_request_spam.rb +20 -0
- data/lib/coss/forms/types/create_form_request_spam_captcha.rb +14 -0
- data/lib/coss/forms/types/create_form_request_spam_on_review.rb +14 -0
- data/lib/coss/forms/types/create_form_request_submitter.rb +16 -0
- data/lib/coss/forms/types/get_forms_request.rb +11 -0
- data/lib/coss/forms/types/list_forms_request.rb +13 -0
- data/lib/coss/forms/types/remove_forms_request.rb +11 -0
- data/lib/coss/forms/types/update_form_request.rb +35 -0
- data/lib/coss/forms/types/update_form_request_contacts.rb +24 -0
- data/lib/coss/forms/types/update_form_request_files.rb +18 -0
- data/lib/coss/forms/types/update_form_request_hosted.rb +20 -0
- data/lib/coss/forms/types/update_form_request_notifications.rb +14 -0
- data/lib/coss/forms/types/update_form_request_spam.rb +20 -0
- data/lib/coss/forms/types/update_form_request_spam_captcha.rb +14 -0
- data/lib/coss/forms/types/update_form_request_spam_on_review.rb +14 -0
- data/lib/coss/forms/types/update_form_request_submitter.rb +16 -0
- data/lib/coss/hooks/messages/client.rb +3 -1
- data/lib/coss/inboxes/client.rb +236 -0
- data/lib/coss/inboxes/messages/client.rb +259 -0
- data/lib/coss/inboxes/messages/types/get_attachment_messages_request.rb +17 -0
- data/lib/coss/inboxes/messages/types/get_messages_request.rb +15 -0
- data/lib/coss/inboxes/messages/types/list_messages_request.rb +19 -0
- data/lib/coss/inboxes/messages/types/list_messages_request_direction.rb +16 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request.rb +31 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_bcc.rb +18 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_cc.rb +18 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_tags_item.rb +15 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request.rb +31 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_bcc.rb +18 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_cc.rb +18 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_tags_item.rb +15 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_to.rb +18 -0
- data/lib/coss/inboxes/threads/client.rb +147 -0
- data/lib/coss/inboxes/threads/types/delete_threads_request.rb +15 -0
- data/lib/coss/inboxes/threads/types/get_threads_request.rb +15 -0
- data/lib/coss/inboxes/threads/types/list_threads_request.rb +17 -0
- data/lib/coss/inboxes/types/create_inbox_request.rb +17 -0
- data/lib/coss/inboxes/types/delete_inboxes_request.rb +11 -0
- data/lib/coss/inboxes/types/get_inboxes_request.rb +11 -0
- data/lib/coss/inboxes/types/list_inboxes_request.rb +13 -0
- data/lib/coss/inboxes/types/update_inbox_request.rb +13 -0
- data/lib/coss/log_drains/batches/client.rb +2 -2
- data/lib/coss/log_drains/client.rb +11 -8
- data/lib/coss/log_drains/types/create_log_drain_request.rb +4 -0
- data/lib/coss/log_drains/types/create_log_drain_request_format.rb +16 -0
- data/lib/coss/log_drains/types/update_log_drain_request.rb +4 -0
- data/lib/coss/logs/client.rb +2 -0
- data/lib/coss/risk/client.rb +57 -6
- data/lib/coss/risk/limit_buckets/client.rb +2 -0
- data/lib/coss/risk/lists/client.rb +4 -0
- data/lib/coss/risk/rules/client.rb +4 -0
- data/lib/coss/risk/types/risk_phone_check_request.rb +11 -0
- data/lib/coss/scheduling/attendees/client.rb +94 -0
- data/lib/coss/scheduling/attendees/types/erase_attendees_request.rb +13 -0
- data/lib/coss/scheduling/attendees/types/erase_scheduling_attendee_by_email_request.rb +13 -0
- data/lib/coss/scheduling/availability/client.rb +62 -0
- data/lib/coss/scheduling/availability/types/availability_search_request.rb +25 -0
- data/lib/coss/scheduling/availability/types/availability_search_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/client.rb +510 -0
- data/lib/coss/scheduling/bookings/types/approve_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/cancel_scheduling_booking_request.rb +15 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request.rb +33 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location.rb +28 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_link.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/bookings/types/decline_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/events_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/get_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request.rb +27 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request_status.rb +19 -0
- data/lib/coss/scheduling/bookings/types/mark_no_show_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/notifications_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/reschedule_booking_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/update_booking_location_request.rb +15 -0
- data/lib/coss/scheduling/calendar_delegations/client.rb +261 -0
- data/lib/coss/scheduling/calendar_delegations/types/delete_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/get_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/update_calendar_delegation_request.rb +21 -0
- data/lib/coss/scheduling/calendar_delegations/types/verify_calendar_delegation_request.rb +15 -0
- data/lib/coss/scheduling/calendars/client.rb +281 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request.rb +17 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request_provider.rb +17 -0
- data/lib/coss/scheduling/calendars/types/connect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/disconnect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/list_calendars_request.rb +13 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request_intervals_item.rb +15 -0
- data/lib/coss/scheduling/calendars/types/update_calendar_request.rb +19 -0
- data/lib/coss/scheduling/client.rb +79 -0
- data/lib/coss/scheduling/event_types/client.rb +192 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request.rb +69 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_kind.rb +18 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/get_event_types_request.rb +13 -0
- data/lib/coss/scheduling/event_types/types/list_event_types_request.rb +15 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request.rb +71 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_status.rb +16 -0
- data/lib/coss/scheduling/holds/client.rb +155 -0
- data/lib/coss/scheduling/holds/types/confirm_hold_request.rb +15 -0
- data/lib/coss/scheduling/holds/types/create_hold_request.rb +33 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location.rb +28 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_link.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/holds/types/release_holds_request.rb +13 -0
- data/lib/coss/scheduling/hosts/client.rb +228 -0
- data/lib/coss/scheduling/hosts/types/create_host_request.rb +31 -0
- data/lib/coss/scheduling/hosts/types/create_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/get_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/list_hosts_request.rb +15 -0
- data/lib/coss/scheduling/hosts/types/remove_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/update_host_request.rb +35 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_status.rb +16 -0
- data/lib/coss/scheduling/schedules/client.rb +253 -0
- data/lib/coss/scheduling/schedules/types/create_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/get_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/list_schedules_request.rb +13 -0
- data/lib/coss/scheduling/schedules/types/remove_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/update_schedules_request.rb +17 -0
- data/lib/coss/scheduling/series/client.rb +171 -0
- data/lib/coss/scheduling/series/types/cancel_series_request.rb +15 -0
- data/lib/coss/scheduling/series/types/create_series_body.rb +15 -0
- data/lib/coss/scheduling/sessions/client.rb +153 -0
- data/lib/coss/scheduling/sessions/types/create_for_booking_sessions_request.rb +13 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request.rb +21 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attendee.rb +24 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_host_session_request.rb +17 -0
- data/lib/coss/scheduling/settings/client.rb +88 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request.rb +31 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_calendar_failure_mode.rb +16 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_logo.rb +14 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/slots/client.rb +123 -0
- data/lib/coss/scheduling/slots/types/explain_slots_request.rb +21 -0
- data/lib/coss/scheduling/slots/types/list_slots_request.rb +23 -0
- data/lib/coss/sign/client.rb +39 -0
- data/lib/coss/sign/documents/client.rb +179 -0
- data/lib/coss/sign/documents/types/get_documents_request.rb +13 -0
- data/lib/coss/sign/documents/types/list_documents_request.rb +15 -0
- data/lib/coss/sign/documents/types/remove_documents_request.rb +13 -0
- data/lib/coss/sign/documents/types/upload_sign_document_request.rb +15 -0
- data/lib/coss/sign/requests/client.rb +411 -0
- data/lib/coss/sign/requests/types/audit_trail_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/cancel_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/create_sign_request_request.rb +31 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_documents_item.rb +17 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_documents_item_content.rb +15 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_documents_item_document_id.rb +13 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_signers_item.rb +23 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_signers_item_delivery.rb +16 -0
- data/lib/coss/sign/requests/types/create_sign_request_request_signing_order.rb +16 -0
- data/lib/coss/sign/requests/types/get_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/list_requests_request.rb +17 -0
- data/lib/coss/sign/requests/types/remind_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/remove_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/send_requests_request.rb +13 -0
- data/lib/coss/sign/requests/types/signed_document_requests_request.rb +13 -0
- data/lib/coss/sign/sessions/client.rb +69 -0
- data/lib/coss/sign/sessions/types/create_sign_session_request.rb +17 -0
- data/lib/coss/sign/settings/client.rb +92 -0
- data/lib/coss/sign/settings/types/update_sign_settings_request.rb +25 -0
- data/lib/coss/sign/settings/types/update_sign_settings_request_theme.rb +17 -0
- data/lib/coss/sign/templates/client.rb +376 -0
- data/lib/coss/sign/templates/types/create_sign_builder_session_request.rb +15 -0
- data/lib/coss/sign/templates/types/create_sign_request_from_template_request.rb +33 -0
- data/lib/coss/sign/templates/types/create_sign_request_from_template_request_signers_item.rb +23 -0
- data/lib/coss/sign/templates/types/create_sign_request_from_template_request_signers_item_delivery.rb +16 -0
- data/lib/coss/sign/templates/types/create_sign_request_from_template_request_signing_order.rb +16 -0
- data/lib/coss/sign/templates/types/create_sign_template_request.rb +25 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_documents_item.rb +17 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_documents_item_content.rb +15 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_documents_item_document_id.rb +13 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_fields_item.rb +17 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_fields_item_anchor.rb +31 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_fields_item_anchor_type.rb +21 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_fields_item_document.rb +33 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_fields_item_document_type.rb +21 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_roles_item.rb +15 -0
- data/lib/coss/sign/templates/types/create_sign_template_request_signing_order.rb +16 -0
- data/lib/coss/sign/templates/types/get_templates_request.rb +13 -0
- data/lib/coss/sign/templates/types/list_templates_request.rb +15 -0
- data/lib/coss/sign/templates/types/remove_templates_request.rb +13 -0
- data/lib/coss/sign/templates/types/update_sign_template_request.rb +27 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_documents_item.rb +17 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_documents_item_content.rb +15 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_documents_item_document_id.rb +13 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_fields_item.rb +17 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_fields_item_anchor.rb +31 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_fields_item_anchor_type.rb +21 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_fields_item_document.rb +33 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_fields_item_document_type.rb +21 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_roles_item.rb +15 -0
- data/lib/coss/sign/templates/types/update_sign_template_request_signing_order.rb +16 -0
- data/lib/coss/sms/client.rb +2 -0
- data/lib/coss/sms/received/client.rb +2 -0
- data/lib/coss/sms/suppressions/client.rb +4 -0
- data/lib/coss/types/billing.rb +2 -0
- data/lib/coss/types/billing_credit_limit.rb +14 -0
- data/lib/coss/types/billing_features.rb +1 -0
- data/lib/coss/types/billing_holds_item_reason.rb +1 -0
- data/lib/coss/types/billing_limits.rb +2 -0
- data/lib/coss/types/billing_payment_method.rb +1 -0
- data/lib/coss/types/billing_usage_item_meter.rb +14 -1
- data/lib/coss/types/billing_webhook_event_four_data_reason.rb +1 -0
- data/lib/coss/types/billing_webhook_event_three_data_meter.rb +14 -1
- data/lib/coss/types/broadcast_error.rb +2 -0
- data/lib/coss/types/broadcast_stats.rb +1 -0
- data/lib/coss/types/broadcast_tracking.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data_error.rb +1 -0
- data/lib/coss/types/contact_source.rb +1 -0
- data/lib/coss/types/contact_webhook_event_data.rb +1 -0
- data/lib/coss/types/contact_webhook_event_data_source.rb +1 -0
- data/lib/coss/types/create_calendar_connection_request.rb +16 -0
- data/lib/coss/types/create_calendar_connection_request_caldav.rb +13 -0
- data/lib/coss/types/create_calendar_connection_request_simulated.rb +7 -0
- data/lib/coss/types/create_calendar_delegation_request.rb +15 -0
- data/lib/coss/types/create_calendar_delegation_request_google.rb +13 -0
- data/lib/coss/types/create_calendar_delegation_request_microsoft.rb +19 -0
- data/lib/coss/types/create_series_request.rb +31 -0
- data/lib/coss/types/create_series_request_answers_value.rb +13 -0
- data/lib/coss/types/create_series_request_attributes_value.rb +13 -0
- data/lib/coss/types/create_series_request_location.rb +24 -0
- data/lib/coss/types/create_series_request_location_google_meet.rb +7 -0
- data/lib/coss/types/create_series_request_location_in_person.rb +9 -0
- data/lib/coss/types/create_series_request_location_link.rb +9 -0
- data/lib/coss/types/create_series_request_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/create_series_request_location_phone.rb +9 -0
- data/lib/coss/types/create_series_request_location_zoom.rb +9 -0
- data/lib/coss/types/create_series_request_on_conflict.rb +12 -0
- data/lib/coss/types/create_series_request_recurrence.rb +14 -0
- data/lib/coss/types/create_series_request_recurrence_frequency.rb +12 -0
- data/lib/coss/types/credit_meter.rb +14 -1
- data/lib/coss/types/credit_meters_item.rb +14 -1
- data/lib/coss/types/credit_source.rb +1 -0
- data/lib/coss/types/deleted_form.rb +13 -0
- data/lib/coss/types/deleted_form_object.rb +11 -0
- data/lib/coss/types/deleted_form_submission.rb +13 -0
- data/lib/coss/types/deleted_form_submission_object.rb +11 -0
- data/lib/coss/types/deleted_inbox.rb +13 -0
- data/lib/coss/types/deleted_inbox_object.rb +11 -0
- data/lib/coss/types/deleted_inbox_thread.rb +13 -0
- data/lib/coss/types/deleted_inbox_thread_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_host.rb +13 -0
- data/lib/coss/types/deleted_scheduling_host_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_schedule.rb +13 -0
- data/lib/coss/types/deleted_scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/deleted_sign_document.rb +13 -0
- data/lib/coss/types/deleted_sign_document_object.rb +11 -0
- data/lib/coss/types/deleted_sign_request.rb +13 -0
- data/lib/coss/types/deleted_sign_request_object.rb +11 -0
- data/lib/coss/types/deleted_sign_template.rb +13 -0
- data/lib/coss/types/deleted_sign_template_object.rb +11 -0
- data/lib/coss/types/dmarc_report_record_auth_results.rb +1 -0
- data/lib/coss/types/dmarc_report_reporter.rb +1 -0
- data/lib/coss/types/dmarc_report_summary_reporter.rb +1 -0
- data/lib/coss/types/domain.rb +4 -0
- data/lib/coss/types/domain_dmarc_report_summary.rb +1 -0
- data/lib/coss/types/email.rb +2 -0
- data/lib/coss/types/email_event_data.rb +1 -0
- data/lib/coss/types/email_recipient.rb +1 -0
- data/lib/coss/types/email_summary.rb +2 -0
- data/lib/coss/types/email_webhook_event_data.rb +4 -0
- data/lib/coss/types/environment_organization.rb +3 -0
- data/lib/coss/types/environment_project.rb +1 -0
- data/lib/coss/types/error_body.rb +2 -0
- data/lib/coss/types/form.rb +47 -0
- data/lib/coss/types/form_contacts.rb +22 -0
- data/lib/coss/types/form_field.rb +21 -0
- data/lib/coss/types/form_field_input.rb +21 -0
- data/lib/coss/types/form_field_input_type.rb +22 -0
- data/lib/coss/types/form_field_type.rb +22 -0
- data/lib/coss/types/form_files.rb +16 -0
- data/lib/coss/types/form_hosted.rb +20 -0
- data/lib/coss/types/form_list.rb +13 -0
- data/lib/coss/types/form_list_object.rb +11 -0
- data/lib/coss/types/form_notifications.rb +12 -0
- data/lib/coss/types/form_object.rb +11 -0
- data/lib/coss/types/form_spam.rb +18 -0
- data/lib/coss/types/form_spam_captcha.rb +12 -0
- data/lib/coss/types/form_spam_on_review.rb +12 -0
- data/lib/coss/types/form_submission.rb +43 -0
- data/lib/coss/types/form_submission_data_value.rb +13 -0
- data/lib/coss/types/form_submission_file.rb +17 -0
- data/lib/coss/types/form_submission_list.rb +13 -0
- data/lib/coss/types/form_submission_list_object.rb +11 -0
- data/lib/coss/types/form_submission_object.rb +11 -0
- data/lib/coss/types/form_submission_risk.rb +14 -0
- data/lib/coss/types/form_submission_risk_decision.rb +13 -0
- data/lib/coss/types/form_submission_spam_reason.rb +14 -0
- data/lib/coss/types/form_submission_status.rb +14 -0
- data/lib/coss/types/form_submission_webhook_event.rb +19 -0
- data/lib/coss/types/form_submission_webhook_event_data.rb +28 -0
- data/lib/coss/types/form_submission_webhook_event_data_data_value.rb +13 -0
- data/lib/coss/types/form_submission_webhook_event_data_spam_reason.rb +14 -0
- data/lib/coss/types/form_submission_webhook_event_data_status.rb +14 -0
- data/lib/coss/types/form_submission_webhook_event_object.rb +11 -0
- data/lib/coss/types/form_submission_webhook_event_type.rb +12 -0
- data/lib/coss/types/form_submitter.rb +14 -0
- data/lib/coss/types/inbox.rb +31 -0
- data/lib/coss/types/inbox_kind.rb +12 -0
- data/lib/coss/types/inbox_list.rb +13 -0
- data/lib/coss/types/inbox_list_object.rb +11 -0
- data/lib/coss/types/inbox_message.rb +55 -0
- data/lib/coss/types/inbox_message_direction.rb +12 -0
- data/lib/coss/types/inbox_message_list.rb +13 -0
- data/lib/coss/types/inbox_message_list_object.rb +11 -0
- data/lib/coss/types/inbox_message_object.rb +11 -0
- data/lib/coss/types/inbox_message_received_webhook_event.rb +19 -0
- data/lib/coss/types/inbox_message_received_webhook_event_data.rb +33 -0
- data/lib/coss/types/inbox_message_received_webhook_event_object.rb +11 -0
- data/lib/coss/types/inbox_message_received_webhook_event_type.rb +11 -0
- data/lib/coss/types/inbox_message_status.rb +16 -0
- data/lib/coss/types/inbox_message_summary.rb +39 -0
- data/lib/coss/types/inbox_message_summary_direction.rb +12 -0
- data/lib/coss/types/inbox_message_summary_object.rb +11 -0
- data/lib/coss/types/inbox_message_summary_status.rb +16 -0
- data/lib/coss/types/inbox_object.rb +11 -0
- data/lib/coss/types/inbox_thread.rb +29 -0
- data/lib/coss/types/inbox_thread_list.rb +13 -0
- data/lib/coss/types/inbox_thread_list_object.rb +11 -0
- data/lib/coss/types/inbox_thread_object.rb +11 -0
- data/lib/coss/types/inbox_thread_summary.rb +27 -0
- data/lib/coss/types/inbox_thread_summary_object.rb +11 -0
- data/lib/coss/types/invoice_kind.rb +1 -0
- data/lib/coss/types/invoice_line_meter.rb +14 -1
- data/lib/coss/types/invoice_line_period.rb +1 -0
- data/lib/coss/types/invoice_period.rb +1 -0
- data/lib/coss/types/invoice_summary_kind.rb +1 -0
- data/lib/coss/types/invoice_summary_period.rb +1 -0
- data/lib/coss/types/log_drain.rb +4 -0
- data/lib/coss/types/log_drain_auth_header.rb +13 -0
- data/lib/coss/types/log_drain_format.rb +14 -0
- data/lib/coss/types/log_drain_source.rb +4 -0
- data/lib/coss/types/log_drain_with_secret.rb +4 -0
- data/lib/coss/types/log_source.rb +4 -0
- data/lib/coss/types/risk_assessment_degraded_item.rb +1 -0
- data/lib/coss/types/risk_assessment_signals.rb +1 -0
- data/lib/coss/types/risk_assessment_user.rb +1 -0
- data/lib/coss/types/risk_captcha_signals.rb +1 -0
- data/lib/coss/types/risk_email_signals.rb +1 -0
- data/lib/coss/types/risk_ip_signals.rb +1 -0
- data/lib/coss/types/risk_phone_carrier.rb +13 -0
- data/lib/coss/types/risk_phone_check.rb +23 -0
- data/lib/coss/types/risk_phone_check_degraded_item.rb +12 -0
- data/lib/coss/types/risk_phone_check_line_type.rb +22 -0
- data/lib/coss/types/risk_phone_check_object.rb +11 -0
- data/lib/coss/types/risk_phone_sim_swap.rb +13 -0
- data/lib/coss/types/risk_rule_condition_value.rb +1 -0
- data/lib/coss/types/risk_webhook_event_data.rb +1 -0
- data/lib/coss/types/scheduling_attendee_erasure.rb +13 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_input.rb +20 -0
- data/lib/coss/types/scheduling_availability_search_result.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item_slots_item.rb +11 -0
- data/lib/coss/types/scheduling_availability_search_result_object.rb +11 -0
- data/lib/coss/types/scheduling_booking.rb +55 -0
- data/lib/coss/types/scheduling_booking_attendees_item.rb +25 -0
- data/lib/coss/types/scheduling_booking_attendees_item_answers_value.rb +13 -0
- data/lib/coss/types/scheduling_booking_attendees_item_role.rb +12 -0
- data/lib/coss/types/scheduling_booking_cancelled_by.rb +16 -0
- data/lib/coss/types/scheduling_booking_event.rb +21 -0
- data/lib/coss/types/scheduling_booking_event_actor.rb +12 -0
- data/lib/coss/types/scheduling_booking_event_actor_kind.rb +16 -0
- data/lib/coss/types/scheduling_booking_event_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_event_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification.rb +25 -0
- data/lib/coss/types/scheduling_booking_notification_channel.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_recipient.rb +14 -0
- data/lib/coss/types/scheduling_booking_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_data.rb +30 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_booking_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_webhook_event_type.rb +23 -0
- data/lib/coss/types/scheduling_booking_window.rb +15 -0
- data/lib/coss/types/scheduling_booking_window_days.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_days_kind.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_from.rb +13 -0
- data/lib/coss/types/scheduling_booking_window_from_kind.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection.rb +25 -0
- data/lib/coss/types/scheduling_calendar_connection_calendars_item.rb +17 -0
- data/lib/coss/types/scheduling_calendar_connection_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_connection_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_provider.rb +15 -0
- data/lib/coss/types/scheduling_calendar_connection_status.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation.rb +41 -0
- data/lib/coss/types/scheduling_calendar_delegation_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_delegation_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_provider.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation_status.rb +14 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_data.rb +17 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_type.rb +12 -0
- data/lib/coss/types/scheduling_calendar_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_data.rb +16 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_type.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type.rb +75 -0
- data/lib/coss/types/scheduling_event_type_host_calendar_details.rb +12 -0
- data/lib/coss/types/scheduling_event_type_host_filter_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_host_input.rb +15 -0
- data/lib/coss/types/scheduling_event_type_host_input_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_hosts_item.rb +15 -0
- data/lib/coss/types/scheduling_event_type_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_kind.rb +14 -0
- data/lib/coss/types/scheduling_event_type_list.rb +13 -0
- data/lib/coss/types/scheduling_event_type_list_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_status.rb +12 -0
- data/lib/coss/types/scheduling_guest_input.rb +12 -0
- data/lib/coss/types/scheduling_host.rb +37 -0
- data/lib/coss/types/scheduling_host_attributes_value.rb +13 -0
- data/lib/coss/types/scheduling_host_list.rb +13 -0
- data/lib/coss/types/scheduling_host_list_object.rb +11 -0
- data/lib/coss/types/scheduling_host_location.rb +18 -0
- data/lib/coss/types/scheduling_host_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_host_location_link.rb +9 -0
- data/lib/coss/types/scheduling_host_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_host_object.rb +11 -0
- data/lib/coss/types/scheduling_host_status.rb +12 -0
- data/lib/coss/types/scheduling_limit.rb +14 -0
- data/lib/coss/types/scheduling_limit_period.rb +12 -0
- data/lib/coss/types/scheduling_limit_scope.rb +12 -0
- data/lib/coss/types/scheduling_location.rb +26 -0
- data/lib/coss/types/scheduling_location_google_meet.rb +7 -0
- data/lib/coss/types/scheduling_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_location_link.rb +9 -0
- data/lib/coss/types/scheduling_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/scheduling_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_location_zoom.rb +9 -0
- data/lib/coss/types/scheduling_question.rb +19 -0
- data/lib/coss/types/scheduling_question_type.rb +18 -0
- data/lib/coss/types/scheduling_reminder.rb +35 -0
- data/lib/coss/types/scheduling_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input.rb +35 -0
- data/lib/coss/types/scheduling_reminder_input_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_input_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if_location_types_item.rb +16 -0
- data/lib/coss/types/scheduling_reminder_input_send_item.rb +15 -0
- data/lib/coss/types/scheduling_reminder_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_send_item.rb +15 -0
- data/lib/coss/types/scheduling_schedule.rb +27 -0
- data/lib/coss/types/scheduling_schedule_list.rb +13 -0
- data/lib/coss/types/scheduling_schedule_list_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_rules_item.rb +13 -0
- data/lib/coss/types/scheduling_series.rb +15 -0
- data/lib/coss/types/scheduling_series_conflicts_item.rb +11 -0
- data/lib/coss/types/scheduling_series_object.rb +11 -0
- data/lib/coss/types/scheduling_series_preview.rb +13 -0
- data/lib/coss/types/scheduling_series_preview_data_item.rb +15 -0
- data/lib/coss/types/scheduling_series_preview_object.rb +11 -0
- data/lib/coss/types/scheduling_session.rb +17 -0
- data/lib/coss/types/scheduling_session_object.rb +11 -0
- data/lib/coss/types/scheduling_settings.rb +29 -0
- data/lib/coss/types/scheduling_settings_calendar_failure_mode.rb +12 -0
- data/lib/coss/types/scheduling_settings_logo.rb +16 -0
- data/lib/coss/types/scheduling_settings_logo_content_type.rb +12 -0
- data/lib/coss/types/scheduling_settings_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_settings_object.rb +11 -0
- data/lib/coss/types/scheduling_slot.rb +15 -0
- data/lib/coss/types/scheduling_slot_explanation.rb +19 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item.rb +17 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_slot_explanation_object.rb +11 -0
- data/lib/coss/types/scheduling_slot_list.rb +13 -0
- data/lib/coss/types/scheduling_slot_list_object.rb +11 -0
- data/lib/coss/types/scheduling_weekly_rule.rb +13 -0
- data/lib/coss/types/send_email_request.rb +2 -0
- data/lib/coss/types/send_email_request_bcc.rb +1 -0
- data/lib/coss/types/send_email_request_cc.rb +1 -0
- data/lib/coss/types/send_email_request_reply_to.rb +1 -0
- data/lib/coss/types/send_email_request_to.rb +1 -0
- data/lib/coss/types/sign_builder_session.rb +19 -0
- data/lib/coss/types/sign_builder_session_object.rb +11 -0
- data/lib/coss/types/sign_document.rb +27 -0
- data/lib/coss/types/sign_document_anchors_item.rb +20 -0
- data/lib/coss/types/sign_document_list.rb +13 -0
- data/lib/coss/types/sign_document_list_object.rb +11 -0
- data/lib/coss/types/sign_document_object.rb +11 -0
- data/lib/coss/types/sign_document_pages_item.rb +11 -0
- data/lib/coss/types/sign_event.rb +31 -0
- data/lib/coss/types/sign_event_actor.rb +14 -0
- data/lib/coss/types/sign_event_details.rb +24 -0
- data/lib/coss/types/sign_event_list.rb +13 -0
- data/lib/coss/types/sign_event_list_object.rb +11 -0
- data/lib/coss/types/sign_event_object.rb +11 -0
- data/lib/coss/types/sign_event_type.rb +22 -0
- data/lib/coss/types/sign_field.rb +34 -0
- data/lib/coss/types/sign_field_input.rb +13 -0
- data/lib/coss/types/sign_field_input_anchor.rb +23 -0
- data/lib/coss/types/sign_field_input_anchor_type.rb +17 -0
- data/lib/coss/types/sign_field_input_document.rb +25 -0
- data/lib/coss/types/sign_field_input_document_type.rb +17 -0
- data/lib/coss/types/sign_field_object.rb +11 -0
- data/lib/coss/types/sign_field_type.rb +17 -0
- data/lib/coss/types/sign_request.rb +47 -0
- data/lib/coss/types/sign_request_documents_item.rb +15 -0
- data/lib/coss/types/sign_request_list.rb +13 -0
- data/lib/coss/types/sign_request_list_object.rb +11 -0
- data/lib/coss/types/sign_request_object.rb +11 -0
- data/lib/coss/types/sign_request_signed_document.rb +11 -0
- data/lib/coss/types/sign_request_signing_order.rb +12 -0
- data/lib/coss/types/sign_request_status.rb +16 -0
- data/lib/coss/types/sign_request_webhook_event.rb +19 -0
- data/lib/coss/types/sign_request_webhook_event_data.rb +24 -0
- data/lib/coss/types/sign_request_webhook_event_data_signer.rb +18 -0
- data/lib/coss/types/sign_request_webhook_event_data_signer_status.rb +15 -0
- data/lib/coss/types/sign_request_webhook_event_data_status.rb +16 -0
- data/lib/coss/types/sign_request_webhook_event_object.rb +11 -0
- data/lib/coss/types/sign_request_webhook_event_type.rb +17 -0
- data/lib/coss/types/sign_session.rb +21 -0
- data/lib/coss/types/sign_session_object.rb +11 -0
- data/lib/coss/types/sign_settings.rb +23 -0
- data/lib/coss/types/sign_settings_object.rb +11 -0
- data/lib/coss/types/sign_settings_theme.rb +13 -0
- data/lib/coss/types/sign_signer.rb +34 -0
- data/lib/coss/types/sign_signer_authentication.rb +12 -0
- data/lib/coss/types/sign_signer_delivery.rb +12 -0
- data/lib/coss/types/sign_signer_object.rb +11 -0
- data/lib/coss/types/sign_signer_status.rb +15 -0
- data/lib/coss/types/sign_template.rb +33 -0
- data/lib/coss/types/sign_template_documents_item.rb +17 -0
- data/lib/coss/types/sign_template_documents_item_pages_item.rb +11 -0
- data/lib/coss/types/sign_template_fields_item.rb +31 -0
- data/lib/coss/types/sign_template_fields_item_type.rb +17 -0
- data/lib/coss/types/sign_template_list.rb +13 -0
- data/lib/coss/types/sign_template_list_object.rb +11 -0
- data/lib/coss/types/sign_template_object.rb +11 -0
- data/lib/coss/types/sign_template_roles_item.rb +11 -0
- data/lib/coss/types/sign_template_signing_order.rb +12 -0
- data/lib/coss/types/sms_event_data.rb +1 -0
- data/lib/coss/types/sms_suppression.rb +1 -0
- data/lib/coss/types/sms_suppression_check_suppression.rb +1 -0
- data/lib/coss/types/sms_webhook_event_data.rb +2 -0
- data/lib/coss/types/subaccount.rb +27 -0
- data/lib/coss/types/subaccount_list.rb +13 -0
- data/lib/coss/types/subaccount_list_object.rb +11 -0
- data/lib/coss/types/subaccount_object.rb +11 -0
- data/lib/coss/types/subaccount_quotas.rb +14 -0
- data/lib/coss/types/subaccount_reputation.rb +16 -0
- data/lib/coss/types/subaccount_reputation_status.rb +13 -0
- data/lib/coss/types/subaccount_stats.rb +17 -0
- data/lib/coss/types/subaccount_stats_day.rb +23 -0
- data/lib/coss/types/subaccount_stats_object.rb +11 -0
- data/lib/coss/types/subaccount_status.rb +13 -0
- data/lib/coss/types/subaccount_webhook_event.rb +19 -0
- data/lib/coss/types/subaccount_webhook_event_data.rb +22 -0
- data/lib/coss/types/subaccount_webhook_event_data_previous_status.rb +13 -0
- data/lib/coss/types/subaccount_webhook_event_data_status.rb +13 -0
- data/lib/coss/types/subaccount_webhook_event_object.rb +11 -0
- data/lib/coss/types/subaccount_webhook_event_type.rb +14 -0
- data/lib/coss/types/suppression.rb +2 -0
- data/lib/coss/types/template_variable_default.rb +1 -0
- data/lib/coss/types/upsert_schedule_request.rb +17 -0
- data/lib/coss/types/usage_meter.rb +14 -1
- data/lib/coss/types/verification.rb +39 -0
- data/lib/coss/types/verification_channel.rb +12 -0
- data/lib/coss/types/verification_check.rb +13 -0
- data/lib/coss/types/verification_check_object.rb +11 -0
- data/lib/coss/types/verification_failure.rb +12 -0
- data/lib/coss/types/verification_list.rb +13 -0
- data/lib/coss/types/verification_list_object.rb +11 -0
- data/lib/coss/types/verification_object.rb +11 -0
- data/lib/coss/types/verification_reasons_item.rb +12 -0
- data/lib/coss/types/verification_send.rb +17 -0
- data/lib/coss/types/verification_send_channel.rb +12 -0
- data/lib/coss/types/verification_send_route.rb +14 -0
- data/lib/coss/types/verification_status.rb +16 -0
- data/lib/coss/types/verification_tags_item.rb +11 -0
- data/lib/coss/types/verification_webhook_event.rb +19 -0
- data/lib/coss/types/verification_webhook_event_data.rb +26 -0
- data/lib/coss/types/verification_webhook_event_data_channel.rb +12 -0
- data/lib/coss/types/verification_webhook_event_data_failure.rb +12 -0
- data/lib/coss/types/verification_webhook_event_data_reasons_item.rb +12 -0
- data/lib/coss/types/verification_webhook_event_data_status.rb +16 -0
- data/lib/coss/types/verification_webhook_event_data_tags_item.rb +11 -0
- data/lib/coss/types/verification_webhook_event_object.rb +11 -0
- data/lib/coss/types/verification_webhook_event_type.rb +13 -0
- data/lib/coss/types/verify_settings.rb +26 -0
- data/lib/coss/types/verify_settings_object.rb +11 -0
- data/lib/coss/types/webhook_test_event_event.rb +14 -0
- data/lib/coss/verify/client.rb +255 -0
- data/lib/coss/verify/settings/client.rb +93 -0
- data/lib/coss/verify/settings/types/update_verify_settings_request.rb +25 -0
- data/lib/coss/verify/types/cancel_verify_request.rb +11 -0
- data/lib/coss/verify/types/check_verification_request.rb +17 -0
- data/lib/coss/verify/types/get_verify_request.rb +11 -0
- data/lib/coss/verify/types/list_verify_request.rb +17 -0
- data/lib/coss/verify/types/list_verify_request_status.rb +18 -0
- data/lib/coss/verify/types/start_verification_request.rb +21 -0
- data/lib/coss/verify/types/start_verification_request_channel.rb +14 -0
- data/lib/coss/verify/types/start_verification_request_tags_item.rb +13 -0
- data/lib/coss/version.rb +1 -1
- data/lib/coss/webhook_endpoints/types/create_webhook_endpoint_request_event_types_item.rb +35 -0
- data/lib/coss/webhook_endpoints/types/update_webhook_endpoint_request_event_types_item.rb +35 -0
- data/lib/coss/webhook_events/types/create_test_webhook_event_request_type.rb +35 -0
- data/lib/coss/webhook_listeners/types/create_webhook_listener_request_event_types_item.rb +35 -0
- data/lib/coss.rb +591 -0
- data/reference.md +12800 -2455
- metadata +592 -1
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [Coss::Internal::Http::RawClient]
|
|
8
|
+
#
|
|
9
|
+
# @return [void]
|
|
10
|
+
def initialize(client:)
|
|
11
|
+
@client = client
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Messages of every thread, newest first, with a preview instead of their bodies (retrieve one for those). Pass
|
|
15
|
+
# the last `id` as `after` to get the next page while `has_more` is true.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Hash]
|
|
19
|
+
# @option request_options [String] :base_url
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
24
|
+
# @option params [String] :inbox_id
|
|
25
|
+
# @option params [Integer, nil] :limit
|
|
26
|
+
# @option params [String, nil] :after
|
|
27
|
+
# @option params [Coss::Inboxes::Messages::Types::ListMessagesRequestDirection, nil] :direction
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.inboxes.messages.list(inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz")
|
|
31
|
+
#
|
|
32
|
+
# @return [Coss::Types::InboxMessageList]
|
|
33
|
+
def list(request_options: {}, **params)
|
|
34
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
35
|
+
query_params = {}
|
|
36
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
37
|
+
query_params["after"] = params[:after] if params.key?(:after)
|
|
38
|
+
query_params["direction"] = params[:direction] if params.key?(:direction)
|
|
39
|
+
|
|
40
|
+
request = Coss::Internal::JSON::Request.new(
|
|
41
|
+
base_url: request_options[:base_url],
|
|
42
|
+
method: "GET",
|
|
43
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/messages",
|
|
44
|
+
query: query_params,
|
|
45
|
+
request_options: request_options
|
|
46
|
+
)
|
|
47
|
+
begin
|
|
48
|
+
response = @client.send(request)
|
|
49
|
+
rescue Net::HTTPRequestTimeout
|
|
50
|
+
raise Coss::Errors::TimeoutError
|
|
51
|
+
end
|
|
52
|
+
code = response.code.to_i
|
|
53
|
+
if code.between?(200, 299)
|
|
54
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxMessageList.load(response.body))
|
|
55
|
+
else
|
|
56
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
57
|
+
raise error_class.new(response.body, code: code)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Starts a thread with a message from the inbox's address, sent like any email (its `email_id` has its delivery
|
|
62
|
+
# events and webhooks; never tracked). Replies to it arrive in the same thread. Live inboxes send only from
|
|
63
|
+
# receiving domains under one of the organization's verified domains (`can_send`); sandbox ones always can, and
|
|
64
|
+
# deliver nothing. Recipients count against the send quota.
|
|
65
|
+
#
|
|
66
|
+
# @param request_options [Hash]
|
|
67
|
+
# @param params [Coss::Inboxes::Messages::Types::SendInboxMessageRequest]
|
|
68
|
+
# @option request_options [String] :base_url
|
|
69
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
70
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
71
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
72
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
73
|
+
# @option params [String] :inbox_id
|
|
74
|
+
# @option params [String, nil] :idempotency_key
|
|
75
|
+
#
|
|
76
|
+
# @example
|
|
77
|
+
# client.inboxes.messages.send_(
|
|
78
|
+
# inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz",
|
|
79
|
+
# idempotency_key: "welcome-user-123",
|
|
80
|
+
# to: "jane@example.com",
|
|
81
|
+
# subject: "Your order",
|
|
82
|
+
# text: "Hi Jane, your order has shipped."
|
|
83
|
+
# )
|
|
84
|
+
#
|
|
85
|
+
# @return [Coss::Types::InboxMessage]
|
|
86
|
+
def send_(request_options: {}, **params)
|
|
87
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
88
|
+
request_data = Coss::Inboxes::Messages::Types::SendInboxMessageRequest.new(params).to_h
|
|
89
|
+
non_body_param_names = %w[inbox_id Idempotency-Key]
|
|
90
|
+
body = request_data.except(*non_body_param_names)
|
|
91
|
+
|
|
92
|
+
headers = {}
|
|
93
|
+
headers["Idempotency-Key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
94
|
+
|
|
95
|
+
request = Coss::Internal::JSON::Request.new(
|
|
96
|
+
base_url: request_options[:base_url],
|
|
97
|
+
method: "POST",
|
|
98
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/messages",
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
request_options: request_options
|
|
102
|
+
)
|
|
103
|
+
begin
|
|
104
|
+
response = @client.send(request)
|
|
105
|
+
rescue Net::HTTPRequestTimeout
|
|
106
|
+
raise Coss::Errors::TimeoutError
|
|
107
|
+
end
|
|
108
|
+
code = response.code.to_i
|
|
109
|
+
if code.between?(200, 299)
|
|
110
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxMessage.load(response.body))
|
|
111
|
+
else
|
|
112
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
113
|
+
raise error_class.new(response.body, code: code)
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# The message with its text, HTML and `extracted_text`. An outbound message's delivery is its email's
|
|
118
|
+
# (`email_id`).
|
|
119
|
+
#
|
|
120
|
+
# @param request_options [Hash]
|
|
121
|
+
# @param params [Hash]
|
|
122
|
+
# @option request_options [String] :base_url
|
|
123
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
124
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
125
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
126
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
127
|
+
# @option params [String] :inbox_id
|
|
128
|
+
# @option params [String] :message_id
|
|
129
|
+
#
|
|
130
|
+
# @example
|
|
131
|
+
# client.inboxes.messages.get(
|
|
132
|
+
# inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz",
|
|
133
|
+
# message_id: "imsg_01k7c8m4s1d3c9x0z4e6g7h8j9"
|
|
134
|
+
# )
|
|
135
|
+
#
|
|
136
|
+
# @return [Coss::Types::InboxMessage]
|
|
137
|
+
def get(request_options: {}, **params)
|
|
138
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
139
|
+
request = Coss::Internal::JSON::Request.new(
|
|
140
|
+
base_url: request_options[:base_url],
|
|
141
|
+
method: "GET",
|
|
142
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/messages/#{URI.encode_uri_component(params[:message_id].to_s)}",
|
|
143
|
+
request_options: request_options
|
|
144
|
+
)
|
|
145
|
+
begin
|
|
146
|
+
response = @client.send(request)
|
|
147
|
+
rescue Net::HTTPRequestTimeout
|
|
148
|
+
raise Coss::Errors::TimeoutError
|
|
149
|
+
end
|
|
150
|
+
code = response.code.to_i
|
|
151
|
+
if code.between?(200, 299)
|
|
152
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxMessage.load(response.body))
|
|
153
|
+
else
|
|
154
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
155
|
+
raise error_class.new(response.body, code: code)
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# An inbound message's attachment, always as `application/octet-stream` (its declared type is the attachment's
|
|
160
|
+
# `content_type`): treat it as untrusted.
|
|
161
|
+
#
|
|
162
|
+
# @param request_options [Hash]
|
|
163
|
+
# @param params [Hash]
|
|
164
|
+
# @option request_options [String] :base_url
|
|
165
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
166
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
167
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
168
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
169
|
+
# @option params [String] :inbox_id
|
|
170
|
+
# @option params [String] :message_id
|
|
171
|
+
# @option params [String] :attachment_id
|
|
172
|
+
#
|
|
173
|
+
# @example
|
|
174
|
+
# client.inboxes.messages.get_attachment(
|
|
175
|
+
# inbox_id: "inbox_id",
|
|
176
|
+
# message_id: "message_id",
|
|
177
|
+
# attachment_id: "attachment_id"
|
|
178
|
+
# )
|
|
179
|
+
#
|
|
180
|
+
# @return [untyped]
|
|
181
|
+
def get_attachment(request_options: {}, **params)
|
|
182
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
183
|
+
request = Coss::Internal::JSON::Request.new(
|
|
184
|
+
base_url: request_options[:base_url],
|
|
185
|
+
method: "GET",
|
|
186
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/messages/#{URI.encode_uri_component(params[:message_id].to_s)}/attachments/#{URI.encode_uri_component(params[:attachment_id].to_s)}",
|
|
187
|
+
request_options: request_options
|
|
188
|
+
)
|
|
189
|
+
begin
|
|
190
|
+
response = @client.send(request)
|
|
191
|
+
rescue Net::HTTPRequestTimeout
|
|
192
|
+
raise Coss::Errors::TimeoutError
|
|
193
|
+
end
|
|
194
|
+
code = response.code.to_i
|
|
195
|
+
return response.body if code.between?(200, 299)
|
|
196
|
+
|
|
197
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
198
|
+
raise error_class.new(response.body, code: code)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Replies in the message's thread from the inbox's address: to its sender (its `Reply-To` first), or to an
|
|
202
|
+
# outbound message's recipients again for a follow-up; `reply_all` adds everyone else on it. The subject gets
|
|
203
|
+
# `Re:`, and `In-Reply-To`/`References` let the recipient's mail client thread it. Sent like any email, counted
|
|
204
|
+
# against the send quota.
|
|
205
|
+
#
|
|
206
|
+
# @param request_options [Hash]
|
|
207
|
+
# @param params [Coss::Inboxes::Messages::Types::ReplyInboxMessageRequest]
|
|
208
|
+
# @option request_options [String] :base_url
|
|
209
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
210
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
211
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
212
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
213
|
+
# @option params [String] :inbox_id
|
|
214
|
+
# @option params [String] :message_id
|
|
215
|
+
# @option params [String, nil] :idempotency_key
|
|
216
|
+
#
|
|
217
|
+
# @example
|
|
218
|
+
# client.inboxes.messages.reply(
|
|
219
|
+
# inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz",
|
|
220
|
+
# message_id: "imsg_01k7c8m4s1d3c9x0z4e6g7h8j9",
|
|
221
|
+
# idempotency_key: "welcome-user-123",
|
|
222
|
+
# text: "Sorry about that, Jane! A new one is on its way."
|
|
223
|
+
# )
|
|
224
|
+
#
|
|
225
|
+
# @return [Coss::Types::InboxMessage]
|
|
226
|
+
def reply(request_options: {}, **params)
|
|
227
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
228
|
+
request_data = Coss::Inboxes::Messages::Types::ReplyInboxMessageRequest.new(params).to_h
|
|
229
|
+
non_body_param_names = %w[inbox_id message_id Idempotency-Key]
|
|
230
|
+
body = request_data.except(*non_body_param_names)
|
|
231
|
+
|
|
232
|
+
headers = {}
|
|
233
|
+
headers["Idempotency-Key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
234
|
+
|
|
235
|
+
request = Coss::Internal::JSON::Request.new(
|
|
236
|
+
base_url: request_options[:base_url],
|
|
237
|
+
method: "POST",
|
|
238
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/messages/#{URI.encode_uri_component(params[:message_id].to_s)}/reply",
|
|
239
|
+
headers: headers,
|
|
240
|
+
body: body,
|
|
241
|
+
request_options: request_options
|
|
242
|
+
)
|
|
243
|
+
begin
|
|
244
|
+
response = @client.send(request)
|
|
245
|
+
rescue Net::HTTPRequestTimeout
|
|
246
|
+
raise Coss::Errors::TimeoutError
|
|
247
|
+
end
|
|
248
|
+
code = response.code.to_i
|
|
249
|
+
if code.between?(200, 299)
|
|
250
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxMessage.load(response.body))
|
|
251
|
+
else
|
|
252
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
253
|
+
raise error_class.new(response.body, code: code)
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class GetAttachmentMessagesRequest < Internal::Types::Model
|
|
8
|
+
field :inbox_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :attachment_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class GetMessagesRequest < Internal::Types::Model
|
|
8
|
+
field :inbox_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class ListMessagesRequest < Internal::Types::Model
|
|
8
|
+
field :inbox_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :direction, -> { Coss::Inboxes::Messages::Types::ListMessagesRequestDirection }, optional: true, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
module ListMessagesRequestDirection
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
INBOUND = "inbound"
|
|
11
|
+
OUTBOUND = "outbound"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class ReplyInboxMessageRequest < Internal::Types::Model
|
|
8
|
+
field :inbox_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "Idempotency-Key"
|
|
13
|
+
|
|
14
|
+
field :reply_all, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :cc, -> { Coss::Inboxes::Messages::Types::ReplyInboxMessageRequestCc }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :bcc, -> { Coss::Inboxes::Messages::Types::ReplyInboxMessageRequestBcc }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :text, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :html, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :attachments, -> { Internal::Types::Array[Coss::Types::SendEmailAttachment] }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :tags, -> { Internal::Types::Array[Coss::Inboxes::Messages::Types::ReplyInboxMessageRequestTagsItem] }, optional: true, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
# Who it's blind copied to.
|
|
8
|
+
class ReplyInboxMessageRequestBcc < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
member -> { String }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Array[String] }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
# Who it's copied to.
|
|
8
|
+
class ReplyInboxMessageRequestCc < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
member -> { String }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Array[String] }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class ReplyInboxMessageRequestTagsItem < Internal::Types::Model
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :value, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class SendInboxMessageRequest < Internal::Types::Model
|
|
8
|
+
field :inbox_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "Idempotency-Key"
|
|
11
|
+
|
|
12
|
+
field :to, -> { Coss::Inboxes::Messages::Types::SendInboxMessageRequestTo }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :cc, -> { Coss::Inboxes::Messages::Types::SendInboxMessageRequestCc }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :bcc, -> { Coss::Inboxes::Messages::Types::SendInboxMessageRequestBcc }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :subject, -> { String }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :text, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :html, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :attachments, -> { Internal::Types::Array[Coss::Types::SendEmailAttachment] }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :tags, -> { Internal::Types::Array[Coss::Inboxes::Messages::Types::SendInboxMessageRequestTagsItem] }, optional: true, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
# Who it's blind copied to.
|
|
8
|
+
class SendInboxMessageRequestBcc < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
member -> { String }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Array[String] }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
# Who it's copied to.
|
|
8
|
+
class SendInboxMessageRequestCc < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
member -> { String }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Array[String] }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
class SendInboxMessageRequestTagsItem < Internal::Types::Model
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :value, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Messages
|
|
6
|
+
module Types
|
|
7
|
+
# Who it goes to.
|
|
8
|
+
class SendInboxMessageRequestTo < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
member -> { String }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Array[String] }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Inboxes
|
|
5
|
+
module Threads
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [Coss::Internal::Http::RawClient]
|
|
8
|
+
#
|
|
9
|
+
# @return [void]
|
|
10
|
+
def initialize(client:)
|
|
11
|
+
@client = client
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The inbox's conversations, the one with the latest message first, with a preview of that message. A thread
|
|
15
|
+
# whose `last_inbound_at` equals its `last_message_at` awaits a reply. Pass the last `id` as `after` to get the
|
|
16
|
+
# next page while `has_more` is true.
|
|
17
|
+
#
|
|
18
|
+
# @param request_options [Hash]
|
|
19
|
+
# @param params [Hash]
|
|
20
|
+
# @option request_options [String] :base_url
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
23
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
24
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
25
|
+
# @option params [String] :inbox_id
|
|
26
|
+
# @option params [Integer, nil] :limit
|
|
27
|
+
# @option params [String, nil] :after
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.inboxes.threads.list(inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz")
|
|
31
|
+
#
|
|
32
|
+
# @return [Coss::Types::InboxThreadList]
|
|
33
|
+
def list(request_options: {}, **params)
|
|
34
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
35
|
+
query_params = {}
|
|
36
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
37
|
+
query_params["after"] = params[:after] if params.key?(:after)
|
|
38
|
+
|
|
39
|
+
request = Coss::Internal::JSON::Request.new(
|
|
40
|
+
base_url: request_options[:base_url],
|
|
41
|
+
method: "GET",
|
|
42
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/threads",
|
|
43
|
+
query: query_params,
|
|
44
|
+
request_options: request_options
|
|
45
|
+
)
|
|
46
|
+
begin
|
|
47
|
+
response = @client.send(request)
|
|
48
|
+
rescue Net::HTTPRequestTimeout
|
|
49
|
+
raise Coss::Errors::TimeoutError
|
|
50
|
+
end
|
|
51
|
+
code = response.code.to_i
|
|
52
|
+
if code.between?(200, 299)
|
|
53
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxThreadList.load(response.body))
|
|
54
|
+
else
|
|
55
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
56
|
+
raise error_class.new(response.body, code: code)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# The conversation with its latest messages, oldest first, each with its text and `extracted_text` (its own
|
|
61
|
+
# words, without the quoted conversation): what an agent reads before it replies. HTML is the sender's: sanitize
|
|
62
|
+
# it before showing it to anyone.
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [Hash]
|
|
65
|
+
# @param params [Hash]
|
|
66
|
+
# @option request_options [String] :base_url
|
|
67
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
68
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
69
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
70
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
71
|
+
# @option params [String] :inbox_id
|
|
72
|
+
# @option params [String] :thread_id
|
|
73
|
+
#
|
|
74
|
+
# @example
|
|
75
|
+
# client.inboxes.threads.get(
|
|
76
|
+
# inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz",
|
|
77
|
+
# thread_id: "thread_01k7c8m4r0c2b8w9y3d5f6g7h8"
|
|
78
|
+
# )
|
|
79
|
+
#
|
|
80
|
+
# @return [Coss::Types::InboxThread]
|
|
81
|
+
def get(request_options: {}, **params)
|
|
82
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
83
|
+
request = Coss::Internal::JSON::Request.new(
|
|
84
|
+
base_url: request_options[:base_url],
|
|
85
|
+
method: "GET",
|
|
86
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/threads/#{URI.encode_uri_component(params[:thread_id].to_s)}",
|
|
87
|
+
request_options: request_options
|
|
88
|
+
)
|
|
89
|
+
begin
|
|
90
|
+
response = @client.send(request)
|
|
91
|
+
rescue Net::HTTPRequestTimeout
|
|
92
|
+
raise Coss::Errors::TimeoutError
|
|
93
|
+
end
|
|
94
|
+
code = response.code.to_i
|
|
95
|
+
if code.between?(200, 299)
|
|
96
|
+
(response.body.to_s.empty? ? nil : Coss::Types::InboxThread.load(response.body))
|
|
97
|
+
else
|
|
98
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
99
|
+
raise error_class.new(response.body, code: code)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Removes the conversation from the inbox. Its received emails and emails stay in the environment until their
|
|
104
|
+
# retention ends; a later reply starts a new thread.
|
|
105
|
+
#
|
|
106
|
+
# @param request_options [Hash]
|
|
107
|
+
# @param params [Hash]
|
|
108
|
+
# @option request_options [String] :base_url
|
|
109
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
110
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
111
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
112
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
113
|
+
# @option params [String] :inbox_id
|
|
114
|
+
# @option params [String] :thread_id
|
|
115
|
+
#
|
|
116
|
+
# @example
|
|
117
|
+
# client.inboxes.threads.delete(
|
|
118
|
+
# inbox_id: "inbox_01k7c8m4q2f3e9v6t5r1n0p8yz",
|
|
119
|
+
# thread_id: "thread_01k7c8m4r0c2b8w9y3d5f6g7h8"
|
|
120
|
+
# )
|
|
121
|
+
#
|
|
122
|
+
# @return [Coss::Types::DeletedInboxThread]
|
|
123
|
+
def delete(request_options: {}, **params)
|
|
124
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
125
|
+
request = Coss::Internal::JSON::Request.new(
|
|
126
|
+
base_url: request_options[:base_url],
|
|
127
|
+
method: "DELETE",
|
|
128
|
+
path: "v1/inboxes/#{URI.encode_uri_component(params[:inbox_id].to_s)}/threads/#{URI.encode_uri_component(params[:thread_id].to_s)}",
|
|
129
|
+
request_options: request_options
|
|
130
|
+
)
|
|
131
|
+
begin
|
|
132
|
+
response = @client.send(request)
|
|
133
|
+
rescue Net::HTTPRequestTimeout
|
|
134
|
+
raise Coss::Errors::TimeoutError
|
|
135
|
+
end
|
|
136
|
+
code = response.code.to_i
|
|
137
|
+
if code.between?(200, 299)
|
|
138
|
+
(response.body.to_s.empty? ? nil : Coss::Types::DeletedInboxThread.load(response.body))
|
|
139
|
+
else
|
|
140
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
141
|
+
raise error_class.new(response.body, code: code)
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|