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
@@ -328,13 +328,18 @@ module Knockapi
328
328
  sig { returns(String) }
329
329
  attr_accessor :version_id
330
330
 
331
+ # The step reference for the step in the workflow that generated the message
332
+ sig { returns(T.nilable(String)) }
333
+ attr_accessor :step_ref
334
+
331
335
  # The workflow that triggered the message.
332
336
  sig do
333
337
  params(
334
338
  _typename: String,
335
339
  categories: T::Array[String],
336
340
  key: String,
337
- version_id: String
341
+ version_id: String,
342
+ step_ref: T.nilable(String)
338
343
  ).returns(T.attached_class)
339
344
  end
340
345
  def self.new(
@@ -344,7 +349,9 @@ module Knockapi
344
349
  # The key of the workflow that triggered the message.
345
350
  key:,
346
351
  # The ID of the version of the workflow that triggered the message.
347
- version_id:
352
+ version_id:,
353
+ # The step reference for the step in the workflow that generated the message
354
+ step_ref: nil
348
355
  )
349
356
  end
350
357
 
@@ -354,7 +361,8 @@ module Knockapi
354
361
  _typename: String,
355
362
  categories: T::Array[String],
356
363
  key: String,
357
- version_id: String
364
+ version_id: String,
365
+ step_ref: T.nilable(String)
358
366
  }
359
367
  )
360
368
  end
@@ -258,7 +258,7 @@ module Knockapi
258
258
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
259
259
  attr_accessor :data
260
260
 
261
- # The content of a push notification.
261
+ # Push channel data.
262
262
  sig do
263
263
  params(
264
264
  token: String,
@@ -28,7 +28,7 @@ module Knockapi
28
28
  sig { params(before: String).void }
29
29
  attr_writer :before
30
30
 
31
- # The number of items per page.
31
+ # The number of items per page (defaults to 50).
32
32
  sig { returns(T.nilable(Integer)) }
33
33
  attr_reader :page_size
34
34
 
@@ -56,7 +56,7 @@ module Knockapi
56
56
  after: nil,
57
57
  # The cursor to fetch entries before.
58
58
  before: nil,
59
- # The number of items per page.
59
+ # The number of items per page (defaults to 50).
60
60
  page_size: nil,
61
61
  # The trigger data to filter activities by.
62
62
  trigger_data: nil,
@@ -28,7 +28,7 @@ module Knockapi
28
28
  sig { params(before: String).void }
29
29
  attr_writer :before
30
30
 
31
- # The number of items per page.
31
+ # The number of items per page (defaults to 50).
32
32
  sig { returns(T.nilable(Integer)) }
33
33
  attr_reader :page_size
34
34
 
@@ -48,7 +48,7 @@ module Knockapi
48
48
  after: nil,
49
49
  # The cursor to fetch entries before.
50
50
  before: nil,
51
- # The number of items per page.
51
+ # The number of items per page (defaults to 50).
52
52
  page_size: nil,
53
53
  request_options: {}
54
54
  )
@@ -25,7 +25,7 @@ module Knockapi
25
25
  sig { params(before: String).void }
26
26
  attr_writer :before
27
27
 
28
- # The number of items per page.
28
+ # The number of items per page (defaults to 50).
29
29
  sig { returns(T.nilable(Integer)) }
30
30
  attr_reader :page_size
31
31
 
@@ -45,7 +45,7 @@ module Knockapi
45
45
  after: nil,
46
46
  # The cursor to fetch entries before.
47
47
  before: nil,
48
- # The number of items per page.
48
+ # The number of items per page (defaults to 50).
49
49
  page_size: nil,
50
50
  request_options: {}
51
51
  )
@@ -68,7 +68,7 @@ module Knockapi
68
68
  sig { params(message_ids: T::Array[String]).void }
69
69
  attr_writer :message_ids
70
70
 
71
- # The number of items per page.
71
+ # The number of items per page (defaults to 50).
72
72
  sig { returns(T.nilable(Integer)) }
73
73
  attr_reader :page_size
74
74
 
@@ -168,7 +168,7 @@ module Knockapi
168
168
  # Limits the results to only the message IDs given (max 50). Note: when using this
