knockapi 1.8.1 → 1.10.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/knockapi/internal/transport/base_client.rb +10 -2
  5. data/lib/knockapi/models/audience_add_members_params.rb +2 -2
  6. data/lib/knockapi/models/audience_member.rb +2 -2
  7. data/lib/knockapi/models/audience_remove_members_params.rb +2 -2
  8. data/lib/knockapi/models/identify_user_request.rb +2 -2
  9. data/lib/knockapi/models/inline_identify_user_request.rb +4 -4
  10. data/lib/knockapi/models/message.rb +9 -1
  11. data/lib/knockapi/models/message_get_content_response.rb +2 -2
  12. data/lib/knockapi/models/message_list_activities_params.rb +2 -2
  13. data/lib/knockapi/models/message_list_delivery_logs_params.rb +2 -2
  14. data/lib/knockapi/models/message_list_events_params.rb +2 -2
  15. data/lib/knockapi/models/message_list_params.rb +2 -2
  16. data/lib/knockapi/models/messages/batch_get_content_response.rb +2 -2
  17. data/lib/knockapi/models/object_list_messages_params.rb +2 -2
  18. data/lib/knockapi/models/object_list_params.rb +2 -2
  19. data/lib/knockapi/models/object_list_schedules_params.rb +2 -2
  20. data/lib/knockapi/models/object_list_subscriptions_params.rb +2 -2
  21. data/lib/knockapi/models/page_info.rb +2 -2
  22. data/lib/knockapi/models/providers/slack_list_channels_params.rb +2 -1
  23. data/lib/knockapi/models/recipients/channel_data.rb +3 -3
  24. data/lib/knockapi/models/recipients/channel_data_request.rb +3 -3
  25. data/lib/knockapi/models/recipients/inline_channel_data_request.rb +3 -3
  26. data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +1 -1
  27. data/lib/knockapi/models/recipients/push_channel_data.rb +1 -1
  28. data/lib/knockapi/models/recipients/slack_channel_data.rb +1 -1
  29. data/lib/knockapi/models/schedule.rb +5 -5
  30. data/lib/knockapi/models/schedule_create_params.rb +5 -5
  31. data/lib/knockapi/models/schedule_list_params.rb +2 -2
  32. data/lib/knockapi/models/schedule_update_params.rb +5 -5
  33. data/lib/knockapi/models/schedules/bulk_create_params.rb +5 -5
  34. data/lib/knockapi/models/tenant_list_params.rb +2 -2
  35. data/lib/knockapi/models/user.rb +4 -4
  36. data/lib/knockapi/models/user_list_messages_params.rb +2 -2
  37. data/lib/knockapi/models/user_list_params.rb +2 -2
  38. data/lib/knockapi/models/user_list_schedules_params.rb +2 -2
  39. data/lib/knockapi/models/user_list_subscriptions_params.rb +2 -2
  40. data/lib/knockapi/models/users/feed_list_items_params.rb +4 -4
  41. data/lib/knockapi/models/workflow_trigger_params.rb +5 -5
  42. data/lib/knockapi/resources/messages.rb +4 -4
  43. data/lib/knockapi/resources/objects.rb +4 -4
  44. data/lib/knockapi/resources/schedules.rb +3 -3
  45. data/lib/knockapi/resources/tenants.rb +1 -1
  46. data/lib/knockapi/resources/users/feeds.rb +18 -6
  47. data/lib/knockapi/resources/users/guides.rb +4 -4
  48. data/lib/knockapi/resources/users.rb +15 -15
  49. data/lib/knockapi/resources/workflows.rb +1 -1
  50. data/lib/knockapi/version.rb +1 -1
  51. data/rbi/knockapi/models/audience_add_members_params.rbi +2 -2
  52. data/rbi/knockapi/models/audience_member.rbi +2 -2
  53. data/rbi/knockapi/models/audience_remove_members_params.rbi +2 -2
  54. data/rbi/knockapi/models/identify_user_request.rbi +2 -2
  55. data/rbi/knockapi/models/inline_identify_user_request.rbi +4 -4
  56. data/rbi/knockapi/models/message.rbi +11 -3
  57. data/rbi/knockapi/models/message_get_content_response.rbi +1 -1
  58. data/rbi/knockapi/models/message_list_activities_params.rbi +2 -2
  59. data/rbi/knockapi/models/message_list_delivery_logs_params.rbi +2 -2
  60. data/rbi/knockapi/models/message_list_events_params.rbi +2 -2
  61. data/rbi/knockapi/models/message_list_params.rbi +2 -2
  62. data/rbi/knockapi/models/messages/batch_get_content_response.rbi +1 -1
  63. data/rbi/knockapi/models/object_list_messages_params.rbi +2 -2
  64. data/rbi/knockapi/models/object_list_params.rbi +2 -2
  65. data/rbi/knockapi/models/object_list_schedules_params.rbi +2 -2
  66. data/rbi/knockapi/models/object_list_subscriptions_params.rbi +2 -2
  67. data/rbi/knockapi/models/page_info.rbi +2 -2
  68. data/rbi/knockapi/models/providers/slack_list_channels_params.rbi +4 -2
  69. data/rbi/knockapi/models/recipients/ms_teams_channel_data.rbi +1 -1
  70. data/rbi/knockapi/models/recipients/push_channel_data.rbi +1 -1
  71. data/rbi/knockapi/models/recipients/slack_channel_data.rbi +1 -1
  72. data/rbi/knockapi/models/schedule.rbi +8 -8
  73. data/rbi/knockapi/models/schedule_create_params.rbi +8 -8
  74. data/rbi/knockapi/models/schedule_list_params.rbi +2 -2
  75. data/rbi/knockapi/models/schedule_update_params.rbi +8 -8
  76. data/rbi/knockapi/models/schedules/bulk_create_params.rbi +8 -8
  77. data/rbi/knockapi/models/tenant_list_params.rbi +2 -2
  78. data/rbi/knockapi/models/user.rbi +4 -4
  79. data/rbi/knockapi/models/user_list_messages_params.rbi +2 -2
  80. data/rbi/knockapi/models/user_list_params.rbi +2 -2
  81. data/rbi/knockapi/models/user_list_schedules_params.rbi +2 -2
  82. data/rbi/knockapi/models/user_list_subscriptions_params.rbi +2 -2
  83. data/rbi/knockapi/models/users/feed_list_items_params.rbi +4 -4
  84. data/rbi/knockapi/models/workflow_trigger_params.rbi +8 -8
  85. data/rbi/knockapi/resources/messages.rbi +4 -4
  86. data/rbi/knockapi/resources/objects.rbi +4 -4
  87. data/rbi/knockapi/resources/schedules.rbi +9 -9
  88. data/rbi/knockapi/resources/tenants.rbi +1 -1
  89. data/rbi/knockapi/resources/users/feeds.rbi +18 -6
  90. data/rbi/knockapi/resources/users/guides.rbi +4 -4
  91. data/rbi/knockapi/resources/users.rbi +15 -15
  92. data/rbi/knockapi/resources/workflows.rbi +4 -4
  93. data/sig/knockapi/models/message.rbs +8 -3
  94. metadata +2 -2
