knockapi 1.17.0 → 1.19.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 +33 -0
- data/README.md +1 -1
- data/lib/knockapi/client.rb +12 -0
- data/lib/knockapi/internal/transport/base_client.rb +7 -1
- data/lib/knockapi/internal/transport/pooled_net_requester.rb +6 -2
- data/lib/knockapi/models/identify_user_request.rb +2 -2
- data/lib/knockapi/models/inline_identify_user_request.rb +2 -2
- data/lib/knockapi/models/inline_object_request.rb +11 -3
- data/lib/knockapi/models/object_set_params.rb +11 -3
- data/lib/knockapi/models/objects/bulk_set_params.rb +11 -3
- data/lib/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rb +63 -0
- data/lib/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rb +25 -0
- data/lib/knockapi/models/recipients/channel_data.rb +4 -17
- data/lib/knockapi/models/recipients/channel_data_request.rb +12 -50
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +10 -48
- data/lib/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rb +20 -0
- data/lib/knockapi/models/recipients/preference_set.rb +12 -54
- data/lib/knockapi/models/recipients/preference_set_channel_setting.rb +21 -0
- data/lib/knockapi/models/recipients/preference_set_request.rb +12 -54
- data/lib/knockapi/models/recipients/push_channel_data_devices_only.rb +60 -0
- data/lib/knockapi/models/recipients/push_channel_data_tokens_only.rb +20 -0
- data/lib/knockapi/models/tenant_request.rb +11 -3
- data/lib/knockapi/models/tenant_set_params.rb +11 -3
- data/lib/knockapi/models/users/feed_list_items_params.rb +15 -1
- data/lib/knockapi/resources/objects.rb +6 -4
- data/lib/knockapi/resources/tenants.rb +4 -2
- data/lib/knockapi/resources/users/feeds.rb +6 -1
- data/lib/knockapi/resources/users.rb +3 -3
- data/lib/knockapi/version.rb +1 -1
- data/lib/knockapi.rb +7 -0
- data/manifest.yaml +1 -0
- data/rbi/knockapi/client.rbi +7 -0
- data/rbi/knockapi/internal/transport/base_client.rbi +5 -0
- data/rbi/knockapi/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/knockapi/internal/type/base_model.rbi +8 -4
- data/rbi/knockapi/models/identify_user_request.rbi +15 -9
- data/rbi/knockapi/models/inline_identify_user_request.rbi +15 -9
- data/rbi/knockapi/models/inline_object_request.rbi +23 -9
- data/rbi/knockapi/models/object_set_params.rbi +28 -12
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +23 -9
- data/rbi/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbi +120 -0
- data/rbi/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbi +35 -0
- data/rbi/knockapi/models/recipients/channel_data.rbi +2 -30
- data/rbi/knockapi/models/recipients/channel_data_request.rbi +20 -96
- data/rbi/knockapi/models/recipients/inline_channel_data_request.rbi +5 -85
- data/rbi/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbi +33 -0
- data/rbi/knockapi/models/recipients/preference_set.rbi +6 -109
- data/rbi/knockapi/models/recipients/preference_set_channel_setting.rbi +38 -0
- data/rbi/knockapi/models/recipients/preference_set_request.rbi +12 -115
- data/rbi/knockapi/models/recipients/push_channel_data_devices_only.rbi +114 -0
- data/rbi/knockapi/models/recipients/push_channel_data_tokens_only.rbi +33 -0
- data/rbi/knockapi/models/tenant_request.rbi +23 -9
- data/rbi/knockapi/models/tenant_set_params.rbi +23 -9
- data/rbi/knockapi/models/users/feed_list_items_params.rbi +17 -0
- data/rbi/knockapi/resources/objects.rbi +14 -7
- data/rbi/knockapi/resources/tenants.rbi +8 -3
- data/rbi/knockapi/resources/users/feeds.rbi +6 -0
- data/rbi/knockapi/resources/users.rbi +11 -7
- data/sig/knockapi/client.rbs +3 -0
- data/sig/knockapi/internal/transport/base_client.rbs +2 -0
- data/sig/knockapi/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/knockapi/models/inline_object_request.rbs +5 -0
- data/sig/knockapi/models/object_set_params.rbs +5 -0
- data/sig/knockapi/models/objects/bulk_set_params.rbs +5 -0
- data/sig/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbs +44 -0
- data/sig/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbs +16 -0
- data/sig/knockapi/models/recipients/channel_data.rbs +1 -12
- data/sig/knockapi/models/recipients/channel_data_request.rbs +5 -35
- data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +5 -35
- data/sig/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbs +16 -0
- data/sig/knockapi/models/recipients/preference_set.rbs +3 -44
- data/sig/knockapi/models/recipients/preference_set_channel_setting.rbs +16 -0
- data/sig/knockapi/models/recipients/preference_set_request.rbs +3 -44
- data/sig/knockapi/models/recipients/push_channel_data_devices_only.rbs +40 -0
- data/sig/knockapi/models/recipients/push_channel_data_tokens_only.rbs +15 -0
- data/sig/knockapi/models/tenant_request.rbs +5 -0
- data/sig/knockapi/models/tenant_set_params.rbs +5 -0
- data/sig/knockapi/models/users/feed_list_items_params.rbs +7 -0
- data/sig/knockapi/resources/objects.rbs +1 -0
- data/sig/knockapi/resources/tenants.rbs +1 -0
- data/sig/knockapi/resources/users/feeds.rbs +1 -0
- metadata +20 -2
|
@@ -24,9 +24,11 @@ module Knockapi
|
|
|
24
24
|
T::Hash[
|
|
25
25
|
Symbol,
|
|
26
26
|
T.any(
|
|
27
|
-
Knockapi::Recipients::
|
|
28
|
-
Knockapi::Recipients::
|
|
29
|
-
Knockapi::Recipients::
|
|
27
|
+
Knockapi::Recipients::PushChannelDataTokensOnly::OrHash,
|
|
28
|
+
Knockapi::Recipients::PushChannelDataDevicesOnly::OrHash,
|
|
29
|
+
Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly::OrHash,
|
|
30
|
+
Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::OrHash,
|
|
31
|
+
Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly::OrHash,
|
|
30
32
|
Knockapi::Recipients::SlackChannelData::OrHash,
|
|
31
33
|
Knockapi::Recipients::MsTeamsChannelData::OrHash,
|
|
32
34
|
Knockapi::Recipients::DiscordChannelData::OrHash
|
|
@@ -343,9 +345,11 @@ module Knockapi
|
|
|
343
345
|
channel_id: String,
|
|
344
346
|
data:
|
|
345
347
|
T.any(
|
|
346
|
-
Knockapi::Recipients::
|
|
347
|
-
Knockapi::Recipients::
|
|
348
|
-
Knockapi::Recipients::
|
|
348
|
+
Knockapi::Recipients::PushChannelDataTokensOnly::OrHash,
|
|
349
|
+
Knockapi::Recipients::PushChannelDataDevicesOnly::OrHash,
|
|
350
|
+
Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly::OrHash,
|
|
351
|
+
Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::OrHash,
|
|
352
|
+
Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly::OrHash,
|
|
349
353
|
Knockapi::Recipients::SlackChannelData::OrHash,
|
|
350
354
|
Knockapi::Recipients::MsTeamsChannelData::OrHash,
|
|
351
355
|
Knockapi::Recipients::DiscordChannelData::OrHash
|
|
@@ -392,7 +396,7 @@ module Knockapi
|
|
|
392
396
|
Symbol,
|
|
393
397
|
T.any(
|
|
394
398
|
T::Boolean,
|
|
395
|
-
Knockapi::Recipients::
|
|
399
|
+
Knockapi::Recipients::PreferenceSetChannelSetting::OrHash
|
|
396
400
|
)
|
|
397
401
|
]
|
|
398
402
|
),
|
data/sig/knockapi/client.rbs
CHANGED
|
@@ -10,6 +10,8 @@ module Knockapi
|
|
|
10
10
|
|
|
11
11
|
attr_reader api_key: String
|
|
12
12
|
|
|
13
|
+
attr_reader branch: String?
|
|
14
|
+
|
|
13
15
|
attr_reader recipients: Knockapi::Resources::Recipients
|
|
14
16
|
|
|
15
17
|
attr_reader users: Knockapi::Resources::Users
|
|
@@ -38,6 +40,7 @@ module Knockapi
|
|
|
38
40
|
|
|
39
41
|
def initialize: (
|
|
40
42
|
?api_key: String?,
|
|
43
|
+
?branch: String?,
|
|
41
44
|
?base_url: String?,
|
|
42
45
|
?max_retries: Integer,
|
|
43
46
|
?timeout: Float,
|
|
@@ -17,7 +17,10 @@ module Knockapi
|
|
|
17
17
|
|
|
18
18
|
DEFAULT_MAX_CONNECTIONS: Integer
|
|
19
19
|
|
|
20
|
-
def self.connect: (
|
|
20
|
+
def self.connect: (
|
|
21
|
+
cert_store: OpenSSL::X509::Store,
|
|
22
|
+
url: URI::Generic
|
|
23
|
+
) -> top
|
|
21
24
|
|
|
22
25
|
def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
|
|
23
26
|
|
|
@@ -6,6 +6,7 @@ module Knockapi
|
|
|
6
6
|
collection: String,
|
|
7
7
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
8
8
|
created_at: Time?,
|
|
9
|
+
name: String?,
|
|
9
10
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -18,6 +19,8 @@ module Knockapi
|
|
|
18
19
|
|
|
19
20
|
attr_accessor created_at: Time?
|
|
20
21
|
|
|
22
|
+
attr_accessor name: String?
|
|
23
|
+
|
|
21
24
|
attr_accessor preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
@@ -25,6 +28,7 @@ module Knockapi
|
|
|
25
28
|
collection: String,
|
|
26
29
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
27
30
|
?created_at: Time?,
|
|
31
|
+
?name: String?,
|
|
28
32
|
?preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
29
33
|
) -> void
|
|
30
34
|
|
|
@@ -33,6 +37,7 @@ module Knockapi
|
|
|
33
37
|
collection: String,
|
|
34
38
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
35
39
|
created_at: Time?,
|
|
40
|
+
name: String?,
|
|
36
41
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
37
42
|
}
|
|
38
43
|
end
|
|
@@ -4,6 +4,7 @@ module Knockapi
|
|
|
4
4
|
{
|
|
5
5
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
6
6
|
locale: String?,
|
|
7
|
+
name: String?,
|
|
7
8
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request,
|
|
8
9
|
timezone: String?
|
|
9
10
|
}
|
|
@@ -21,6 +22,8 @@ module Knockapi
|
|
|
21
22
|
|
|
22
23
|
attr_accessor locale: String?
|
|
23
24
|
|
|
25
|
+
attr_accessor name: String?
|
|
26
|
+
|
|
24
27
|
attr_reader preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
25
28
|
|
|
26
29
|
def preferences=: (
|
|
@@ -32,6 +35,7 @@ module Knockapi
|
|
|
32
35
|
def initialize: (
|
|
33
36
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
34
37
|
?locale: String?,
|
|
38
|
+
?name: String?,
|
|
35
39
|
?preferences: Knockapi::Models::Recipients::inline_preference_set_request,
|
|
36
40
|
?timezone: String?,
|
|
37
41
|
?request_options: Knockapi::request_opts
|
|
@@ -40,6 +44,7 @@ module Knockapi
|
|
|
40
44
|
def to_hash: -> {
|
|
41
45
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
42
46
|
locale: String?,
|
|
47
|
+
name: String?,
|
|
43
48
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request,
|
|
44
49
|
timezone: String?,
|
|
45
50
|
request_options: Knockapi::RequestOptions
|
|
@@ -26,6 +26,7 @@ module Knockapi
|
|
|
26
26
|
id: String,
|
|
27
27
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
28
28
|
created_at: Time?,
|
|
29
|
+
name: String?,
|
|
29
30
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -36,12 +37,15 @@ module Knockapi
|
|
|
36
37
|
|
|
37
38
|
attr_accessor created_at: Time?
|
|
38
39
|
|
|
40
|
+
attr_accessor name: String?
|
|
41
|
+
|
|
39
42
|
attr_accessor preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
40
43
|
|
|
41
44
|
def initialize: (
|
|
42
45
|
id: String,
|
|
43
46
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
44
47
|
?created_at: Time?,
|
|
48
|
+
?name: String?,
|
|
45
49
|
?preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
46
50
|
) -> void
|
|
47
51
|
|
|
@@ -49,6 +53,7 @@ module Knockapi
|
|
|
49
53
|
id: String,
|
|
50
54
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
51
55
|
created_at: Time?,
|
|
56
|
+
name: String?,
|
|
52
57
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
53
58
|
}
|
|
54
59
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type aws_sns_push_channel_data_devices_only =
|
|
5
|
+
{
|
|
6
|
+
devices: ::Array[Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::Device]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class AwsSnsPushChannelDataDevicesOnly < Knockapi::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor devices: ::Array[Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::Device]
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
devices: ::Array[Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::Device]
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
devices: ::Array[Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly::Device]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type device = { target_arn: String, locale: String?, timezone: String? }
|
|
21
|
+
|
|
22
|
+
class Device < Knockapi::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor target_arn: String
|
|
24
|
+
|
|
25
|
+
attr_accessor locale: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor timezone: String?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
target_arn: String,
|
|
31
|
+
?locale: String?,
|
|
32
|
+
?timezone: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
target_arn: String,
|
|
37
|
+
locale: String?,
|
|
38
|
+
timezone: String?
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type aws_sns_push_channel_data_target_arns_only =
|
|
5
|
+
{ target_arns: ::Array[String] }
|
|
6
|
+
|
|
7
|
+
class AwsSnsPushChannelDataTargetArnsOnly < Knockapi::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor target_arns: ::Array[String]
|
|
9
|
+
|
|
10
|
+
def initialize: (target_arns: ::Array[String]) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { target_arns: ::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -39,7 +39,7 @@ module Knockapi
|
|
|
39
39
|
type data =
|
|
40
40
|
Knockapi::Recipients::RecipientsChannelData::Data::PushChannelDataFull
|
|
41
41
|
| Knockapi::Recipients::RecipientsChannelData::Data::AwssnsPushChannelDataFull
|
|
42
|
-
| Knockapi::Recipients::
|
|
42
|
+
| Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly
|
|
43
43
|
| Knockapi::Recipients::SlackChannelData
|
|
44
44
|
| Knockapi::Recipients::MsTeamsChannelData
|
|
45
45
|
| Knockapi::Recipients::DiscordChannelData
|
|
@@ -136,17 +136,6 @@ module Knockapi
|
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
type one_signal_channel_data_player_ids_only =
|
|
140
|
-
{ player_ids: ::Array[String] }
|
|
141
|
-
|
|
142
|
-
class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
|
|
143
|
-
attr_accessor player_ids: ::Array[String]
|
|
144
|
-
|
|
145
|
-
def initialize: (player_ids: ::Array[String]) -> void
|
|
146
|
-
|
|
147
|
-
def to_hash: -> { player_ids: ::Array[String] }
|
|
148
|
-
end
|
|
149
|
-
|
|
150
139
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::RecipientsChannelData::data]
|
|
151
140
|
end
|
|
152
141
|
|
|
@@ -16,9 +16,11 @@ module Knockapi
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
type data =
|
|
19
|
-
Knockapi::Recipients::
|
|
20
|
-
| Knockapi::Recipients::
|
|
21
|
-
| Knockapi::Recipients::
|
|
19
|
+
Knockapi::Recipients::PushChannelDataTokensOnly
|
|
20
|
+
| Knockapi::Recipients::PushChannelDataDevicesOnly
|
|
21
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly
|
|
22
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly
|
|
23
|
+
| Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly
|
|
22
24
|
| Knockapi::Recipients::SlackChannelData
|
|
23
25
|
| Knockapi::Recipients::MsTeamsChannelData
|
|
24
26
|
| Knockapi::Recipients::DiscordChannelData
|
|
@@ -26,38 +28,6 @@ module Knockapi
|
|
|
26
28
|
module Data
|
|
27
29
|
extend Knockapi::Internal::Type::Union
|
|
28
30
|
|
|
29
|
-
type push_channel_data_tokens_only = { tokens: ::Array[String] }
|
|
30
|
-
|
|
31
|
-
class PushChannelDataTokensOnly < Knockapi::Internal::Type::BaseModel
|
|
32
|
-
attr_accessor tokens: ::Array[String]
|
|
33
|
-
|
|
34
|
-
def initialize: (tokens: ::Array[String]) -> void
|
|
35
|
-
|
|
36
|
-
def to_hash: -> { tokens: ::Array[String] }
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
type awssns_push_channel_data_target_ar_ns_only =
|
|
40
|
-
{ target_arns: ::Array[String] }
|
|
41
|
-
|
|
42
|
-
class AwssnsPushChannelDataTargetArNsOnly < Knockapi::Internal::Type::BaseModel
|
|
43
|
-
attr_accessor target_arns: ::Array[String]
|
|
44
|
-
|
|
45
|
-
def initialize: (target_arns: ::Array[String]) -> void
|
|
46
|
-
|
|
47
|
-
def to_hash: -> { target_arns: ::Array[String] }
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
type one_signal_channel_data_player_ids_only =
|
|
51
|
-
{ player_ids: ::Array[String] }
|
|
52
|
-
|
|
53
|
-
class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
|
|
54
|
-
attr_accessor player_ids: ::Array[String]
|
|
55
|
-
|
|
56
|
-
def initialize: (player_ids: ::Array[String]) -> void
|
|
57
|
-
|
|
58
|
-
def to_hash: -> { player_ids: ::Array[String] }
|
|
59
|
-
end
|
|
60
|
-
|
|
61
31
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::ChannelDataRequest::data]
|
|
62
32
|
end
|
|
63
33
|
end
|
|
@@ -2,9 +2,11 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
module Recipients
|
|
4
4
|
type inline_channel_data_request_item =
|
|
5
|
-
Knockapi::Recipients::
|
|
6
|
-
| Knockapi::Recipients::
|
|
7
|
-
| Knockapi::Recipients::
|
|
5
|
+
Knockapi::Recipients::PushChannelDataTokensOnly
|
|
6
|
+
| Knockapi::Recipients::PushChannelDataDevicesOnly
|
|
7
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly
|
|
8
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly
|
|
9
|
+
| Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly
|
|
8
10
|
| Knockapi::Recipients::SlackChannelData
|
|
9
11
|
| Knockapi::Recipients::MsTeamsChannelData
|
|
10
12
|
| Knockapi::Recipients::DiscordChannelData
|
|
@@ -12,38 +14,6 @@ module Knockapi
|
|
|
12
14
|
module InlineChannelDataRequestItem
|
|
13
15
|
extend Knockapi::Internal::Type::Union
|
|
14
16
|
|
|
15
|
-
type push_channel_data_tokens_only = { tokens: ::Array[String] }
|
|
16
|
-
|
|
17
|
-
class PushChannelDataTokensOnly < Knockapi::Internal::Type::BaseModel
|
|
18
|
-
attr_accessor tokens: ::Array[String]
|
|
19
|
-
|
|
20
|
-
def initialize: (tokens: ::Array[String]) -> void
|
|
21
|
-
|
|
22
|
-
def to_hash: -> { tokens: ::Array[String] }
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
type awssns_push_channel_data_target_ar_ns_only =
|
|
26
|
-
{ target_arns: ::Array[String] }
|
|
27
|
-
|
|
28
|
-
class AwssnsPushChannelDataTargetArNsOnly < Knockapi::Internal::Type::BaseModel
|
|
29
|
-
attr_accessor target_arns: ::Array[String]
|
|
30
|
-
|
|
31
|
-
def initialize: (target_arns: ::Array[String]) -> void
|
|
32
|
-
|
|
33
|
-
def to_hash: -> { target_arns: ::Array[String] }
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
type one_signal_channel_data_player_ids_only =
|
|
37
|
-
{ player_ids: ::Array[String] }
|
|
38
|
-
|
|
39
|
-
class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
|
|
40
|
-
attr_accessor player_ids: ::Array[String]
|
|
41
|
-
|
|
42
|
-
def initialize: (player_ids: ::Array[String]) -> void
|
|
43
|
-
|
|
44
|
-
def to_hash: -> { player_ids: ::Array[String] }
|
|
45
|
-
end
|
|
46
|
-
|
|
47
17
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::inline_channel_data_request_item]
|
|
48
18
|
end
|
|
49
19
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type one_signal_channel_data_player_ids_only =
|
|
5
|
+
{ player_ids: ::Array[String] }
|
|
6
|
+
|
|
7
|
+
class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor player_ids: ::Array[String]
|
|
9
|
+
|
|
10
|
+
def initialize: (player_ids: ::Array[String]) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { player_ids: ::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -76,25 +76,11 @@ module Knockapi
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
type channel =
|
|
79
|
-
bool
|
|
80
|
-
| Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
79
|
+
bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
81
80
|
|
|
82
81
|
module Channel
|
|
83
82
|
extend Knockapi::Internal::Type::Union
|
|
84
83
|
|
|
85
|
-
type preference_set_channel_setting =
|
|
86
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
87
|
-
|
|
88
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
89
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
90
|
-
|
|
91
|
-
def initialize: (
|
|
92
|
-
conditions: ::Array[Knockapi::Condition]
|
|
93
|
-
) -> void
|
|
94
|
-
|
|
95
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
96
|
-
end
|
|
97
|
-
|
|
98
84
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::channel]
|
|
99
85
|
end
|
|
100
86
|
end
|
|
@@ -102,24 +88,11 @@ module Knockapi
|
|
|
102
88
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSet::category]
|
|
103
89
|
end
|
|
104
90
|
|
|
105
|
-
type channel =
|
|
106
|
-
bool
|
|
107
|
-
| Knockapi::Recipients::PreferenceSet::Channel::PreferenceSetChannelSetting
|
|
91
|
+
type channel = bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
108
92
|
|
|
109
93
|
module Channel
|
|
110
94
|
extend Knockapi::Internal::Type::Union
|
|
111
95
|
|
|
112
|
-
type preference_set_channel_setting =
|
|
113
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
114
|
-
|
|
115
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
116
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
117
|
-
|
|
118
|
-
def initialize: (conditions: ::Array[Knockapi::Condition]) -> void
|
|
119
|
-
|
|
120
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
121
|
-
end
|
|
122
|
-
|
|
123
96
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSet::channel]
|
|
124
97
|
end
|
|
125
98
|
|
|
@@ -157,25 +130,11 @@ module Knockapi
|
|
|
157
130
|
}
|
|
158
131
|
|
|
159
132
|
type channel =
|
|
160
|
-
bool
|
|
161
|
-
| Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
133
|
+
bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
162
134
|
|
|
163
135
|
module Channel
|
|
164
136
|
extend Knockapi::Internal::Type::Union
|
|
165
137
|
|
|
166
|
-
type preference_set_channel_setting =
|
|
167
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
168
|
-
|
|
169
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
170
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
171
|
-
|
|
172
|
-
def initialize: (
|
|
173
|
-
conditions: ::Array[Knockapi::Condition]
|
|
174
|
-
) -> void
|
|
175
|
-
|
|
176
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
177
|
-
end
|
|
178
|
-
|
|
179
138
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::channel]
|
|
180
139
|
end
|
|
181
140
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type preference_set_channel_setting =
|
|
5
|
+
{ conditions: ::Array[Knockapi::Condition] }
|
|
6
|
+
|
|
7
|
+
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
9
|
+
|
|
10
|
+
def initialize: (conditions: ::Array[Knockapi::Condition]) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -91,25 +91,11 @@ module Knockapi
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
type channel =
|
|
94
|
-
bool
|
|
95
|
-
| Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
94
|
+
bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
96
95
|
|
|
97
96
|
module Channel
|
|
98
97
|
extend Knockapi::Internal::Type::Union
|
|
99
98
|
|
|
100
|
-
type preference_set_channel_setting =
|
|
101
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
102
|
-
|
|
103
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
104
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
105
|
-
|
|
106
|
-
def initialize: (
|
|
107
|
-
conditions: ::Array[Knockapi::Condition]
|
|
108
|
-
) -> void
|
|
109
|
-
|
|
110
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
111
|
-
end
|
|
112
|
-
|
|
113
99
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::channel]
|
|
114
100
|
end
|
|
115
101
|
end
|
|
@@ -117,24 +103,11 @@ module Knockapi
|
|
|
117
103
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSetRequest::category]
|
|
118
104
|
end
|
|
119
105
|
|
|
120
|
-
type channel =
|
|
121
|
-
bool
|
|
122
|
-
| Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting
|
|
106
|
+
type channel = bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
123
107
|
|
|
124
108
|
module Channel
|
|
125
109
|
extend Knockapi::Internal::Type::Union
|
|
126
110
|
|
|
127
|
-
type preference_set_channel_setting =
|
|
128
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
129
|
-
|
|
130
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
131
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
132
|
-
|
|
133
|
-
def initialize: (conditions: ::Array[Knockapi::Condition]) -> void
|
|
134
|
-
|
|
135
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
136
|
-
end
|
|
137
|
-
|
|
138
111
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSetRequest::channel]
|
|
139
112
|
end
|
|
140
113
|
|
|
@@ -172,25 +145,11 @@ module Knockapi
|
|
|
172
145
|
}
|
|
173
146
|
|
|
174
147
|
type channel =
|
|
175
|
-
bool
|
|
176
|
-
| Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
148
|
+
bool | Knockapi::Recipients::PreferenceSetChannelSetting
|
|
177
149
|
|
|
178
150
|
module Channel
|
|
179
151
|
extend Knockapi::Internal::Type::Union
|
|
180
152
|
|
|
181
|
-
type preference_set_channel_setting =
|
|
182
|
-
{ conditions: ::Array[Knockapi::Condition] }
|
|
183
|
-
|
|
184
|
-
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
185
|
-
attr_accessor conditions: ::Array[Knockapi::Condition]
|
|
186
|
-
|
|
187
|
-
def initialize: (
|
|
188
|
-
conditions: ::Array[Knockapi::Condition]
|
|
189
|
-
) -> void
|
|
190
|
-
|
|
191
|
-
def to_hash: -> { conditions: ::Array[Knockapi::Condition] }
|
|
192
|
-
end
|
|
193
|
-
|
|
194
153
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::channel]
|
|
195
154
|
end
|
|
196
155
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type push_channel_data_devices_only =
|
|
5
|
+
{
|
|
6
|
+
devices: ::Array[Knockapi::Recipients::PushChannelDataDevicesOnly::Device]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class PushChannelDataDevicesOnly < Knockapi::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor devices: ::Array[Knockapi::Recipients::PushChannelDataDevicesOnly::Device]
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
devices: ::Array[Knockapi::Recipients::PushChannelDataDevicesOnly::Device]
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
devices: ::Array[Knockapi::Recipients::PushChannelDataDevicesOnly::Device]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type device = { token: String, locale: String?, timezone: String? }
|
|
21
|
+
|
|
22
|
+
class Device < Knockapi::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor token: String
|
|
24
|
+
|
|
25
|
+
attr_accessor locale: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor timezone: String?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
token: String,
|
|
31
|
+
?locale: String?,
|
|
32
|
+
?timezone: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> { token: String, locale: String?, timezone: String? }
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Knockapi
|
|
2
|
+
module Models
|
|
3
|
+
module Recipients
|
|
4
|
+
type push_channel_data_tokens_only = { tokens: ::Array[String] }
|
|
5
|
+
|
|
6
|
+
class PushChannelDataTokensOnly < Knockapi::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor tokens: ::Array[String]
|
|
8
|
+
|
|
9
|
+
def initialize: (tokens: ::Array[String]) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { tokens: ::Array[String] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -4,6 +4,7 @@ module Knockapi
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
7
|
+
name: String?,
|
|
7
8
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?,
|
|
8
9
|
settings: Knockapi::TenantRequest::Settings
|
|
9
10
|
}
|
|
@@ -13,6 +14,8 @@ module Knockapi
|
|
|
13
14
|
|
|
14
15
|
attr_accessor channel_data: Knockapi::Models::Recipients::inline_channel_data_request?
|
|
15
16
|
|
|
17
|
+
attr_accessor name: String?
|
|
18
|
+
|
|
16
19
|
attr_accessor preferences: Knockapi::Models::Recipients::inline_preference_set_request?
|
|
17
20
|
|
|
18
21
|
attr_reader settings: Knockapi::TenantRequest::Settings?
|
|
@@ -24,6 +27,7 @@ module Knockapi
|
|
|
24
27
|
def initialize: (
|
|
25
28
|
id: String,
|
|
26
29
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
30
|
+
?name: String?,
|
|
27
31
|
?preferences: Knockapi::Models::Recipients::inline_preference_set_request?,
|
|
28
32
|
?settings: Knockapi::TenantRequest::Settings
|
|
29
33
|
) -> void
|
|
@@ -31,6 +35,7 @@ module Knockapi
|
|
|
31
35
|
def to_hash: -> {
|
|
32
36
|
id: String,
|
|
33
37
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
38
|
+
name: String?,
|
|
34
39
|
preferences: Knockapi::Models::Recipients::inline_preference_set_request?,
|
|
35
40
|
settings: Knockapi::TenantRequest::Settings
|
|
36
41
|
}
|