169
169
  # option, the results will be subject to any other filters applied to the query.
170
170
  message_ids: nil,
171
- # The number of items per page.
171
+ # The number of items per page (defaults to 50).
172
172
  page_size: nil,
173
173
  # Limits the results to messages triggered by the given workflow key.
174
174
  source: nil,
@@ -262,7 +262,7 @@ module Knockapi
262
262
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
263
263
  attr_accessor :data
264
264
 
265
- # The content of a push notification.
265
+ # Push channel data.
266
266
  sig do
267
267
  params(
268
268
  token: String,
@@ -72,7 +72,7 @@ module Knockapi
72
72
  sig { params(message_ids: T::Array[String]).void }
73
73
  attr_writer :message_ids
74
74
 
75
- # The number of items per page.
75
+ # The number of items per page (defaults to 50).
76
76
  sig { returns(T.nilable(Integer)) }
77
77
  attr_reader :page_size
78
78
 
@@ -177,7 +177,7 @@ module Knockapi
177
177
  # Limits the results to only the message IDs given (max 50). Note: when using this
178
178
  # option, the results will be subject to any other filters applied to the query.
179
179
  message_ids: nil,
180
- # The number of items per page.
180
+ # The number of items per page (defaults to 50).
181
181
  page_size: nil,
182
182
  # Limits the results to messages triggered by the given workflow key.
183
183
  source: nil,
@@ -40,7 +40,7 @@ module Knockapi
40
40
  end
41
41
  attr_writer :include
42
42
 
43
- # The number of items per page.
43
+ # The number of items per page (defaults to 50).
44
44
  sig { returns(T.nilable(Integer)) }
45
45
  attr_reader :page_size
46
46
 
@@ -63,7 +63,7 @@ module Knockapi
63
63
  before: nil,
64
64
  # Includes preferences of the objects in the response.
65
65
  include: nil,
66
- # The number of items per page.
66
+ # The number of items per page (defaults to 50).
67
67
  page_size: nil,
68
68
  request_options: {}
69
69
  )
@@ -28,7 +28,7 @@ module Knockapi
28
28
  sig { params(before: String).void }
29
29
  attr_writer :before
30
30
 
31
- # The number of items per page.
31
+ # The number of items per page (defaults to 50).
32
32
  sig { returns(T.nilable(Integer)) }
33
33
  attr_reader :page_size
34
34
 
@@ -64,7 +64,7 @@ module Knockapi
64
64
  after: nil,
65
65
  # The cursor to fetch entries before.
66
66
  before: nil,
67
- # The number of items per page.
67
+ # The number of items per page (defaults to 50).
68
68
  page_size: nil,
69
69
  # Filter schedules by tenant id.
70
70
  tenant: nil,
@@ -79,7 +79,7 @@ module Knockapi
79
79
  end
80
80
  attr_writer :objects
81
81
 
82
- # The number of items per page.
82
+ # The number of items per page (defaults to 50).
83
83
  sig { returns(T.nilable(Integer)) }
84
84
  attr_reader :page_size
85
85
 
@@ -146,7 +146,7 @@ module Knockapi
146
146
  mode: nil,
147
147
  # Objects to filter by (only used if mode is `recipient`).
148
148
  objects: nil,
149
- # The number of items per page.
149
+ # The number of items per page (defaults to 50).
150
150
  page_size: nil,
151
151
  # Recipients to filter by (only used if mode is `object`).
152
152
  recipients: nil,
@@ -10,7 +10,7 @@ module Knockapi
10
10
  sig { returns(String) }
11
11
  attr_accessor :_typename
12
12
 
13
- # The number of items per page.
13
+ # The number of items per page (defaults to 50).
14
14
  sig { returns(Integer) }
15
15
  attr_accessor :page_size
16
16
 