@@ -36,10 +36,10 @@ module Knockapi
36
36
  optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true
37
37
 
38
38
  # @!attribute data
39
- # An optional map of data to pass into the workflow execution. There is a 1024
40
- # byte limit on the size of any single string value (with the exception of
41
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
42
- # size of the full `data` payload.
39
+ # An optional map of data to pass into the workflow execution. There is a 10MB
40
+ # limit on the size of the full `data` payload. Any individual string value
41
+ # greater than 1024 bytes in length will be
42
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
43
43
  #
44
44
  # @return [Hash{Symbol=>Object}, nil]
45
45
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -86,7 +86,7 @@ module Knockapi
86
86
  #
87
87
  # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
88
88
  #
89
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
89
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
90
90
  #
91
91
  # @param ending_at [Time, nil] The ending date and time for the schedule.
92
92
  #
@@ -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
  #
@@ -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 ID for the user that you set when identifying them in Knock.
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 to the user's avatar image.
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 ID for the user that you set when identifying them in Knock.
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 to the user's avatar image.
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 source of the feed items.
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 source of the feed items.
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
  #
@@ -33,10 +33,10 @@ module Knockapi
33
33
  optional :cancellation_key, String, nil?: true
34
34
 
35
35
  # @!attribute data
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.
36
+ # An optional map of data to pass into the workflow execution. There is a 10MB
37
+ # limit on the size of the full `data` payload. Any individual string value
38
+ # greater than 1024 bytes in length will be
39
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
40
40
  #
