knockapi 1.8.0 → 1.9.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 +27 -0
- data/README.md +1 -1
- data/lib/knockapi/errors.rb +22 -0
- data/lib/knockapi/internal/type/array_of.rb +6 -1
- data/lib/knockapi/internal/type/base_model.rb +77 -25
- data/lib/knockapi/internal/type/boolean.rb +7 -1
- data/lib/knockapi/internal/type/converter.rb +42 -34
- data/lib/knockapi/internal/type/enum.rb +10 -2
- data/lib/knockapi/internal/type/file_input.rb +6 -1
- data/lib/knockapi/internal/type/hash_of.rb +6 -1
- data/lib/knockapi/internal/type/union.rb +12 -7
- data/lib/knockapi/internal/type/unknown.rb +7 -1
- data/lib/knockapi/models/audience_add_members_params.rb +2 -2
- data/lib/knockapi/models/audience_member.rb +2 -2
- data/lib/knockapi/models/audience_remove_members_params.rb +2 -2
- data/lib/knockapi/models/identify_user_request.rb +2 -2
- data/lib/knockapi/models/inline_identify_user_request.rb +4 -4
- data/lib/knockapi/models/message.rb +9 -1
- data/lib/knockapi/models/message_get_content_response.rb +2 -2
- data/lib/knockapi/models/message_list_activities_params.rb +2 -2
- data/lib/knockapi/models/message_list_delivery_logs_params.rb +2 -2
- data/lib/knockapi/models/message_list_events_params.rb +2 -2
- data/lib/knockapi/models/message_list_params.rb +2 -2
- data/lib/knockapi/models/messages/batch_get_content_response.rb +2 -2
- data/lib/knockapi/models/object_list_messages_params.rb +2 -2
- data/lib/knockapi/models/object_list_params.rb +2 -2
- data/lib/knockapi/models/object_list_schedules_params.rb +2 -2
- data/lib/knockapi/models/object_list_subscriptions_params.rb +2 -2
- data/lib/knockapi/models/page_info.rb +2 -2
- data/lib/knockapi/models/recipients/channel_data.rb +3 -3
- data/lib/knockapi/models/recipients/channel_data_request.rb +3 -3
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +3 -3
- data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +1 -1
- data/lib/knockapi/models/recipients/push_channel_data.rb +1 -1
- data/lib/knockapi/models/recipients/slack_channel_data.rb +1 -1
- data/lib/knockapi/models/schedule_list_params.rb +2 -2
- data/lib/knockapi/models/tenant_list_params.rb +2 -2
- data/lib/knockapi/models/user.rb +4 -4
- data/lib/knockapi/models/user_list_messages_params.rb +2 -2
- data/lib/knockapi/models/user_list_params.rb +2 -2
- data/lib/knockapi/models/user_list_schedules_params.rb +2 -2
- data/lib/knockapi/models/user_list_subscriptions_params.rb +2 -2
- data/lib/knockapi/models/users/feed_list_items_params.rb +4 -4
- data/lib/knockapi/resources/messages.rb +4 -4
- data/lib/knockapi/resources/objects.rb +4 -4
- data/lib/knockapi/resources/schedules.rb +1 -1
- data/lib/knockapi/resources/tenants.rb +1 -1
- data/lib/knockapi/resources/users/feeds.rb +18 -6
- data/lib/knockapi/resources/users/guides.rb +4 -4
- data/lib/knockapi/resources/users.rb +15 -15
- data/lib/knockapi/version.rb +1 -1
- data/rbi/knockapi/errors.rbi +16 -0
- data/rbi/knockapi/internal/type/boolean.rbi +2 -0
- data/rbi/knockapi/internal/type/converter.rbi +15 -15
- data/rbi/knockapi/internal/type/union.rbi +5 -0
- data/rbi/knockapi/internal/type/unknown.rbi +2 -0
- data/rbi/knockapi/models/audience_add_members_params.rbi +2 -2
- data/rbi/knockapi/models/audience_member.rbi +2 -2
- data/rbi/knockapi/models/audience_remove_members_params.rbi +2 -2
- data/rbi/knockapi/models/identify_user_request.rbi +2 -2
- data/rbi/knockapi/models/inline_identify_user_request.rbi +4 -4
- data/rbi/knockapi/models/message.rbi +11 -3
- data/rbi/knockapi/models/message_get_content_response.rbi +1 -1
- data/rbi/knockapi/models/message_list_activities_params.rbi +2 -2
- data/rbi/knockapi/models/message_list_delivery_logs_params.rbi +2 -2
- data/rbi/knockapi/models/message_list_events_params.rbi +2 -2
- data/rbi/knockapi/models/message_list_params.rbi +2 -2
- data/rbi/knockapi/models/messages/batch_get_content_response.rbi +1 -1
- data/rbi/knockapi/models/object_list_messages_params.rbi +2 -2
- data/rbi/knockapi/models/object_list_params.rbi +2 -2
- data/rbi/knockapi/models/object_list_schedules_params.rbi +2 -2
- data/rbi/knockapi/models/object_list_subscriptions_params.rbi +2 -2
- data/rbi/knockapi/models/page_info.rbi +2 -2
- data/rbi/knockapi/models/recipients/ms_teams_channel_data.rbi +1 -1
- data/rbi/knockapi/models/recipients/push_channel_data.rbi +1 -1
- data/rbi/knockapi/models/recipients/slack_channel_data.rbi +1 -1
- data/rbi/knockapi/models/schedule_list_params.rbi +2 -2
- data/rbi/knockapi/models/tenant_list_params.rbi +2 -2
- data/rbi/knockapi/models/user.rbi +4 -4
- data/rbi/knockapi/models/user_list_messages_params.rbi +2 -2
- data/rbi/knockapi/models/user_list_params.rbi +2 -2
- data/rbi/knockapi/models/user_list_schedules_params.rbi +2 -2
- data/rbi/knockapi/models/user_list_subscriptions_params.rbi +2 -2
- data/rbi/knockapi/models/users/feed_list_items_params.rbi +4 -4
- data/rbi/knockapi/resources/messages.rbi +4 -4
- data/rbi/knockapi/resources/objects.rbi +4 -4
- data/rbi/knockapi/resources/schedules.rbi +1 -1
- data/rbi/knockapi/resources/tenants.rbi +1 -1
- data/rbi/knockapi/resources/users/feeds.rbi +18 -6
- data/rbi/knockapi/resources/users/guides.rbi +4 -4
- data/rbi/knockapi/resources/users.rbi +15 -15
- data/sig/knockapi/errors.rbs +9 -0
- data/sig/knockapi/internal/type/converter.rbs +7 -1
- data/sig/knockapi/models/message.rbs +8 -3
- metadata +2 -2
@@ -44,7 +44,7 @@ module Knockapi
|
|
44
44
|
# @see Knockapi::Models::AudienceRemoveMembersParams::Member#user
|
45
45
|
class User < Knockapi::Internal::Type::BaseModel
|
46
46
|
# @!attribute id
|
47
|
-
# The
|
47
|
+
# The unique identifier of the user.
|
48
48
|
#
|
49
49
|
# @return [String, nil]
|
50
50
|
optional :id, String
|
@@ -52,7 +52,7 @@ module Knockapi
|
|
52
52
|
# @!method initialize(id: nil)
|
53
53
|
# An object containing the user's ID.
|
54
54
|
#
|
55
|
-
# @param id [String] The
|
55
|
+
# @param id [String] The unique identifier of the user.
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -4,7 +4,7 @@ module Knockapi
|
|
4
4
|
module Models
|
5
5
|
class IdentifyUserRequest < Knockapi::Internal::Type::BaseModel
|
6
6
|
# @!attribute avatar
|
7
|
-
# URL
|
7
|
+
# A URL for the avatar of the user.
|
8
8
|
#
|
9
9
|
# @return [String, nil]
|
10
10
|
optional :avatar, String, nil?: true
|
@@ -77,7 +77,7 @@ module Knockapi
|
|
77
77
|
# that's specified elsewhere in the request. You can supply any additional
|
78
78
|
# properties you'd like to upsert for the user.
|
79
79
|
#
|
80
|
-
# @param avatar [String, nil] URL
|
80
|
+
# @param avatar [String, nil] A URL for the avatar of the user.
|
81
81
|
#
|
82
82
|
# @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.
|
83
83
|
#
|
@@ -4,13 +4,13 @@ module Knockapi
|
|
4
4
|
module Models
|
5
5
|
class InlineIdentifyUserRequest < Knockapi::Internal::Type::BaseModel
|
6
6
|
# @!attribute id
|
7
|
-
# The
|
7
|
+
# The unique identifier of the user.
|
8
8
|
#
|
9
9
|
# @return [String]
|
10
10
|
required :id, String
|
11
11
|
|
12
12
|
# @!attribute avatar
|
13
|
-
# URL
|
13
|
+
# A URL for the avatar of the user.
|
14
14
|
#
|
15
15
|
# @return [String, nil]
|
16
16
|
optional :avatar, String, nil?: true
|
@@ -84,9 +84,9 @@ module Knockapi
|
|
84
84
|
# It will perform an upsert for the user you're supplying, replacing any
|
85
85
|
# properties specified.
|
86
86
|
#
|
87
|
-
# @param id [String] The
|
87
|
+
# @param id [String] The unique identifier of the user.
|
88
88
|
#
|
89
|
-
# @param avatar [String, nil] URL
|
89
|
+
# @param avatar [String, nil] A URL for the avatar of the user.
|
90
90
|
#
|
91
91
|
# @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.
|
92
92
|
#
|
@@ -230,7 +230,13 @@ module Knockapi
|
|
230
230
|
# @return [String]
|
231
231
|
required :version_id, String
|
232
232
|
|
233
|
-
# @!
|
233
|
+
# @!attribute step_ref
|
234
|
+
# The step reference for the step in the workflow that generated the message
|
235
|
+
#
|
236
|
+
# @return [String, nil]
|
237
|
+
optional :step_ref, String, nil?: true
|
238
|
+
|
239
|
+
# @!method initialize(_typename:, categories:, key:, version_id:, step_ref: nil)
|
234
240
|
# The workflow that triggered the message.
|
235
241
|
#
|
236
242
|
# @param _typename [String]
|
@@ -240,6 +246,8 @@ module Knockapi
|
|
240
246
|
# @param key [String] The key of the workflow that triggered the message.
|
241
247
|
#
|
242
248
|
# @param version_id [String] The ID of the version of the workflow that triggered the message.
|
249
|
+
#
|
250
|
+
# @param step_ref [String, nil] The step reference for the step in the workflow that generated the message
|
243
251
|
end
|
244
252
|
|
245
253
|
# The message delivery status.
|
@@ -51,7 +51,7 @@ module Knockapi
|
|
51
51
|
# The content of an SMS message.
|
52
52
|
variant -> { Knockapi::Models::MessageGetContentResponse::Data::MessageSMSContent }
|
53
53
|
|
54
|
-
#
|
54
|
+
# Push channel data.
|
55
55
|
variant -> { Knockapi::Models::MessageGetContentResponse::Data::MessagePushContent }
|
56
56
|
|
57
57
|
# The content of a chat message.
|
@@ -198,7 +198,7 @@ module Knockapi
|
|
198
198
|
optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
|
199
199
|
|
200
200
|
# @!method initialize(token:, _typename:, body:, title:, data: nil)
|
201
|
-
#
|
201
|
+
# Push channel data.
|
202
202
|
#
|
203
203
|
# @param token [String] The device token to send the push notification to.
|
204
204
|
#
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :before, String
|
21
21
|
|
22
22
|
# @!attribute page_size
|
23
|
-
# The number of items per page.
|
23
|
+
# The number of items per page (defaults to 50).
|
24
24
|
#
|
25
25
|
# @return [Integer, nil]
|
26
26
|
optional :page_size, Integer
|
@@ -36,7 +36,7 @@ module Knockapi
|
|
36
36
|
#
|
37
37
|
# @param before [String] The cursor to fetch entries before.
|
38
38
|
#
|
39
|
-
# @param page_size [Integer] The number of items per page.
|
39
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
40
40
|
#
|
41
41
|
# @param trigger_data [String] The trigger data to filter activities by.
|
42
42
|
#
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :before, String
|
21
21
|
|
22
22
|
# @!attribute page_size
|
23
|
-
# The number of items per page.
|
23
|
+
# The number of items per page (defaults to 50).
|
24
24
|
#
|
25
25
|
# @return [Integer, nil]
|
26
26
|
optional :page_size, Integer
|
@@ -30,7 +30,7 @@ module Knockapi
|
|
30
30
|
#
|
31
31
|
# @param before [String] The cursor to fetch entries before.
|
32
32
|
#
|
33
|
-
# @param page_size [Integer] The number of items per page.
|
33
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
34
34
|
#
|
35
35
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
|
36
36
|
end
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :before, String
|
21
21
|
|
22
22
|
# @!attribute page_size
|
23
|
-
# The number of items per page.
|
23
|
+
# The number of items per page (defaults to 50).
|
24
24
|
#
|
25
25
|
# @return [Integer, nil]
|
26
26
|
optional :page_size, Integer
|
@@ -30,7 +30,7 @@ module Knockapi
|
|
30
30
|
#
|
31
31
|
# @param before [String] The cursor to fetch entries before.
|
32
32
|
#
|
33
|
-
# @param page_size [Integer] The number of items per page.
|
33
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
34
34
|
#
|
35
35
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
|
36
36
|
end
|
@@ -45,7 +45,7 @@ module Knockapi
|
|
45
45
|
optional :message_ids, Knockapi::Internal::Type::ArrayOf[String]
|
46
46
|
|
47
47
|
# @!attribute page_size
|
48
|
-
# The number of items per page.
|
48
|
+
# The number of items per page (defaults to 50).
|
49
49
|
#
|
50
50
|
# @return [Integer, nil]
|
51
51
|
optional :page_size, Integer
|
@@ -111,7 +111,7 @@ module Knockapi
|
|
111
111
|
#
|
112
112
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
113
113
|
#
|
114
|
-
# @param page_size [Integer] The number of items per page.
|
114
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
115
115
|
#
|
116
116
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
117
117
|
#
|
@@ -51,7 +51,7 @@ module Knockapi
|
|
51
51
|
# The content of an SMS message.
|
52
52
|
variant -> { Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageSMSContent }
|
53
53
|
|
54
|
-
#
|
54
|
+
# Push channel data.
|
55
55
|
variant -> { Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessagePushContent }
|
56
56
|
|
57
57
|
# The content of a chat message.
|
@@ -198,7 +198,7 @@ module Knockapi
|
|
198
198
|
optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
|
199
199
|
|
200
200
|
# @!method initialize(token:, _typename:, body:, title:, data: nil)
|
201
|
-
#
|
201
|
+
# Push channel data.
|
202
202
|
#
|
203
203
|
# @param token [String] The device token to send the push notification to.
|
204
204
|
#
|
@@ -47,7 +47,7 @@ module Knockapi
|
|
47
47
|
optional :message_ids, Knockapi::Internal::Type::ArrayOf[String]
|
48
48
|
|
49
49
|
# @!attribute page_size
|
50
|
-
# The number of items per page.
|
50
|
+
# The number of items per page (defaults to 50).
|
51
51
|
#
|
52
52
|
# @return [Integer, nil]
|
53
53
|
optional :page_size, Integer
|
@@ -114,7 +114,7 @@ module Knockapi
|
|
114
114
|
#
|
115
115
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
116
116
|
#
|
117
|
-
# @param page_size [Integer] The number of items per page.
|
117
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
118
118
|
#
|
119
119
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
120
120
|
#
|
@@ -26,7 +26,7 @@ module Knockapi
|
|
26
26
|
optional :include, -> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::ObjectListParams::Include] }
|
27
27
|
|
28
28
|
# @!attribute page_size
|
29
|
-
# The number of items per page.
|
29
|
+
# The number of items per page (defaults to 50).
|
30
30
|
#
|
31
31
|
# @return [Integer, nil]
|
32
32
|
optional :page_size, Integer
|
@@ -38,7 +38,7 @@ module Knockapi
|
|
38
38
|
#
|
39
39
|
# @param include [Array<Symbol, Knockapi::Models::ObjectListParams::Include>] Includes preferences of the objects in the response.
|
40
40
|
#
|
41
|
-
# @param page_size [Integer] The number of items per page.
|
41
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
42
42
|
#
|
43
43
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
|
44
44
|
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :before, String
|
21
21
|
|
22
22
|
# @!attribute page_size
|
23
|
-
# The number of items per page.
|
23
|
+
# The number of items per page (defaults to 50).
|
24
24
|
#
|
25
25
|
# @return [Integer, nil]
|
26
26
|
optional :page_size, Integer
|
@@ -42,7 +42,7 @@ module Knockapi
|
|
42
42
|
#
|
43
43
|
# @param before [String] The cursor to fetch entries before.
|
44
44
|
#
|
45
|
-
# @param page_size [Integer] The number of items per page.
|
45
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
46
46
|
#
|
47
47
|
# @param tenant [String] Filter schedules by tenant id.
|
48
48
|
#
|
@@ -44,7 +44,7 @@ module Knockapi
|
|
44
44
|
-> { Knockapi::Internal::Type::ArrayOf[Knockapi::ObjectListSubscriptionsParams::Object] }
|
45
45
|
|
46
46
|
# @!attribute page_size
|
47
|
-
# The number of items per page.
|
47
|
+
# The number of items per page (defaults to 50).
|
48
48
|
#
|
49
49
|
# @return [Integer, nil]
|
50
50
|
optional :page_size, Integer
|
@@ -69,7 +69,7 @@ module Knockapi
|
|
69
69
|
#
|
70
70
|
# @param objects [Array<Knockapi::Models::ObjectListSubscriptionsParams::Object>] Objects to filter by (only used if mode is `recipient`).
|
71
71
|
#
|
72
|
-
# @param page_size [Integer] The number of items per page.
|
72
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
73
73
|
#
|
74
74
|
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Recipients to filter by (only used if mode is `object`).
|
75
75
|
#
|
@@ -10,7 +10,7 @@ module Knockapi
|
|
10
10
|
required :_typename, String, api_name: :__typename
|
11
11
|
|
12
12
|
# @!attribute page_size
|
13
|
-
# The number of items per page.
|
13
|
+
# The number of items per page (defaults to 50).
|
14
14
|
#
|
15
15
|
# @return [Integer]
|
16
16
|
required :page_size, Integer
|
@@ -32,7 +32,7 @@ module Knockapi
|
|
32
32
|
#
|
33
33
|
# @param _typename [String] The typename of the schema.
|
34
34
|
#
|
35
|
-
# @param page_size [Integer] The number of items per page.
|
35
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
36
36
|
#
|
37
37
|
# @param after [String, nil] The cursor to fetch entries after.
|
38
38
|
#
|
@@ -45,13 +45,13 @@ module Knockapi
|
|
45
45
|
module Data
|
46
46
|
extend Knockapi::Internal::Type::Union
|
47
47
|
|
48
|
-
#
|
48
|
+
# Push channel data.
|
49
49
|
variant -> { Knockapi::Recipients::PushChannelData }
|
50
50
|
|
51
|
-
# Slack channel data
|
51
|
+
# Slack channel data.
|
52
52
|
variant -> { Knockapi::Recipients::SlackChannelData }
|
53
53
|
|
54
|
-
# Microsoft Teams channel
|
54
|
+
# Microsoft Teams channel data.
|
55
55
|
variant -> { Knockapi::Recipients::MsTeamsChannelData }
|
56
56
|
|
57
57
|
# Discord channel data.
|
@@ -21,16 +21,16 @@ module Knockapi
|
|
21
21
|
module Data
|
22
22
|
extend Knockapi::Internal::Type::Union
|
23
23
|
|
24
|
-
#
|
24
|
+
# Push channel data.
|
25
25
|
variant -> { Knockapi::Recipients::PushChannelData }
|
26
26
|
|
27
27
|
# OneSignal channel data.
|
28
28
|
variant -> { Knockapi::Recipients::OneSignalChannelData }
|
29
29
|
|
30
|
-
# Slack channel data
|
30
|
+
# Slack channel data.
|
31
31
|
variant -> { Knockapi::Recipients::SlackChannelData }
|
32
32
|
|
33
|
-
# Microsoft Teams channel
|
33
|
+
# Microsoft Teams channel data.
|
34
34
|
variant -> { Knockapi::Recipients::MsTeamsChannelData }
|
35
35
|
|
36
36
|
# Discord channel data.
|
@@ -7,16 +7,16 @@ module Knockapi
|
|
7
7
|
module InlineChannelDataRequestItem
|
8
8
|
extend Knockapi::Internal::Type::Union
|
9
9
|
|
10
|
-
#
|
10
|
+
# Push channel data.
|
11
11
|
variant -> { Knockapi::Recipients::PushChannelData }
|
12
12
|
|
13
13
|
# OneSignal channel data.
|
14
14
|
variant -> { Knockapi::Recipients::OneSignalChannelData }
|
15
15
|
|
16
|
-
# Slack channel data
|
16
|
+
# Slack channel data.
|
17
17
|
variant -> { Knockapi::Recipients::SlackChannelData }
|
18
18
|
|
19
|
-
# Microsoft Teams channel
|
19
|
+
# Microsoft Teams channel data.
|
20
20
|
variant -> { Knockapi::Recipients::MsTeamsChannelData }
|
21
21
|
|
22
22
|
# Discord channel data.
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :ms_teams_tenant_id, String, nil?: true
|
21
21
|
|
22
22
|
# @!method initialize(connections:, ms_teams_tenant_id: nil)
|
23
|
-
# Microsoft Teams channel
|
23
|
+
# Microsoft Teams channel data.
|
24
24
|
#
|
25
25
|
# @param connections [Array<Knockapi::Models::Recipients::MsTeamsChannelData::Connection::MsTeamsTokenConnection, Knockapi::Models::Recipients::MsTeamsChannelData::Connection::MsTeamsIncomingWebhookConnection>] List of Microsoft Teams connections.
|
26
26
|
#
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :token, -> { Knockapi::Recipients::SlackChannelData::Token }, nil?: true
|
21
21
|
|
22
22
|
# @!method initialize(connections:, token: nil)
|
23
|
-
# Slack channel data
|
23
|
+
# Slack channel data.
|
24
24
|
#
|
25
25
|
# @param connections [Array<Knockapi::Models::Recipients::SlackChannelData::Connection::SlackTokenConnection, Knockapi::Models::Recipients::SlackChannelData::Connection::SlackIncomingWebhookConnection>] List of Slack channel connections.
|
26
26
|
#
|
@@ -26,7 +26,7 @@ module Knockapi
|
|
26
26
|
optional :before, String
|
27
27
|
|
28
28
|
# @!attribute page_size
|
29
|
-
# The number of items per page.
|
29
|
+
# The number of items per page (defaults to 50).
|
30
30
|
#
|
31
31
|
# @return [Integer, nil]
|
32
32
|
optional :page_size, Integer
|
@@ -50,7 +50,7 @@ module Knockapi
|
|
50
50
|
#
|
51
51
|
# @param before [String] The cursor to fetch entries before.
|
52
52
|
#
|
53
|
-
# @param page_size [Integer] The number of items per page.
|
53
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
54
54
|
#
|
55
55
|
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Filter by recipient references.
|
56
56
|
#
|
@@ -26,7 +26,7 @@ module Knockapi
|
|
26
26
|
optional :name, String
|
27
27
|
|
28
28
|
# @!attribute page_size
|
29
|
-
# The number of items per page.
|
29
|
+
# The number of items per page (defaults to 50).
|
30
30
|
#
|
31
31
|
# @return [Integer, nil]
|
32
32
|
optional :page_size, Integer
|
@@ -44,7 +44,7 @@ module Knockapi
|
|
44
44
|
#
|
45
45
|
# @param name [String] Filter tenants by name.
|
46
46
|
#
|
47
|
-
# @param page_size [Integer] The number of items per page.
|
47
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
48
48
|
#
|
49
49
|
# @param tenant_id [String] Filter tenants by ID.
|
50
50
|
#
|
data/lib/knockapi/models/user.rb
CHANGED
@@ -5,7 +5,7 @@ module Knockapi
|
|
5
5
|
# @see Knockapi::Resources::Users#update
|
6
6
|
class User < Knockapi::Internal::Type::BaseModel
|
7
7
|
# @!attribute id
|
8
|
-
# The
|
8
|
+
# The unique identifier of the user.
|
9
9
|
#
|
10
10
|
# @return [String]
|
11
11
|
required :id, String
|
@@ -23,7 +23,7 @@ module Knockapi
|
|
23
23
|
required :updated_at, Time
|
24
24
|
|
25
25
|
# @!attribute avatar
|
26
|
-
# URL
|
26
|
+
# A URL for the avatar of the user.
|
27
27
|
#
|
28
28
|
# @return [String, nil]
|
29
29
|
optional :avatar, String, nil?: true
|
@@ -70,13 +70,13 @@ module Knockapi
|
|
70
70
|
# receive notifications through Knock. Users are the most common recipients of
|
71
71
|
# notifications and are always referenced by your internal identifier.
|
72
72
|
#
|
73
|
-
# @param id [String] The
|
73
|
+
# @param id [String] The unique identifier of the user.
|
74
74
|
#
|
75
75
|
# @param _typename [String] The typename of the schema.
|
76
76
|
#
|
77
77
|
# @param updated_at [Time] The timestamp when the resource was last updated.
|
78
78
|
#
|
79
|
-
# @param avatar [String, nil] URL
|
79
|
+
# @param avatar [String, nil] A URL for the avatar of the user.
|
80
80
|
#
|
81
81
|
# @param created_at [Time, nil] The creation date of the user from your system.
|
82
82
|
#
|
@@ -47,7 +47,7 @@ module Knockapi
|
|
47
47
|
optional :message_ids, Knockapi::Internal::Type::ArrayOf[String]
|
48
48
|
|
49
49
|
# @!attribute page_size
|
50
|
-
# The number of items per page.
|
50
|
+
# The number of items per page (defaults to 50).
|
51
51
|
#
|
52
52
|
# @return [Integer, nil]
|
53
53
|
optional :page_size, Integer
|
@@ -116,7 +116,7 @@ module Knockapi
|
|
116
116
|
#
|
117
117
|
# @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
|
118
118
|
#
|
119
|
-
# @param page_size [Integer] The number of items per page.
|
119
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
120
120
|
#
|
121
121
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
122
122
|
#
|
@@ -26,7 +26,7 @@ module Knockapi
|
|
26
26
|
optional :include, -> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::UserListParams::Include] }
|
27
27
|
|
28
28
|
# @!attribute page_size
|
29
|
-
# The number of items per page.
|
29
|
+
# The number of items per page (defaults to 50).
|
30
30
|
#
|
31
31
|
# @return [Integer, nil]
|
32
32
|
optional :page_size, Integer
|
@@ -38,7 +38,7 @@ module Knockapi
|
|
38
38
|
#
|
39
39
|
# @param include [Array<Symbol, Knockapi::Models::UserListParams::Include>] Associated resources to include in the response.
|
40
40
|
#
|
41
|
-
# @param page_size [Integer] The number of items per page.
|
41
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
42
42
|
#
|
43
43
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
|
44
44
|
|
@@ -20,7 +20,7 @@ module Knockapi
|
|
20
20
|
optional :before, String
|
21
21
|
|
22
22
|
# @!attribute page_size
|
23
|
-
# The number of items per page.
|
23
|
+
# The number of items per page (defaults to 50).
|
24
24
|
#
|
25
25
|
# @return [Integer, nil]
|
26
26
|
optional :page_size, Integer
|
@@ -42,7 +42,7 @@ module Knockapi
|
|
42
42
|
#
|
43
43
|
# @param before [String] The cursor to fetch entries before.
|
44
44
|
#
|
45
|
-
# @param page_size [Integer] The number of items per page.
|
45
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
46
46
|
#
|
47
47
|
# @param tenant [String] The tenant ID to filter schedules for.
|
48
48
|
#
|
@@ -33,7 +33,7 @@ module Knockapi
|
|
33
33
|
optional :objects, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientReference] }
|
34
34
|
|
35
35
|
# @!attribute page_size
|
36
|
-
# The number of items per page.
|
36
|
+
# The number of items per page (defaults to 50).
|
37
37
|
#
|
38
38
|
# @return [Integer, nil]
|
39
39
|
optional :page_size, Integer
|
@@ -47,7 +47,7 @@ module Knockapi
|
|
47
47
|
#
|
48
48
|
# @param objects [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Only returns subscriptions for the specified object references.
|
49
49
|
#
|
50
|
-
# @param page_size [Integer] The number of items per page.
|
50
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
51
51
|
#
|
52
52
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
|
53
53
|
|
@@ -33,13 +33,13 @@ module Knockapi
|
|
33
33
|
optional :has_tenant, Knockapi::Internal::Type::Boolean
|
34
34
|
|
35
35
|
# @!attribute page_size
|
36
|
-
# The number of items per page.
|
36
|
+
# The number of items per page (defaults to 50).
|
37
37
|
#
|
38
38
|
# @return [Integer, nil]
|
39
39
|
optional :page_size, Integer
|
40
40
|
|
41
41
|
# @!attribute source
|
42
|
-
# The
|
42
|
+
# The workflow key associated with the message in the feed.
|
43
43
|
#
|
44
44
|
# @return [String, nil]
|
45
45
|
optional :source, String
|
@@ -77,9 +77,9 @@ module Knockapi
|
|
77
77
|
#
|
78
78
|
# @param has_tenant [Boolean] Whether the feed items have a tenant.
|
79
79
|
#
|
80
|
-
# @param page_size [Integer] The number of items per page.
|
80
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
81
81
|
#
|
82
|
-
# @param source [String] The
|
82
|
+
# @param source [String] The workflow key associated with the message in the feed.
|
83
83
|
#
|
84
84
|
# @param status [Symbol, Knockapi::Models::Users::FeedListItemsParams::Status] The status of the feed items.
|
85
85
|
#
|
@@ -25,7 +25,7 @@ module Knockapi
|
|
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
|
#
|
28
|
-
# @param page_size [Integer] The number of items per page.
|
28
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
29
29
|
#
|
30
30
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
31
31
|
#
|
@@ -130,7 +130,7 @@ module Knockapi
|
|
130
130
|
#
|
131
131
|
# @param before [String] The cursor to fetch entries before.
|
132
132
|
#
|
133
|
-
# @param page_size [Integer] The number of items per page.
|
133
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
134
134
|
#
|
135
135
|
# @param trigger_data [String] The trigger data to filter activities by.
|
136
136
|
#
|
@@ -161,7 +161,7 @@ module Knockapi
|
|
161
161
|
#
|
162
162
|
# @param before [String] The cursor to fetch entries before.
|
163
163
|
#
|
164
|
-
# @param page_size [Integer] The number of items per page.
|
164
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
165
165
|
#
|
166
166
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
167
167
|
#
|
@@ -190,7 +190,7 @@ module Knockapi
|
|
190
190
|
#
|
191
191
|
# @param before [String] The cursor to fetch entries before.
|
192
192
|
#
|
193
|
-
# @param page_size [Integer] The number of items per page.
|
193
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
194
194
|
#
|
195
195
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
196
196
|
#
|
@@ -19,7 +19,7 @@ module Knockapi
|
|
19
19
|
#
|
20
20
|
# @param include [Array<Symbol, Knockapi::Models::ObjectListParams::Include>] Includes preferences of the objects in the response.
|
21
21
|
#
|
22
|
-
# @param page_size [Integer] The number of items per page.
|
22
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
23
23
|
#
|
24
24
|
# @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
|
25
25
|
#
|
@@ -221,7 +221,7 @@ module Knockapi
|
|
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
|
#
|
224
|
-
# @param page_size [Integer] The number of items per page.
|
224
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
225
225
|
#
|
226
226
|
# @param source [String] Limits the results to messages triggered by the given workflow key.
|
227
227
|
#
|
@@ -288,7 +288,7 @@ module Knockapi
|
|
288
288
|
#
|
289
289
|
# @param before [String] The cursor to fetch entries before.
|
290
290
|
#
|
291
|
-
# @param page_size [Integer] The number of items per page.
|
291
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
292
292
|
#
|
293
293
|
# @param tenant [String] Filter schedules by tenant id.
|
294
294
|
#
|
@@ -334,7 +334,7 @@ module Knockapi
|
|
334
334
|
#
|
335
335
|
# @param objects [Array<Knockapi::Models::ObjectListSubscriptionsParams::Object>] Objects to filter by (only used if mode is `recipient`).
|
336
336
|
#
|
337
|
-
# @param page_size [Integer] The number of items per page.
|
337
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
338
338
|
#
|
339
339
|
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Recipients to filter by (only used if mode is `object`).
|
340
340
|
#
|
@@ -101,7 +101,7 @@ module Knockapi
|
|
101
101
|
#
|
102
102
|
# @param before [String] The cursor to fetch entries before.
|
103
103
|
#
|
104
|
-
# @param page_size [Integer] The number of items per page.
|
104
|
+
# @param page_size [Integer] The number of items per page (defaults to 50).
|
105
105
|
#
|
106
106
|
# @param recipients [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Filter by recipient references.
|
107
107
|
#
|