@@ -34,7 +34,7 @@ module Knockapi
34
34
  def self.new(
35
35
  # The typename of the schema.
36
36
  _typename:,
37
- # The number of items per page.
37
+ # The number of items per page (defaults to 50).
38
38
  page_size:,
39
39
  # The cursor to fetch entries after.
40
40
  after: nil,
@@ -107,7 +107,8 @@ module Knockapi
107
107
 
108
108
  # Mix and match channel types by providing a comma-separated list of any
109
109
  # combination of public_channel, private_channel, mpim, im. Defaults to
110
- # `"public_channel,private_channel"`.
110
+ # `"public_channel,private_channel"`. If the user's Slack ID is unavailable, this
111
+ # option is ignored and only public channels are returned.
111
112
  sig { returns(T.nilable(String)) }
112
113
  attr_reader :types
113
114
 
@@ -137,7 +138,8 @@ module Knockapi
137
138
  team_id: nil,
138
139
  # Mix and match channel types by providing a comma-separated list of any
139
140
  # combination of public_channel, private_channel, mpim, im. Defaults to
140
- # `"public_channel,private_channel"`.
141
+ # `"public_channel,private_channel"`. If the user's Slack ID is unavailable, this
142
+ # option is ignored and only public channels are returned.
141
143
  types: nil
142
144
  )
143
145
  end
@@ -29,7 +29,7 @@ module Knockapi
29
29
  sig { returns(T.nilable(String)) }
30
30
  attr_accessor :ms_teams_tenant_id
31
31
 
32
- # Microsoft Teams channel connection.
32
+ # Microsoft Teams channel data.
33
33
  sig do