41
41
  # @return [Hash{Symbol=>Object}, nil]
42
42
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -57,7 +57,7 @@ module Knockapi
57
57
  #
58
58
  # @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
59
59
  #
60
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
60
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
61
61
  #
62
62
  # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
63
63
  #
@@ -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
  #
@@ -23,7 +23,7 @@ module Knockapi
23
23
  #
24
24
  # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
25
25
  #
26
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
26
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
27
27
  #
28
28
  # @param ending_at [Time, nil] The ending date and time for the schedule.
29
29
  #
@@ -64,7 +64,7 @@ module Knockapi
64
64
  #
65
65
  # @param actor [String, Knockapi::Models::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
66
66
  #
67
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
67
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
68
68
  #
69
69
  # @param ending_at [Time, nil] The ending date and time for the schedule.
70
70
  #
@@ -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
  #
@@ -16,7 +16,7 @@ module Knockapi
16
16
  #
17
17
  # @param name [String] Filter tenants by name.
18
18
  #
19
- # @param page_size [Integer] The number of items per page.
19
+ # @param page_size [Integer] The number of items per page (defaults to 50).
20
20
  #
21
21
  # @param tenant_id [String] Filter tenants by ID.
22
22
  #
@@ -8,7 +8,7 @@ module Knockapi
8
8
  #
9
9
  # @overload get_settings(user_id, id, request_options: {})
10
10
  #
11
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
11
+ # @param user_id [String] The unique identifier of the user.
12
12
  #
13
13
  # @param id [String] The unique identifier for the channel.
14
14
  #
@@ -26,12 +26,24 @@ module Knockapi
26
26
  )
27
27
  end
28
28
 
29
- # Returns a paginated list of feed items for a user, including metadata about the
30
- # feed.
29
+ # Returns a paginated list of feed items for a user in reverse chronological
30
+ # order, including metadata about the feed. If the user has not yet been
31
+ # identified within Knock, an empty feed will be returned.
32
+ #
33
+ # You can customize the response using
34
+ # [response filters](/integrations/in-app/knock#customizing-api-response-content)
35
+ # to exclude or only include specific properties on your resources.
36
+ #
37
+ # **Notes:**
38
+ #
39
+ # - When making this call from a client-side environment, use your publishable key
40
+ # along with a user token.
41
+ # - This endpoint’s rate limit is always scoped per-user and per-environment. This
42
+ # is true even for requests made without a signed user token.
31
43
  #
32
44
  # @overload list_items(user_id, id, after: nil, archived: nil, before: nil, has_tenant: nil, page_size: nil, source: nil, status: nil, tenant: nil, trigger_data: nil, workflow_categories: nil, request_options: {})
33
45
  #
34
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
46
+ # @param user_id [String] The unique identifier of the user.
35
47
  #
36
48
  # @param id [String] The unique identifier for the channel.
37
49
  #
@@ -43,9 +55,9 @@ module Knockapi
43
55
  #
44
56
  # @param has_tenant [Boolean] Whether the feed items have a tenant.
45
57
  #
