knockapi 1.1.0 → 1.2.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 +20 -0
- data/README.md +1 -1
- data/lib/knockapi/internal/type/array_of.rb +8 -0
- data/lib/knockapi/internal/type/base_model.rb +7 -0
- data/lib/knockapi/internal/type/boolean.rb +8 -0
- data/lib/knockapi/internal/type/enum.rb +12 -0
- data/lib/knockapi/internal/type/file_input.rb +7 -0
- data/lib/knockapi/internal/type/hash_of.rb +8 -0
- data/lib/knockapi/internal/type/union.rb +12 -0
- data/lib/knockapi/internal/type/unknown.rb +8 -0
- data/lib/knockapi/internal/util.rb +45 -0
- data/lib/knockapi/internal.rb +3 -0
- data/lib/knockapi/models/inline_tenant_request.rb +0 -4
- data/lib/knockapi/models/message_delivery_log.rb +0 -8
- data/lib/knockapi/models/message_get_content_response.rb +0 -21
- data/lib/knockapi/models/message_list_params.rb +5 -2
- data/lib/knockapi/models/messages/batch_get_content_response.rb +0 -21
- data/lib/knockapi/models/object_list_messages_params.rb +5 -2
- data/lib/knockapi/models/recipient.rb +0 -4
- data/lib/knockapi/models/recipient_reference.rb +0 -4
- data/lib/knockapi/models/recipient_request.rb +0 -4
- data/lib/knockapi/models/recipients/channel_data.rb +0 -12
- data/lib/knockapi/models/recipients/channel_data_request.rb +0 -12
- data/lib/knockapi/models/recipients/discord_channel_data.rb +0 -9
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +0 -12
- data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +0 -9
- data/lib/knockapi/models/recipients/preference_set.rb +0 -18
- data/lib/knockapi/models/recipients/preference_set_channel_types.rb +0 -24
- data/lib/knockapi/models/recipients/preference_set_request.rb +0 -18
- data/lib/knockapi/models/recipients/slack_channel_data.rb +0 -9
- data/lib/knockapi/models/user_list_messages_params.rb +5 -2
- data/lib/knockapi/models/users/feed_list_items_response.rb +0 -9
- data/lib/knockapi/models.rb +30 -19
- data/lib/knockapi/version.rb +1 -1
- data/rbi/knockapi/internal/type/array_of.rbi +6 -0
- data/rbi/knockapi/internal/type/base_model.rbi +5 -0
- data/rbi/knockapi/internal/type/boolean.rbi +6 -0
- data/rbi/knockapi/internal/type/enum.rbi +5 -0
- data/rbi/knockapi/internal/type/file_input.rbi +5 -0
- data/rbi/knockapi/internal/type/hash_of.rbi +6 -0
- data/rbi/knockapi/internal/type/union.rbi +5 -0
- data/rbi/knockapi/internal/type/unknown.rbi +6 -0
- data/rbi/knockapi/internal/util.rbi +34 -0
- data/rbi/knockapi/internal.rbi +3 -0
- data/rbi/knockapi/models/activity.rbi +4 -4
- data/rbi/knockapi/models/message.rbi +4 -20
- data/rbi/knockapi/models/message_delivery_log.rbi +24 -8
- data/rbi/knockapi/models/message_event.rbi +2 -5
- data/rbi/knockapi/models/message_get_content_response.rbi +4 -25
- data/rbi/knockapi/models/message_list_params.rbi +19 -4
- data/rbi/knockapi/models/messages/batch_get_content_response.rbi +4 -22
- data/rbi/knockapi/models/object_list_messages_params.rbi +19 -4
- data/rbi/knockapi/models/recipients/channel_data.rbi +2 -17
- data/rbi/knockapi/models/recipients/preference_set.rbi +4 -16
- data/rbi/knockapi/models/recipients/subscription.rbi +2 -2
- data/rbi/knockapi/models/schedule.rbi +4 -4
- data/rbi/knockapi/models/user_list_messages_params.rbi +19 -4
- data/rbi/knockapi/models/users/feed_list_items_response.rbi +4 -10
- data/sig/knockapi/internal/type/array_of.rbs +3 -0
- data/sig/knockapi/internal/type/base_model.rbs +2 -0
- data/sig/knockapi/internal/type/boolean.rbs +3 -0
- data/sig/knockapi/internal/type/enum.rbs +2 -0
- data/sig/knockapi/internal/type/file_input.rbs +2 -0
- data/sig/knockapi/internal/type/hash_of.rbs +3 -0
- data/sig/knockapi/internal/type/union.rbs +2 -0
- data/sig/knockapi/internal/type/unknown.rbs +3 -0
- data/sig/knockapi/internal/util.rbs +12 -0
- data/sig/knockapi/internal.rbs +2 -0
- data/sig/knockapi/models/message_list_params.rbs +13 -3
- data/sig/knockapi/models/object_list_messages_params.rbs +13 -3
- data/sig/knockapi/models/user_list_messages_params.rbs +13 -3
- metadata +2 -2
@@ -19,13 +19,7 @@ module Knockapi
|
|
19
19
|
# Content data specific to the channel type.
|
20
20
|
sig do
|
21
21
|
returns(
|
22
|
-
|
23
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageEmailContent,
|
24
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageSMSContent,
|
25
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessagePushContent,
|
26
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageChatContent,
|
27
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent
|
28
|
-
)
|
22
|
+
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::Variants
|
29
23
|
)
|
30
24
|
end
|
31
25
|
attr_accessor :data
|
@@ -71,13 +65,7 @@ module Knockapi
|
|
71
65
|
{
|
72
66
|
_typename: String,
|
73
67
|
data:
|
74
|
-
|
75
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageEmailContent,
|
76
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageSMSContent,
|
77
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessagePushContent,
|
78
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageChatContent,
|
79
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent
|
80
|
-
),
|
68
|
+
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::Variants,
|
81
69
|
inserted_at: Time,
|
82
70
|
message_id: String
|
83
71
|
}
|
@@ -567,10 +555,7 @@ module Knockapi
|
|
567
555
|
sig do
|
568
556
|
returns(
|
569
557
|
T::Array[
|
570
|
-
|
571
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedContentBlock,
|
572
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock
|
573
|
-
)
|
558
|
+
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::Variants
|
574
559
|
]
|
575
560
|
)
|
576
561
|
end
|
@@ -603,10 +588,7 @@ module Knockapi
|
|
603
588
|
_typename: String,
|
604
589
|
blocks:
|
605
590
|
T::Array[
|
606
|
-
|
607
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedContentBlock,
|
608
|
-
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::MessageInAppFeedButtonSetBlock
|
609
|
-
)
|
591
|
+
Knockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageInAppFeedContent::Block::Variants
|
610
592
|
]
|
611
593
|
}
|
612
594
|
)
|
@@ -242,14 +242,29 @@ module Knockapi
|
|
242
242
|
:seen,
|
243
243
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
244
244
|
)
|
245
|
+
UNSEEN =
|
246
|
+
T.let(
|
247
|
+
:unseen,
|
248
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
249
|
+
)
|
245
250
|
READ =
|
246
251
|
T.let(
|
247
252
|
:read,
|
248
253
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
249
254
|
)
|
250
|
-
|
255
|
+
UNREAD =
|
251
256
|
T.let(
|
252
|
-
:
|
257
|
+
:unread,
|
258
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
259
|
+
)
|
260
|
+
ARCHIVED =
|
261
|
+
T.let(
|
262
|
+
:archived,
|
263
|
+
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
264
|
+
)
|
265
|
+
UNARCHIVED =
|
266
|
+
T.let(
|
267
|
+
:unarchived,
|
253
268
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
254
269
|
)
|
255
270
|
LINK_CLICKED =
|
@@ -257,9 +272,9 @@ module Knockapi
|
|
257
272
|
:link_clicked,
|
258
273
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
259
274
|
)
|
260
|
-
|
275
|
+
INTERACTED =
|
261
276
|
T.let(
|
262
|
-
:
|
277
|
+
:interacted,
|
263
278
|
Knockapi::ObjectListMessagesParams::EngagementStatus::TaggedSymbol
|
264
279
|
)
|
265
280
|
|
@@ -22,15 +22,7 @@ module Knockapi
|
|
22
22
|
|
23
23
|
# Channel data for a given channel type.
|
24
24
|
sig do
|
25
|
-
returns(
|
26
|
-
T.any(
|
27
|
-
Knockapi::Recipients::PushChannelData,
|
28
|
-
Knockapi::Recipients::SlackChannelData,
|
29
|
-
Knockapi::Recipients::MsTeamsChannelData,
|
30
|
-
Knockapi::Recipients::DiscordChannelData,
|
31
|
-
Knockapi::Recipients::OneSignalChannelData
|
32
|
-
)
|
33
|
-
)
|
25
|
+
returns(Knockapi::Recipients::RecipientsChannelData::Data::Variants)
|
34
26
|
end
|
35
27
|
attr_accessor :data
|
36
28
|
|
@@ -86,14 +78,7 @@ module Knockapi
|
|
86
78
|
{
|
87
79
|
_typename: String,
|
88
80
|
channel_id: String,
|
89
|
-
data:
|
90
|
-
T.any(
|
91
|
-
Knockapi::Recipients::PushChannelData,
|
92
|
-
Knockapi::Recipients::SlackChannelData,
|
93
|
-
Knockapi::Recipients::MsTeamsChannelData,
|
94
|
-
Knockapi::Recipients::DiscordChannelData,
|
95
|
-
Knockapi::Recipients::OneSignalChannelData
|
96
|
-
),
|
81
|
+
data: Knockapi::Recipients::RecipientsChannelData::Data::Variants,
|
97
82
|
provider:
|
98
83
|
Knockapi::Recipients::RecipientsChannelData::Provider::TaggedSymbol
|
99
84
|
}
|
@@ -23,10 +23,7 @@ module Knockapi
|
|
23
23
|
T.nilable(
|
24
24
|
T::Hash[
|
25
25
|
Symbol,
|
26
|
-
|
27
|
-
T::Boolean,
|
28
|
-
Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject
|
29
|
-
)
|
26
|
+
Knockapi::Recipients::PreferenceSet::Category::Variants
|
30
27
|
]
|
31
28
|
)
|
32
29
|
)
|
@@ -54,10 +51,7 @@ module Knockapi
|
|
54
51
|
T.nilable(
|
55
52
|
T::Hash[
|
56
53
|
Symbol,
|
57
|
-
|
58
|
-
T::Boolean,
|
59
|
-
Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject
|
60
|
-
)
|
54
|
+
Knockapi::Recipients::PreferenceSet::Workflow::Variants
|
61
55
|
]
|
62
56
|
)
|
63
57
|
)
|
@@ -117,10 +111,7 @@ module Knockapi
|
|
117
111
|
T.nilable(
|
118
112
|
T::Hash[
|
119
113
|
Symbol,
|
120
|
-
|
121
|
-
T::Boolean,
|
122
|
-
Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject
|
123
|
-
)
|
114
|
+
Knockapi::Recipients::PreferenceSet::Category::Variants
|
124
115
|
]
|
125
116
|
),
|
126
117
|
channel_types:
|
@@ -129,10 +120,7 @@ module Knockapi
|
|
129
120
|
T.nilable(
|
130
121
|
T::Hash[
|
131
122
|
Symbol,
|
132
|
-
|
133
|
-
T::Boolean,
|
134
|
-
Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject
|
135
|
-
)
|
123
|
+
Knockapi::Recipients::PreferenceSet::Workflow::Variants
|
136
124
|
]
|
137
125
|
)
|
138
126
|
}
|
@@ -28,7 +28,7 @@ module Knockapi
|
|
28
28
|
attr_writer :object
|
29
29
|
|
30
30
|
# A recipient of a notification, which is either a user or an object.
|
31
|
-
sig { returns(
|
31
|
+
sig { returns(Knockapi::Recipient::Variants) }
|
32
32
|
attr_accessor :recipient
|
33
33
|
|
34
34
|
# The timestamp when the resource was last updated.
|
@@ -72,7 +72,7 @@ module Knockapi
|
|
72
72
|
_typename: String,
|
73
73
|
inserted_at: Time,
|
74
74
|
object: Knockapi::Object,
|
75
|
-
recipient:
|
75
|
+
recipient: Knockapi::Recipient::Variants,
|
76
76
|
updated_at: Time,
|
77
77
|
properties: T.nilable(T::Hash[Symbol, T.anything])
|
78
78
|
}
|
@@ -15,7 +15,7 @@ module Knockapi
|
|
15
15
|
attr_accessor :inserted_at
|
16
16
|
|
17
17
|
# A recipient of a notification, which is either a user or an object.
|
18
|
-
sig { returns(
|
18
|
+
sig { returns(Knockapi::Recipient::Variants) }
|
19
19
|
attr_accessor :recipient
|
20
20
|
|
21
21
|
# The repeat rule for the schedule.
|
@@ -38,7 +38,7 @@ module Knockapi
|
|
38
38
|
attr_writer :_typename
|
39
39
|
|
40
40
|
# A recipient of a notification, which is either a user or an object.
|
41
|
-
sig { returns(T.nilable(
|
41
|
+
sig { returns(T.nilable(Knockapi::Recipient::Variants)) }
|
42
42
|
attr_accessor :actor
|
43
43
|
|
44
44
|
# An optional map of data to pass into the workflow execution.
|
@@ -112,12 +112,12 @@ module Knockapi
|
|
112
112
|
{
|
113
113
|
id: String,
|
114
114
|
inserted_at: Time,
|
115
|
-
recipient:
|
115
|
+
recipient: Knockapi::Recipient::Variants,
|
116
116
|
repeats: T::Array[Knockapi::ScheduleRepeatRule],
|
117
117
|
updated_at: Time,
|
118
118
|
workflow: String,
|
119
119
|
_typename: String,
|
120
|
-
actor: T.nilable(
|
120
|
+
actor: T.nilable(Knockapi::Recipient::Variants),
|
121
121
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
122
122
|
last_occurrence_at: T.nilable(Time),
|
123
123
|
next_occurrence_at: T.nilable(Time),
|
@@ -241,14 +241,29 @@ module Knockapi
|
|
241
241
|
:seen,
|
242
242
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
243
243
|
)
|
244
|
+
UNSEEN =
|
245
|
+
T.let(
|
246
|
+
:unseen,
|
247
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
248
|
+
)
|
244
249
|
READ =
|
245
250
|
T.let(
|
246
251
|
:read,
|
247
252
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
248
253
|
)
|
249
|
-
|
254
|
+
UNREAD =
|
250
255
|
T.let(
|
251
|
-
:
|
256
|
+
:unread,
|
257
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
258
|
+
)
|
259
|
+
ARCHIVED =
|
260
|
+
T.let(
|
261
|
+
:archived,
|
262
|
+
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
263
|
+
)
|
264
|
+
UNARCHIVED =
|
265
|
+
T.let(
|
266
|
+
:unarchived,
|
252
267
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
253
268
|
)
|
254
269
|
LINK_CLICKED =
|
@@ -256,9 +271,9 @@ module Knockapi
|
|
256
271
|
:link_clicked,
|
257
272
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
258
273
|
)
|
259
|
-
|
274
|
+
INTERACTED =
|
260
275
|
T.let(
|
261
|
-
:
|
276
|
+
:interacted,
|
262
277
|
Knockapi::UserListMessagesParams::EngagementStatus::TaggedSymbol
|
263
278
|
)
|
264
279
|
|
@@ -25,17 +25,14 @@ module Knockapi
|
|
25
25
|
attr_accessor :activities
|
26
26
|
|
27
27
|
# List of actors associated with this feed item.
|
28
|
-
sig { returns(T::Array[
|
28
|
+
sig { returns(T::Array[Knockapi::Recipient::Variants]) }
|
29
29
|
attr_accessor :actors
|
30
30
|
|
31
31
|
# Content blocks that make up the feed item.
|
32
32
|
sig do
|
33
33
|
returns(
|
34
34
|
T::Array[
|
35
|
-
|
36
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock,
|
37
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock
|
38
|
-
)
|
35
|
+
Knockapi::Models::Users::FeedListItemsResponse::Block::Variants
|
39
36
|
]
|
40
37
|
)
|
41
38
|
end
|
@@ -178,13 +175,10 @@ module Knockapi
|
|
178
175
|
id: String,
|
179
176
|
_typename: String,
|
180
177
|
activities: T::Array[Knockapi::Activity],
|
181
|
-
actors: T::Array[
|
178
|
+
actors: T::Array[Knockapi::Recipient::Variants],
|
182
179
|
blocks:
|
183
180
|
T::Array[
|
184
|
-
|
185
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock,
|
186
|
-
Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock
|
187
|
-
)
|
181
|
+
Knockapi::Models::Users::FeedListItemsResponse::Block::Variants
|
188
182
|
],
|
189
183
|
data: T.nilable(T::Hash[Symbol, T.anything]),
|
190
184
|
inserted_at: String,
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class ArrayOf[Elem]
|
5
5
|
include Knockapi::Internal::Type::Converter
|
6
|
+
include Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Knockapi
|
|
27
28
|
state: Knockapi::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Array[top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class Boolean
|
5
5
|
extend Knockapi::Internal::Type::Converter
|
6
|
+
extend Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Knockapi
|
|
17
18
|
bool | top value,
|
18
19
|
state: Knockapi::Internal::Type::Converter::dump_state
|
19
20
|
) -> (bool | top)
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class HashOf[Elem]
|
5
5
|
include Knockapi::Internal::Type::Converter
|
6
|
+
include Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Knockapi
|
|
27
28
|
state: Knockapi::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Hash[Symbol, top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Knockapi
|
|
3
3
|
module Type
|
4
4
|
class Unknown
|
5
5
|
extend Knockapi::Internal::Type::Converter
|
6
|
+
extend Knockapi::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Knockapi
|
|
17
18
|
top value,
|
18
19
|
state: Knockapi::Internal::Type::Converter::dump_state
|
19
20
|
) -> top
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -5,6 +5,10 @@ module Knockapi
|
|
5
5
|
|
6
6
|
def self?.monotonic_secs: -> Float
|
7
7
|
|
8
|
+
def self?.walk_namespaces: (
|
9
|
+
Module | Class ns
|
10
|
+
) -> Enumerable[(Module | Class)]
|
11
|
+
|
8
12
|
def self?.arch: -> String
|
9
13
|
|
10
14
|
def self?.os: -> String
|
@@ -166,7 +170,15 @@ module Knockapi
|
|
166
170
|
|
167
171
|
def const_missing: (Symbol name) -> void
|
168
172
|
|
173
|
+
def sorbet_constant_defined?: (Symbol name) -> bool
|
174
|
+
|
169
175
|
def define_sorbet_constant!: (Symbol name) { -> top } -> void
|
176
|
+
|
177
|
+
def to_sorbet_type: -> top
|
178
|
+
|
179
|
+
def self.to_sorbet_type: (
|
180
|
+
Knockapi::Internal::Util::SorbetRuntimeSupport | top `type`
|
181
|
+
) -> top
|
170
182
|
end
|
171
183
|
end
|
172
184
|
end
|
data/sig/knockapi/internal.rbs
CHANGED
@@ -104,16 +104,26 @@ module Knockapi
|
|
104
104
|
) -> void
|
105
105
|
|
106
106
|
type engagement_status =
|
107
|
-
:seen
|
107
|
+
:seen
|
108
|
+
| :unseen
|
109
|
+
| :read
|
110
|
+
| :unread
|
111
|
+
| :archived
|
112
|
+
| :unarchived
|
113
|
+
| :link_clicked
|
114
|
+
| :interacted
|
108
115
|
|
109
116
|
module EngagementStatus
|
110
117
|
extend Knockapi::Internal::Type::Enum
|
111
118
|
|
112
119
|
SEEN: :seen
|
120
|
+
UNSEEN: :unseen
|
113
121
|
READ: :read
|
114
|
-
|
115
|
-
LINK_CLICKED: :link_clicked
|
122
|
+
UNREAD: :unread
|
116
123
|
ARCHIVED: :archived
|
124
|
+
UNARCHIVED: :unarchived
|
125
|
+
LINK_CLICKED: :link_clicked
|
126
|
+
INTERACTED: :interacted
|
117
127
|
|
118
128
|
def self?.values: -> ::Array[Knockapi::MessageListParams::engagement_status]
|
119
129
|
end
|
@@ -104,16 +104,26 @@ module Knockapi
|
|
104
104
|
) -> void
|
105
105
|
|
106
106
|
type engagement_status =
|
107
|
-
:seen
|
107
|
+
:seen
|
108
|
+
| :unseen
|
109
|
+
| :read
|
110
|
+
| :unread
|
111
|
+
| :archived
|
112
|
+
| :unarchived
|
113
|
+
| :link_clicked
|
114
|
+
| :interacted
|
108
115
|
|
109
116
|
module EngagementStatus
|
110
117
|
extend Knockapi::Internal::Type::Enum
|
111
118
|
|
112
119
|
SEEN: :seen
|
120
|
+
UNSEEN: :unseen
|
113
121
|
READ: :read
|
114
|
-
|
115
|
-
LINK_CLICKED: :link_clicked
|
122
|
+
UNREAD: :unread
|
116
123
|
ARCHIVED: :archived
|
124
|
+
UNARCHIVED: :unarchived
|
125
|
+
LINK_CLICKED: :link_clicked
|
126
|
+
INTERACTED: :interacted
|
117
127
|
|
118
128
|
def self?.values: -> ::Array[Knockapi::ObjectListMessagesParams::engagement_status]
|
119
129
|
end
|
@@ -104,16 +104,26 @@ module Knockapi
|
|
104
104
|
) -> void
|
105
105
|
|
106
106
|
type engagement_status =
|
107
|
-
:seen
|
107
|
+
:seen
|
108
|
+
| :unseen
|
109
|
+
| :read
|
110
|
+
| :unread
|
111
|
+
| :archived
|
112
|
+
| :unarchived
|
113
|
+
| :link_clicked
|
114
|
+
| :interacted
|
108
115
|
|
109
116
|
module EngagementStatus
|
110
117
|
extend Knockapi::Internal::Type::Enum
|
111
118
|
|
112
119
|
SEEN: :seen
|
120
|
+
UNSEEN: :unseen
|
113
121
|
READ: :read
|
114
|
-
|
115
|
-
LINK_CLICKED: :link_clicked
|
122
|
+
UNREAD: :unread
|
116
123
|
ARCHIVED: :archived
|
124
|
+
UNARCHIVED: :unarchived
|
125
|
+
LINK_CLICKED: :link_clicked
|
126
|
+
INTERACTED: :interacted
|
117
127
|
|
118
128
|
def self?.values: -> ::Array[Knockapi::UserListMessagesParams::engagement_status]
|
119
129
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knockapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Knock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|