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
@@ -242,14 +242,29 @@ module Knockapi
|
|
242
242
|
:seen,
|
243
243
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
244
244
|
)
|
245
|
+
UNSEEN =
|
246
|
+
T.let(
|
247
|
+
:unseen,
|
248
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
249
|
+
)
|
245
250
|
READ =
|
246
251
|
T.let(
|
247
252
|
:read,
|
248
253
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
249
254
|
)
|
250
|
-
|
255
|
+
UNREAD =
|
251
256
|
T.let(
|
252
|
-
:
|
257
|
+
:unread,
|
258
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
259
|
+
)
|
260
|
+
ARCHIVED =
|
261
|
+
T.let(
|
262
|
+
:archived,
|
263
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
264
|
+
)
|
265
|
+
UNARCHIVED =
|
266
|
+
T.let(
|
267
|
+
:unarchived,
|
253
268
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
254
269
|
)
|
255
270
|
LINK_CLICKED =
|
@@ -257,9 +272,9 @@ module Knockapi
|
|
257
272
|
:link_clicked,
|
258
273
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
259
274
|
)
|
260
|
-
|
275
|
+
INTERACTED =
|
261
276
|
T.let(
|
262
|
-
:
|
277
|
+
:interacted,
|
263
278
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
264
279
|
)
|
265
280
|
|
@@ -22,15 +22,7 @@ module Knockapi
|
|
22
22
|
|
23
23
|
# Channel data for a given channel type.
|
24
24
|
sig do
|
25
|
-
returns(
|
26
|
-
T.any(
|
27
|
-
Knockapi::Recipients::PushChannelData,
|
28
|
-
Knockapi::Recipients::SlackChannelData,
|
29
|
-
Knockapi::Recipients::MsTeamsChannelData,
|
30
|
-
Knockapi::Recipients::DiscordChannelData,
|
31
|
-
Knockapi::Recipients::OneSignalChannelData
|
32
|
-
)
|
33
|
-
)
|
25
|
+
returns(Knockapi::Recipients::RecipientsChannelData::Data::Variants)
|
34
26
|
end
|
35
27
|
attr_accessor :data
|
36
28
|
|
@@ -86,14 +78,7 @@ module Knockapi
|
|
86
78
|
{
|
87
79
|
_typename: String,
|
88
80
|
channel_id: String,
|
89
|
-
data:
|
90
|
-
T.any(
|
91
|
-
Knockapi::Recipients::PushChannelData,
|
92
|
-
Knockapi::Recipients::SlackChannelData,
|
93
|
-
Knockapi::Recipients::MsTeamsChannelData,
|
94
|
-
Knockapi::Recipients::DiscordChannelData,
|
95
|
-
Knockapi::Recipients::OneSignalChannelData
|
96
|
-
),
|
81
|
+
data: Knockapi::Recipients::RecipientsChannelData::Data::Variants,
|
97
82
|
provider:
|
98
83
|
Knockapi::Recipients::RecipientsChannelData::Provider::TaggedSymbol
|
99
84
|
}
|
@@ -23,10 +23,7 @@ module Knockapi
|
|
23
23
|
T.nilable(
|
24
24
|
T::Hash[
|
25
25
|
Symbol,
|
26
|
-
|
27
|
-
T::Boolean,
|
28
|
-
Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject
|
29
|
-
)
|
26
|
+
Knockapi::Recipients::PreferenceSet::Category::Variants
|
30
27
|
]
|
31
28
|
)
|
32
29
|
)
|
@@ -54,10 +51,7 @@ module Knockapi
|
|
54
51
|
T.nilable(
|
55
52
|
T::Hash[
|
56
53
|
Symbol,
|
57
|
-
|
58
|
-
T::Boolean,
|
59
|
-
Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject
|
60
|
-
)
|
54
|
+
Knockapi::Recipients::PreferenceSet::Workflow::Variants
|
61
55
|
]
|
62
56
|
)
|
63
57
|
)
|
@@ -117,10 +111,7 @@ module Knockapi
|
|
117
111
|
T.nilable(
|
118
112
|
T::Hash[
|
119
113
|
Symbol,
|
120
|
-
|
121
|
-
T::Boolean,
|
122
|
-
Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject
|
123
|
-
)
|
114
|
+
Knockapi::Recipients::PreferenceSet::Category::Variants
|
124
115
|
]
|
125
116
|
),
|
126
117
|
channel_types:
|
@@ -129,10 +120,7 @@ module Knockapi
|
|
129
120
|
T.nilable(
|
130
121
|
T::Hash[
|
131
122
|
Symbol,
|
132
|
-
|
133
|
-
T::Boolean,
|
134
|
-
Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject
|
135
|
-
)
|
123
|
+
Knockapi::Recipients::PreferenceSet::Workflow::Variants
|
136
124
|
]
|
137
125
|
)
|
138
126
|
}
|
@@ -28,7 +28,7 @@ module Knockapi
|
|
28
28
|
attr_writer :object
|
29
29
|
|
30
30
|
# A recipient of a notification, which is either a user or an object.
|
31
|
-
sig { returns(
|
31
|
+
sig { returns(Knockapi::Recipient::Variants) }
|
32
32
|
attr_accessor :recipient
|
33
33
|
|
34
34
|
# The timestamp when the resource was last updated.
|
@@ -72,7 +72,7 @@ module Knockapi
|
|
72
72
|
_typename: String,
|
73
73
|
inserted_at: Time,
|
74
74
|
object: Knockapi::Object,
|
75
|
-
recipient:
|
75
|
+
recipient: Knockapi::Recipient::Variants,
|
76
76
|
updated_at: Time,
|
77
77
|
properties: T.nilable(T::Hash[Symbol, T.anything])
|
78
78
|
}
|
@@ -15,7 +15,7 @@ module Knockapi
|
|
15
15
|
attr_accessor :inserted_at
|
16
16
|
|
17
17
|
# A recipient of a notification, which is either a user or an object.
|
18
|
-
sig { returns(
|
18
|
+
sig { returns(Knockapi::Recipient::Variants) }
|
19
19
|
attr_accessor :recipient
|
20
20
|
|
21
21
|
# The repeat rule for the schedule.
|
@@ -38,10 +38,13 @@ module Knockapi
|
|
38
38
|
attr_writer :_typename
|
39
39
|
|
40
40
|
# A recipient of a notification, which is either a user or an object.
|
41
|
-
sig { returns(T.nilable(
|
41
|
+
sig { returns(T.nilable(Knockapi::Recipient::Variants)) }
|
42
42
|
attr_accessor :actor
|
43
43
|
|
44
|
-
# An optional map of data to pass into the workflow execution.
|
44
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
45
|
+
# byte limit on the size of any single string value (with the exception of
|
46
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
47
|
+
# size of the full `data` payload.
|
45
48
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
46
49
|
attr_accessor :data
|
47
50
|
|
@@ -94,7 +97,10 @@ module Knockapi
|
|
94
97
|
_typename: nil,
|
95
98
|
# A recipient of a notification, which is either a user or an object.
|
96
99
|
actor: nil,
|
97
|
-
# An optional map of data to pass into the workflow execution.
|
100
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
101
|
+
# byte limit on the size of any single string value (with the exception of
|
102
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
103
|
+
# size of the full `data` payload.
|
98
104
|
data: nil,
|
99
105
|
# The last occurrence of the schedule.
|
100
106
|
last_occurrence_at: nil,
|
@@ -112,12 +118,12 @@ module Knockapi
|
|
112
118
|
{
|
113
119
|
id: String,
|
114
120
|
inserted_at: Time,
|
115
|
-
recipient:
|
121
|
+
recipient: Knockapi::Recipient::Variants,
|
116
122
|
repeats: T::Array[Knockapi::ScheduleRepeatRule],
|
117
123
|
updated_at: Time,
|
118
124
|
workflow: String,
|
119
125
|
_typename: String,
|
120
|
-
actor: T.nilable(
|
126
|
+
actor: T.nilable(Knockapi::Recipient::Variants),
|
121
127
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
122
128
|
last_occurrence_at: T.nilable(Time),
|
123
129
|
next_occurrence_at: T.nilable(Time),
|
@@ -33,7 +33,10 @@ module Knockapi
|
|
33
33
|
sig { returns(String) }
|
34
34
|
attr_accessor :workflow
|
35
35
|
|
36
|
-
# An optional map of data to pass into the workflow execution.
|
36
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
37
|
+
# byte limit on the size of any single string value (with the exception of
|
38
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
39
|
+
# size of the full `data` payload.
|
37
40
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
38
41
|
attr_accessor :data
|
39
42
|
|
@@ -75,7 +78,10 @@ module Knockapi
|
|
75
78
|
repeats:,
|
76
79
|
# The key of the workflow.
|
77
80
|
workflow:,
|
78
|
-
# An optional map of data to pass into the workflow execution.
|
81
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
82
|
+
# byte limit on the size of any single string value (with the exception of
|
83
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
84
|
+
# size of the full `data` payload.
|
79
85
|
data: nil,
|
80
86
|
# The ending date and time for the schedule.
|
81
87
|
ending_at: nil,
|
@@ -26,7 +26,10 @@ module Knockapi
|
|
26
26
|
end
|
27
27
|
attr_accessor :actor
|
28
28
|
|
29
|
-
# An optional map of data to pass into the workflow execution.
|
29
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
30
|
+
# byte limit on the size of any single string value (with the exception of
|
31
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
32
|
+
# size of the full `data` payload.
|
30
33
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
31
34
|
attr_accessor :data
|
32
35
|
|
@@ -75,7 +78,10 @@ module Knockapi
|
|
75
78
|
# A reference to a recipient, either a user identifier (string) or an object
|
76
79
|
# reference (ID, collection).
|
77
80
|
actor: nil,
|
78
|
-
# An optional map of data to pass into the workflow execution.
|
81
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
82
|
+
# byte limit on the size of any single string value (with the exception of
|
83
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
84
|
+
# size of the full `data` payload.
|
79
85
|
data: nil,
|
80
86
|
# The ending date and time for the schedule.
|
81
87
|
ending_at: nil,
|
@@ -76,7 +76,10 @@ module Knockapi
|
|
76
76
|
end
|
77
77
|
attr_accessor :actor
|
78
78
|
|
79
|
-
# An optional map of data to pass into the workflow execution.
|
79
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
80
|
+
# byte limit on the size of any single string value (with the exception of
|
81
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
82
|
+
# size of the full `data` payload.
|
80
83
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
81
84
|
attr_accessor :data
|
82
85
|
|
@@ -161,7 +164,10 @@ module Knockapi
|
|
161
164
|
# (string), an inline user request (object), or an inline object request, which is
|
162
165
|
# determined by the presence of a `collection` property.
|
163
166
|
actor: nil,
|
164
|
-
# An optional map of data to pass into the workflow execution.
|
167
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
168
|
+
# byte limit on the size of any single string value (with the exception of
|
169
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
170
|
+
# size of the full `data` payload.
|
165
171
|
data: nil,
|
166
172
|
# The ending date and time for the schedule.
|
167
173
|
ending_at: nil,
|
@@ -241,14 +241,29 @@ module Knockapi
|
|
241
241
|
:seen,
|
242
242
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
243
243
|
)
|
244
|
+
UNSEEN =
|
245
|
+
T.let(
|
246
|
+
:unseen,
|
247
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
248
|
+
)
|
244
249
|
READ =
|
245
250
|
T.let(
|
246
251
|
:read,
|
247
252
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
248
253
|
)
|
249
|
-
|
254
|
+
UNREAD =
|
250
255
|
T.let(
|
251
|
-
:
|
256
|
+
:unread,
|
257
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
258
|
+
)
|
259
|
+
ARCHIVED =
|
260
|
+
T.let(
|
261
|
+
:archived,
|
262
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
263
|
+
)
|
264
|
+
UNARCHIVED =
|
265
|
+
T.let(
|
266
|
+
:unarchived,
|
252
267
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
253
268
|
)
|
254
269
|
LINK_CLICKED =
|
@@ -256,9 +271,9 @@ module Knockapi
|
|
256
271
|
:link_clicked,
|
257
272
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
258
273
|
)
|
259
|
-
|
274
|
+
INTERACTED =
|
260
275
|
T.let(
|
261
|
-
:
|
276
|
+
:interacted,
|
262
277
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
263
278
|
)
|
264
279
|
|
@@ -25,17 +25,14 @@ module Knockapi
|
|
25
25
|
attr_accessor :activities
|
26
26
|
|
27
27
|
# List of actors associated with this feed item.
|
28
|
-
sig { returns(T::Array[
|
28
|
+
sig { returns(T::Array[Knockapi::Recipient::Variants]) }
|
29
29
|
attr_accessor :actors
|
30
30
|
|
31
31
|
# Content blocks that make up the feed item.
|
32
32
|
sig do
|
33
33
|
returns(
|
34
34
|
T::Array[
|
35
|
-
|
36
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock,
|
37
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock
|
38
|
-
)
|
35
|
+
Knockapi::Models::Users::FeedListItemsResponse::Block::Variants
|
39
36
|
]
|
40
37
|
)
|
41
38
|
end
|
@@ -178,13 +175,10 @@ module Knockapi
|
|
178
175
|
id: String,
|
179
176
|
_typename: String,
|
180
177
|
activities: T::Array[Knockapi::Activity],
|
181
|
-
actors: T::Array[
|
178
|
+
actors: T::Array[Knockapi::Recipient::Variants],
|
182
179
|
blocks:
|
183
180
|
T::Array[
|
184
|
-
|
185
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock,
|
186
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock
|
187
|
-
)
|
181
|
+
Knockapi::Models::Users::FeedListItemsResponse::Block::Variants
|
188
182
|
],
|
189
183
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
190
184
|
inserted_at: String,
|
@@ -50,7 +50,10 @@ module Knockapi
|
|
50
50
|
sig { returns(T.nilable(String)) }
|
51
51
|
attr_accessor :cancellation_key
|
52
52
|
|
53
|
-
# An optional map of data to pass into the workflow execution.
|
53
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
54
|
+
# byte limit on the size of any single string value (with the exception of
|
55
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
56
|
+
# size of the full `data` payload.
|
54
57
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
55
58
|
attr_accessor :data
|
56
59
|
|
@@ -96,7 +99,10 @@ module Knockapi
|
|
96
99
|
# subsequent cancellation. Should be unique across trigger requests to avoid
|
97
100
|
# unintentional cancellations.
|
98
101
|
cancellation_key: nil,
|
99
|
-
# An optional map of data to pass into the workflow execution.
|
102
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
103
|
+
# byte limit on the size of any single string value (with the exception of
|
104
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
105
|
+
# size of the full `data` payload.
|
100
106
|
data: nil,
|
101
107
|
# An request to set a tenant inline.
|
102
108
|
tenant: nil,
|
@@ -10,7 +10,7 @@ module Knockapi
|
|
10
10
|
params(
|
11
11
|
message_ids: T::Array[String],
|
12
12
|
request_options: Knockapi::RequestOptions::OrHash
|
13
|
-
).returns(T::Array[Knockapi::Message])
|
13
|
+
).returns(T::Array[Knockapi::Models::Message])
|
14
14
|
end
|
15
15
|
def archive(
|
16
16
|
# The message IDs to update the status of.
|
@@ -45,7 +45,7 @@ module Knockapi
|
|
45
45
|
message_ids: T::Array[String],
|
46
46
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
47
47
|
request_options: Knockapi::RequestOptions::OrHash
|
48
|
-
).returns(T::Array[Knockapi::Message])
|
48
|
+
).returns(T::Array[Knockapi::Models::Message])
|
49
49
|
end
|
50
50
|
def mark_as_interacted(
|
51
51
|
# The message IDs to batch mark as interacted with.
|
@@ -62,7 +62,7 @@ module Knockapi
|
|
62
62
|
params(
|
63
63
|
message_ids: T::Array[String],
|
64
64
|
request_options: Knockapi::RequestOptions::OrHash
|
65
|
-
).returns(T::Array[Knockapi::Message])
|
65
|
+
).returns(T::Array[Knockapi::Models::Message])
|
66
66
|
end
|
67
67
|
def mark_as_read(
|
68
68
|
# The message IDs to update the status of.
|
@@ -78,7 +78,7 @@ module Knockapi
|
|
78
78
|
params(
|
79
79
|
message_ids: T::Array[String],
|
80
80
|
request_options: Knockapi::RequestOptions::OrHash
|
81
|
-
).returns(T::Array[Knockapi::Message])
|
81
|
+
).returns(T::Array[Knockapi::Models::Message])
|
82
82
|
end
|
83
83
|
def mark_as_seen(
|
84
84
|
# The message IDs to update the status of.
|
@@ -94,7 +94,7 @@ module Knockapi
|
|
94
94
|
params(
|
95
95
|
message_ids: T::Array[String],
|
96
96
|
request_options: Knockapi::RequestOptions::OrHash
|
97
|
-
).returns(T::Array[Knockapi::Message])
|
97
|
+
).returns(T::Array[Knockapi::Models::Message])
|
98
98
|
end
|
99
99
|
def mark_as_unread(
|
100
100
|
# The message IDs to update the status of.
|
@@ -110,7 +110,7 @@ module Knockapi
|
|
110
110
|
params(
|
111
111
|
message_ids: T::Array[String],
|
112
112
|
request_options: Knockapi::RequestOptions::OrHash
|
113
|
-
).returns(T::Array[Knockapi::Message])
|
113
|
+
).returns(T::Array[Knockapi::Models::Message])
|
114
114
|
end
|
115
115
|
def mark_as_unseen(
|
116
116
|
# The message IDs to update the status of.
|
@@ -126,7 +126,7 @@ module Knockapi
|
|
126
126
|
params(
|
127
127
|
message_ids: T::Array[String],
|
128
128
|
request_options: Knockapi::RequestOptions::OrHash
|
129
|
-
).returns(T::Array[Knockapi::Message])
|
129
|
+
).returns(T::Array[Knockapi::Models::Message])
|
130
130
|
end
|
131
131
|
def unarchive(
|
132
132
|
# The message IDs to update the status of.
|
@@ -25,7 +25,7 @@ module Knockapi
|
|
25
25
|
workflow_recipient_run_id: String,
|
26
26
|
workflow_run_id: String,
|
27
27
|
request_options: Knockapi::RequestOptions::OrHash
|
28
|
-
).returns(Knockapi::Internal::
|
28
|
+
).returns(Knockapi::Internal::ItemsCursor[Knockapi::Message])
|
29
29
|
end
|
30
30
|
def list(
|
31
31
|
# The cursor to fetch entries after.
|
@@ -141,9 +141,7 @@ module Knockapi
|
|
141
141
|
before: String,
|
142
142
|
page_size: Integer,
|
143
143
|
request_options: Knockapi::RequestOptions::OrHash
|
144
|
-
).returns(
|
145
|
-
Knockapi::Internal::EntriesCursor[Knockapi::MessageDeliveryLog]
|
146
|
-
)
|
144
|
+
).returns(Knockapi::Internal::ItemsCursor[Knockapi::MessageDeliveryLog])
|
147
145
|
end
|
148
146
|
def list_delivery_logs(
|
149
147
|
# The ID of the message to fetch delivery logs for.
|
@@ -166,7 +164,7 @@ module Knockapi
|
|
166
164
|
before: String,
|
167
165
|
page_size: Integer,
|
168
166
|
request_options: Knockapi::RequestOptions::OrHash
|
169
|
-
).returns(Knockapi::Internal::
|
167
|
+
).returns(Knockapi::Internal::ItemsCursor[Knockapi::MessageEvent])
|
170
168
|
end
|
171
169
|
def list_events(
|
172
170
|
# The ID of the message to fetch events for.
|
@@ -197,7 +197,7 @@ module Knockapi
|
|
197
197
|
workflow_recipient_run_id: String,
|
198
198
|
workflow_run_id: String,
|
199
199
|
request_options: Knockapi::RequestOptions::OrHash
|
200
|
-
).returns(Knockapi::Internal::
|
200
|
+
).returns(Knockapi::Internal::ItemsCursor[Knockapi::Message])
|
201
201
|
end
|
202
202
|
def list_messages(
|
203
203
|
# The collection this object belongs to.
|
@@ -37,7 +37,10 @@ module Knockapi
|
|
37
37
|
repeats:,
|
38
38
|
# The key of the workflow.
|
39
39
|
workflow:,
|
40
|
-
# An optional map of data to pass into the workflow execution.
|
40
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
41
|
+
# byte limit on the size of any single string value (with the exception of
|
42
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
43
|
+
# size of the full `data` payload.
|
41
44
|
data: nil,
|
42
45
|
# The ending date and time for the schedule.
|
43
46
|
ending_at: nil,
|
@@ -78,7 +81,10 @@ module Knockapi
|
|
78
81
|
# A reference to a recipient, either a user identifier (string) or an object
|
79
82
|
# reference (ID, collection).
|
80
83
|
actor: nil,
|
81
|
-
# An optional map of data to pass into the workflow execution.
|
84
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
85
|
+
# byte limit on the size of any single string value (with the exception of
|
86
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
87
|
+
# size of the full `data` payload.
|
82
88
|
data: nil,
|
83
89
|
# The ending date and time for the schedule.
|
84
90
|
ending_at: nil,
|
@@ -191,7 +191,7 @@ module Knockapi
|
|
191
191
|
workflow_recipient_run_id: String,
|
192
192
|
workflow_run_id: String,
|
193
193
|
request_options: Knockapi::RequestOptions::OrHash
|
194
|
-
).returns(Knockapi::Internal::
|
194
|
+
).returns(Knockapi::Internal::ItemsCursor[Knockapi::Message])
|
195
195
|
end
|
196
196
|
def list_messages(
|
197
197
|
# The user ID to list messages for.
|
@@ -84,7 +84,10 @@ module Knockapi
|
|
84
84
|
# subsequent cancellation. Should be unique across trigger requests to avoid
|
85
85
|
# unintentional cancellations.
|
86
86
|
cancellation_key: nil,
|
87
|
-
# An optional map of data to pass into the workflow execution.
|
87
|
+
# An optional map of data to pass into the workflow execution. There is a 1024
|
88
|
+
# byte limit on the size of any single string value (with the exception of
|
89
|
+
# [email attachments](/integrations/email/attachments)), and a 10MB limit on the
|
90
|
+
# size of the full `data` payload.
|
88
91
|
data: nil,
|
89
92
|
# An request to set a tenant inline.
|
90
93
|
tenant: nil,
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class ArrayOf[Elem]
|
5
5
|
include Knockapi::Internal::Type::Converter
|
6
|
+
include Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Knockapi
|
|
27
28
|
state: Knockapi::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Array[top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class Boolean
|
5
5
|
extend Knockapi::Internal::Type::Converter
|
6
|
+
extend Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Knockapi
|
|
17
18
|
bool | top value,
|
18
19
|
state: Knockapi::Internal::Type::Converter::dump_state
|
19
20
|
) -> (bool | top)
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class HashOf[Elem]
|
5
5
|
include Knockapi::Internal::Type::Converter
|
6
|
+
include Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Knockapi
|
|
27
28
|
state: Knockapi::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Hash[Symbol, top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class Unknown
|
5
5
|
extend Knockapi::Internal::Type::Converter
|
6
|
+
extend Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Knockapi
|
|
17
18
|
top value,
|
18
19
|
state: Knockapi::Internal::Type::Converter::dump_state
|
19
20
|
) -> top
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|