46
- # @param page_size [Integer] The number of items per page.
58
+ # @param page_size [Integer] The number of items per page (defaults to 50).
47
59
  #
48
- # @param source [String] The source of the feed items.
60
+ # @param source [String] The workflow key associated with the message in the feed.
49
61
  #
50
62
  # @param status [Symbol, Knockapi::Models::Users::FeedListItemsParams::Status] The status of the feed items.
51
63
  #
@@ -8,7 +8,7 @@ module Knockapi
8
8
  #
9
9
  # @overload get_channel(user_id, channel_id, data: nil, tenant: nil, type: nil, request_options: {})
10
10
  #
11
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
11
+ # @param user_id [String] The unique identifier of the user.
12
12
  #
13
13
  # @param channel_id [String] The unique identifier for the channel.
14
14
  #
@@ -39,7 +39,7 @@ module Knockapi
39
39
  #
40
40
  # @overload mark_message_as_archived(user_id, message_id, channel_id:, guide_id:, guide_key:, guide_step_ref:, content: nil, data: nil, is_final: nil, metadata: nil, tenant: nil, request_options: {})
41
41
  #
42
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
42
+ # @param user_id [String] The unique identifier of the user.
43
43
  #
44
44
  # @param message_id [String] The unique identifier for the message.
45
45
  #
@@ -82,7 +82,7 @@ module Knockapi
82
82
  #
83
83
  # @overload mark_message_as_interacted(user_id, message_id, channel_id:, guide_id:, guide_key:, guide_step_ref:, content: nil, data: nil, is_final: nil, metadata: nil, tenant: nil, request_options: {})
84
84
  #
85
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
85
+ # @param user_id [String] The unique identifier of the user.
86
86
  #
87
87
  # @param message_id [String] The unique identifier for the message.
88
88
  #
@@ -125,7 +125,7 @@ module Knockapi
125
125
  #
126
126
  # @overload mark_message_as_seen(user_id, message_id, channel_id:, guide_id:, guide_key:, guide_step_ref:, content: nil, data: nil, is_final: nil, metadata: nil, tenant: nil, request_options: {})
127
127
  #
128
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
128
+ # @param user_id [String] The unique identifier of the user.
129
129
  #
130
130
  # @param message_id [String] The unique identifier for the message.
131
131
  #
@@ -21,9 +21,9 @@ module Knockapi
21
21
  #
22
22
  # @overload update(user_id, avatar: nil, channel_data: nil, created_at: nil, email: nil, locale: nil, name: nil, phone_number: nil, preferences: nil, timezone: nil, request_options: {})
23
23
  #
24
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
24
+ # @param user_id [String] The unique identifier of the user.
25
25
  #
26
- # @param avatar [String, nil] URL to the user's avatar image.
26
+ # @param avatar [String, nil] A URL for the avatar of the user.
27
27
  #
28
28
  # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
29
29
  #
@@ -68,7 +68,7 @@ module Knockapi
68
68
  #
69
69
  # @param include [Array<Symbol, Knockapi::Models::UserListParams::Include>] Associated resources to include in the response.
70
70
  #
71
- # @param page_size [Integer] The number of items per page.
71
+ # @param page_size [Integer] The number of items per page (defaults to 50).
72
72
  #
73
73
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
74
74
  #
@@ -131,7 +131,7 @@ module Knockapi
131
131
  #
132
132
  # @overload get_channel_data(user_id, channel_id, request_options: {})
133
133
  #
134
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
134
+ # @param user_id [String] The unique identifier of the user.
135
135
  #
136
136
  # @param channel_id [String] The unique identifier for the channel.
137
137
  #
@@ -154,7 +154,7 @@ module Knockapi
154
154
  #
155
155
  # @overload get_preferences(user_id, id, tenant: nil, request_options: {})
156
156
  #
157
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
157
+ # @param user_id [String] The unique identifier of the user.
158
158
  #
