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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/README.md +1 -1
- data/lib/knockapi/internal/transport/base_client.rb +10 -2
- 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/providers/slack_list_channels_params.rb +2 -1
- 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.rb +5 -5
- data/lib/knockapi/models/schedule_create_params.rb +5 -5
- data/lib/knockapi/models/schedule_list_params.rb +2 -2
- data/lib/knockapi/models/schedule_update_params.rb +5 -5
- data/lib/knockapi/models/schedules/bulk_create_params.rb +5 -5
- 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/models/workflow_trigger_params.rb +5 -5
- data/lib/knockapi/resources/messages.rb +4 -4
- data/lib/knockapi/resources/objects.rb +4 -4
- data/lib/knockapi/resources/schedules.rb +3 -3
- 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/resources/workflows.rb +1 -1
- data/lib/knockapi/version.rb +1 -1
- 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/providers/slack_list_channels_params.rbi +4 -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.rbi +8 -8
- data/rbi/knockapi/models/schedule_create_params.rbi +8 -8
- data/rbi/knockapi/models/schedule_list_params.rbi +2 -2
- data/rbi/knockapi/models/schedule_update_params.rbi +8 -8
- data/rbi/knockapi/models/schedules/bulk_create_params.rbi +8 -8
- 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/models/workflow_trigger_params.rbi +8 -8
- data/rbi/knockapi/resources/messages.rbi +4 -4
- data/rbi/knockapi/resources/objects.rbi +4 -4
- data/rbi/knockapi/resources/schedules.rbi +9 -9
- 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/rbi/knockapi/resources/workflows.rbi +4 -4
- data/sig/knockapi/models/message.rbs +8 -3
- 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
|
@@ -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,
|
@@ -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
|
@@ -16,7 +16,7 @@ module Knockapi
|
|
16
16
|
sig { returns(T::Array[String]) }
|
17
17
|
attr_accessor :tokens
|
18
18
|
|
19
|
-
#
|
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.
|
@@ -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
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
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
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
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
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
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
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
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
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
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
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
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
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
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
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
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
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
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
|
)
|