knockapi 1.2.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 +22 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/knockapi/internal/items_cursor.rb +2 -2
- data/lib/knockapi/internal/util.rb +10 -2
- 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 -1
- data/lib/knockapi/models/message.rb +14 -14
- data/lib/knockapi/models/message_delivery_log.rb +13 -13
- data/lib/knockapi/models/message_event.rb +7 -7
- data/lib/knockapi/models/message_list_params.rb +6 -6
- data/lib/knockapi/models/messages/batch_archive_response.rb +1 -1
- 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 +6 -6
- 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 -1
- data/lib/knockapi/models/recipient_reference.rb +1 -1
- data/lib/knockapi/models/recipient_request.rb +1 -1
- data/lib/knockapi/models/recipients/channel_data.rb +7 -7
- data/lib/knockapi/models/recipients/channel_data_request.rb +4 -4
- data/lib/knockapi/models/recipients/discord_channel_data.rb +6 -6
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +1 -1
- data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +6 -6
- data/lib/knockapi/models/recipients/preference_set.rb +17 -17
- data/lib/knockapi/models/recipients/preference_set_channel_type_setting.rb +2 -2
- data/lib/knockapi/models/recipients/preference_set_channel_types.rb +24 -24
- data/lib/knockapi/models/recipients/preference_set_request.rb +17 -17
- data/lib/knockapi/models/recipients/slack_channel_data.rb +6 -6
- 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 +6 -6
- 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 -4
- data/lib/knockapi/models/workflow_cancel_params.rb +2 -2
- data/lib/knockapi/models/workflow_trigger_params.rb +11 -8
- 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/models/messages/batch_archive_response.rbi +1 -1
- 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/schedule.rbi +8 -2
- 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/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/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 +32 -12
- 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 +32 -12
- 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 +32 -12
- 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
@@ -19,9 +19,9 @@ module Knockapi
|
|
19
19
|
#
|
20
20
|
# @param channel_id [String] Limits the results to items with the corresponding channel ID.
|
21
21
|
#
|
22
|
-
# @param engagement_status [Array<Symbol, Knockapi::MessageListParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
22
|
+
# @param engagement_status [Array<Symbol, Knockapi::Models::MessageListParams::EngagementStatus>] Limits the results to messages with the given engagement status.
|
23
23
|
#
|
24
|
-
# @param inserted_at [Knockapi::MessageListParams::InsertedAt]
|
24
|
+
# @param inserted_at [Knockapi::Models::MessageListParams::InsertedAt]
|
25
25
|
#
|
26
26
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
27
27
|
#
|
@@ -29,7 +29,7 @@ module Knockapi
|
|
29
29
|
#
|
30
30
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
31
31
|
#
|
32
|
-
# @param status [Array<Symbol, Knockapi::MessageListParams::Status>] Limits the results to messages with the given delivery status.
|
32
|
+
# @param status [Array<Symbol, Knockapi::Models::MessageListParams::Status>] Limits the results to messages with the given delivery status.
|
33
33
|
#
|
34
34
|
# @param tenant [String] Limits the results to items with the corresponding tenant.
|
35
35
|
#
|
@@ -43,7 +43,7 @@ module Knockapi
|
|
43
43
|
#
|
44
44
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
45
45
|
#
|
46
|
-
# @return [Knockapi::Internal::
|
46
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::Message>]
|
47
47
|
#
|
48
48
|
# @see Knockapi::Models::MessageListParams
|
49
49
|
def list(params = {})
|
@@ -52,7 +52,7 @@ module Knockapi
|
|
52
52
|
method: :get,
|
53
53
|
path: "v1/messages",
|
54
54
|
query: parsed,
|
55
|
-
page: Knockapi::Internal::
|
55
|
+
page: Knockapi::Internal::ItemsCursor,
|
56
56
|
model: Knockapi::Message,
|
57
57
|
options: options
|
58
58
|
)
|
@@ -67,7 +67,7 @@ module Knockapi
|
|
67
67
|
#
|
68
68
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
69
69
|
#
|
70
|
-
# @return [Knockapi::Message]
|
70
|
+
# @return [Knockapi::Models::Message]
|
71
71
|
#
|
72
72
|
# @see Knockapi::Models::MessageArchiveParams
|
73
73
|
def archive(message_id, params = {})
|
@@ -87,7 +87,7 @@ module Knockapi
|
|
87
87
|
#
|
88
88
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
89
89
|
#
|
90
|
-
# @return [Knockapi::Message]
|
90
|
+
# @return [Knockapi::Models::Message]
|
91
91
|
#
|
92
92
|
# @see Knockapi::Models::MessageGetParams
|
93
93
|
def get(message_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::Internal::ItemsCursor<Knockapi::Activity>]
|
139
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::Activity>]
|
140
140
|
#
|
141
141
|
# @see Knockapi::Models::MessageListActivitiesParams
|
142
142
|
def list_activities(message_id, params = {})
|
@@ -165,7 +165,7 @@ module Knockapi
|
|
165
165
|
#
|
166
166
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
167
167
|
#
|
168
|
-
# @return [Knockapi::Internal::
|
168
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::MessageDeliveryLog>]
|
169
169
|
#
|
170
170
|
# @see Knockapi::Models::MessageListDeliveryLogsParams
|
171
171
|
def list_delivery_logs(message_id, params = {})
|
@@ -174,7 +174,7 @@ module Knockapi
|
|
174
174
|
method: :get,
|
175
175
|
path: ["v1/messages/%1$s/delivery_logs", message_id],
|
176
176
|
query: parsed,
|
177
|
-
page: Knockapi::Internal::
|
177
|
+
page: Knockapi::Internal::ItemsCursor,
|
178
178
|
model: Knockapi::MessageDeliveryLog,
|
179
179
|
options: options
|
180
180
|
)
|
@@ -194,7 +194,7 @@ module Knockapi
|
|
194
194
|
#
|
195
195
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
196
196
|
#
|
197
|
-
# @return [Knockapi::Internal::
|
197
|
+
# @return [Knockapi::Internal::ItemsCursor<Knockapi::Models::MessageEvent>]
|
198
198
|
#
|
199
199
|
# @see Knockapi::Models::MessageListEventsParams
|
200
200
|
def list_events(message_id, params = {})
|
@@ -203,7 +203,7 @@ module Knockapi
|
|
203
203
|
method: :get,
|
204
204
|
path: ["v1/messages/%1$s/events", message_id],
|
205
205
|
query: parsed,
|
206
|
-
page: Knockapi::Internal::
|
206
|
+
page: Knockapi::Internal::ItemsCursor,
|
207
207
|
model: Knockapi::MessageEvent,
|
208
208
|
options: options
|
209
209
|
)
|
@@ -223,7 +223,7 @@ module Knockapi
|
|
223
223
|
#
|
224
224
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
225
225
|
#
|
226
|
-
# @return [Knockapi::Message]
|
226
|
+
# @return [Knockapi::Models::Message]
|
227
227
|
#
|
228
228
|
# @see Knockapi::Models::MessageMarkAsInteractedParams
|
229
229
|
def mark_as_interacted(message_id, params = {})
|
@@ -247,7 +247,7 @@ module Knockapi
|
|
247
247
|
#
|
248
248
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
249
249
|
#
|
250
|
-
# @return [Knockapi::Message]
|
250
|
+
# @return [Knockapi::Models::Message]
|
251
251
|
#
|
252
252
|
# @see Knockapi::Models::MessageMarkAsReadParams
|
253
253
|
def mark_as_read(message_id, params = {})
|
@@ -269,7 +269,7 @@ module Knockapi
|
|
269
269
|
#
|
270
270
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
271
271
|
#
|
272
|
-
# @return [Knockapi::Message]
|
272
|
+
# @return [Knockapi::Models::Message]
|
273
273
|
#
|
274
274
|
# @see Knockapi::Models::MessageMarkAsSeenParams
|
275
275
|
def mark_as_seen(message_id, params = {})
|
@@ -291,7 +291,7 @@ module Knockapi
|
|
291
291
|
#
|
292
292
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
293
293
|
#
|
294
|
-
# @return [Knockapi::Message]
|
294
|
+
# @return [Knockapi::Models::Message]
|
295
295
|
#
|
296
296
|
# @see Knockapi::Models::MessageMarkAsUnreadParams
|
297
297
|
def mark_as_unread(message_id, params = {})
|
@@ -313,7 +313,7 @@ module Knockapi
|
|
313
313
|
#
|
314
314
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
315
315
|
#
|
316
|
-
# @return [Knockapi::Message]
|
316
|
+
# @return [Knockapi::Models::Message]
|
317
317
|
#
|
318
318
|
# @see Knockapi::Models::MessageMarkAsUnseenParams
|
319
319
|
def mark_as_unseen(message_id, params = {})
|
@@ -334,7 +334,7 @@ module Knockapi
|
|
334
334
|
#
|
335
335
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
336
336
|
#
|
337
|
-
# @return [Knockapi::Message]
|
337
|
+
# @return [Knockapi::Models::Message]
|
338
338
|
#
|
339
339
|
# @see Knockapi::Models::MessageUnarchiveParams
|
340
340
|
def unarchive(message_id, params = {})
|
@@ -14,7 +14,7 @@ module Knockapi
|
|
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::Objects::BulkDeleteParams
|
20
20
|
def delete(collection, params)
|
@@ -38,11 +38,11 @@ module Knockapi
|
|
38
38
|
#
|
39
39
|
# @param collection [String] The collection this object belongs to.
|
40
40
|
#
|
41
|
-
# @param subscriptions [Array<Knockapi::Objects::BulkAddSubscriptionsParams::Subscription>] A list of subscriptions.
|
41
|
+
# @param subscriptions [Array<Knockapi::Models::Objects::BulkAddSubscriptionsParams::Subscription>] A list of subscriptions.
|
42
42
|
#
|
43
43
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
44
44
|
#
|
45
|
-
# @return [Knockapi::BulkOperation]
|
45
|
+
# @return [Knockapi::Models::BulkOperation]
|
46
46
|
#
|
47
47
|
# @see Knockapi::Models::Objects::BulkAddSubscriptionsParams
|
48
48
|
def add_subscriptions(collection, params)
|
@@ -62,11 +62,11 @@ module Knockapi
|
|
62
62
|
#
|
63
63
|
# @param collection [String] The collection this object belongs to.
|
64
64
|
#
|
65
|
-
# @param objects [Array<Knockapi::InlineObjectRequest>] A list of objects.
|
65
|
+
# @param objects [Array<Knockapi::Models::InlineObjectRequest>] A list of objects.
|
66
66
|
#
|
67
67
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
68
68
|
#
|
69
|
-
# @return [Knockapi::BulkOperation]
|
69
|
+
# @return [Knockapi::Models::BulkOperation]
|
70
70
|
#
|
71
71
|
# @see Knockapi::Models::Objects::BulkSetParams
|
72
72
|
def set(collection, params)
|
@@ -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
|
#
|