159
159
  # @param id [String] Unique identifier for the preference set.
160
160
  #
@@ -179,9 +179,9 @@ module Knockapi
179
179
  # Some parameter documentations has been truncated, see
180
180
  # {Knockapi::Models::UserListMessagesParams} for more details.
181
181
  #
182
- # Returns a paginated list of messages for a specific user. Allows filtering by
183
- # message status and provides various sorting options. Messages outside the
184
- # account's retention window will not be included in the results.
182
+ # Returns a paginated list of messages for a specific user. Messages are sorted
183
+ # with the most recent ones appearing first. Messages outside the account's
184
+ # retention window will not be included in the results.
185
185
  #
186
186
  # @overload list_messages(user_id, after: nil, before: nil, channel_id: nil, engagement_status: nil, inserted_at: nil, message_ids: nil, page_size: nil, source: nil, status: nil, tenant: nil, trigger_data: nil, workflow_categories: nil, workflow_recipient_run_id: nil, workflow_run_id: nil, request_options: {})
187
187
  #
@@ -199,7 +199,7 @@ module Knockapi
199
199
  #
200
200
  # @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
201
201
  #
202
- # @param page_size [Integer] The number of items per page.
202
+ # @param page_size [Integer] The number of items per page (defaults to 50).
203
203
  #
204
204
  # @param source [String] Limits the results to messages triggered by the given workflow key.
205
205
  #
@@ -236,7 +236,7 @@ module Knockapi
236
236
  #
237
237
  # @overload list_preferences(user_id, request_options: {})
238
238
  #
239
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
239
+ # @param user_id [String] The unique identifier of the user.
240
240
  #
241
241
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
242
242
  #
@@ -262,7 +262,7 @@ module Knockapi
262
262
  #
263
263
  # @param before [String] The cursor to fetch entries before.
264
264
  #
265
- # @param page_size [Integer] The number of items per page.
265
+ # @param page_size [Integer] The number of items per page (defaults to 50).
266
266
  #
267
267
  # @param tenant [String] The tenant ID to filter schedules for.
268
268
  #
@@ -300,7 +300,7 @@ module Knockapi
300
300
  #
301
301
  # @param objects [Array<String, Knockapi::Models::RecipientReference::ObjectReference>] Only returns subscriptions for the specified object references.
302
302
  #
303
- # @param page_size [Integer] The number of items per page.
303
+ # @param page_size [Integer] The number of items per page (defaults to 50).
304
304
  #
305
305
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
306
306
  #
@@ -350,7 +350,7 @@ module Knockapi
350
350
  #
351
351
  # @overload set_channel_data(user_id, channel_id, data:, request_options: {})
352
352
  #
353
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
353
+ # @param user_id [String] The unique identifier of the user.
354
354
  #
355
355
  # @param channel_id [String] The unique identifier for the channel.
356
356
  #
@@ -380,7 +380,7 @@ module Knockapi
380
380
  #
381
381
  # @overload set_preferences(user_id, id, categories: nil, channel_types: nil, workflows: nil, request_options: {})
382
382
  #
383
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
383
+ # @param user_id [String] The unique identifier of the user.
384
384
  #
385
385
  # @param id [String] Unique identifier for the preference set.
386
386
  #
@@ -410,7 +410,7 @@ module Knockapi
410
410
  #
411
411
  # @overload unset_channel_data(user_id, channel_id, request_options: {})
412
412
  #
413
- # @param user_id [String] The ID for the user that you set when identifying them in Knock.
413
+ # @param user_id [String] The unique identifier of the user.
414
414
  #
415
415
  # @param channel_id [String] The unique identifier for the channel.
416
416
  #
@@ -53,7 +53,7 @@ module Knockapi
53
53
  #
54
54
  # @param cancellation_key [String, nil] An optional key that is used to reference a specific workflow trigger request wh
55
55
  #
56
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
56
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 10MB lim
57
57
  #
58
58
  # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
