knockapi 1.1.0 → 1.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 +42 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/knockapi/internal/items_cursor.rb +2 -2
- data/lib/knockapi/internal/type/array_of.rb +8 -0
- data/lib/knockapi/internal/type/base_model.rb +7 -0
- data/lib/knockapi/internal/type/boolean.rb +8 -0
- data/lib/knockapi/internal/type/enum.rb +12 -0
- data/lib/knockapi/internal/type/file_input.rb +7 -0
- data/lib/knockapi/internal/type/hash_of.rb +8 -0
- data/lib/knockapi/internal/type/union.rb +12 -0
- data/lib/knockapi/internal/type/unknown.rb +8 -0
- data/lib/knockapi/internal/util.rb +54 -1
- data/lib/knockapi/internal.rb +3 -0
- data/lib/knockapi/models/activity.rb +4 -4
- data/lib/knockapi/models/audience_add_members_params.rb +5 -5
- data/lib/knockapi/models/audience_list_members_response.rb +4 -4
- data/lib/knockapi/models/audience_member.rb +4 -4
- data/lib/knockapi/models/audience_remove_members_params.rb +5 -5
- data/lib/knockapi/models/bulk_operation.rb +5 -5
- data/lib/knockapi/models/channels/bulk_update_message_status_params.rb +6 -6
- data/lib/knockapi/models/condition.rb +3 -3
- data/lib/knockapi/models/identify_user_request.rb +5 -5
- data/lib/knockapi/models/inline_identify_user_request.rb +5 -5
- data/lib/knockapi/models/inline_object_request.rb +4 -4
- data/lib/knockapi/models/inline_tenant_request.rb +1 -5
- data/lib/knockapi/models/message.rb +14 -14
- data/lib/knockapi/models/message_delivery_log.rb +13 -21
- data/lib/knockapi/models/message_event.rb +7 -7
- data/lib/knockapi/models/message_get_content_response.rb +0 -21
- data/lib/knockapi/models/message_list_params.rb +11 -8
- data/lib/knockapi/models/messages/batch_archive_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_get_content_response.rb +0 -21
- data/lib/knockapi/models/messages/batch_mark_as_interacted_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_read_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_seen_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_unread_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_unseen_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_unarchive_response.rb +1 -1
- data/lib/knockapi/models/object_add_subscriptions_params.rb +2 -2
- data/lib/knockapi/models/object_delete_subscriptions_params.rb +2 -2
- data/lib/knockapi/models/object_list_messages_params.rb +11 -8
- data/lib/knockapi/models/object_list_params.rb +2 -2
- data/lib/knockapi/models/object_list_subscriptions_params.rb +8 -8
- data/lib/knockapi/models/object_set_params.rb +4 -4
- data/lib/knockapi/models/objects/bulk_add_subscriptions_params.rb +6 -5
- data/lib/knockapi/models/objects/bulk_set_params.rb +2 -2
- data/lib/knockapi/models/providers/ms_team_list_channels_params.rb +4 -3
- data/lib/knockapi/models/providers/ms_team_list_teams_params.rb +4 -3
- data/lib/knockapi/models/providers/slack_list_channels_params.rb +4 -3
- data/lib/knockapi/models/recipient.rb +1 -5
- data/lib/knockapi/models/recipient_reference.rb +1 -5
- data/lib/knockapi/models/recipient_request.rb +1 -5
- data/lib/knockapi/models/recipients/channel_data.rb +7 -19
- data/lib/knockapi/models/recipients/channel_data_request.rb +4 -16
- data/lib/knockapi/models/recipients/discord_channel_data.rb +6 -15
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +1 -13
- data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +6 -15
- data/lib/knockapi/models/recipients/preference_set.rb +17 -35
- data/lib/knockapi/models/recipients/preference_set_channel_type_setting.rb +2 -2
- data/lib/knockapi/models/recipients/preference_set_channel_types.rb +24 -48
- data/lib/knockapi/models/recipients/preference_set_request.rb +17 -35
- data/lib/knockapi/models/recipients/slack_channel_data.rb +6 -15
- data/lib/knockapi/models/recipients/subscription.rb +4 -4
- data/lib/knockapi/models/schedule.rb +13 -10
- data/lib/knockapi/models/schedule_create_params.rb +14 -8
- data/lib/knockapi/models/schedule_repeat_rule.rb +5 -5
- data/lib/knockapi/models/schedule_update_params.rb +11 -8
- data/lib/knockapi/models/schedules/bulk_create_params.rb +16 -13
- data/lib/knockapi/models/tenant.rb +10 -10
- data/lib/knockapi/models/tenant_request.rb +13 -13
- data/lib/knockapi/models/tenant_set_params.rb +12 -12
- data/lib/knockapi/models/tenants/bulk_set_params.rb +2 -2
- data/lib/knockapi/models/user.rb +2 -2
- data/lib/knockapi/models/user_list_messages_params.rb +11 -8
- data/lib/knockapi/models/user_list_params.rb +2 -2
- data/lib/knockapi/models/user_list_subscriptions_params.rb +2 -2
- data/lib/knockapi/models/users/bulk_identify_params.rb +2 -2
- data/lib/knockapi/models/users/bulk_set_preferences_params.rb +2 -2
- data/lib/knockapi/models/users/feed_list_items_params.rb +4 -4
- data/lib/knockapi/models/users/feed_list_items_response.rb +4 -13
- data/lib/knockapi/models/workflow_cancel_params.rb +2 -2
- data/lib/knockapi/models/workflow_trigger_params.rb +11 -8
- data/lib/knockapi/models.rb +30 -19
- data/lib/knockapi/resources/audiences.rb +2 -2
- data/lib/knockapi/resources/bulk_operations.rb +1 -1
- data/lib/knockapi/resources/channels/bulk.rb +5 -5
- data/lib/knockapi/resources/messages/batch.rb +14 -14
- data/lib/knockapi/resources/messages.rb +18 -18
- data/lib/knockapi/resources/objects/bulk.rb +5 -5
- data/lib/knockapi/resources/objects.rb +30 -30
- data/lib/knockapi/resources/providers/ms_teams.rb +2 -2
- data/lib/knockapi/resources/providers/slack.rb +1 -1
- data/lib/knockapi/resources/schedules/bulk.rb +2 -2
- data/lib/knockapi/resources/schedules.rb +15 -12
- data/lib/knockapi/resources/tenants/bulk.rb +3 -3
- data/lib/knockapi/resources/tenants.rb +6 -6
- data/lib/knockapi/resources/users/bulk.rb +5 -5
- data/lib/knockapi/resources/users/feeds.rb +2 -2
- data/lib/knockapi/resources/users.rb +24 -24
- data/lib/knockapi/resources/workflows.rb +5 -5
- data/lib/knockapi/version.rb +1 -1
- data/lib/knockapi.rb +3 -1
- data/rbi/knockapi/internal/type/array_of.rbi +6 -0
- data/rbi/knockapi/internal/type/base_model.rbi +5 -0
- data/rbi/knockapi/internal/type/boolean.rbi +6 -0
- data/rbi/knockapi/internal/type/enum.rbi +5 -0
- data/rbi/knockapi/internal/type/file_input.rbi +5 -0
- data/rbi/knockapi/internal/type/hash_of.rbi +6 -0
- data/rbi/knockapi/internal/type/union.rbi +5 -0
- data/rbi/knockapi/internal/type/unknown.rbi +6 -0
- data/rbi/knockapi/internal/util.rbi +34 -0
- data/rbi/knockapi/internal.rbi +3 -0
- data/rbi/knockapi/models/activity.rbi +4 -4
- data/rbi/knockapi/models/message.rbi +4 -20
- data/rbi/knockapi/models/message_delivery_log.rbi +24 -8
- data/rbi/knockapi/models/message_event.rbi +2 -5
- data/rbi/knockapi/models/message_get_content_response.rbi +4 -25
- data/rbi/knockapi/models/message_list_params.rbi +19 -4
- data/rbi/knockapi/models/messages/batch_archive_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_get_content_response.rbi +4 -22
- data/rbi/knockapi/models/messages/batch_mark_as_interacted_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_read_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_seen_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_unread_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_unseen_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_unarchive_response.rbi +1 -1
- data/rbi/knockapi/models/object_list_messages_params.rbi +19 -4
- data/rbi/knockapi/models/recipients/channel_data.rbi +2 -17
- data/rbi/knockapi/models/recipients/preference_set.rbi +4 -16
- data/rbi/knockapi/models/recipients/subscription.rbi +2 -2
- data/rbi/knockapi/models/schedule.rbi +12 -6
- data/rbi/knockapi/models/schedule_create_params.rbi +8 -2
- data/rbi/knockapi/models/schedule_update_params.rbi +8 -2
- data/rbi/knockapi/models/schedules/bulk_create_params.rbi +8 -2
- data/rbi/knockapi/models/user_list_messages_params.rbi +19 -4
- data/rbi/knockapi/models/users/feed_list_items_response.rbi +4 -10
- data/rbi/knockapi/models/workflow_trigger_params.rbi +8 -2
- data/rbi/knockapi/resources/messages/batch.rbi +7 -7
- data/rbi/knockapi/resources/messages.rbi +3 -5
- data/rbi/knockapi/resources/objects.rbi +1 -1
- data/rbi/knockapi/resources/schedules.rbi +8 -2
- data/rbi/knockapi/resources/users.rbi +1 -1
- data/rbi/knockapi/resources/workflows.rbi +4 -1
- data/sig/knockapi/internal/entries_cursor.rbs +2 -0
- data/sig/knockapi/internal/items_cursor.rbs +2 -0
- data/sig/knockapi/internal/type/array_of.rbs +3 -0
- data/sig/knockapi/internal/type/base_model.rbs +2 -0
- data/sig/knockapi/internal/type/boolean.rbs +3 -0
- data/sig/knockapi/internal/type/enum.rbs +2 -0
- data/sig/knockapi/internal/type/file_input.rbs +2 -0
- data/sig/knockapi/internal/type/hash_of.rbs +3 -0
- data/sig/knockapi/internal/type/union.rbs +2 -0
- data/sig/knockapi/internal/type/unknown.rbs +3 -0
- data/sig/knockapi/internal/util.rbs +12 -0
- data/sig/knockapi/internal.rbs +2 -0
- data/sig/knockapi/models/activity.rbs +10 -0
- data/sig/knockapi/models/audience_add_members_params.rbs +12 -0
- data/sig/knockapi/models/audience_list_members_params.rbs +2 -0
- data/sig/knockapi/models/audience_list_members_response.rbs +5 -0
- data/sig/knockapi/models/audience_member.rbs +8 -0
- data/sig/knockapi/models/audience_remove_members_params.rbs +12 -0
- data/sig/knockapi/models/bulk_operation.rbs +24 -4
- data/sig/knockapi/models/bulk_operation_get_params.rbs +2 -0
- data/sig/knockapi/models/channels/bulk_update_message_status_params.rbs +14 -0
- data/sig/knockapi/models/condition.rbs +10 -4
- data/sig/knockapi/models/identify_user_request.rbs +12 -0
- data/sig/knockapi/models/inline_identify_user_request.rbs +13 -0
- data/sig/knockapi/models/inline_object_request.rbs +8 -0
- data/sig/knockapi/models/integrations/census_custom_destination_params.rbs +8 -0
- data/sig/knockapi/models/integrations/census_custom_destination_response.rbs +2 -0
- data/sig/knockapi/models/integrations/hightouch_embedded_destination_params.rbs +8 -0
- data/sig/knockapi/models/integrations/hightouch_embedded_destination_response.rbs +2 -0
- data/sig/knockapi/models/message.rbs +44 -11
- data/sig/knockapi/models/message_archive_params.rbs +2 -0
- data/sig/knockapi/models/message_delivery_log.rbs +43 -18
- data/sig/knockapi/models/message_event.rbs +13 -4
- data/sig/knockapi/models/message_get_content_params.rbs +2 -0
- data/sig/knockapi/models/message_get_content_response.rbs +68 -0
- data/sig/knockapi/models/message_get_params.rbs +2 -0
- data/sig/knockapi/models/message_list_activities_params.rbs +8 -0
- data/sig/knockapi/models/message_list_delivery_logs_params.rbs +7 -0
- data/sig/knockapi/models/message_list_events_params.rbs +7 -0
- data/sig/knockapi/models/message_list_params.rbs +45 -15
- data/sig/knockapi/models/message_mark_as_interacted_params.rbs +5 -0
- data/sig/knockapi/models/message_mark_as_read_params.rbs +2 -0
- data/sig/knockapi/models/message_mark_as_seen_params.rbs +2 -0
- data/sig/knockapi/models/message_mark_as_unread_params.rbs +2 -0
- data/sig/knockapi/models/message_mark_as_unseen_params.rbs +2 -0
- data/sig/knockapi/models/message_unarchive_params.rbs +2 -0
- data/sig/knockapi/models/messages/batch_archive_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_archive_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_get_content_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_get_content_response.rbs +72 -0
- data/sig/knockapi/models/messages/batch_mark_as_interacted_params.rbs +6 -0
- data/sig/knockapi/models/messages/batch_mark_as_interacted_response.rbs +2 -1
- data/sig/knockapi/models/messages/batch_mark_as_read_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_mark_as_read_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_seen_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_mark_as_seen_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_unread_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_mark_as_unread_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_unseen_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_mark_as_unseen_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_unarchive_params.rbs +5 -0
- data/sig/knockapi/models/messages/batch_unarchive_response.rbs +1 -1
- data/sig/knockapi/models/object.rbs +9 -0
- data/sig/knockapi/models/object_add_subscriptions_params.rbs +6 -0
- data/sig/knockapi/models/object_delete_params.rbs +2 -0
- data/sig/knockapi/models/object_delete_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/object_get_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/object_get_params.rbs +2 -0
- data/sig/knockapi/models/object_get_preferences_params.rbs +2 -0
- data/sig/knockapi/models/object_list_messages_params.rbs +45 -15
- data/sig/knockapi/models/object_list_params.rbs +14 -6
- data/sig/knockapi/models/object_list_preferences_params.rbs +2 -0
- data/sig/knockapi/models/object_list_schedules_params.rbs +9 -0
- data/sig/knockapi/models/object_list_subscriptions_params.rbs +19 -6
- data/sig/knockapi/models/object_set_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/object_set_params.rbs +8 -0
- data/sig/knockapi/models/object_set_preferences_params.rbs +2 -0
- data/sig/knockapi/models/object_unset_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/objects/bulk_add_subscriptions_params.rbs +10 -0
- data/sig/knockapi/models/objects/bulk_delete_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_set_params.rbs +5 -0
- data/sig/knockapi/models/page_info.rbs +7 -0
- data/sig/knockapi/models/providers/ms_team_check_auth_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_check_auth_response.rbs +6 -0
- data/sig/knockapi/models/providers/ms_team_list_channels_params.rbs +9 -0
- data/sig/knockapi/models/providers/ms_team_list_channels_response.rbs +13 -0
- data/sig/knockapi/models/providers/ms_team_list_teams_params.rbs +13 -0
- data/sig/knockapi/models/providers/ms_team_list_teams_response.rbs +6 -0
- data/sig/knockapi/models/providers/ms_team_revoke_access_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_revoke_access_response.rbs +2 -0
- data/sig/knockapi/models/providers/slack_check_auth_params.rbs +5 -0
- data/sig/knockapi/models/providers/slack_check_auth_response.rbs +6 -0
- data/sig/knockapi/models/providers/slack_list_channels_params.rbs +14 -0
- data/sig/knockapi/models/providers/slack_list_channels_response.rbs +8 -0
- data/sig/knockapi/models/providers/slack_revoke_access_params.rbs +5 -0
- data/sig/knockapi/models/providers/slack_revoke_access_response.rbs +2 -0
- data/sig/knockapi/models/recipient_reference.rbs +2 -0
- data/sig/knockapi/models/recipients/channel_data.rbs +17 -10
- data/sig/knockapi/models/recipients/channel_data_request.rbs +8 -4
- data/sig/knockapi/models/recipients/discord_channel_data.rbs +16 -4
- data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +2 -2
- data/sig/knockapi/models/recipients/ms_teams_channel_data.rbs +22 -4
- data/sig/knockapi/models/recipients/one_signal_channel_data.rbs +2 -0
- data/sig/knockapi/models/recipients/preference_set.rbs +25 -8
- data/sig/knockapi/models/recipients/preference_set_channel_type_setting.rbs +2 -0
- data/sig/knockapi/models/recipients/preference_set_channel_types.rbs +45 -36
- data/sig/knockapi/models/recipients/preference_set_request.rbs +24 -8
- data/sig/knockapi/models/recipients/push_channel_data.rbs +2 -0
- data/sig/knockapi/models/recipients/slack_channel_data.rbs +19 -4
- data/sig/knockapi/models/recipients/subscription.rbs +9 -0
- data/sig/knockapi/models/schedule.rbs +15 -0
- data/sig/knockapi/models/schedule_create_params.rbs +11 -0
- data/sig/knockapi/models/schedule_delete_params.rbs +5 -0
- data/sig/knockapi/models/schedule_list_params.rbs +10 -0
- data/sig/knockapi/models/schedule_repeat_rule.rbs +18 -8
- data/sig/knockapi/models/schedule_update_params.rbs +11 -0
- data/sig/knockapi/models/schedules/bulk_create_params.rbs +16 -0
- data/sig/knockapi/models/tenant.rbs +19 -0
- data/sig/knockapi/models/tenant_delete_params.rbs +2 -0
- data/sig/knockapi/models/tenant_get_params.rbs +2 -0
- data/sig/knockapi/models/tenant_list_params.rbs +9 -0
- data/sig/knockapi/models/tenant_request.rbs +19 -0
- data/sig/knockapi/models/tenant_set_params.rbs +19 -0
- data/sig/knockapi/models/tenants/bulk_delete_params.rbs +5 -0
- data/sig/knockapi/models/tenants/bulk_set_params.rbs +5 -0
- data/sig/knockapi/models/user.rbs +12 -0
- data/sig/knockapi/models/user_delete_params.rbs +2 -0
- data/sig/knockapi/models/user_get_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/user_get_params.rbs +2 -0
- data/sig/knockapi/models/user_get_preferences_params.rbs +5 -0
- data/sig/knockapi/models/user_list_messages_params.rbs +45 -15
- data/sig/knockapi/models/user_list_params.rbs +14 -6
- data/sig/knockapi/models/user_list_preferences_params.rbs +2 -0
- data/sig/knockapi/models/user_list_schedules_params.rbs +9 -0
- data/sig/knockapi/models/user_list_subscriptions_params.rbs +15 -6
- data/sig/knockapi/models/user_merge_params.rbs +5 -0
- data/sig/knockapi/models/user_set_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/user_set_preferences_params.rbs +2 -0
- data/sig/knockapi/models/user_unset_channel_data_params.rbs +2 -0
- data/sig/knockapi/models/user_update_params.rbs +2 -0
- data/sig/knockapi/models/users/bulk_delete_params.rbs +5 -0
- data/sig/knockapi/models/users/bulk_identify_params.rbs +5 -0
- data/sig/knockapi/models/users/bulk_set_preferences_params.rbs +6 -0
- data/sig/knockapi/models/users/feed_get_settings_params.rbs +2 -0
- data/sig/knockapi/models/users/feed_get_settings_response.rbs +6 -0
- data/sig/knockapi/models/users/feed_list_items_params.rbs +14 -0
- data/sig/knockapi/models/users/feed_list_items_response.rbs +43 -0
- data/sig/knockapi/models/users/guide_get_channel_params.rbs +7 -0
- data/sig/knockapi/models/users/guide_get_channel_response.rbs +14 -0
- data/sig/knockapi/models/users/guide_mark_message_as_archived_params.rbs +13 -0
- data/sig/knockapi/models/users/guide_mark_message_as_archived_response.rbs +2 -0
- data/sig/knockapi/models/users/guide_mark_message_as_interacted_params.rbs +13 -0
- data/sig/knockapi/models/users/guide_mark_message_as_interacted_response.rbs +2 -0
- data/sig/knockapi/models/users/guide_mark_message_as_seen_params.rbs +13 -0
- data/sig/knockapi/models/users/guide_mark_message_as_seen_response.rbs +2 -0
- data/sig/knockapi/models/workflow_cancel_params.rbs +6 -0
- data/sig/knockapi/models/workflow_trigger_params.rbs +9 -0
- data/sig/knockapi/models/workflow_trigger_response.rbs +2 -0
- data/sig/knockapi/resources/messages.rbs +5 -5
- data/sig/knockapi/resources/objects.rbs +7 -7
- data/sig/knockapi/resources/users.rbs +7 -7
- metadata +2 -2
@@ -17,13 +17,13 @@ module Knockapi
|
|
17
17
|
#
|
18
18
|
# @param before [String] The cursor to fetch entries before.
|
19
19
|
#
|
20
|
-
# @param include [Array<Symbol, Knockapi::ObjectListParams::Include>] Includes preferences of the objects in the response.
|
20
|
+
# @param include [Array<Symbol, Knockapi::Models::ObjectListParams::Include>] Includes preferences of the objects in the response.
|
21
21
|
#
|
22
22
|
# @param page_size [Integer] The number of items per page.
|
23
23
|
#
|
24
24
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
25
25
|
#
|
26
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Object>]
|
26
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Object>]
|
27
27
|
#
|
28
28
|
# @see Knockapi::Models::ObjectListParams
|
29
29
|
def list(collection, params = {})
|
@@ -75,13 +75,13 @@ module Knockapi
|
|
75
75
|
#
|
76
76
|
# @param object_id_ [String] Unique identifier for the object.
|
77
77
|
#
|
78
|
-
# @param recipients [Array<String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest>] The recipients of the subscription. You can subscribe up to 100 recipients to an
|
78
|
+
# @param recipients [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>] The recipients of the subscription. You can subscribe up to 100 recipients to an
|
79
79
|
#
|
80
80
|
# @param properties [Hash{Symbol=>Object}, nil] The custom properties associated with the subscription relationship.
|
81
81
|
#
|
82
82
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
83
83
|
#
|
84
|
-
# @return [Array<Knockapi::Recipients::Subscription>]
|
84
|
+
# @return [Array<Knockapi::Models::Recipients::Subscription>]
|
85
85
|
#
|
86
86
|
# @see Knockapi::Models::ObjectAddSubscriptionsParams
|
87
87
|
def add_subscriptions(collection, object_id_, params)
|
@@ -107,11 +107,11 @@ module Knockapi
|
|
107
107
|
#
|
108
108
|
# @param object_id_ [String] Unique identifier for the object.
|
109
109
|
#
|
110
|
-
# @param recipients [Array<String, Knockapi::RecipientReference::ObjectReference>] The recipients of the subscription. You can subscribe up to 100 recipients to an
|
110
|
+
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] The recipients of the subscription. You can subscribe up to 100 recipients to an
|
111
111
|
#
|
112
112
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
113
113
|
#
|
114
|
-
# @return [Array<Knockapi::Recipients::Subscription>]
|
114
|
+
# @return [Array<Knockapi::Models::Recipients::Subscription>]
|
115
115
|
#
|
116
116
|
# @see Knockapi::Models::ObjectDeleteSubscriptionsParams
|
117
117
|
def delete_subscriptions(collection, object_id_, params)
|
@@ -136,7 +136,7 @@ module Knockapi
|
|
136
136
|
#
|
137
137
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
138
138
|
#
|
139
|
-
# @return [Knockapi::Object]
|
139
|
+
# @return [Knockapi::Models::Object]
|
140
140
|
#
|
141
141
|
# @see Knockapi::Models::ObjectGetParams
|
142
142
|
def get(collection, id, params = {})
|
@@ -160,7 +160,7 @@ module Knockapi
|
|
160
160
|
#
|
161
161
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
162
162
|
#
|
163
|
-
# @return [Knockapi::Recipients::RecipientsChannelData]
|
163
|
+
# @return [Knockapi::Models::Recipients::RecipientsChannelData]
|
164
164
|
#
|
165
165
|
# @see Knockapi::Models::ObjectGetChannelDataParams
|
166
166
|
def get_channel_data(collection, object_id_, channel_id, params = {})
|
@@ -184,7 +184,7 @@ module Knockapi
|
|
184
184
|
#
|
185
185
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
186
186
|
#
|
187
|
-
# @return [Knockapi::Recipients::PreferenceSet]
|
187
|
+
# @return [Knockapi::Models::Recipients::PreferenceSet]
|
188
188
|
#
|
189
189
|
# @see Knockapi::Models::ObjectGetPreferencesParams
|
190
190
|
def get_preferences(collection, object_id_, id, params = {})
|
@@ -215,9 +215,9 @@ module Knockapi
|
|
215
215
|
#
|
216
216
|
# @param channel_id [String] Limits the results to items with the corresponding channel ID.
|
217
217
|
#
|
218
|
-
# @param engagement_status [Array<Symbol, Knockapi::ObjectListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
218
|
+
# @param engagement_status [Array<Symbol, Knockapi::Models::ObjectListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
219
219
|
#
|
220
|
-
# @param inserted_at [Knockapi::ObjectListMessagesParams::InsertedAt]
|
220
|
+
# @param inserted_at [Knockapi::Models::ObjectListMessagesParams::InsertedAt]
|
221
221
|
#
|
222
222
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
223
223
|
#
|
@@ -225,7 +225,7 @@ module Knockapi
|
|
225
225
|
#
|
226
226
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
227
227
|
#
|
228
|
-
# @param status [Array<Symbol, Knockapi::ObjectListMessagesParams::Status>] Limits the results to messages with the given delivery status.
|
228
|
+
# @param status [Array<Symbol, Knockapi::Models::ObjectListMessagesParams::Status>] Limits the results to messages with the given delivery status.
|
229
229
|
#
|
230
230
|
# @param tenant [String] Limits the results to items with the corresponding tenant.
|
231
231
|
#
|
@@ -239,7 +239,7 @@ module Knockapi
|
|
239
239
|
#
|
240
240
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
241
241
|
#
|
242
|
-
# @return [Knockapi::Internal::
|
242
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::Message>]
|
243
243
|
#
|
244
244
|
# @see Knockapi::Models::ObjectListMessagesParams
|
245
245
|
def list_messages(collection, id, params = {})
|
@@ -248,7 +248,7 @@ module Knockapi
|
|
248
248
|
method: :get,
|
249
249
|
path: ["v1/objects/%1$s/%2$s/messages", collection, id],
|
250
250
|
query: parsed,
|
251
|
-
page: Knockapi::Internal::
|
251
|
+
page: Knockapi::Internal::ItemsCursor,
|
252
252
|
model: Knockapi::Message,
|
253
253
|
options: options
|
254
254
|
)
|
@@ -264,7 +264,7 @@ module Knockapi
|
|
264
264
|
#
|
265
265
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
266
266
|
#
|
267
|
-
# @return [Array<Knockapi::Recipients::PreferenceSet>]
|
267
|
+
# @return [Array<Knockapi::Models::Recipients::PreferenceSet>]
|
268
268
|
#
|
269
269
|
# @see Knockapi::Models::ObjectListPreferencesParams
|
270
270
|
def list_preferences(collection, object_id_, params = {})
|
@@ -296,7 +296,7 @@ module Knockapi
|
|
296
296
|
#
|
297
297
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
298
298
|
#
|
299
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Schedule>]
|
299
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Schedule>]
|
300
300
|
#
|
301
301
|
# @see Knockapi::Models::ObjectListSchedulesParams
|
302
302
|
def list_schedules(collection, id, params = {})
|
@@ -328,19 +328,19 @@ module Knockapi
|
|
328
328
|
#
|
329
329
|
# @param before [String] The cursor to fetch entries before.
|
330
330
|
#
|
331
|
-
# @param include [Array<Symbol, Knockapi::ObjectListSubscriptionsParams::Include>] Additional fields to include in the response.
|
331
|
+
# @param include [Array<Symbol, Knockapi::Models::ObjectListSubscriptionsParams::Include>] Additional fields to include in the response.
|
332
332
|
#
|
333
|
-
# @param mode [Symbol, Knockapi::ObjectListSubscriptionsParams::Mode] Mode of the request. `recipient` to list the objects that the provided object is
|
333
|
+
# @param mode [Symbol, Knockapi::Models::ObjectListSubscriptionsParams::Mode] Mode of the request. `recipient` to list the objects that the provided object is
|
334
334
|
#
|
335
|
-
# @param objects [Array<Knockapi::ObjectListSubscriptionsParams::Object>] Objects to filter by (only used if mode is `recipient`).
|
335
|
+
# @param objects [Array<Knockapi::Models::ObjectListSubscriptionsParams::Object>] Objects to filter by (only used if mode is `recipient`).
|
336
336
|
#
|
337
337
|
# @param page_size [Integer] The number of items per page.
|
338
338
|
#
|
339
|
-
# @param recipients [Array<String, Knockapi::RecipientReference::ObjectReference>] Recipients to filter by (only used if mode is `object`).
|
339
|
+
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Recipients to filter by (only used if mode is `object`).
|
340
340
|
#
|
341
341
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
342
342
|
#
|
343
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Recipients::Subscription>]
|
343
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Recipients::Subscription>]
|
344
344
|
#
|
345
345
|
# @see Knockapi::Models::ObjectListSubscriptionsParams
|
346
346
|
def list_subscriptions(collection, object_id_, params = {})
|
@@ -368,17 +368,17 @@ module Knockapi
|
|
368
368
|
#
|
369
369
|
# @param id [String] Unique identifier for the object.
|
370
370
|
#
|
371
|
-
# @param channel_data [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}] A request to set channel data for a type of channel inline.
|
371
|
+
# @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}] A request to set channel data for a type of channel inline.
|
372
372
|
#
|
373
373
|
# @param locale [String, nil] The locale of the object. Used for [message localization](/concepts/translations
|
374
374
|
#
|
375
|
-
# @param preferences [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}] Inline set preferences for a recipient, where the key is the preference set id.
|
375
|
+
# @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}] Inline set preferences for a recipient, where the key is the preference set id.
|
376
376
|
#
|
377
377
|
# @param timezone [String, nil] The timezone of the object. Must be a valid [tz database time zone string](https
|
378
378
|
#
|
379
379
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
380
380
|
#
|
381
|
-
# @return [Knockapi::Object]
|
381
|
+
# @return [Knockapi::Models::Object]
|
382
382
|
#
|
383
383
|
# @see Knockapi::Models::ObjectSetParams
|
384
384
|
def set(collection, id, params = {})
|
@@ -404,11 +404,11 @@ module Knockapi
|
|
404
404
|
#
|
405
405
|
# @param channel_id [String] The unique identifier for the channel.
|
406
406
|
#
|
407
|
-
# @param data [Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData] Channel data for a given channel type.
|
407
|
+
# @param data [Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData] Channel data for a given channel type.
|
408
408
|
#
|
409
409
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
410
410
|
#
|
411
|
-
# @return [Knockapi::Recipients::RecipientsChannelData]
|
411
|
+
# @return [Knockapi::Models::Recipients::RecipientsChannelData]
|
412
412
|
#
|
413
413
|
# @see Knockapi::Models::ObjectSetChannelDataParams
|
414
414
|
def set_channel_data(collection, object_id_, channel_id, params)
|
@@ -440,15 +440,15 @@ module Knockapi
|
|
440
440
|
#
|
441
441
|
# @param id [String] Unique identifier for the preference set.
|
442
442
|
#
|
443
|
-
# @param categories [Hash{Symbol=>Boolean, Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the category and the values are the preference settin
|
443
|
+
# @param categories [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the category and the values are the preference settin
|
444
444
|
#
|
445
|
-
# @param channel_types [Knockapi::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
|
445
|
+
# @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
|
446
446
|
#
|
447
|
-
# @param workflows [Hash{Symbol=>Boolean, Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the workflow key and the values are the preference se
|
447
|
+
# @param workflows [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the workflow key and the values are the preference se
|
448
448
|
#
|
449
449
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
450
450
|
#
|
451
|
-
# @return [Knockapi::Recipients::PreferenceSet]
|
451
|
+
# @return [Knockapi::Models::Recipients::PreferenceSet]
|
452
452
|
#
|
453
453
|
# @see Knockapi::Models::ObjectSetPreferencesParams
|
454
454
|
def set_preferences(collection, object_id_, id, params = {})
|
@@ -40,7 +40,7 @@ module Knockapi
|
|
40
40
|
#
|
41
41
|
# @param team_id [String] Microsoft Teams team ID.
|
42
42
|
#
|
43
|
-
# @param query_options [Knockapi::Providers::MsTeamListChannelsParams::QueryOptions]
|
43
|
+
# @param query_options [Knockapi::Models::Providers::MsTeamListChannelsParams::QueryOptions]
|
44
44
|
#
|
45
45
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
46
46
|
#
|
@@ -67,7 +67,7 @@ module Knockapi
|
|
67
67
|
#
|
68
68
|
# @param ms_teams_tenant_object [String] A JSON encoded string containing the Microsoft Teams tenant object reference.
|
69
69
|
#
|
70
|
-
# @param query_options [Knockapi::Providers::MsTeamListTeamsParams::QueryOptions]
|
70
|
+
# @param query_options [Knockapi::Models::Providers::MsTeamListTeamsParams::QueryOptions]
|
71
71
|
#
|
72
72
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
73
73
|
#
|
@@ -36,7 +36,7 @@ module Knockapi
|
|
36
36
|
#
|
37
37
|
# @param access_token_object [String] A JSON encoded string containing the access token object reference.
|
38
38
|
#
|
39
|
-
# @param query_options [Knockapi::Providers::SlackListChannelsParams::QueryOptions]
|
39
|
+
# @param query_options [Knockapi::Models::Providers::SlackListChannelsParams::QueryOptions]
|
40
40
|
#
|
41
41
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
42
42
|
#
|
@@ -10,11 +10,11 @@ module Knockapi
|
|
10
10
|
#
|
11
11
|
# @overload create(schedules:, request_options: {})
|
12
12
|
#
|
13
|
-
# @param schedules [Array<Knockapi::Schedules::BulkCreateParams::Schedule>] A list of schedules.
|
13
|
+
# @param schedules [Array<Knockapi::Models::Schedules::BulkCreateParams::Schedule>] A list of schedules.
|
14
14
|
#
|
15
15
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
16
16
|
#
|
17
|
-
# @return [Knockapi::BulkOperation]
|
17
|
+
# @return [Knockapi::Models::BulkOperation]
|
18
18
|
#
|
19
19
|
# @see Knockapi::Models::Schedules::BulkCreateParams
|
20
20
|
def create(params)
|
@@ -6,6 +6,9 @@ module Knockapi
|
|
6
6
|
# @return [Knockapi::Resources::Schedules::Bulk]
|
7
7
|
attr_reader :bulk
|
8
8
|
|
9
|
+
# Some parameter documentations has been truncated, see
|
10
|
+
# {Knockapi::Models::ScheduleCreateParams} for more details.
|
11
|
+
#
|
9
12
|
# Creates one or more schedules for a workflow with the specified recipients,
|
10
13
|
# timing, and data. Schedules can be one-time or recurring. This endpoint also
|
11
14
|
# handles
|
@@ -14,23 +17,23 @@ module Knockapi
|
|
14
17
|
#
|
15
18
|
# @overload create(recipients:, repeats:, workflow:, data: nil, ending_at: nil, scheduled_at: nil, tenant: nil, request_options: {})
|
16
19
|
#
|
17
|
-
# @param recipients [Array<String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest>] The recipients to set the schedule for. Limited to 100 recipients per request.
|
20
|
+
# @param recipients [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>] The recipients to set the schedule for. Limited to 100 recipients per request.
|
18
21
|
#
|
19
|
-
# @param repeats [Array<Knockapi::ScheduleRepeatRule>] The repeat rule for the schedule.
|
22
|
+
# @param repeats [Array<Knockapi::Models::ScheduleRepeatRule>] The repeat rule for the schedule.
|
20
23
|
#
|
21
24
|
# @param workflow [String] The key of the workflow.
|
22
25
|
#
|
23
|
-
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution.
|
26
|
+
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
|
24
27
|
#
|
25
28
|
# @param ending_at [Time, nil] The ending date and time for the schedule.
|
26
29
|
#
|
27
30
|
# @param scheduled_at [Time, nil] The starting date and time for the schedule.
|
28
31
|
#
|
29
|
-
# @param tenant [String, Knockapi::TenantRequest, nil] An request to set a tenant inline.
|
32
|
+
# @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
|
30
33
|
#
|
31
34
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
32
35
|
#
|
33
|
-
# @return [Array<Knockapi::Schedule>]
|
36
|
+
# @return [Array<Knockapi::Models::Schedule>]
|
34
37
|
#
|
35
38
|
# @see Knockapi::Models::ScheduleCreateParams
|
36
39
|
def create(params)
|
@@ -57,21 +60,21 @@ module Knockapi
|
|
57
60
|
#
|
58
61
|
# @param schedule_ids [Array<String>] A list of schedule IDs.
|
59
62
|
#
|
60
|
-
# @param actor [String, Knockapi::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
|
63
|
+
# @param actor [String, Knockapi::Models::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
|
61
64
|
#
|
62
|
-
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution.
|
65
|
+
# @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
|
63
66
|
#
|
64
67
|
# @param ending_at [Time, nil] The ending date and time for the schedule.
|
65
68
|
#
|
66
|
-
# @param repeats [Array<Knockapi::ScheduleRepeatRule>] The repeat rule for the schedule.
|
69
|
+
# @param repeats [Array<Knockapi::Models::ScheduleRepeatRule>] The repeat rule for the schedule.
|
67
70
|
#
|
68
71
|
# @param scheduled_at [Time, nil] The starting date and time for the schedule.
|
69
72
|
#
|
70
|
-
# @param tenant [String, Knockapi::TenantRequest, nil] An request to set a tenant inline.
|
73
|
+
# @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
|
71
74
|
#
|
72
75
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
73
76
|
#
|
74
|
-
# @return [Array<Knockapi::Schedule>]
|
77
|
+
# @return [Array<Knockapi::Models::Schedule>]
|
75
78
|
#
|
76
79
|
# @see Knockapi::Models::ScheduleUpdateParams
|
77
80
|
def update(params)
|
@@ -104,7 +107,7 @@ module Knockapi
|
|
104
107
|
#
|
105
108
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
106
109
|
#
|
107
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Schedule>]
|
110
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Schedule>]
|
108
111
|
#
|
109
112
|
# @see Knockapi::Models::ScheduleListParams
|
110
113
|
def list(params)
|
@@ -128,7 +131,7 @@ module Knockapi
|
|
128
131
|
#
|
129
132
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
130
133
|
#
|
131
|
-
# @return [Array<Knockapi::Schedule>]
|
134
|
+
# @return [Array<Knockapi::Models::Schedule>]
|
132
135
|
#
|
133
136
|
# @see Knockapi::Models::ScheduleDeleteParams
|
134
137
|
def delete(params)
|
@@ -12,7 +12,7 @@ module Knockapi
|
|
12
12
|
#
|
13
13
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
14
|
#
|
15
|
-
# @return [Knockapi::BulkOperation]
|
15
|
+
# @return [Knockapi::Models::BulkOperation]
|
16
16
|
#
|
17
17
|
# @see Knockapi::Models::Tenants::BulkDeleteParams
|
18
18
|
def delete(params)
|
@@ -30,11 +30,11 @@ module Knockapi
|
|
30
30
|
#
|
31
31
|
# @overload set(tenants:, request_options: {})
|
32
32
|
#
|
33
|
-
# @param tenants [Array<String, Knockapi::TenantRequest>] The tenants to be upserted.
|
33
|
+
# @param tenants [Array<String, Knockapi::Models::TenantRequest>] The tenants to be upserted.
|
34
34
|
#
|
35
35
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
36
36
|
#
|
37
|
-
# @return [Knockapi::BulkOperation]
|
37
|
+
# @return [Knockapi::Models::BulkOperation]
|
38
38
|
#
|
39
39
|
# @see Knockapi::Models::Tenants::BulkSetParams
|
40
40
|
def set(params)
|
@@ -22,7 +22,7 @@ module Knockapi
|
|
22
22
|
#
|
23
23
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
24
24
|
#
|
25
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Tenant>]
|
25
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Tenant>]
|
26
26
|
#
|
27
27
|
# @see Knockapi::Models::TenantListParams
|
28
28
|
def list(params = {})
|
@@ -65,7 +65,7 @@ module Knockapi
|
|
65
65
|
#
|
66
66
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
67
67
|
#
|
68
|
-
# @return [Knockapi::Tenant]
|
68
|
+
# @return [Knockapi::Models::Tenant]
|
69
69
|
#
|
70
70
|
# @see Knockapi::Models::TenantGetParams
|
71
71
|
def get(id, params = {})
|
@@ -84,15 +84,15 @@ module Knockapi
|
|
84
84
|
#
|
85
85
|
# @param id [String] The unique identifier for the tenant.
|
86
86
|
#
|
87
|
-
# @param channel_data [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
|
87
|
+
# @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
|
88
88
|
#
|
89
|
-
# @param preferences [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
|
89
|
+
# @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
|
90
90
|
#
|
91
|
-
# @param settings [Knockapi::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
|
91
|
+
# @param settings [Knockapi::Models::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
|
92
92
|
#
|
93
93
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
94
94
|
#
|
95
|
-
# @return [Knockapi::Tenant]
|
95
|
+
# @return [Knockapi::Models::Tenant]
|
96
96
|
#
|
97
97
|
# @see Knockapi::Models::TenantSetParams
|
98
98
|
def set(id, params = {})
|
@@ -13,7 +13,7 @@ module Knockapi
|
|
13
13
|
#
|
14
14
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
15
15
|
#
|
16
|
-
# @return [Knockapi::BulkOperation]
|
16
|
+
# @return [Knockapi::Models::BulkOperation]
|
17
17
|
#
|
18
18
|
# @see Knockapi::Models::Users::BulkDeleteParams
|
19
19
|
def delete(params)
|
@@ -33,11 +33,11 @@ module Knockapi
|
|
33
33
|
#
|
34
34
|
# @overload identify(users:, request_options: {})
|
35
35
|
#
|
36
|
-
# @param users [Array<Knockapi::InlineIdentifyUserRequest>] A list of users.
|
36
|
+
# @param users [Array<Knockapi::Models::InlineIdentifyUserRequest>] A list of users.
|
37
37
|
#
|
38
38
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
39
39
|
#
|
40
|
-
# @return [Knockapi::BulkOperation]
|
40
|
+
# @return [Knockapi::Models::BulkOperation]
|
41
41
|
#
|
42
42
|
# @see Knockapi::Models::Users::BulkIdentifyParams
|
43
43
|
def identify(params)
|
@@ -57,13 +57,13 @@ module Knockapi
|
|
57
57
|
#
|
58
58
|
# @overload set_preferences(preferences:, user_ids:, request_options: {})
|
59
59
|
#
|
60
|
-
# @param preferences [Knockapi::Recipients::PreferenceSetRequest] A request to set a preference set for a recipient.
|
60
|
+
# @param preferences [Knockapi::Models::Recipients::PreferenceSetRequest] A request to set a preference set for a recipient.
|
61
61
|
#
|
62
62
|
# @param user_ids [Array<String>] A list of user IDs.
|
63
63
|
#
|
64
64
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
65
65
|
#
|
66
|
-
# @return [Knockapi::BulkOperation]
|
66
|
+
# @return [Knockapi::Models::BulkOperation]
|
67
67
|
#
|
68
68
|
# @see Knockapi::Models::Users::BulkSetPreferencesParams
|
69
69
|
def set_preferences(params)
|
@@ -37,7 +37,7 @@ module Knockapi
|
|
37
37
|
#
|
38
38
|
# @param after [String] The cursor to fetch entries after.
|
39
39
|
#
|
40
|
-
# @param archived [Symbol, Knockapi::Users::FeedListItemsParams::Archived] The archived status of the feed items.
|
40
|
+
# @param archived [Symbol, Knockapi::Models::Users::FeedListItemsParams::Archived] The archived status of the feed items.
|
41
41
|
#
|
42
42
|
# @param before [String] The cursor to fetch entries before.
|
43
43
|
#
|
@@ -47,7 +47,7 @@ module Knockapi
|
|
47
47
|
#
|
48
48
|
# @param source [String] The source of the feed items.
|
49
49
|
#
|
50
|
-
# @param status [Symbol, Knockapi::Users::FeedListItemsParams::Status] The status of the feed items.
|
50
|
+
# @param status [Symbol, Knockapi::Models::Users::FeedListItemsParams::Status] The status of the feed items.
|
51
51
|
#
|
52
52
|
# @param tenant [String] The tenant associated with the feed items.
|
53
53
|
#
|
@@ -25,7 +25,7 @@ module Knockapi
|
|
25
25
|
#
|
26
26
|
# @param avatar [String, nil] URL to the user's avatar image.
|
27
27
|
#
|
28
|
-
# @param channel_data [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
|
28
|
+
# @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
|
29
29
|
#
|
30
30
|
# @param created_at [Time, nil] The creation date of the user from your system.
|
31
31
|
#
|
@@ -37,13 +37,13 @@ module Knockapi
|
|
37
37
|
#
|
38
38
|
# @param phone_number [String, nil] The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the
|
39
39
|
#
|
40
|
-
# @param preferences [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
|
40
|
+
# @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
|
41
41
|
#
|
42
42
|
# @param timezone [String, nil] The timezone of the user. Must be a valid [tz database time zone string](https:/
|
43
43
|
#
|
44
44
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
45
45
|
#
|
46
|
-
# @return [Knockapi::User]
|
46
|
+
# @return [Knockapi::Models::User]
|
47
47
|
#
|
48
48
|
# @see Knockapi::Models::UserUpdateParams
|
49
49
|
def update(user_id, params = {})
|
@@ -66,13 +66,13 @@ module Knockapi
|
|
66
66
|
#
|
67
67
|
# @param before [String] The cursor to fetch entries before.
|
68
68
|
#
|
69
|
-
# @param include [Array<Symbol, Knockapi::UserListParams::Include>] Associated resources to include in the response.
|
69
|
+
# @param include [Array<Symbol, Knockapi::Models::UserListParams::Include>] Associated resources to include in the response.
|
70
70
|
#
|
71
71
|
# @param page_size [Integer] The number of items per page.
|
72
72
|
#
|
73
73
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
74
74
|
#
|
75
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::User>]
|
75
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::User>]
|
76
76
|
#
|
77
77
|
# @see Knockapi::Models::UserListParams
|
78
78
|
def list(params = {})
|
@@ -115,7 +115,7 @@ module Knockapi
|
|
115
115
|
#
|
116
116
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
117
117
|
#
|
118
|
-
# @return [Knockapi::User]
|
118
|
+
# @return [Knockapi::Models::User]
|
119
119
|
#
|
120
120
|
# @see Knockapi::Models::UserGetParams
|
121
121
|
def get(user_id, params = {})
|
@@ -137,7 +137,7 @@ module Knockapi
|
|
137
137
|
#
|
138
138
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
139
139
|
#
|
140
|
-
# @return [Knockapi::Recipients::RecipientsChannelData]
|
140
|
+
# @return [Knockapi::Models::Recipients::RecipientsChannelData]
|
141
141
|
#
|
142
142
|
# @see Knockapi::Models::UserGetChannelDataParams
|
143
143
|
def get_channel_data(user_id, channel_id, params = {})
|
@@ -162,7 +162,7 @@ module Knockapi
|
|
162
162
|
#
|
163
163
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
164
164
|
#
|
165
|
-
# @return [Knockapi::Recipients::PreferenceSet]
|
165
|
+
# @return [Knockapi::Models::Recipients::PreferenceSet]
|
166
166
|
#
|
167
167
|
# @see Knockapi::Models::UserGetPreferencesParams
|
168
168
|
def get_preferences(user_id, id, params = {})
|
@@ -193,9 +193,9 @@ module Knockapi
|
|
193
193
|
#
|
194
194
|
# @param channel_id [String] Limits the results to items with the corresponding channel ID.
|
195
195
|
#
|
196
|
-
# @param engagement_status [Array<Symbol, Knockapi::UserListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
196
|
+
# @param engagement_status [Array<Symbol, Knockapi::Models::UserListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
197
197
|
#
|
198
|
-
# @param inserted_at [Knockapi::UserListMessagesParams::InsertedAt]
|
198
|
+
# @param inserted_at [Knockapi::Models::UserListMessagesParams::InsertedAt]
|
199
199
|
#
|
200
200
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
201
201
|
#
|
@@ -203,7 +203,7 @@ module Knockapi
|
|
203
203
|
#
|
204
204
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
205
205
|
#
|
206
|
-
# @param status [Array<Symbol, Knockapi::UserListMessagesParams::Status>] Limits the results to messages with the given delivery status.
|
206
|
+
# @param status [Array<Symbol, Knockapi::Models::UserListMessagesParams::Status>] Limits the results to messages with the given delivery status.
|
207
207
|
#
|
208
208
|
# @param tenant [String] Limits the results to items with the corresponding tenant.
|
209
209
|
#
|
@@ -217,7 +217,7 @@ module Knockapi
|
|
217
217
|
#
|
218
218
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
219
219
|
#
|
220
|
-
# @return [Knockapi::Internal::
|
220
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::Message>]
|
221
221
|
#
|
222
222
|
# @see Knockapi::Models::UserListMessagesParams
|
223
223
|
def list_messages(user_id, params = {})
|
@@ -226,7 +226,7 @@ module Knockapi
|
|
226
226
|
method: :get,
|
227
227
|
path: ["v1/users/%1$s/messages", user_id],
|
228
228
|
query: parsed,
|
229
|
-
page: Knockapi::Internal::
|
229
|
+
page: Knockapi::Internal::ItemsCursor,
|
230
230
|
model: Knockapi::Message,
|
231
231
|
options: options
|
232
232
|
)
|
@@ -240,7 +240,7 @@ module Knockapi
|
|
240
240
|
#
|
241
241
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
242
242
|
#
|
243
|
-
# @return [Array<Knockapi::Recipients::PreferenceSet>]
|
243
|
+
# @return [Array<Knockapi::Models::Recipients::PreferenceSet>]
|
244
244
|
#
|
245
245
|
# @see Knockapi::Models::UserListPreferencesParams
|
246
246
|
def list_preferences(user_id, params = {})
|
@@ -270,7 +270,7 @@ module Knockapi
|
|
270
270
|
#
|
271
271
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
272
272
|
#
|
273
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Schedule>]
|
273
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Schedule>]
|
274
274
|
#
|
275
275
|
# @see Knockapi::Models::UserListSchedulesParams
|
276
276
|
def list_schedules(user_id, params = {})
|
@@ -296,7 +296,7 @@ module Knockapi
|
|
296
296
|
#
|
297
297
|
# @param before [String] The cursor to fetch entries before.
|
298
298
|
#
|
299
|
-
# @param include [Array<Symbol, Knockapi::UserListSubscriptionsParams::Include>] Associated resources to include in the response.
|
299
|
+
# @param include [Array<Symbol, Knockapi::Models::UserListSubscriptionsParams::Include>] Associated resources to include in the response.
|
300
300
|
#
|
301
301
|
# @param objects [Array<String>] Only returns subscriptions for the specified object GIDs.
|
302
302
|
#
|
@@ -304,7 +304,7 @@ module Knockapi
|
|
304
304
|
#
|
305
305
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
306
306
|
#
|
307
|
-
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Recipients::Subscription>]
|
307
|
+
# @return [Knockapi::Internal::EntriesCursor<Knockapi::Models::Recipients::Subscription>]
|
308
308
|
#
|
309
309
|
# @see Knockapi::Models::UserListSubscriptionsParams
|
310
310
|
def list_subscriptions(user_id, params = {})
|
@@ -330,7 +330,7 @@ module Knockapi
|
|
330
330
|
#
|
331
331
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
332
332
|
#
|
333
|
-
# @return [Knockapi::User]
|
333
|
+
# @return [Knockapi::Models::User]
|
334
334
|
#
|
335
335
|
# @see Knockapi::Models::UserMergeParams
|
336
336
|
def merge(user_id, params)
|
@@ -352,11 +352,11 @@ module Knockapi
|
|
352
352
|
#
|
353
353
|
# @param channel_id [String] The unique identifier for the channel.
|
354
354
|
#
|
355
|
-
# @param data [Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData] Channel data for a given channel type.
|
355
|
+
# @param data [Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData] Channel data for a given channel type.
|
356
356
|
#
|
357
357
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
358
358
|
#
|
359
|
-
# @return [Knockapi::Recipients::RecipientsChannelData]
|
359
|
+
# @return [Knockapi::Models::Recipients::RecipientsChannelData]
|
360
360
|
#
|
361
361
|
# @see Knockapi::Models::UserSetChannelDataParams
|
362
362
|
def set_channel_data(user_id, channel_id, params)
|
@@ -382,15 +382,15 @@ module Knockapi
|
|
382
382
|
#
|
383
383
|
# @param id [String] Unique identifier for the preference set.
|
384
384
|
#
|
385
|
-
# @param categories [Hash{Symbol=>Boolean, Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the category and the values are the preference settin
|
385
|
+
# @param categories [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the category and the values are the preference settin
|
386
386
|
#
|
387
|
-
# @param channel_types [Knockapi::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
|
387
|
+
# @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
|
388
388
|
#
|
389
|
-
# @param workflows [Hash{Symbol=>Boolean, Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the workflow key and the values are the preference se
|
389
|
+
# @param workflows [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject}, nil] An object where the key is the workflow key and the values are the preference se
|
390
390
|
#
|
391
391
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
392
392
|
#
|
393
|
-
# @return [Knockapi::Recipients::PreferenceSet]
|
393
|
+
# @return [Knockapi::Models::Recipients::PreferenceSet]
|
394
394
|
#
|
395
395
|
# @see Knockapi::Models::UserSetPreferencesParams
|
396
396
|
def set_preferences(user_id, id, params = {})
|