knockapi 1.33.0 → 1.35.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 +53 -0
- data/README.md +1 -1
- data/lib/knockapi/internal/util.rb +1 -2
- data/lib/knockapi/models/audience_add_members_params.rb +8 -1
- data/lib/knockapi/models/audience_list_members_params.rb +7 -1
- data/lib/knockapi/models/audience_remove_members_params.rb +8 -1
- data/lib/knockapi/models/bulk_operation_get_params.rb +7 -1
- data/lib/knockapi/models/channels/bulk_update_message_status_params.rb +15 -1
- data/lib/knockapi/models/condition.rb +1 -0
- data/lib/knockapi/models/message_archive_params.rb +7 -1
- data/lib/knockapi/models/message_event.rb +1 -0
- data/lib/knockapi/models/message_get_content_params.rb +7 -1
- data/lib/knockapi/models/message_get_params.rb +7 -1
- data/lib/knockapi/models/message_list_activities_params.rb +8 -1
- data/lib/knockapi/models/message_list_delivery_logs_params.rb +8 -1
- data/lib/knockapi/models/message_list_events_params.rb +8 -1
- data/lib/knockapi/models/message_mark_as_interacted_params.rb +8 -1
- data/lib/knockapi/models/message_mark_as_read_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_seen_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_unread_params.rb +7 -1
- data/lib/knockapi/models/message_mark_as_unseen_params.rb +7 -1
- data/lib/knockapi/models/message_unarchive_params.rb +7 -1
- data/lib/knockapi/models/object_add_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_delete_params.rb +13 -1
- data/lib/knockapi/models/object_delete_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_get_channel_data_params.rb +19 -1
- data/lib/knockapi/models/object_get_params.rb +13 -1
- data/lib/knockapi/models/object_get_preferences_params.rb +19 -1
- data/lib/knockapi/models/object_list_messages_params.rb +15 -1
- data/lib/knockapi/models/object_list_params.rb +8 -1
- data/lib/knockapi/models/object_list_preferences_params.rb +13 -1
- data/lib/knockapi/models/object_list_schedules_params.rb +15 -1
- data/lib/knockapi/models/object_list_subscriptions_params.rb +15 -1
- data/lib/knockapi/models/object_set_channel_data_params.rb +19 -1
- data/lib/knockapi/models/object_set_params.rb +15 -1
- data/lib/knockapi/models/object_set_preferences_params.rb +19 -1
- data/lib/knockapi/models/object_unset_channel_data_params.rb +19 -1
- data/lib/knockapi/models/objects/bulk_add_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_delete_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_delete_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/objects/bulk_set_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_check_auth_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_list_channels_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_list_teams_params.rb +8 -1
- data/lib/knockapi/models/providers/ms_team_revoke_access_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_check_auth_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_list_channels_params.rb +8 -1
- data/lib/knockapi/models/providers/slack_revoke_access_params.rb +8 -1
- data/lib/knockapi/models/tenant_delete_params.rb +7 -1
- data/lib/knockapi/models/tenant_get_params.rb +8 -1
- data/lib/knockapi/models/tenant_set_params.rb +8 -1
- data/lib/knockapi/models/user_delete_params.rb +7 -1
- data/lib/knockapi/models/user_get_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_get_params.rb +7 -1
- data/lib/knockapi/models/user_get_preferences_params.rb +15 -1
- data/lib/knockapi/models/user_list_messages_params.rb +8 -1
- data/lib/knockapi/models/user_list_preferences_params.rb +7 -1
- data/lib/knockapi/models/user_list_schedules_params.rb +8 -1
- data/lib/knockapi/models/user_list_subscriptions_params.rb +8 -1
- data/lib/knockapi/models/user_merge_params.rb +8 -1
- data/lib/knockapi/models/user_set_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_set_preferences_params.rb +13 -1
- data/lib/knockapi/models/user_unset_channel_data_params.rb +13 -1
- data/lib/knockapi/models/user_update_params.rb +7 -1
- data/lib/knockapi/models/users/feed_get_settings_params.rb +13 -1
- data/lib/knockapi/models/users/feed_list_items_params.rb +15 -1
- data/lib/knockapi/models/users/guide_get_channel_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_archived_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_interacted_params.rb +15 -1
- data/lib/knockapi/models/users/guide_mark_message_as_seen_params.rb +15 -1
- data/lib/knockapi/models/workflow_cancel_params.rb +8 -1
- data/lib/knockapi/models/workflow_trigger_params.rb +8 -1
- data/lib/knockapi/version.rb +1 -1
- data/rbi/knockapi/models/audience_add_members_params.rbi +6 -0
- data/rbi/knockapi/models/audience_list_members_params.rbi +13 -5
- data/rbi/knockapi/models/audience_remove_members_params.rbi +6 -0
- data/rbi/knockapi/models/bulk_operation_get_params.rbi +13 -5
- data/rbi/knockapi/models/channels/bulk_update_message_status_params.rbi +18 -0
- data/rbi/knockapi/models/condition.rbi +2 -0
- data/rbi/knockapi/models/message_archive_params.rbi +13 -5
- data/rbi/knockapi/models/message_event.rbi +2 -0
- data/rbi/knockapi/models/message_get_content_params.rbi +13 -5
- data/rbi/knockapi/models/message_get_params.rbi +13 -5
- data/rbi/knockapi/models/message_list_activities_params.rbi +6 -0
- data/rbi/knockapi/models/message_list_delivery_logs_params.rbi +6 -0
- data/rbi/knockapi/models/message_list_events_params.rbi +6 -0
- data/rbi/knockapi/models/message_mark_as_interacted_params.rbi +6 -0
- data/rbi/knockapi/models/message_mark_as_read_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_seen_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_unread_params.rbi +13 -5
- data/rbi/knockapi/models/message_mark_as_unseen_params.rbi +13 -5
- data/rbi/knockapi/models/message_unarchive_params.rbi +13 -5
- data/rbi/knockapi/models/object_add_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_delete_params.rbi +21 -5
- data/rbi/knockapi/models/object_delete_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_get_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/object_get_params.rbi +21 -5
- data/rbi/knockapi/models/object_get_preferences_params.rbi +26 -5
- data/rbi/knockapi/models/object_list_messages_params.rbi +12 -0
- data/rbi/knockapi/models/object_list_params.rbi +6 -0
- data/rbi/knockapi/models/object_list_preferences_params.rbi +21 -5
- data/rbi/knockapi/models/object_list_schedules_params.rbi +12 -0
- data/rbi/knockapi/models/object_list_subscriptions_params.rbi +12 -0
- data/rbi/knockapi/models/object_set_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/object_set_params.rbi +12 -0
- data/rbi/knockapi/models/object_set_preferences_params.rbi +26 -5
- data/rbi/knockapi/models/object_unset_channel_data_params.rbi +26 -5
- data/rbi/knockapi/models/objects/bulk_add_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_delete_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_delete_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_check_auth_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_list_channels_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_list_teams_params.rbi +6 -0
- data/rbi/knockapi/models/providers/ms_team_revoke_access_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_check_auth_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_list_channels_params.rbi +6 -0
- data/rbi/knockapi/models/providers/slack_revoke_access_params.rbi +6 -0
- data/rbi/knockapi/models/tenant_delete_params.rbi +13 -5
- data/rbi/knockapi/models/tenant_get_params.rbi +6 -0
- data/rbi/knockapi/models/tenant_set_params.rbi +6 -0
- data/rbi/knockapi/models/user_delete_params.rbi +13 -5
- data/rbi/knockapi/models/user_get_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_get_params.rbi +13 -5
- data/rbi/knockapi/models/user_get_preferences_params.rbi +16 -1
- data/rbi/knockapi/models/user_list_messages_params.rbi +6 -0
- data/rbi/knockapi/models/user_list_preferences_params.rbi +13 -5
- data/rbi/knockapi/models/user_list_schedules_params.rbi +6 -0
- data/rbi/knockapi/models/user_list_subscriptions_params.rbi +6 -0
- data/rbi/knockapi/models/user_merge_params.rbi +10 -1
- data/rbi/knockapi/models/user_set_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_set_preferences_params.rbi +21 -5
- data/rbi/knockapi/models/user_unset_channel_data_params.rbi +21 -5
- data/rbi/knockapi/models/user_update_params.rbi +13 -5
- data/rbi/knockapi/models/users/feed_get_settings_params.rbi +21 -5
- data/rbi/knockapi/models/users/feed_list_items_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_get_channel_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_archived_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_interacted_params.rbi +12 -0
- data/rbi/knockapi/models/users/guide_mark_message_as_seen_params.rbi +12 -0
- data/rbi/knockapi/models/workflow_cancel_params.rbi +6 -0
- data/rbi/knockapi/models/workflow_trigger_params.rbi +6 -0
- data/sig/knockapi/models/audience_add_members_params.rbs +5 -0
- data/sig/knockapi/models/audience_list_members_params.rbs +8 -3
- data/sig/knockapi/models/audience_remove_members_params.rbs +8 -1
- data/sig/knockapi/models/bulk_operation_get_params.rbs +8 -3
- data/sig/knockapi/models/channels/bulk_update_message_status_params.rbs +10 -0
- data/sig/knockapi/models/condition.rbs +2 -0
- data/sig/knockapi/models/message_archive_params.rbs +11 -3
- data/sig/knockapi/models/message_event.rbs +2 -0
- data/sig/knockapi/models/message_get_content_params.rbs +11 -3
- data/sig/knockapi/models/message_get_params.rbs +11 -3
- data/sig/knockapi/models/message_list_activities_params.rbs +5 -0
- data/sig/knockapi/models/message_list_delivery_logs_params.rbs +5 -1
- data/sig/knockapi/models/message_list_events_params.rbs +5 -1
- data/sig/knockapi/models/message_mark_as_interacted_params.rbs +5 -1
- data/sig/knockapi/models/message_mark_as_read_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_seen_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_unread_params.rbs +11 -3
- data/sig/knockapi/models/message_mark_as_unseen_params.rbs +11 -3
- data/sig/knockapi/models/message_unarchive_params.rbs +11 -3
- data/sig/knockapi/models/object_add_subscriptions_params.rbs +10 -0
- data/sig/knockapi/models/object_delete_params.rbs +16 -3
- data/sig/knockapi/models/object_delete_subscriptions_params.rbs +13 -1
- data/sig/knockapi/models/object_get_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/object_get_params.rbs +17 -3
- data/sig/knockapi/models/object_get_preferences_params.rbs +20 -3
- data/sig/knockapi/models/object_list_messages_params.rbs +10 -0
- data/sig/knockapi/models/object_list_params.rbs +5 -0
- data/sig/knockapi/models/object_list_preferences_params.rbs +16 -3
- data/sig/knockapi/models/object_list_schedules_params.rbs +10 -0
- data/sig/knockapi/models/object_list_subscriptions_params.rbs +10 -0
- data/sig/knockapi/models/object_set_channel_data_params.rbs +26 -3
- data/sig/knockapi/models/object_set_params.rbs +10 -0
- data/sig/knockapi/models/object_set_preferences_params.rbs +26 -3
- data/sig/knockapi/models/object_unset_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/objects/bulk_add_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_delete_params.rbs +5 -1
- data/sig/knockapi/models/objects/bulk_delete_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_set_params.rbs +8 -1
- data/sig/knockapi/models/providers/ms_team_check_auth_params.rbs +5 -1
- data/sig/knockapi/models/providers/ms_team_list_channels_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_list_teams_params.rbs +5 -0
- data/sig/knockapi/models/providers/ms_team_revoke_access_params.rbs +5 -1
- data/sig/knockapi/models/providers/slack_check_auth_params.rbs +5 -1
- data/sig/knockapi/models/providers/slack_list_channels_params.rbs +5 -0
- data/sig/knockapi/models/providers/slack_revoke_access_params.rbs +5 -1
- data/sig/knockapi/models/tenant_delete_params.rbs +8 -3
- data/sig/knockapi/models/tenant_get_params.rbs +5 -1
- data/sig/knockapi/models/tenant_set_params.rbs +5 -0
- data/sig/knockapi/models/user_delete_params.rbs +11 -3
- data/sig/knockapi/models/user_get_channel_data_params.rbs +16 -3
- data/sig/knockapi/models/user_get_params.rbs +12 -3
- data/sig/knockapi/models/user_get_preferences_params.rbs +10 -1
- data/sig/knockapi/models/user_list_messages_params.rbs +5 -0
- data/sig/knockapi/models/user_list_preferences_params.rbs +11 -3
- data/sig/knockapi/models/user_list_schedules_params.rbs +5 -0
- data/sig/knockapi/models/user_list_subscriptions_params.rbs +5 -0
- data/sig/knockapi/models/user_merge_params.rbs +6 -1
- data/sig/knockapi/models/user_set_channel_data_params.rbs +20 -3
- data/sig/knockapi/models/user_set_preferences_params.rbs +20 -3
- data/sig/knockapi/models/user_unset_channel_data_params.rbs +16 -3
- data/sig/knockapi/models/user_update_params.rbs +13 -3
- data/sig/knockapi/models/users/feed_get_settings_params.rbs +16 -3
- data/sig/knockapi/models/users/feed_list_items_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_get_channel_params.rbs +15 -1
- data/sig/knockapi/models/users/guide_mark_message_as_archived_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_mark_message_as_interacted_params.rbs +10 -0
- data/sig/knockapi/models/users/guide_mark_message_as_seen_params.rbs +10 -0
- data/sig/knockapi/models/workflow_cancel_params.rbs +5 -0
- data/sig/knockapi/models/workflow_trigger_params.rbs +5 -0
- metadata +2 -2
|
@@ -15,6 +15,12 @@ module Knockapi
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :user_id
|
|
20
|
+
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :message_id
|
|
23
|
+
|
|
18
24
|
# The unique identifier for the channel.
|
|
19
25
|
sig { returns(String) }
|
|
20
26
|
attr_accessor :channel_id
|
|
@@ -65,6 +71,8 @@ module Knockapi
|
|
|
65
71
|
|
|
66
72
|
sig do
|
|
67
73
|
params(
|
|
74
|
+
user_id: String,
|
|
75
|
+
message_id: String,
|
|
68
76
|
channel_id: String,
|
|
69
77
|
guide_id: String,
|
|
70
78
|
guide_key: String,
|
|
@@ -78,6 +86,8 @@ module Knockapi
|
|
|
78
86
|
).returns(T.attached_class)
|
|
79
87
|
end
|
|
80
88
|
def self.new(
|
|
89
|
+
user_id:,
|
|
90
|
+
message_id:,
|
|
81
91
|
# The unique identifier for the channel.
|
|
82
92
|
channel_id:,
|
|
83
93
|
# The unique identifier for the guide.
|
|
@@ -103,6 +113,8 @@ module Knockapi
|
|
|
103
113
|
sig do
|
|
104
114
|
override.returns(
|
|
105
115
|
{
|
|
116
|
+
user_id: String,
|
|
117
|
+
message_id: String,
|
|
106
118
|
channel_id: String,
|
|
107
119
|
guide_id: String,
|
|
108
120
|
guide_key: String,
|
|
@@ -11,6 +11,9 @@ module Knockapi
|
|
|
11
11
|
T.any(Knockapi::WorkflowCancelParams, Knockapi::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :key
|
|
16
|
+
|
|
14
17
|
# An optional key that is used to reference a specific workflow trigger request
|
|
15
18
|
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
|
|
16
19
|
# request. Must be provided while triggering a workflow in order to enable
|
|
@@ -34,6 +37,7 @@ module Knockapi
|
|
|
34
37
|
|
|
35
38
|
sig do
|
|
36
39
|
params(
|
|
40
|
+
key: String,
|
|
37
41
|
cancellation_key: String,
|
|
38
42
|
recipients:
|
|
39
43
|
T.nilable(
|
|
@@ -48,6 +52,7 @@ module Knockapi
|
|
|
48
52
|
).returns(T.attached_class)
|
|
49
53
|
end
|
|
50
54
|
def self.new(
|
|
55
|
+
key:,
|
|
51
56
|
# An optional key that is used to reference a specific workflow trigger request
|
|
52
57
|
# when issuing a [workflow cancellation](/send-notifications/canceling-workflows)
|
|
53
58
|
# request. Must be provided while triggering a workflow in order to enable
|
|
@@ -64,6 +69,7 @@ module Knockapi
|
|
|
64
69
|
sig do
|
|
65
70
|
override.returns(
|
|
66
71
|
{
|
|
72
|
+
key: String,
|
|
67
73
|
cancellation_key: String,
|
|
68
74
|
recipients:
|
|
69
75
|
T.nilable(
|
|
@@ -11,6 +11,9 @@ module Knockapi
|
|
|
11
11
|
T.any(Knockapi::WorkflowTriggerParams, Knockapi::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :key
|
|
16
|
+
|
|
14
17
|
# The recipients to trigger the workflow for. Can inline identify users, objects,
|
|
15
18
|
# or use a list of user IDs. Limited to 1,000 recipients.
|
|
16
19
|
sig do
|
|
@@ -63,6 +66,7 @@ module Knockapi
|
|
|
63
66
|
|
|
64
67
|
sig do
|
|
65
68
|
params(
|
|
69
|
+
key: String,
|
|
66
70
|
recipients:
|
|
67
71
|
T::Array[
|
|
68
72
|
T.any(
|
|
@@ -86,6 +90,7 @@ module Knockapi
|
|
|
86
90
|
).returns(T.attached_class)
|
|
87
91
|
end
|
|
88
92
|
def self.new(
|
|
93
|
+
key:,
|
|
89
94
|
# The recipients to trigger the workflow for. Can inline identify users, objects,
|
|
90
95
|
# or use a list of user IDs. Limited to 1,000 recipients.
|
|
91
96
|
recipients:,
|
|
@@ -113,6 +118,7 @@ module Knockapi
|
|
|
113
118
|
sig do
|
|
114
119
|
override.returns(
|
|
115
120
|
{
|
|
121
|
+
key: String,
|
|
116
122
|
recipients:
|
|
117
123
|
T::Array[
|
|
118
124
|
T.any(
|
|
@@ -2,6 +2,7 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type audience_add_members_params =
|
|
4
4
|
{
|
|
5
|
+
key: String,
|
|
5
6
|
members: ::Array[Knockapi::AudienceAddMembersParams::Member],
|
|
6
7
|
create_audience: bool
|
|
7
8
|
}
|
|
@@ -11,6 +12,8 @@ module Knockapi
|
|
|
11
12
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
12
13
|
include Knockapi::Internal::Type::RequestParameters
|
|
13
14
|
|
|
15
|
+
attr_accessor key: String
|
|
16
|
+
|
|
14
17
|
attr_accessor members: ::Array[Knockapi::AudienceAddMembersParams::Member]
|
|
15
18
|
|
|
16
19
|
attr_reader create_audience: bool?
|
|
@@ -18,12 +21,14 @@ module Knockapi
|
|
|
18
21
|
def create_audience=: (bool) -> bool
|
|
19
22
|
|
|
20
23
|
def initialize: (
|
|
24
|
+
key: String,
|
|
21
25
|
members: ::Array[Knockapi::AudienceAddMembersParams::Member],
|
|
22
26
|
?create_audience: bool,
|
|
23
27
|
?request_options: Knockapi::request_opts
|
|
24
28
|
) -> void
|
|
25
29
|
|
|
26
30
|
def to_hash: -> {
|
|
31
|
+
key: String,
|
|
27
32
|
members: ::Array[Knockapi::AudienceAddMembersParams::Member],
|
|
28
33
|
create_audience: bool,
|
|
29
34
|
request_options: Knockapi::RequestOptions
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type audience_list_members_params =
|
|
4
|
-
{
|
|
4
|
+
{ key: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AudienceListMembersParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor key: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
key: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { key: String, request_options: Knockapi::RequestOptions }
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type audience_remove_members_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
key: String,
|
|
6
|
+
members: ::Array[Knockapi::AudienceRemoveMembersParams::Member]
|
|
7
|
+
}
|
|
5
8
|
& Knockapi::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class AudienceRemoveMembersParams < Knockapi::Internal::Type::BaseModel
|
|
8
11
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Knockapi::Internal::Type::RequestParameters
|
|
10
13
|
|
|
14
|
+
attr_accessor key: String
|
|
15
|
+
|
|
11
16
|
attr_accessor members: ::Array[Knockapi::AudienceRemoveMembersParams::Member]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
key: String,
|
|
14
20
|
members: ::Array[Knockapi::AudienceRemoveMembersParams::Member],
|
|
15
21
|
?request_options: Knockapi::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
25
|
+
key: String,
|
|
19
26
|
members: ::Array[Knockapi::AudienceRemoveMembersParams::Member],
|
|
20
27
|
request_options: Knockapi::RequestOptions
|
|
21
28
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type bulk_operation_get_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BulkOperationGetParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Knockapi::RequestOptions }
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
@@ -3,6 +3,8 @@ module Knockapi
|
|
|
3
3
|
module Channels
|
|
4
4
|
type bulk_update_message_status_params =
|
|
5
5
|
{
|
|
6
|
+
channel_id: String,
|
|
7
|
+
action: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::action,
|
|
6
8
|
archived: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::archived,
|
|
7
9
|
delivery_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::delivery_status,
|
|
8
10
|
engagement_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::engagement_status,
|
|
@@ -20,6 +22,10 @@ module Knockapi
|
|
|
20
22
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
21
23
|
include Knockapi::Internal::Type::RequestParameters
|
|
22
24
|
|
|
25
|
+
attr_accessor channel_id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor action: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::action
|
|
28
|
+
|
|
23
29
|
attr_reader archived: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::archived?
|
|
24
30
|
|
|
25
31
|
def archived=: (
|
|
@@ -67,6 +73,8 @@ module Knockapi
|
|
|
67
73
|
def workflows=: (::Array[String]) -> ::Array[String]
|
|
68
74
|
|
|
69
75
|
def initialize: (
|
|
76
|
+
channel_id: String,
|
|
77
|
+
action: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::action,
|
|
70
78
|
?archived: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::archived,
|
|
71
79
|
?delivery_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::delivery_status,
|
|
72
80
|
?engagement_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::engagement_status,
|
|
@@ -81,6 +89,8 @@ module Knockapi
|
|
|
81
89
|
) -> void
|
|
82
90
|
|
|
83
91
|
def to_hash: -> {
|
|
92
|
+
channel_id: String,
|
|
93
|
+
action: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::action,
|
|
84
94
|
archived: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::archived,
|
|
85
95
|
delivery_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::delivery_status,
|
|
86
96
|
engagement_status: Knockapi::Models::Channels::BulkUpdateMessageStatusParams::engagement_status,
|
|
@@ -47,6 +47,7 @@ module Knockapi
|
|
|
47
47
|
| :is_timestamp_on_or_after_date
|
|
48
48
|
| :is_timestamp_before_date
|
|
49
49
|
| :is_timestamp_between
|
|
50
|
+
| :is_between
|
|
50
51
|
| :is_audience_member
|
|
51
52
|
| :is_not_audience_member
|
|
52
53
|
|
|
@@ -73,6 +74,7 @@ module Knockapi
|
|
|
73
74
|
IS_TIMESTAMP_ON_OR_AFTER_DATE: :is_timestamp_on_or_after_date
|
|
74
75
|
IS_TIMESTAMP_BEFORE_DATE: :is_timestamp_before_date
|
|
75
76
|
IS_TIMESTAMP_BETWEEN: :is_timestamp_between
|
|
77
|
+
IS_BETWEEN: :is_between
|
|
76
78
|
IS_AUDIENCE_MEMBER: :is_audience_member
|
|
77
79
|
IS_NOT_AUDIENCE_MEMBER: :is_not_audience_member
|
|
78
80
|
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_archive_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageArchiveParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -44,6 +44,7 @@ module Knockapi
|
|
|
44
44
|
type type_ =
|
|
45
45
|
:"message.archived"
|
|
46
46
|
| :"message.bounced"
|
|
47
|
+
| :"message.created"
|
|
47
48
|
| :"message.delivered"
|
|
48
49
|
| :"message.delivery_attempted"
|
|
49
50
|
| :"message.interacted"
|
|
@@ -63,6 +64,7 @@ module Knockapi
|
|
|
63
64
|
|
|
64
65
|
MESSAGE_ARCHIVED: :"message.archived"
|
|
65
66
|
MESSAGE_BOUNCED: :"message.bounced"
|
|
67
|
+
MESSAGE_CREATED: :"message.created"
|
|
66
68
|
MESSAGE_DELIVERED: :"message.delivered"
|
|
67
69
|
MESSAGE_DELIVERY_ATTEMPTED: :"message.delivery_attempted"
|
|
68
70
|
MESSAGE_INTERACTED: :"message.interacted"
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_get_content_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageGetContentParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_get_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageGetParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type message_list_activities_params =
|
|
4
4
|
{
|
|
5
|
+
message_id: String,
|
|
5
6
|
after: String,
|
|
6
7
|
before: String,
|
|
7
8
|
page_size: Integer,
|
|
@@ -13,6 +14,8 @@ module Knockapi
|
|
|
13
14
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Knockapi::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor message_id: String
|
|
18
|
+
|
|
16
19
|
attr_reader after: String?
|
|
17
20
|
|
|
18
21
|
def after=: (String) -> String
|
|
@@ -30,6 +33,7 @@ module Knockapi
|
|
|
30
33
|
def trigger_data=: (String) -> String
|
|
31
34
|
|
|
32
35
|
def initialize: (
|
|
36
|
+
message_id: String,
|
|
33
37
|
?after: String,
|
|
34
38
|
?before: String,
|
|
35
39
|
?page_size: Integer,
|
|
@@ -38,6 +42,7 @@ module Knockapi
|
|
|
38
42
|
) -> void
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
45
|
+
message_id: String,
|
|
41
46
|
after: String,
|
|
42
47
|
before: String,
|
|
43
48
|
page_size: Integer,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_list_delivery_logs_params =
|
|
4
|
-
{ after: String, before: String, page_size: Integer }
|
|
4
|
+
{ message_id: String, after: String, before: String, page_size: Integer }
|
|
5
5
|
& Knockapi::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class MessageListDeliveryLogsParams < Knockapi::Internal::Type::BaseModel
|
|
8
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor message_id: String
|
|
12
|
+
|
|
11
13
|
attr_reader after: String?
|
|
12
14
|
|
|
13
15
|
def after=: (String) -> String
|
|
@@ -21,6 +23,7 @@ module Knockapi
|
|
|
21
23
|
def page_size=: (Integer) -> Integer
|
|
22
24
|
|
|
23
25
|
def initialize: (
|
|
26
|
+
message_id: String,
|
|
24
27
|
?after: String,
|
|
25
28
|
?before: String,
|
|
26
29
|
?page_size: Integer,
|
|
@@ -28,6 +31,7 @@ module Knockapi
|
|
|
28
31
|
) -> void
|
|
29
32
|
|
|
30
33
|
def to_hash: -> {
|
|
34
|
+
message_id: String,
|
|
31
35
|
after: String,
|
|
32
36
|
before: String,
|
|
33
37
|
page_size: Integer,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_list_events_params =
|
|
4
|
-
{ after: String, before: String, page_size: Integer }
|
|
4
|
+
{ message_id: String, after: String, before: String, page_size: Integer }
|
|
5
5
|
& Knockapi::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class MessageListEventsParams < Knockapi::Internal::Type::BaseModel
|
|
8
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor message_id: String
|
|
12
|
+
|
|
11
13
|
attr_reader after: String?
|
|
12
14
|
|
|
13
15
|
def after=: (String) -> String
|
|
@@ -21,6 +23,7 @@ module Knockapi
|
|
|
21
23
|
def page_size=: (Integer) -> Integer
|
|
22
24
|
|
|
23
25
|
def initialize: (
|
|
26
|
+
message_id: String,
|
|
24
27
|
?after: String,
|
|
25
28
|
?before: String,
|
|
26
29
|
?page_size: Integer,
|
|
@@ -28,6 +31,7 @@ module Knockapi
|
|
|
28
31
|
) -> void
|
|
29
32
|
|
|
30
33
|
def to_hash: -> {
|
|
34
|
+
message_id: String,
|
|
31
35
|
after: String,
|
|
32
36
|
before: String,
|
|
33
37
|
page_size: Integer,
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_mark_as_interacted_params =
|
|
4
|
-
{ metadata: ::Hash[Symbol, top] }
|
|
4
|
+
{ message_id: String, metadata: ::Hash[Symbol, top] }
|
|
5
5
|
& Knockapi::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class MessageMarkAsInteractedParams < Knockapi::Internal::Type::BaseModel
|
|
8
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor message_id: String
|
|
12
|
+
|
|
11
13
|
attr_reader metadata: ::Hash[Symbol, top]?
|
|
12
14
|
|
|
13
15
|
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
14
16
|
|
|
15
17
|
def initialize: (
|
|
18
|
+
message_id: String,
|
|
16
19
|
?metadata: ::Hash[Symbol, top],
|
|
17
20
|
?request_options: Knockapi::request_opts
|
|
18
21
|
) -> void
|
|
19
22
|
|
|
20
23
|
def to_hash: -> {
|
|
24
|
+
message_id: String,
|
|
21
25
|
metadata: ::Hash[Symbol, top],
|
|
22
26
|
request_options: Knockapi::RequestOptions
|
|
23
27
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_mark_as_read_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageMarkAsReadParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_mark_as_seen_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageMarkAsSeenParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_mark_as_unread_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageMarkAsUnreadParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_mark_as_unseen_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageMarkAsUnseenParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
3
|
type message_unarchive_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Knockapi::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageUnarchiveParams < Knockapi::Internal::Type::BaseModel
|
|
7
7
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Knockapi::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Knockapi::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Knockapi::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,8 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type object_add_subscriptions_params =
|
|
4
4
|
{
|
|
5
|
+
collection: String,
|
|
6
|
+
object_id_: String,
|
|
5
7
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
|
6
8
|
properties: ::Hash[Symbol, top]?
|
|
7
9
|
}
|
|
@@ -11,17 +13,25 @@ module Knockapi
|
|
|
11
13
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
12
14
|
include Knockapi::Internal::Type::RequestParameters
|
|
13
15
|
|
|
16
|
+
attr_accessor collection: String
|
|
17
|
+
|
|
18
|
+
attr_accessor object_id_: String
|
|
19
|
+
|
|
14
20
|
attr_accessor recipients: ::Array[Knockapi::Models::recipient_request]
|
|
15
21
|
|
|
16
22
|
attr_accessor properties: ::Hash[Symbol, top]?
|
|
17
23
|
|
|
18
24
|
def initialize: (
|
|
25
|
+
collection: String,
|
|
26
|
+
object_id_: String,
|
|
19
27
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
|
20
28
|
?properties: ::Hash[Symbol, top]?,
|
|
21
29
|
?request_options: Knockapi::request_opts
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
24
32
|
def to_hash: -> {
|
|
33
|
+
collection: String,
|
|
34
|
+
object_id_: String,
|
|
25
35
|
recipients: ::Array[Knockapi::Models::recipient_request],
|
|
26
36
|
properties: ::Hash[Symbol, top]?,
|
|
27
37
|
request_options: Knockapi::RequestOptions
|