knockapi 1.18.0 → 1.20.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 +32 -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_add_subscriptions_params.rb +13 -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 +8 -162
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +6 -160
- 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_get_params.rb +14 -1
- data/lib/knockapi/models/tenant_request.rb +11 -3
- data/lib/knockapi/models/tenant_set_params.rb +24 -3
- data/lib/knockapi/models/users/feed_list_items_params.rb +15 -1
- data/lib/knockapi/resources/objects/bulk.rb +1 -1
- data/lib/knockapi/resources/objects.rb +6 -4
- data/lib/knockapi/resources/tenants.rb +23 -7
- 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 -15
- data/rbi/knockapi/models/inline_identify_user_request.rbi +15 -15
- data/rbi/knockapi/models/inline_object_request.rbi +23 -15
- data/rbi/knockapi/models/object_set_params.rbi +28 -20
- data/rbi/knockapi/models/objects/bulk_add_subscriptions_params.rbi +11 -2
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +23 -15
- 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 -326
- data/rbi/knockapi/models/recipients/inline_channel_data_request.rbi +5 -309
- 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_get_params.rbi +28 -5
- data/rbi/knockapi/models/tenant_request.rbi +23 -15
- data/rbi/knockapi/models/tenant_set_params.rbi +38 -15
- data/rbi/knockapi/models/users/feed_list_items_params.rbi +17 -0
- data/rbi/knockapi/resources/objects/bulk.rbi +1 -1
- data/rbi/knockapi/resources/objects.rbi +14 -11
- data/rbi/knockapi/resources/tenants.rbi +21 -8
- data/rbi/knockapi/resources/users/feeds.rbi +6 -0
- data/rbi/knockapi/resources/users.rbi +11 -11
- 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_add_subscriptions_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 -116
- data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +5 -116
- 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_get_params.rbs +15 -3
- data/sig/knockapi/models/tenant_request.rbs +5 -0
- data/sig/knockapi/models/tenant_set_params.rbs +12 -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 +3 -0
- data/sig/knockapi/resources/users/feeds.rbs +1 -0
- metadata +20 -2
|
@@ -2,11 +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::
|
|
8
|
-
| Knockapi::Recipients::
|
|
9
|
-
| Knockapi::Recipients::
|
|
5
|
+
Knockapi::Recipients::PushChannelDataTokensOnly
|
|
6
|
+
| Knockapi::Recipients::PushChannelDataDevicesOnly
|
|
7
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly
|
|
8
|
+
| Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly
|
|
9
|
+
| Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly
|
|
10
10
|
| Knockapi::Recipients::SlackChannelData
|
|
11
11
|
| Knockapi::Recipients::MsTeamsChannelData
|
|
12
12
|
| Knockapi::Recipients::DiscordChannelData
|
|
@@ -14,117 +14,6 @@ module Knockapi
|
|
|
14
14
|
module InlineChannelDataRequestItem
|
|
15
15
|
extend Knockapi::Internal::Type::Union
|
|
16
16
|
|
|
17
|
-
type push_channel_data_tokens_only = { tokens: ::Array[String] }
|
|
18
|
-
|
|
19
|
-
class PushChannelDataTokensOnly < Knockapi::Internal::Type::BaseModel
|
|
20
|
-
attr_accessor tokens: ::Array[String]
|
|
21
|
-
|
|
22
|
-
def initialize: (tokens: ::Array[String]) -> void
|
|
23
|
-
|
|
24
|
-
def to_hash: -> { tokens: ::Array[String] }
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
type push_channel_data_devices_only =
|
|
28
|
-
{
|
|
29
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataDevicesOnly::Device]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class PushChannelDataDevicesOnly < Knockapi::Internal::Type::BaseModel
|
|
33
|
-
attr_accessor devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataDevicesOnly::Device]
|
|
34
|
-
|
|
35
|
-
def initialize: (
|
|
36
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataDevicesOnly::Device]
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataDevicesOnly::Device]
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type device = { token: String, locale: String?, timezone: String? }
|
|
44
|
-
|
|
45
|
-
class Device < Knockapi::Internal::Type::BaseModel
|
|
46
|
-
attr_accessor token: String
|
|
47
|
-
|
|
48
|
-
attr_accessor locale: String?
|
|
49
|
-
|
|
50
|
-
attr_accessor timezone: String?
|
|
51
|
-
|
|
52
|
-
def initialize: (
|
|
53
|
-
token: String,
|
|
54
|
-
?locale: String?,
|
|
55
|
-
?timezone: String?
|
|
56
|
-
) -> void
|
|
57
|
-
|
|
58
|
-
def to_hash: -> {
|
|
59
|
-
token: String,
|
|
60
|
-
locale: String?,
|
|
61
|
-
timezone: String?
|
|
62
|
-
}
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
type awssns_push_channel_data_target_ar_ns_only =
|
|
67
|
-
{ target_arns: ::Array[String] }
|
|
68
|
-
|
|
69
|
-
class AwssnsPushChannelDataTargetArNsOnly < Knockapi::Internal::Type::BaseModel
|
|
70
|
-
attr_accessor target_arns: ::Array[String]
|
|
71
|
-
|
|
72
|
-
def initialize: (target_arns: ::Array[String]) -> void
|
|
73
|
-
|
|
74
|
-
def to_hash: -> { target_arns: ::Array[String] }
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
type awssns_push_channel_data_devices_only =
|
|
78
|
-
{
|
|
79
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataDevicesOnly::Device]
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
class AwssnsPushChannelDataDevicesOnly < Knockapi::Internal::Type::BaseModel
|
|
83
|
-
attr_accessor devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataDevicesOnly::Device]
|
|
84
|
-
|
|
85
|
-
def initialize: (
|
|
86
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataDevicesOnly::Device]
|
|
87
|
-
) -> void
|
|
88
|
-
|
|
89
|
-
def to_hash: -> {
|
|
90
|
-
devices: ::Array[Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataDevicesOnly::Device]
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
type device =
|
|
94
|
-
{ target_arn: String, locale: String?, timezone: String? }
|
|
95
|
-
|
|
96
|
-
class Device < Knockapi::Internal::Type::BaseModel
|
|
97
|
-
attr_accessor target_arn: String
|
|
98
|
-
|
|
99
|
-
attr_accessor locale: String?
|
|
100
|
-
|
|
101
|
-
attr_accessor timezone: String?
|
|
102
|
-
|
|
103
|
-
def initialize: (
|
|
104
|
-
target_arn: String,
|
|
105
|
-
?locale: String?,
|
|
106
|
-
?timezone: String?
|
|
107
|
-
) -> void
|
|
108
|
-
|
|
109
|
-
def to_hash: -> {
|
|
110
|
-
target_arn: String,
|
|
111
|
-
locale: String?,
|
|
112
|
-
timezone: String?
|
|
113
|
-
}
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
type one_signal_channel_data_player_ids_only =
|
|
118
|
-
{ player_ids: ::Array[String] }
|
|
119
|
-
|
|
120
|
-
class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
|
|
121
|
-
attr_accessor player_ids: ::Array[String]
|
|
122
|
-
|
|
123
|
-
def initialize: (player_ids: ::Array[String]) -> void
|
|
124
|
-
|
|
125
|
-
def to_hash: -> { player_ids: ::Array[String] }
|
|
126
|
-
end
|
|
127
|
-
|
|
128
17
|
def self?.variants: -> ::Array[Knockapi::Models::Recipients::inline_channel_data_request_item]
|
|
129
18
|
end
|
|
130
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
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
module Knockapi
|
|
2
2
|
module Models
|
|
3
|
-
type tenant_get_params =
|
|
3
|
+
type tenant_get_params =
|
|
4
|
+
{ resolve_full_preference_settings: bool }
|
|
5
|
+
& Knockapi::Internal::Type::request_parameters
|
|
4
6
|
|
|
5
7
|
class TenantGetParams < Knockapi::Internal::Type::BaseModel
|
|
6
8
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
7
9
|
include Knockapi::Internal::Type::RequestParameters
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
attr_reader resolve_full_preference_settings: bool?
|
|
10
12
|
|
|
11
|
-
def
|
|
13
|
+
def resolve_full_preference_settings=: (bool) -> bool
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?resolve_full_preference_settings: bool,
|
|
17
|
+
?request_options: Knockapi::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
resolve_full_preference_settings: bool,
|
|
22
|
+
request_options: Knockapi::RequestOptions
|
|
23
|
+
}
|
|
12
24
|
end
|
|
13
25
|
end
|
|
14
26
|
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
|
}
|
|
@@ -2,7 +2,9 @@ module Knockapi
|
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_set_params =
|
|
4
4
|
{
|
|
5
|
+
resolve_full_preference_settings: bool,
|
|
5
6
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
7
|
+
name: String?,
|
|
6
8
|
settings: Knockapi::TenantSetParams::Settings
|
|
7
9
|
}
|
|
8
10
|
& Knockapi::Internal::Type::request_parameters
|
|
@@ -11,8 +13,14 @@ module Knockapi
|
|
|
11
13
|
extend Knockapi::Internal::Type::RequestParameters::Converter
|
|
12
14
|
include Knockapi::Internal::Type::RequestParameters
|
|
13
15
|
|
|
16
|
+
attr_reader resolve_full_preference_settings: bool?
|
|
17
|
+
|
|
18
|
+
def resolve_full_preference_settings=: (bool) -> bool
|
|
19
|
+
|
|
14
20
|
attr_accessor channel_data: Knockapi::Models::Recipients::inline_channel_data_request?
|
|
15
21
|
|
|
22
|
+
attr_accessor name: String?
|
|
23
|
+
|
|
16
24
|
attr_reader settings: Knockapi::TenantSetParams::Settings?
|
|
17
25
|
|
|
18
26
|
def settings=: (
|
|
@@ -20,13 +28,17 @@ module Knockapi
|
|
|
20
28
|
) -> Knockapi::TenantSetParams::Settings
|
|
21
29
|
|
|
22
30
|
def initialize: (
|
|
31
|
+
?resolve_full_preference_settings: bool,
|
|
23
32
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
33
|
+
?name: String?,
|
|
24
34
|
?settings: Knockapi::TenantSetParams::Settings,
|
|
25
35
|
?request_options: Knockapi::request_opts
|
|
26
36
|
) -> void
|
|
27
37
|
|
|
28
38
|
def to_hash: -> {
|
|
39
|
+
resolve_full_preference_settings: bool,
|
|
29
40
|
channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
41
|
+
name: String?,
|
|
30
42
|
settings: Knockapi::TenantSetParams::Settings,
|
|
31
43
|
request_options: Knockapi::RequestOptions
|
|
32
44
|
}
|
|
@@ -7,6 +7,7 @@ module Knockapi
|
|
|
7
7
|
archived: Knockapi::Models::Users::FeedListItemsParams::archived,
|
|
8
8
|
before: String,
|
|
9
9
|
has_tenant: bool,
|
|
10
|
+
locale: String,
|
|
10
11
|
page_size: Integer,
|
|
11
12
|
source: String,
|
|
12
13
|
status: Knockapi::Models::Users::FeedListItemsParams::status,
|
|
@@ -38,6 +39,10 @@ module Knockapi
|
|
|
38
39
|
|
|
39
40
|
def has_tenant=: (bool) -> bool
|
|
40
41
|
|
|
42
|
+
attr_reader locale: String?
|
|
43
|
+
|
|
44
|
+
def locale=: (String) -> String
|
|
45
|
+
|
|
41
46
|
attr_reader page_size: Integer?
|
|
42
47
|
|
|
43
48
|
def page_size=: (Integer) -> Integer
|
|
@@ -69,6 +74,7 @@ module Knockapi
|
|
|
69
74
|
?archived: Knockapi::Models::Users::FeedListItemsParams::archived,
|
|
70
75
|
?before: String,
|
|
71
76
|
?has_tenant: bool,
|
|
77
|
+
?locale: String,
|
|
72
78
|
?page_size: Integer,
|
|
73
79
|
?source: String,
|
|
74
80
|
?status: Knockapi::Models::Users::FeedListItemsParams::status,
|
|
@@ -83,6 +89,7 @@ module Knockapi
|
|
|
83
89
|
archived: Knockapi::Models::Users::FeedListItemsParams::archived,
|
|
84
90
|
before: String,
|
|
85
91
|
has_tenant: bool,
|
|
92
|
+
locale: String,
|
|
86
93
|
page_size: Integer,
|
|
87
94
|
source: String,
|
|
88
95
|
status: Knockapi::Models::Users::FeedListItemsParams::status,
|
|
@@ -108,6 +108,7 @@ module Knockapi
|
|
|
108
108
|
String id,
|
|
109
109
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request,
|
|
110
110
|
?locale: String?,
|
|
111
|
+
?name: String?,
|
|
111
112
|
?preferences: Knockapi::Models::Recipients::inline_preference_set_request,
|
|
112
113
|
?timezone: String?,
|
|
113
114
|
?request_options: Knockapi::request_opts
|
|
@@ -16,12 +16,15 @@ module Knockapi
|
|
|
16
16
|
|
|
17
17
|
def get: (
|
|
18
18
|
String id,
|
|
19
|
+
?resolve_full_preference_settings: bool,
|
|
19
20
|
?request_options: Knockapi::request_opts
|
|
20
21
|
) -> Knockapi::Tenant
|
|
21
22
|
|
|
22
23
|
def set: (
|
|
23
24
|
String id,
|
|
25
|
+
?resolve_full_preference_settings: bool,
|
|
24
26
|
?channel_data: Knockapi::Models::Recipients::inline_channel_data_request?,
|
|
27
|
+
?name: String?,
|
|
25
28
|
?settings: Knockapi::TenantSetParams::Settings,
|
|
26
29
|
?request_options: Knockapi::request_opts
|
|
27
30
|
) -> Knockapi::Tenant
|
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.20.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-
|
|
11
|
+
date: 2025-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -150,16 +150,22 @@ files:
|
|
|
150
150
|
- lib/knockapi/models/recipient.rb
|
|
151
151
|
- lib/knockapi/models/recipient_reference.rb
|
|
152
152
|
- lib/knockapi/models/recipient_request.rb
|
|
153
|
+
- lib/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rb
|
|
154
|
+
- lib/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rb
|
|
153
155
|
- lib/knockapi/models/recipients/channel_data.rb
|
|
154
156
|
- lib/knockapi/models/recipients/channel_data_request.rb
|
|
155
157
|
- lib/knockapi/models/recipients/discord_channel_data.rb
|
|
156
158
|
- lib/knockapi/models/recipients/inline_channel_data_request.rb
|
|
157
159
|
- lib/knockapi/models/recipients/inline_preference_set_request.rb
|
|
158
160
|
- lib/knockapi/models/recipients/ms_teams_channel_data.rb
|
|
161
|
+
- lib/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rb
|
|
159
162
|
- lib/knockapi/models/recipients/preference_set.rb
|
|
163
|
+
- lib/knockapi/models/recipients/preference_set_channel_setting.rb
|
|
160
164
|
- lib/knockapi/models/recipients/preference_set_channel_type_setting.rb
|
|
161
165
|
- lib/knockapi/models/recipients/preference_set_channel_types.rb
|
|
162
166
|
- lib/knockapi/models/recipients/preference_set_request.rb
|
|
167
|
+
- lib/knockapi/models/recipients/push_channel_data_devices_only.rb
|
|
168
|
+
- lib/knockapi/models/recipients/push_channel_data_tokens_only.rb
|
|
163
169
|
- lib/knockapi/models/recipients/slack_channel_data.rb
|
|
164
170
|
- lib/knockapi/models/recipients/subscription.rb
|
|
165
171
|
- lib/knockapi/models/schedule.rb
|
|
@@ -358,16 +364,22 @@ files:
|
|
|
358
364
|
- rbi/knockapi/models/recipient.rbi
|
|
359
365
|
- rbi/knockapi/models/recipient_reference.rbi
|
|
360
366
|
- rbi/knockapi/models/recipient_request.rbi
|
|
367
|
+
- rbi/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbi
|
|
368
|
+
- rbi/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbi
|
|
361
369
|
- rbi/knockapi/models/recipients/channel_data.rbi
|
|
362
370
|
- rbi/knockapi/models/recipients/channel_data_request.rbi
|
|
363
371
|
- rbi/knockapi/models/recipients/discord_channel_data.rbi
|
|
364
372
|
- rbi/knockapi/models/recipients/inline_channel_data_request.rbi
|
|
365
373
|
- rbi/knockapi/models/recipients/inline_preference_set_request.rbi
|
|
366
374
|
- rbi/knockapi/models/recipients/ms_teams_channel_data.rbi
|
|
375
|
+
- rbi/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbi
|
|
367
376
|
- rbi/knockapi/models/recipients/preference_set.rbi
|
|
377
|
+
- rbi/knockapi/models/recipients/preference_set_channel_setting.rbi
|
|
368
378
|
- rbi/knockapi/models/recipients/preference_set_channel_type_setting.rbi
|
|
369
379
|
- rbi/knockapi/models/recipients/preference_set_channel_types.rbi
|
|
370
380
|
- rbi/knockapi/models/recipients/preference_set_request.rbi
|
|
381
|
+
- rbi/knockapi/models/recipients/push_channel_data_devices_only.rbi
|
|
382
|
+
- rbi/knockapi/models/recipients/push_channel_data_tokens_only.rbi
|
|
371
383
|
- rbi/knockapi/models/recipients/slack_channel_data.rbi
|
|
372
384
|
- rbi/knockapi/models/recipients/subscription.rbi
|
|
373
385
|
- rbi/knockapi/models/schedule.rbi
|
|
@@ -565,16 +577,22 @@ files:
|
|
|
565
577
|
- sig/knockapi/models/recipient.rbs
|
|
566
578
|
- sig/knockapi/models/recipient_reference.rbs
|
|
567
579
|
- sig/knockapi/models/recipient_request.rbs
|
|
580
|
+
- sig/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbs
|
|
581
|
+
- sig/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbs
|
|
568
582
|
- sig/knockapi/models/recipients/channel_data.rbs
|
|
569
583
|
- sig/knockapi/models/recipients/channel_data_request.rbs
|
|
570
584
|
- sig/knockapi/models/recipients/discord_channel_data.rbs
|
|
571
585
|
- sig/knockapi/models/recipients/inline_channel_data_request.rbs
|
|
572
586
|
- sig/knockapi/models/recipients/inline_preference_set_request.rbs
|
|
573
587
|
- sig/knockapi/models/recipients/ms_teams_channel_data.rbs
|
|
588
|
+
- sig/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbs
|
|
574
589
|
- sig/knockapi/models/recipients/preference_set.rbs
|
|
590
|
+
- sig/knockapi/models/recipients/preference_set_channel_setting.rbs
|
|
575
591
|
- sig/knockapi/models/recipients/preference_set_channel_type_setting.rbs
|
|
576
592
|
- sig/knockapi/models/recipients/preference_set_channel_types.rbs
|
|
577
593
|
- sig/knockapi/models/recipients/preference_set_request.rbs
|
|
594
|
+
- sig/knockapi/models/recipients/push_channel_data_devices_only.rbs
|
|
595
|
+
- sig/knockapi/models/recipients/push_channel_data_tokens_only.rbs
|
|
578
596
|
- sig/knockapi/models/recipients/slack_channel_data.rbs
|
|
579
597
|
- sig/knockapi/models/recipients/subscription.rbs
|
|
580
598
|
- sig/knockapi/models/schedule.rbs
|