34
34
  params(
35
35
  connections:
@@ -16,7 +16,7 @@ module Knockapi
16
16
  sig { returns(T::Array[String]) }
17
17
  attr_accessor :tokens
18
18
 
19
- # The content of a push notification.
19
+ # Push channel data.
20
20
  sig { params(tokens: T::Array[String]).returns(T.attached_class) }
21
21
  def self.new(
22
22
  # A list of push channel tokens.
@@ -39,7 +39,7 @@ module Knockapi
39
39
  end
40
40
  attr_writer :token
41
41
 
42
- # Slack channel data
42
+ # Slack channel data.
43
43
  sig do
44
44
  params(
45
45
  connections:
@@ -41,10 +41,10 @@ module Knockapi
41
41
  sig { returns(T.nilable(Knockapi::Recipient::Variants)) }
42
42
  attr_accessor :actor
43
43
 
44
- # An optional map of data to pass into the workflow execution. There is a 1024
45
- # byte limit on the size of any single string value (with the exception of
46
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
47
- # size of the full `data` payload.
44
+ # An optional map of data to pass into the workflow execution. There is a 10MB
45
+ # limit on the size of the full `data` payload. Any individual string value
46
+ # greater than 1024 bytes in length will be
47
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
48
48
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
49
49
  attr_accessor :data
50
50
 
@@ -97,10 +97,10 @@ module Knockapi
97
97
  _typename: nil,
98
98
  # A recipient of a notification, which is either a user or an object.
99
99
  actor: nil,
100
- # An optional map of data to pass into the workflow execution. There is a 1024
101
- # byte limit on the size of any single string value (with the exception of
102
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
103
- # size of the full `data` payload.
100
+ # An optional map of data to pass into the workflow execution. There is a 10MB
101
+ # limit on the size of the full `data` payload. Any individual string value
102
+ # greater than 1024 bytes in length will be
103
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
104
104
  data: nil,
105
105
  # The last occurrence of the schedule.
106
106
  last_occurrence_at: nil,
@@ -45,10 +45,10 @@ module Knockapi
45
45
  end
46
46
  attr_accessor :actor
47
47
 
48
- # An optional map of data to pass into the workflow execution. There is a 1024
49
- # byte limit on the size of any single string value (with the exception of
50
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
51
- # size of the full `data` payload.
48
+ # An optional map of data to pass into the workflow execution. There is a 10MB
49
+ # limit on the size of the full `data` payload. Any individual string value
50
+ # greater than 1024 bytes in length will be
51
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
52
52
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
53
53
  attr_accessor :data
54
54
 
@@ -109,10 +109,10 @@ module Knockapi
109
109
  # (string), an inline user request (object), or an inline object request, which is
110
110
  # determined by the presence of a `collection` property.
111
111
  actor: nil,
112
- # An optional map of data to pass into the workflow execution. There is a 1024
113
- # byte limit on the size of any single string value (with the exception of
114
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
115
- # size of the full `data` payload.
112
+ # An optional map of data to pass into the workflow execution. There is a 10MB
113
+ # limit on the size of the full `data` payload. Any individual string value
114
+ # greater than 1024 bytes in length will be
115
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
116
116
  data: nil,
117
117
  # The ending date and time for the schedule.
118
118
  ending_at: nil,
@@ -29,7 +29,7 @@ module Knockapi
29
29
  sig { params(before: String).void }
30
30
  attr_writer :before
31
31
 
32
- # The number of items per page.
32
+ # The number of items per page (defaults to 50).
33
33
  sig { returns(T.nilable(Integer)) }
34
34
  attr_reader :page_size
35
35
 
@@ -92,7 +92,7 @@ module Knockapi
92
92
  after: nil,
93
93
  # The cursor to fetch entries before.
94
94
  before: nil,
95
- # The number of items per page.
95
+ # The number of items per page (defaults to 50).
96
96
  page_size: nil,
97
97
  # Filter by recipient references.
98
98
  recipients: nil,
@@ -26,10 +26,10 @@ module Knockapi
26
26
  end
27
27
  attr_accessor :actor
28
28
 
29
- # An optional map of data to pass into the workflow execution. There is a 1024
30
- # byte limit on the size of any single string value (with the exception of
31
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
32
- # size of the full `data` payload.
29
+ # An optional map of data to pass into the workflow execution. There is a 10MB
30
+ # limit on the size of the full `data` payload. Any individual string value
31
+ # greater than 1024 bytes in length will be
32
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
33
33
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
34
34
  attr_accessor :data
35
35
 
@@ -78,10 +78,10 @@ module Knockapi
78
78
  # A reference to a recipient, either a user identifier (string) or an object
79
79
  # reference (ID, collection).
80
80
  actor: nil,
81
- # An optional map of data to pass into the workflow execution. There is a 1024
82
- # byte limit on the size of any single string value (with the exception of
83
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
84
- # size of the full `data` payload.
81
+ # An optional map of data to pass into the workflow execution. There is a 10MB
82
+ # limit on the size of the full `data` payload. Any individual string value
83
+ # greater than 1024 bytes in length will be
84
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
85
85
  data: nil,
86
86
  # The ending date and time for the schedule.
87
87
  ending_at: nil,
@@ -76,10 +76,10 @@ module Knockapi
76
76
  end
77
77
  attr_accessor :actor
78
78
 
79
- # An optional map of data to pass into the workflow execution. There is a 1024
80
- # byte limit on the size of any single string value (with the exception of
81
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
82
- # size of the full `data` payload.
79
+ # An optional map of data to pass into the workflow execution. There is a 10MB
80
+ # limit on the size of the full `data` payload. Any individual string value
81
+ # greater than 1024 bytes in length will be
82
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
83
83
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
84
84
  attr_accessor :data
85
85
 
@@ -164,10 +164,10 @@ module Knockapi
164
164
  # (string), an inline user request (object), or an inline object request, which is
165
165
  # determined by the presence of a `collection` property.
166
166
  actor: nil,
167
- # An optional map of data to pass into the workflow execution. There is a 1024
168
- # byte limit on the size of any single string value (with the exception of
169
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
170
- # size of the full `data` payload.
167
+ # An optional map of data to pass into the workflow execution. There is a 10MB
168
+ # limit on the size of the full `data` payload. Any individual string value
169
+ # greater than 1024 bytes in length will be
170
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
171
171
  data: nil,
172
172
  # The ending date and time for the schedule.
173
173
  ending_at: nil,
@@ -32,7 +32,7 @@ module Knockapi
32
32
  sig { params(name: String).void }
33
33
  attr_writer :name
34
34
 
35
- # The number of items per page.
35
+ # The number of items per page (defaults to 50).
36
36
  sig { returns(T.nilable(Integer)) }
37
37
  attr_reader :page_size
38
38
 
@@ -63,7 +63,7 @@ module Knockapi
63
63
  before: nil,
64
64
  # Filter tenants by name.
65
65
  name: nil,
66
- # The number of items per page.
66
+ # The number of items per page (defaults to 50).
67
67
  page_size: nil,
68
68
  # Filter tenants by ID.
69
69
  tenant_id: nil,
@@ -6,7 +6,7 @@ module Knockapi
6
6
  OrHash =
7
7
  T.type_alias { T.any(Knockapi::User, Knockapi::Internal::AnyHash) }
8
8
 
9
- # The ID for the user that you set when identifying them in Knock.
9
+ # The unique identifier of the user.
10
10
  sig { returns(String) }
11
11
  attr_accessor :id
12
12
 
@@ -18,7 +18,7 @@ module Knockapi
18
18
  sig { returns(Time) }
19
19
  attr_accessor :updated_at
20
20
 
21
- # URL to the user's avatar image.
21
+ # A URL for the avatar of the user.
22
22
  sig { returns(T.nilable(String)) }
23
23
  attr_accessor :avatar
24
24
 
@@ -63,13 +63,13 @@ module Knockapi
63
63
  ).returns(T.attached_class)
64
64
  end
65
65
  def self.new(
66
- # The ID for the user that you set when identifying them in Knock.
66
+ # The unique identifier of the user.
67
67
  id:,
68
68
  # The typename of the schema.
69
69
  _typename:,
70
70
  # The timestamp when the resource was last updated.
71
71
  updated_at:,
72
- # URL to the user's avatar image.
72
+ # A URL for the avatar of the user.
73
73
  avatar: nil,
74
74
  # The creation date of the user from your system.
75
75
  created_at: nil,
@@ -72,7 +72,7 @@ module Knockapi
72
72
  sig { params(message_ids: T::Array[String]).void }
73
73
  attr_writer :message_ids
74
74
 
75
- # The number of items per page.
75
+ # The number of items per page (defaults to 50).
76
76
  sig { returns(T.nilable(Integer)) }
77
77
  attr_reader :page_size
78
78
 
@@ -176,7 +176,7 @@ module Knockapi
176
176
  # Limits the results to only the message IDs given (max 50). Note: when using this
177
177
  # option, the results will be subject to any other filters applied to the query.
178
178
  message_ids: nil,
179
- # The number of items per page.
179
+ # The number of items per page (defaults to 50).
180
180
  page_size: nil,
181
181
  # Limits the results to messages triggered by the given workflow key.
182
182
  source: nil,
@@ -40,7 +40,7 @@ module Knockapi
40
40
  end
41
41
  attr_writer :include
42
42
 
43
- # The number of items per page.
43
+ # The number of items per page (defaults to 50).
44
44
  sig { returns(T.nilable(Integer)) }
45
45
  attr_reader :page_size
46
46
 
@@ -63,7 +63,7 @@ module Knockapi
63
63
  before: nil,
64
64
  # Associated resources to include in the response.
65
65
  include: nil,
66
- # The number of items per page.
66
+ # The number of items per page (defaults to 50).
67
67
  page_size: nil,
68
68
  request_options: {}
69
69
  )
@@ -25,7 +25,7 @@ module Knockapi
25
25
  sig { params(before: String).void }
26
26
  attr_writer :before
27
27
 
28
- # The number of items per page.
28
+ # The number of items per page (defaults to 50).
29
29
  sig { returns(T.nilable(Integer)) }
30
30
  attr_reader :page_size
31
31
 
@@ -61,7 +61,7 @@ module Knockapi
61
61
  after: nil,
62
62
  # The cursor to fetch entries before.
63
63
  before: nil,
64
- # The number of items per page.
64
+ # The number of items per page (defaults to 50).
65
65
  page_size: nil,
66
66
  # The tenant ID to filter schedules for.
67
67
  tenant: nil,
@@ -71,7 +71,7 @@ module Knockapi
71
71
  end
72
72
  attr_writer :objects
73
73
 
74
- # The number of items per page.
74
+ # The number of items per page (defaults to 50).
75
75
  sig { returns(T.nilable(Integer)) }
76
76
  attr_reader :page_size
77
77
 
@@ -104,7 +104,7 @@ module Knockapi
104
104
  include: nil,
105
105
  # Only returns subscriptions for the specified object references.
106
106
  objects: nil,
107
- # The number of items per page.
107
+ # The number of items per page (defaults to 50).
108
108
  page_size: nil,
109
109
  request_options: {}
110
110
  )
@@ -51,14 +51,14 @@ module Knockapi
51
51
  sig { params(has_tenant: T::Boolean).void }
52
52
  attr_writer :has_tenant
53
53
 
54
- # The number of items per page.
54
+ # The number of items per page (defaults to 50).
55
55
  sig { returns(T.nilable(Integer)) }
56
56
  attr_reader :page_size
57
57
 
58
58
  sig { params(page_size: Integer).void }
59
59
  attr_writer :page_size
60
60
 
61
- # The source of the feed items.
61
+ # The workflow key associated with the message in the feed.
62
62
  sig { returns(T.nilable(String)) }
63
63
  attr_reader :source
64
64
 
@@ -125,9 +125,9 @@ module Knockapi
125
125
  before: nil,
126
126
  # Whether the feed items have a tenant.
127
127
  has_tenant: nil,
128
- # The number of items per page.
128
+ # The number of items per page (defaults to 50).
129
129
  page_size: nil,
130
- # The source of the feed items.
130
+ # The workflow key associated with the message in the feed.
131
131
  source: nil,
132
132
  # The status of the feed items.
133
133
  status: nil,
@@ -50,10 +50,10 @@ module Knockapi
50
50
  sig { returns(T.nilable(String)) }
51
51
  attr_accessor :cancellation_key
52
52
 
53
- # An optional map of data to pass into the workflow execution. There is a 1024
54
- # byte limit on the size of any single string value (with the exception of
55
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
56
- # size of the full `data` payload.
53
+ # An optional map of data to pass into the workflow execution. There is a 10MB
54
+ # limit on the size of the full `data` payload. Any individual string value
55
+ # greater than 1024 bytes in length will be
56
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
57
57
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
58
58
  attr_accessor :data
59
59
 
@@ -99,10 +99,10 @@ module Knockapi
99
99
  # subsequent cancellation. Should be unique across trigger requests to avoid
100
100
  # unintentional cancellations.
101
101
  cancellation_key: nil,
102
- # An optional map of data to pass into the workflow execution. There is a 1024
103
- # byte limit on the size of any single string value (with the exception of
104
- # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
105
- # size of the full `data` payload.
102
+ # An optional map of data to pass into the workflow execution. There is a 10MB
103
+ # limit on the size of the full `data` payload. Any individual string value
104
+ # greater than 1024 bytes in length will be
105
+ # [truncated](/developer-tools/api-logs#log-truncation) in your logs.
106
106
  data: nil,
107
107
  # An request to set a tenant inline.
108
108
  tenant: nil,
@@ -40,7 +40,7 @@ module Knockapi
40
40
  # Limits the results to only the message IDs given (max 50). Note: when using this
41
41
  # option, the results will be subject to any other filters applied to the query.
42
42
  message_ids: nil,
43
- # The number of items per page.
43
+ # The number of items per page (defaults to 50).
44
44
  page_size: nil,
45
45
  # Limits the results to messages triggered by the given workflow key.
46
46
  source: nil,
@@ -125,7 +125,7 @@ module Knockapi
125
125
  after: nil,
126
126
  # The cursor to fetch entries before.
127
127
  before: nil,
128
- # The number of items per page.
128
+ # The number of items per page (defaults to 50).
129
129
  page_size: nil,
130
130
  # The trigger data to filter activities by.
131
131
  trigger_data: nil,
@@ -150,7 +150,7 @@ module Knockapi
150
150
  after: nil,
151
151
  # The cursor to fetch entries before.
152
152
  before: nil,
153
- # The number of items per page.
153
+ # The number of items per page (defaults to 50).
154
154
  page_size: nil,
155
155
  request_options: {}
156
156
  )
@@ -173,7 +173,7 @@ module Knockapi
173
173
  after: nil,
174
174
  # The cursor to fetch entries before.
175
175
  before: nil,
176
- # The number of items per page.
176
+ # The number of items per page (defaults to 50).
177
177
  page_size: nil,
178
178
  request_options: {}
179
179
  )