59
59
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.8.1"
4
+ VERSION = "1.10.0"
5
5
  end
@@ -98,7 +98,7 @@ module Knockapi
98
98
  )
99
99
  end
100
100
 
101
- # The ID for the user that you set when identifying them in Knock.
101
+ # The unique identifier of the user.
102
102
  sig { returns(T.nilable(String)) }
103
103
  attr_reader :id
104
104
 
@@ -108,7 +108,7 @@ module Knockapi
108
108
  # An object containing the user's ID.
109
109
  sig { params(id: String).returns(T.attached_class) }
110
110
  def self.new(
111
- # The ID for the user that you set when identifying them in Knock.
111
+ # The unique identifier of the user.
112
112
  id: nil
113
113
  )
114
114
  end
@@ -25,7 +25,7 @@ module Knockapi
25
25
  sig { params(user: Knockapi::User::OrHash).void }
26
26
  attr_writer :user
27
27
 
28
- # The ID for the user that you set when identifying them in Knock.
28
+ # The unique identifier of the user.
29
29
  sig { returns(String) }
30
30
  attr_accessor :user_id
31
31
 
@@ -52,7 +52,7 @@ module Knockapi
52
52
  # receive notifications through Knock. Users are the most common recipients of
53
53
  # notifications and are always referenced by your internal identifier.
54
54
  user:,
55
- # The ID for the user that you set when identifying them in Knock.
55
+ # The unique identifier of the user.
56
56
  user_id:,
57
57
  # The unique identifier for the tenant.
58
58
  tenant: nil
@@ -102,7 +102,7 @@ module Knockapi
102
102
  )
103
103
  end
104
104
 
105
- # The ID for the user that you set when identifying them in Knock.
105
+ # The unique identifier of the user.
106
106
  sig { returns(T.nilable(String)) }
107
107
  attr_reader :id
108
108
 
@@ -112,7 +112,7 @@ module Knockapi
112
112
  # An object containing the user's ID.
113
113
  sig { params(id: String).returns(T.attached_class) }
114
114
  def self.new(
115
- # The ID for the user that you set when identifying them in Knock.
115
+ # The unique identifier of the user.
116
116
  id: nil
117
117
  )
118
118
  end
@@ -8,7 +8,7 @@ module Knockapi
8
8
  T.any(Knockapi::IdentifyUserRequest, Knockapi::Internal::AnyHash)
9
9
  end
10
10
 
11
- # URL to the user's avatar image.
11
+ # A URL for the avatar of the user.
12
12
  sig { returns(T.nilable(String)) }
13
13
  attr_accessor :avatar
14
14
 
@@ -104,7 +104,7 @@ module Knockapi
104
104
  ).returns(T.attached_class)
105
105
  end
106
106
  def self.new(
107
- # URL to the user's avatar image.
107
+ # A URL for the avatar of the user.
108
108
  avatar: nil,
109
109
  # A request to set channel data for a type of channel inline.
110
110
  channel_data: nil,
@@ -11,11 +11,11 @@ module Knockapi
11
11
  )
12
12
  end
13
13
 
14
- # The ID for the user that you set when identifying them in Knock.
14
+ # The unique identifier of the user.
15
15
  sig { returns(String) }
16
16
  attr_accessor :id
17
17
 
18
- # URL to the user's avatar image.
18
+ # A URL for the avatar of the user.
19
19
  sig { returns(T.nilable(String)) }
20
20
  attr_accessor :avatar
21
21
 
@@ -113,9 +113,9 @@ module Knockapi
113
113
  ).returns(T.attached_class)
114
114
  end
115
115
  def self.new(
116
- # The ID for the user that you set when identifying them in Knock.
116
+ # The unique identifier of the user.
117
117
  id:,
118
- # URL to the user's avatar image.
118
+ # A URL for the avatar of the user.
119
119
  avatar: nil,
120
120
  # A request to set channel data for a type of channel inline.
121
121
  channel_data: nil,