coss 0.2.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 +5 -0
- data/lib/coss/audit_events/client.rb +2 -0
- data/lib/coss/billing/types/usage_billing_request_meter.rb +7 -1
- data/lib/coss/client.rb +6 -1
- 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/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/suppressions/client.rb +2 -0
- data/lib/coss/email/topics/client.rb +2 -0
- data/lib/coss/forms/client.rb +2 -0
- data/lib/coss/forms/submissions/client.rb +2 -0
- data/lib/coss/forms/types/create_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/create_form_request_files.rb +1 -0
- data/lib/coss/forms/types/create_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/create_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/create_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/create_form_request_submitter.rb +1 -0
- data/lib/coss/forms/types/update_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/update_form_request_files.rb +1 -0
- data/lib/coss/forms/types/update_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/update_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/update_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/update_form_request_submitter.rb +1 -0
- data/lib/coss/hooks/messages/client.rb +3 -1
- data/lib/coss/inboxes/client.rb +2 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_to.rb +1 -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 +11 -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/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/documents/client.rb +2 -0
- data/lib/coss/sign/requests/client.rb +2 -0
- data/lib/coss/sign/templates/client.rb +2 -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_payment_method.rb +1 -0
- data/lib/coss/types/billing_usage_item_meter.rb +7 -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 +7 -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_webhook_event_data.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 +7 -1
- data/lib/coss/types/credit_meters_item.rb +7 -1
- data/lib/coss/types/credit_source.rb +1 -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/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_dmarc_report_summary.rb +1 -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_webhook_event_data.rb +2 -0
- data/lib/coss/types/environment_organization.rb +3 -0
- data/lib/coss/types/environment_project.rb +1 -0
- data/lib/coss/types/form_contacts.rb +1 -0
- data/lib/coss/types/form_files.rb +1 -0
- data/lib/coss/types/form_hosted.rb +1 -0
- data/lib/coss/types/form_notifications.rb +1 -0
- data/lib/coss/types/form_spam.rb +1 -0
- data/lib/coss/types/form_submission_webhook_event_data.rb +1 -0
- data/lib/coss/types/form_submitter.rb +1 -0
- data/lib/coss/types/invoice_kind.rb +1 -0
- data/lib/coss/types/invoice_line_meter.rb +7 -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 +1 -0
- data/lib/coss/types/log_drain_with_secret.rb +4 -0
- data/lib/coss/types/log_source.rb +1 -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_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_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_event_details.rb +1 -0
- data/lib/coss/types/sign_field.rb +1 -0
- data/lib/coss/types/sign_request_webhook_event_data.rb +1 -0
- data/lib/coss/types/sign_signer.rb +1 -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_quotas.rb +1 -0
- data/lib/coss/types/subaccount_reputation.rb +1 -0
- data/lib/coss/types/subaccount_webhook_event_data.rb +1 -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 +7 -1
- data/lib/coss/types/verification_webhook_event_data.rb +1 -0
- data/lib/coss/types/verification_webhook_event_data_failure.rb +1 -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 +6 -0
- data/lib/coss/verify/client.rb +7 -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/version.rb +1 -1
- data/lib/coss/webhook_endpoints/types/create_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_endpoints/types/update_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_events/types/create_test_webhook_event_request_type.rb +18 -0
- data/lib/coss/webhook_listeners/types/create_webhook_listener_request_event_types_item.rb +18 -0
- data/lib/coss.rb +282 -0
- data/reference.md +5626 -224
- metadata +283 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Schedules
|
|
6
|
+
module Types
|
|
7
|
+
class GetSchedulesRequest < Internal::Types::Model
|
|
8
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :schedule_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Schedules
|
|
6
|
+
module Types
|
|
7
|
+
class RemoveSchedulesRequest < Internal::Types::Model
|
|
8
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :schedule_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Schedules
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateSchedulesRequest < Internal::Types::Model
|
|
8
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :schedule_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :body, -> { Coss::Types::UpsertScheduleRequest }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Series
|
|
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
|
+
# Books up to 52 occurrences, keeping the attendee's local time across DST changes. Each one is an ordinary
|
|
15
|
+
# booking that can move on its own, and a pool keeps one host throughout.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Coss::Types::CreateSeriesRequest]
|
|
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, nil] :idempotency_key
|
|
25
|
+
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.scheduling.series.create(
|
|
28
|
+
# idempotency_key: "welcome-user-123",
|
|
29
|
+
# event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
30
|
+
# start: "2027-01-04T15:00:00.000Z",
|
|
31
|
+
# attendee: {
|
|
32
|
+
# uid: "patient_77",
|
|
33
|
+
# time_zone: "America/New_York"
|
|
34
|
+
# },
|
|
35
|
+
# recurrence: {
|
|
36
|
+
# frequency: "weekly",
|
|
37
|
+
# interval: 1,
|
|
38
|
+
# count: 12
|
|
39
|
+
# }
|
|
40
|
+
# )
|
|
41
|
+
#
|
|
42
|
+
# @return [Coss::Types::SchedulingSeries]
|
|
43
|
+
def create(request_options: {}, **params)
|
|
44
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
45
|
+
headers = {}
|
|
46
|
+
headers["Idempotency-Key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
47
|
+
params = params.except(:idempotency_key)
|
|
48
|
+
|
|
49
|
+
request = Coss::Internal::JSON::Request.new(
|
|
50
|
+
base_url: request_options[:base_url],
|
|
51
|
+
method: "POST",
|
|
52
|
+
path: "v1/scheduling/series",
|
|
53
|
+
headers: headers,
|
|
54
|
+
body: Coss::Types::CreateSeriesRequest.new(params).to_h,
|
|
55
|
+
request_options: request_options
|
|
56
|
+
)
|
|
57
|
+
begin
|
|
58
|
+
response = @client.send(request)
|
|
59
|
+
rescue Net::HTTPRequestTimeout
|
|
60
|
+
raise Coss::Errors::TimeoutError
|
|
61
|
+
end
|
|
62
|
+
code = response.code.to_i
|
|
63
|
+
if code.between?(200, 299)
|
|
64
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSeries.load(response.body))
|
|
65
|
+
else
|
|
66
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
67
|
+
raise error_class.new(response.body, code: code)
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Which occurrences would be free, without booking anything.
|
|
72
|
+
#
|
|
73
|
+
# @param request_options [Hash]
|
|
74
|
+
# @param params [Coss::Types::CreateSeriesRequest]
|
|
75
|
+
# @option request_options [String] :base_url
|
|
76
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
77
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
78
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
79
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
80
|
+
#
|
|
81
|
+
# @example
|
|
82
|
+
# client.scheduling.series.preview(
|
|
83
|
+
# event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
84
|
+
# start: "2027-01-04T15:00:00.000Z",
|
|
85
|
+
# attendee: {
|
|
86
|
+
# uid: "patient_77",
|
|
87
|
+
# time_zone: "America/New_York"
|
|
88
|
+
# },
|
|
89
|
+
# recurrence: {
|
|
90
|
+
# frequency: "weekly",
|
|
91
|
+
# interval: 1,
|
|
92
|
+
# count: 12
|
|
93
|
+
# }
|
|
94
|
+
# )
|
|
95
|
+
#
|
|
96
|
+
# @return [Coss::Types::SchedulingSeriesPreview]
|
|
97
|
+
def preview(request_options: {}, **params)
|
|
98
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
99
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
100
|
+
request = Coss::Internal::JSON::Request.new(
|
|
101
|
+
base_url: request_options[:base_url],
|
|
102
|
+
method: "POST",
|
|
103
|
+
path: "v1/scheduling/series/preview",
|
|
104
|
+
headers: headers,
|
|
105
|
+
body: Coss::Types::CreateSeriesRequest.new(params).to_h,
|
|
106
|
+
request_options: request_options
|
|
107
|
+
)
|
|
108
|
+
begin
|
|
109
|
+
response = @client.send(request)
|
|
110
|
+
rescue Net::HTTPRequestTimeout
|
|
111
|
+
raise Coss::Errors::TimeoutError
|
|
112
|
+
end
|
|
113
|
+
code = response.code.to_i
|
|
114
|
+
if code.between?(200, 299)
|
|
115
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSeriesPreview.load(response.body))
|
|
116
|
+
else
|
|
117
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
118
|
+
raise error_class.new(response.body, code: code)
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Cancels the occurrences from `from_index` on, or all of them.
|
|
123
|
+
#
|
|
124
|
+
# @param request_options [Hash]
|
|
125
|
+
# @param params [Coss::Scheduling::Series::Types::CancelSeriesRequest]
|
|
126
|
+
# @option request_options [String] :base_url
|
|
127
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
128
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
129
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
130
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
131
|
+
# @option params [String] :id
|
|
132
|
+
#
|
|
133
|
+
# @example
|
|
134
|
+
# client.scheduling.series.cancel(
|
|
135
|
+
# id: "series_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
136
|
+
# from_index: 4
|
|
137
|
+
# )
|
|
138
|
+
#
|
|
139
|
+
# @return [Coss::Types::SchedulingCancelledSeries]
|
|
140
|
+
def cancel(request_options: {}, **params)
|
|
141
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
142
|
+
request_data = Coss::Scheduling::Series::Types::CancelSeriesRequest.new(params).to_h
|
|
143
|
+
non_body_param_names = %w[id]
|
|
144
|
+
body = request_data.except(*non_body_param_names)
|
|
145
|
+
|
|
146
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
147
|
+
request = Coss::Internal::JSON::Request.new(
|
|
148
|
+
base_url: request_options[:base_url],
|
|
149
|
+
method: "POST",
|
|
150
|
+
path: "v1/scheduling/series/#{URI.encode_uri_component(params[:id].to_s)}/cancel",
|
|
151
|
+
headers: headers,
|
|
152
|
+
body: body,
|
|
153
|
+
request_options: request_options
|
|
154
|
+
)
|
|
155
|
+
begin
|
|
156
|
+
response = @client.send(request)
|
|
157
|
+
rescue Net::HTTPRequestTimeout
|
|
158
|
+
raise Coss::Errors::TimeoutError
|
|
159
|
+
end
|
|
160
|
+
code = response.code.to_i
|
|
161
|
+
if code.between?(200, 299)
|
|
162
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingCancelledSeries.load(response.body))
|
|
163
|
+
else
|
|
164
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
165
|
+
raise error_class.new(response.body, code: code)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Series
|
|
6
|
+
module Types
|
|
7
|
+
class CancelSeriesRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :from_index, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Series
|
|
6
|
+
module Types
|
|
7
|
+
class CreateSeriesBody < Internal::Types::Model
|
|
8
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "Idempotency-Key"
|
|
9
|
+
|
|
10
|
+
field :body, -> { Coss::Types::CreateSeriesRequest }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
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
|
+
# Lets one host manage their own hours, calendars and locations, on coss.com's hosted page or your own UI. Send
|
|
15
|
+
# the `url` to their browser, or embed it with `coss/scheduling`.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Coss::Scheduling::Sessions::Types::CreateSchedulingHostSessionRequest]
|
|
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] :host
|
|
25
|
+
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.scheduling.sessions.create_for_host(
|
|
28
|
+
# host: "host_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
29
|
+
# expires_in: 3600
|
|
30
|
+
# )
|
|
31
|
+
#
|
|
32
|
+
# @return [Coss::Types::SchedulingSession]
|
|
33
|
+
def create_for_host(request_options: {}, **params)
|
|
34
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
35
|
+
request_data = Coss::Scheduling::Sessions::Types::CreateSchedulingHostSessionRequest.new(params).to_h
|
|
36
|
+
non_body_param_names = %w[host]
|
|
37
|
+
body = request_data.except(*non_body_param_names)
|
|
38
|
+
|
|
39
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
40
|
+
request = Coss::Internal::JSON::Request.new(
|
|
41
|
+
base_url: request_options[:base_url],
|
|
42
|
+
method: "POST",
|
|
43
|
+
path: "v1/scheduling/hosts/#{URI.encode_uri_component(params[:host].to_s)}/sessions",
|
|
44
|
+
headers: headers,
|
|
45
|
+
body: body,
|
|
46
|
+
request_options: request_options,
|
|
47
|
+
max_retries: 0
|
|
48
|
+
)
|
|
49
|
+
begin
|
|
50
|
+
response = @client.send(request)
|
|
51
|
+
rescue Net::HTTPRequestTimeout
|
|
52
|
+
raise Coss::Errors::TimeoutError
|
|
53
|
+
end
|
|
54
|
+
code = response.code.to_i
|
|
55
|
+
if code.between?(200, 299)
|
|
56
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSession.load(response.body))
|
|
57
|
+
else
|
|
58
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
59
|
+
raise error_class.new(response.body, code: code)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Lets a browser book one event type, on coss.com's hosted page or your own UI, without your API key.
|
|
64
|
+
#
|
|
65
|
+
# @param request_options [Hash]
|
|
66
|
+
# @param params [Coss::Scheduling::Sessions::Types::CreateSchedulingBookerSessionRequest]
|
|
67
|
+
# @option request_options [String] :base_url
|
|
68
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
69
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
70
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
71
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
72
|
+
#
|
|
73
|
+
# @example
|
|
74
|
+
# client.scheduling.sessions.create_for_booker(
|
|
75
|
+
# event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
76
|
+
# attendee: {
|
|
77
|
+
# uid: "patient_77",
|
|
78
|
+
# name: "Sam Lee",
|
|
79
|
+
# time_zone: "UTC"
|
|
80
|
+
# }
|
|
81
|
+
# )
|
|
82
|
+
#
|
|
83
|
+
# @return [Coss::Types::SchedulingSession]
|
|
84
|
+
def create_for_booker(request_options: {}, **params)
|
|
85
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
86
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
87
|
+
request = Coss::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "POST",
|
|
90
|
+
path: "v1/scheduling/booker_sessions",
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: Coss::Scheduling::Sessions::Types::CreateSchedulingBookerSessionRequest.new(params).to_h,
|
|
93
|
+
request_options: request_options,
|
|
94
|
+
max_retries: 0
|
|
95
|
+
)
|
|
96
|
+
begin
|
|
97
|
+
response = @client.send(request)
|
|
98
|
+
rescue Net::HTTPRequestTimeout
|
|
99
|
+
raise Coss::Errors::TimeoutError
|
|
100
|
+
end
|
|
101
|
+
code = response.code.to_i
|
|
102
|
+
if code.between?(200, 299)
|
|
103
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSession.load(response.body))
|
|
104
|
+
else
|
|
105
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
106
|
+
raise error_class.new(response.body, code: code)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Lets an attendee reschedule or cancel this one booking, within the event type's cutoffs. Stops working when
|
|
111
|
+
# the booking's cancelled, or a day after it ends.
|
|
112
|
+
#
|
|
113
|
+
# @param request_options [Hash]
|
|
114
|
+
# @param params [Hash]
|
|
115
|
+
# @option request_options [String] :base_url
|
|
116
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
117
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
118
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
119
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
120
|
+
# @option params [String] :id
|
|
121
|
+
#
|
|
122
|
+
# @example
|
|
123
|
+
# client.scheduling.sessions.create_for_booking(id: "book_01kd2m9a0b1c2d3e4f5g6h7j8m")
|
|
124
|
+
#
|
|
125
|
+
# @return [Coss::Types::SchedulingSession]
|
|
126
|
+
def create_for_booking(request_options: {}, **params)
|
|
127
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
128
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
129
|
+
request = Coss::Internal::JSON::Request.new(
|
|
130
|
+
base_url: request_options[:base_url],
|
|
131
|
+
method: "POST",
|
|
132
|
+
path: "v1/scheduling/bookings/#{URI.encode_uri_component(params[:id].to_s)}/manage_sessions",
|
|
133
|
+
headers: headers,
|
|
134
|
+
request_options: request_options,
|
|
135
|
+
max_retries: 0
|
|
136
|
+
)
|
|
137
|
+
begin
|
|
138
|
+
response = @client.send(request)
|
|
139
|
+
rescue Net::HTTPRequestTimeout
|
|
140
|
+
raise Coss::Errors::TimeoutError
|
|
141
|
+
end
|
|
142
|
+
code = response.code.to_i
|
|
143
|
+
if code.between?(200, 299)
|
|
144
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSession.load(response.body))
|
|
145
|
+
else
|
|
146
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
147
|
+
raise error_class.new(response.body, code: code)
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
6
|
+
module Types
|
|
7
|
+
class CreateForBookingSessionsRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
6
|
+
module Types
|
|
7
|
+
class CreateSchedulingBookerSessionRequest < Internal::Types::Model
|
|
8
|
+
field :event_type, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :host, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :attributes, -> { Internal::Types::Hash[String, Coss::Scheduling::Sessions::Types::CreateSchedulingBookerSessionRequestAttributesValue] }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :attendee, -> { Coss::Scheduling::Sessions::Types::CreateSchedulingBookerSessionRequestAttendee }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :expires_in, -> { Integer }, optional: true, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
6
|
+
module Types
|
|
7
|
+
# Who's booking, if you already know: the browser then can't change it.
|
|
8
|
+
class CreateSchedulingBookerSessionRequestAttendee < Internal::Types::Model
|
|
9
|
+
field :uid, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :time_zone, -> { String }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :locale, -> { String }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attributes_value.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
6
|
+
module Types
|
|
7
|
+
class CreateSchedulingBookerSessionRequestAttributesValue < Internal::Types::Model
|
|
8
|
+
extend Coss::Internal::Types::Union
|
|
9
|
+
|
|
10
|
+
member -> { String }
|
|
11
|
+
|
|
12
|
+
member -> { Internal::Types::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Sessions
|
|
6
|
+
module Types
|
|
7
|
+
class CreateSchedulingHostSessionRequest < Internal::Types::Model
|
|
8
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :expires_in, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :read_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Settings
|
|
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 environment's scheduling settings.
|
|
15
|
+
#
|
|
16
|
+
# @param request_options [Hash]
|
|
17
|
+
# @param _params [Hash]
|
|
18
|
+
# @option request_options [String] :base_url
|
|
19
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
23
|
+
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.scheduling.settings.get
|
|
26
|
+
#
|
|
27
|
+
# @return [Coss::Types::SchedulingSettings]
|
|
28
|
+
def get(request_options: {}, **_params)
|
|
29
|
+
request = Coss::Internal::JSON::Request.new(
|
|
30
|
+
base_url: request_options[:base_url],
|
|
31
|
+
method: "GET",
|
|
32
|
+
path: "v1/scheduling/settings",
|
|
33
|
+
request_options: request_options
|
|
34
|
+
)
|
|
35
|
+
begin
|
|
36
|
+
response = @client.send(request)
|
|
37
|
+
rescue Net::HTTPRequestTimeout
|
|
38
|
+
raise Coss::Errors::TimeoutError
|
|
39
|
+
end
|
|
40
|
+
code = response.code.to_i
|
|
41
|
+
if code.between?(200, 299)
|
|
42
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSettings.load(response.body))
|
|
43
|
+
else
|
|
44
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
45
|
+
raise error_class.new(response.body, code: code)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Changes what's given.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [Hash]
|
|
52
|
+
# @param params [Coss::Scheduling::Settings::Types::UpdateSchedulingSettingsRequest]
|
|
53
|
+
# @option request_options [String] :base_url
|
|
54
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
55
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
56
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
57
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
58
|
+
#
|
|
59
|
+
# @example
|
|
60
|
+
# client.scheduling.settings.update(brand_name: "Acme Health")
|
|
61
|
+
#
|
|
62
|
+
# @return [Coss::Types::SchedulingSettings]
|
|
63
|
+
def update(request_options: {}, **params)
|
|
64
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
65
|
+
request = Coss::Internal::JSON::Request.new(
|
|
66
|
+
base_url: request_options[:base_url],
|
|
67
|
+
method: "PATCH",
|
|
68
|
+
path: "v1/scheduling/settings",
|
|
69
|
+
body: Coss::Scheduling::Settings::Types::UpdateSchedulingSettingsRequest.new(params).to_h,
|
|
70
|
+
request_options: request_options
|
|
71
|
+
)
|
|
72
|
+
begin
|
|
73
|
+
response = @client.send(request)
|
|
74
|
+
rescue Net::HTTPRequestTimeout
|
|
75
|
+
raise Coss::Errors::TimeoutError
|
|
76
|
+
end
|
|
77
|
+
code = response.code.to_i
|
|
78
|
+
if code.between?(200, 299)
|
|
79
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingSettings.load(response.body))
|
|
80
|
+
else
|
|
81
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
82
|
+
raise error_class.new(response.body, code: code)
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Settings
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateSchedulingSettingsRequest < Internal::Types::Model
|
|
8
|
+
field :allowed_origins, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :brand_name, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :accent_color, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :logo, -> { Coss::Scheduling::Settings::Types::UpdateSchedulingSettingsRequestLogo }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :email_from, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :sms_from, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :calendar_failure_mode, -> { Coss::Scheduling::Settings::Types::UpdateSchedulingSettingsRequestCalendarFailureMode }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :notifications, -> { Internal::Types::Hash[String, Coss::Scheduling::Settings::Types::UpdateSchedulingSettingsRequestNotificationsValue] }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :email_reply_to, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :reminders, -> { Internal::Types::Array[Coss::Types::SchedulingReminderInput] }, optional: true, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_calendar_failure_mode.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Settings
|
|
6
|
+
module Types
|
|
7
|
+
module UpdateSchedulingSettingsRequestCalendarFailureMode
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
HIDE = "hide"
|
|
11
|
+
LAST_KNOWN = "last_known"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Settings
|
|
6
|
+
module Types
|
|
7
|
+
# Your logo, a PNG or JPEG. `null` removes it.
|
|
8
|
+
class UpdateSchedulingSettingsRequestLogo < Internal::Types::Model
|
|
9
|
+
field :content, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|