notiflows 0.0.1
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 +7 -0
- data/README.md +305 -0
- data/SECURITY.md +27 -0
- data/lib/notiflows/client.rb +117 -0
- data/lib/notiflows/errors.rb +228 -0
- data/lib/notiflows/file_part.rb +58 -0
- data/lib/notiflows/internal/cursor_page.rb +100 -0
- data/lib/notiflows/internal/transport/base_client.rb +573 -0
- data/lib/notiflows/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/notiflows/internal/type/array_of.rb +168 -0
- data/lib/notiflows/internal/type/base_model.rb +531 -0
- data/lib/notiflows/internal/type/base_page.rb +55 -0
- data/lib/notiflows/internal/type/boolean.rb +77 -0
- data/lib/notiflows/internal/type/converter.rb +327 -0
- data/lib/notiflows/internal/type/enum.rb +131 -0
- data/lib/notiflows/internal/type/file_input.rb +111 -0
- data/lib/notiflows/internal/type/hash_of.rb +188 -0
- data/lib/notiflows/internal/type/request_parameters.rb +42 -0
- data/lib/notiflows/internal/type/union.rb +237 -0
- data/lib/notiflows/internal/type/unknown.rb +81 -0
- data/lib/notiflows/internal/util.rb +920 -0
- data/lib/notiflows/internal.rb +20 -0
- data/lib/notiflows/models/delivery.rb +189 -0
- data/lib/notiflows/models/delivery_list_params.rb +78 -0
- data/lib/notiflows/models/delivery_retrieve_params.rb +14 -0
- data/lib/notiflows/models/notification.rb +151 -0
- data/lib/notiflows/models/notification_list_deliveries_params.rb +78 -0
- data/lib/notiflows/models/notification_list_params.rb +70 -0
- data/lib/notiflows/models/notification_retrieve_params.rb +14 -0
- data/lib/notiflows/models/notiflow_run_params.rb +197 -0
- data/lib/notiflows/models/notiflow_run_response.rb +19 -0
- data/lib/notiflows/models/topic.rb +27 -0
- data/lib/notiflows/models/topic_delete_params.rb +14 -0
- data/lib/notiflows/models/topic_list_params.rb +38 -0
- data/lib/notiflows/models/topic_retrieve_params.rb +14 -0
- data/lib/notiflows/models/topics/bulk_operation_response.rb +51 -0
- data/lib/notiflows/models/topics/bulk_subscribe_request.rb +20 -0
- data/lib/notiflows/models/topics/subscription_list_params.rb +56 -0
- data/lib/notiflows/models/topics/subscription_subscribe_bulk_params.rb +16 -0
- data/lib/notiflows/models/topics/subscription_unsubscribe_bulk_params.rb +16 -0
- data/lib/notiflows/models/user.rb +111 -0
- data/lib/notiflows/models/user_delete_params.rb +14 -0
- data/lib/notiflows/models/user_list_params.rb +54 -0
- data/lib/notiflows/models/user_retrieve_params.rb +14 -0
- data/lib/notiflows/models/user_upsert_params.rb +122 -0
- data/lib/notiflows/models/users/channel_setting_delete_params.rb +22 -0
- data/lib/notiflows/models/users/channel_setting_retrieve_params.rb +22 -0
- data/lib/notiflows/models/users/channel_setting_update_params.rb +45 -0
- data/lib/notiflows/models/users/channel_settings.rb +91 -0
- data/lib/notiflows/models/users/delivery_list_params.rb +80 -0
- data/lib/notiflows/models/users/delivery_retrieve_params.rb +22 -0
- data/lib/notiflows/models/users/mobile_push_settings.rb +20 -0
- data/lib/notiflows/models/users/notification_list_params.rb +72 -0
- data/lib/notiflows/models/users/notification_retrieve_params.rb +22 -0
- data/lib/notiflows/models/users/preference_retrieve_params.rb +16 -0
- data/lib/notiflows/models/users/preference_update_params.rb +16 -0
- data/lib/notiflows/models/users/preferences.rb +116 -0
- data/lib/notiflows/models/users/slack_settings.rb +29 -0
- data/lib/notiflows/models/users/subscription.rb +45 -0
- data/lib/notiflows/models/users/subscription_list_params.rb +56 -0
- data/lib/notiflows/models/users/subscription_retrieve_params.rb +22 -0
- data/lib/notiflows/models/users/subscription_subscribe_params.rb +28 -0
- data/lib/notiflows/models/users/subscription_unsubscribe_params.rb +22 -0
- data/lib/notiflows/models/users/update_preferences_request.rb +45 -0
- data/lib/notiflows/models.rb +79 -0
- data/lib/notiflows/request_options.rb +77 -0
- data/lib/notiflows/resources/deliveries.rb +77 -0
- data/lib/notiflows/resources/notifications.rb +112 -0
- data/lib/notiflows/resources/notiflows.rb +60 -0
- data/lib/notiflows/resources/topics/subscriptions.rb +106 -0
- data/lib/notiflows/resources/topics.rb +91 -0
- data/lib/notiflows/resources/users/channel_settings.rb +132 -0
- data/lib/notiflows/resources/users/deliveries.rb +82 -0
- data/lib/notiflows/resources/users/notifications.rb +80 -0
- data/lib/notiflows/resources/users/preferences.rb +86 -0
- data/lib/notiflows/resources/users/subscriptions.rb +135 -0
- data/lib/notiflows/resources/users.rb +167 -0
- data/lib/notiflows/version.rb +5 -0
- data/lib/notiflows.rb +109 -0
- data/manifest.yaml +17 -0
- data/rbi/notiflows/client.rbi +82 -0
- data/rbi/notiflows/errors.rbi +205 -0
- data/rbi/notiflows/file_part.rbi +37 -0
- data/rbi/notiflows/internal/cursor_page.rbi +37 -0
- data/rbi/notiflows/internal/transport/base_client.rbi +298 -0
- data/rbi/notiflows/internal/transport/pooled_net_requester.rbi +83 -0
- data/rbi/notiflows/internal/type/array_of.rbi +104 -0
- data/rbi/notiflows/internal/type/base_model.rbi +308 -0
- data/rbi/notiflows/internal/type/base_page.rbi +42 -0
- data/rbi/notiflows/internal/type/boolean.rbi +58 -0
- data/rbi/notiflows/internal/type/converter.rbi +216 -0
- data/rbi/notiflows/internal/type/enum.rbi +82 -0
- data/rbi/notiflows/internal/type/file_input.rbi +59 -0
- data/rbi/notiflows/internal/type/hash_of.rbi +104 -0
- data/rbi/notiflows/internal/type/request_parameters.rbi +29 -0
- data/rbi/notiflows/internal/type/union.rbi +128 -0
- data/rbi/notiflows/internal/type/unknown.rbi +58 -0
- data/rbi/notiflows/internal/util.rbi +487 -0
- data/rbi/notiflows/internal.rbi +18 -0
- data/rbi/notiflows/models/delivery.rbi +226 -0
- data/rbi/notiflows/models/delivery_list_params.rbi +123 -0
- data/rbi/notiflows/models/delivery_retrieve_params.rbi +27 -0
- data/rbi/notiflows/models/notification.rbi +190 -0
- data/rbi/notiflows/models/notification_list_deliveries_params.rbi +126 -0
- data/rbi/notiflows/models/notification_list_params.rbi +112 -0
- data/rbi/notiflows/models/notification_retrieve_params.rbi +30 -0
- data/rbi/notiflows/models/notiflow_run_params.rbi +320 -0
- data/rbi/notiflows/models/notiflow_run_response.rbi +31 -0
- data/rbi/notiflows/models/topic.rbi +32 -0
- data/rbi/notiflows/models/topic_delete_params.rbi +27 -0
- data/rbi/notiflows/models/topic_list_params.rbi +68 -0
- data/rbi/notiflows/models/topic_retrieve_params.rbi +27 -0
- data/rbi/notiflows/models/topics/bulk_operation_response.rbi +93 -0
- data/rbi/notiflows/models/topics/bulk_subscribe_request.rbi +35 -0
- data/rbi/notiflows/models/topics/subscription_list_params.rbi +95 -0
- data/rbi/notiflows/models/topics/subscription_subscribe_bulk_params.rbi +32 -0
- data/rbi/notiflows/models/topics/subscription_unsubscribe_bulk_params.rbi +32 -0
- data/rbi/notiflows/models/user.rbi +126 -0
- data/rbi/notiflows/models/user_delete_params.rbi +27 -0
- data/rbi/notiflows/models/user_list_params.rbi +90 -0
- data/rbi/notiflows/models/user_retrieve_params.rbi +27 -0
- data/rbi/notiflows/models/user_upsert_params.rbi +203 -0
- data/rbi/notiflows/models/users/channel_setting_delete_params.rbi +43 -0
- data/rbi/notiflows/models/users/channel_setting_retrieve_params.rbi +43 -0
- data/rbi/notiflows/models/users/channel_setting_update_params.rbi +92 -0
- data/rbi/notiflows/models/users/channel_settings.rbi +156 -0
- data/rbi/notiflows/models/users/delivery_list_params.rbi +128 -0
- data/rbi/notiflows/models/users/delivery_retrieve_params.rbi +43 -0
- data/rbi/notiflows/models/users/mobile_push_settings.rbi +35 -0
- data/rbi/notiflows/models/users/notification_list_params.rbi +117 -0
- data/rbi/notiflows/models/users/notification_retrieve_params.rbi +43 -0
- data/rbi/notiflows/models/users/preference_retrieve_params.rbi +32 -0
- data/rbi/notiflows/models/users/preference_update_params.rbi +34 -0
- data/rbi/notiflows/models/users/preferences.rbi +241 -0
- data/rbi/notiflows/models/users/slack_settings.rbi +49 -0
- data/rbi/notiflows/models/users/subscription.rbi +64 -0
- data/rbi/notiflows/models/users/subscription_list_params.rbi +95 -0
- data/rbi/notiflows/models/users/subscription_retrieve_params.rbi +43 -0
- data/rbi/notiflows/models/users/subscription_subscribe_params.rbi +47 -0
- data/rbi/notiflows/models/users/subscription_unsubscribe_params.rbi +43 -0
- data/rbi/notiflows/models/users/update_preferences_request.rbi +124 -0
- data/rbi/notiflows/models.rbi +42 -0
- data/rbi/notiflows/request_options.rbi +59 -0
- data/rbi/notiflows/resources/deliveries.rbi +67 -0
- data/rbi/notiflows/resources/notifications.rbi +100 -0
- data/rbi/notiflows/resources/notiflows.rbi +52 -0
- data/rbi/notiflows/resources/topics/subscriptions.rbi +88 -0
- data/rbi/notiflows/resources/topics.rbi +69 -0
- data/rbi/notiflows/resources/users/channel_settings.rbi +104 -0
- data/rbi/notiflows/resources/users/deliveries.rbi +69 -0
- data/rbi/notiflows/resources/users/notifications.rbi +66 -0
- data/rbi/notiflows/resources/users/preferences.rbi +76 -0
- data/rbi/notiflows/resources/users/subscriptions.rbi +102 -0
- data/rbi/notiflows/resources/users.rbi +147 -0
- data/rbi/notiflows/version.rbi +5 -0
- data/sig/notiflows/client.rbs +41 -0
- data/sig/notiflows/errors.rbs +117 -0
- data/sig/notiflows/file_part.rbs +21 -0
- data/sig/notiflows/internal/cursor_page.rbs +22 -0
- data/sig/notiflows/internal/transport/base_client.rbs +133 -0
- data/sig/notiflows/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/notiflows/internal/type/array_of.rbs +48 -0
- data/sig/notiflows/internal/type/base_model.rbs +102 -0
- data/sig/notiflows/internal/type/base_page.rbs +24 -0
- data/sig/notiflows/internal/type/boolean.rbs +26 -0
- data/sig/notiflows/internal/type/converter.rbs +79 -0
- data/sig/notiflows/internal/type/enum.rbs +32 -0
- data/sig/notiflows/internal/type/file_input.rbs +25 -0
- data/sig/notiflows/internal/type/hash_of.rbs +48 -0
- data/sig/notiflows/internal/type/request_parameters.rbs +19 -0
- data/sig/notiflows/internal/type/union.rbs +52 -0
- data/sig/notiflows/internal/type/unknown.rbs +26 -0
- data/sig/notiflows/internal/util.rbs +185 -0
- data/sig/notiflows/internal.rbs +9 -0
- data/sig/notiflows/models/delivery.rbs +130 -0
- data/sig/notiflows/models/delivery_list_params.rbs +77 -0
- data/sig/notiflows/models/delivery_retrieve_params.rbs +15 -0
- data/sig/notiflows/models/notification.rbs +104 -0
- data/sig/notiflows/models/notification_list_deliveries_params.rbs +77 -0
- data/sig/notiflows/models/notification_list_params.rbs +70 -0
- data/sig/notiflows/models/notification_retrieve_params.rbs +15 -0
- data/sig/notiflows/models/notiflow_run_params.rbs +199 -0
- data/sig/notiflows/models/notiflow_run_response.rbs +13 -0
- data/sig/notiflows/models/topic.rbs +15 -0
- data/sig/notiflows/models/topic_delete_params.rbs +15 -0
- data/sig/notiflows/models/topic_list_params.rbs +38 -0
- data/sig/notiflows/models/topic_retrieve_params.rbs +15 -0
- data/sig/notiflows/models/topics/bulk_operation_response.rbs +39 -0
- data/sig/notiflows/models/topics/bulk_subscribe_request.rbs +15 -0
- data/sig/notiflows/models/topics/subscription_list_params.rbs +58 -0
- data/sig/notiflows/models/topics/subscription_subscribe_bulk_params.rbs +17 -0
- data/sig/notiflows/models/topics/subscription_unsubscribe_bulk_params.rbs +17 -0
- data/sig/notiflows/models/user.rbs +75 -0
- data/sig/notiflows/models/user_delete_params.rbs +15 -0
- data/sig/notiflows/models/user_list_params.rbs +56 -0
- data/sig/notiflows/models/user_retrieve_params.rbs +15 -0
- data/sig/notiflows/models/user_upsert_params.rbs +112 -0
- data/sig/notiflows/models/users/channel_setting_delete_params.rbs +26 -0
- data/sig/notiflows/models/users/channel_setting_retrieve_params.rbs +26 -0
- data/sig/notiflows/models/users/channel_setting_update_params.rbs +42 -0
- data/sig/notiflows/models/users/channel_settings.rbs +68 -0
- data/sig/notiflows/models/users/delivery_list_params.rbs +79 -0
- data/sig/notiflows/models/users/delivery_retrieve_params.rbs +26 -0
- data/sig/notiflows/models/users/mobile_push_settings.rbs +15 -0
- data/sig/notiflows/models/users/notification_list_params.rbs +72 -0
- data/sig/notiflows/models/users/notification_retrieve_params.rbs +26 -0
- data/sig/notiflows/models/users/preference_retrieve_params.rbs +17 -0
- data/sig/notiflows/models/users/preference_update_params.rbs +17 -0
- data/sig/notiflows/models/users/preferences.rbs +118 -0
- data/sig/notiflows/models/users/slack_settings.rbs +24 -0
- data/sig/notiflows/models/users/subscription.rbs +32 -0
- data/sig/notiflows/models/users/subscription_list_params.rbs +58 -0
- data/sig/notiflows/models/users/subscription_retrieve_params.rbs +26 -0
- data/sig/notiflows/models/users/subscription_subscribe_params.rbs +25 -0
- data/sig/notiflows/models/users/subscription_unsubscribe_params.rbs +26 -0
- data/sig/notiflows/models/users/update_preferences_request.rbs +52 -0
- data/sig/notiflows/models.rbs +39 -0
- data/sig/notiflows/request_options.rbs +34 -0
- data/sig/notiflows/resources/deliveries.rbs +24 -0
- data/sig/notiflows/resources/notifications.rbs +36 -0
- data/sig/notiflows/resources/notiflows.rbs +16 -0
- data/sig/notiflows/resources/topics/subscriptions.rbs +31 -0
- data/sig/notiflows/resources/topics.rbs +23 -0
- data/sig/notiflows/resources/users/channel_settings.rbs +28 -0
- data/sig/notiflows/resources/users/deliveries.rbs +28 -0
- data/sig/notiflows/resources/users/notifications.rbs +27 -0
- data/sig/notiflows/resources/users/preferences.rbs +21 -0
- data/sig/notiflows/resources/users/subscriptions.rbs +37 -0
- data/sig/notiflows/resources/users.rbs +52 -0
- data/sig/notiflows/version.rbs +3 -0
- metadata +302 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type user_delete_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class UserDeleteParams < Notiflows::Internal::Type::BaseModel
|
|
7
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Notiflows::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Notiflows::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type user_list_params =
|
|
4
|
+
{
|
|
5
|
+
after: String,
|
|
6
|
+
before: String,
|
|
7
|
+
created_after: String,
|
|
8
|
+
created_before: String,
|
|
9
|
+
limit: Integer
|
|
10
|
+
}
|
|
11
|
+
& Notiflows::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class UserListParams < Notiflows::Internal::Type::BaseModel
|
|
14
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader after: String?
|
|
18
|
+
|
|
19
|
+
def after=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader before: String?
|
|
22
|
+
|
|
23
|
+
def before=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader created_after: String?
|
|
26
|
+
|
|
27
|
+
def created_after=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader created_before: String?
|
|
30
|
+
|
|
31
|
+
def created_before=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader limit: Integer?
|
|
34
|
+
|
|
35
|
+
def limit=: (Integer) -> Integer
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
?after: String,
|
|
39
|
+
?before: String,
|
|
40
|
+
?created_after: String,
|
|
41
|
+
?created_before: String,
|
|
42
|
+
?limit: Integer,
|
|
43
|
+
?request_options: Notiflows::request_opts
|
|
44
|
+
) -> void
|
|
45
|
+
|
|
46
|
+
def to_hash: -> {
|
|
47
|
+
after: String,
|
|
48
|
+
before: String,
|
|
49
|
+
created_after: String,
|
|
50
|
+
created_before: String,
|
|
51
|
+
limit: Integer,
|
|
52
|
+
request_options: Notiflows::RequestOptions
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type user_retrieve_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class UserRetrieveParams < Notiflows::Internal::Type::BaseModel
|
|
7
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Notiflows::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Notiflows::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type user_upsert_params =
|
|
4
|
+
{
|
|
5
|
+
external_id: String,
|
|
6
|
+
avatar: String,
|
|
7
|
+
channel_settings: ::Array[Notiflows::UserUpsertParams::ChannelSetting],
|
|
8
|
+
custom_fields: top,
|
|
9
|
+
email: String,
|
|
10
|
+
first_name: String,
|
|
11
|
+
last_name: String,
|
|
12
|
+
locale: String,
|
|
13
|
+
phone: String,
|
|
14
|
+
preferences: ::Notiflows::Users::UpdatePreferencesRequest,
|
|
15
|
+
timezone: String
|
|
16
|
+
}
|
|
17
|
+
& Notiflows::Internal::Type::request_parameters
|
|
18
|
+
|
|
19
|
+
class UserUpsertParams < Notiflows::Internal::Type::BaseModel
|
|
20
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
21
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
22
|
+
|
|
23
|
+
attr_accessor external_id: String
|
|
24
|
+
|
|
25
|
+
attr_reader avatar: String?
|
|
26
|
+
|
|
27
|
+
def avatar=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader channel_settings: ::Array[Notiflows::UserUpsertParams::ChannelSetting]?
|
|
30
|
+
|
|
31
|
+
def channel_settings=: (
|
|
32
|
+
::Array[Notiflows::UserUpsertParams::ChannelSetting]
|
|
33
|
+
) -> ::Array[Notiflows::UserUpsertParams::ChannelSetting]
|
|
34
|
+
|
|
35
|
+
attr_reader custom_fields: top?
|
|
36
|
+
|
|
37
|
+
def custom_fields=: (top) -> top
|
|
38
|
+
|
|
39
|
+
attr_reader email: String?
|
|
40
|
+
|
|
41
|
+
def email=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader first_name: String?
|
|
44
|
+
|
|
45
|
+
def first_name=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader last_name: String?
|
|
48
|
+
|
|
49
|
+
def last_name=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader locale: String?
|
|
52
|
+
|
|
53
|
+
def locale=: (String) -> String
|
|
54
|
+
|
|
55
|
+
attr_reader phone: String?
|
|
56
|
+
|
|
57
|
+
def phone=: (String) -> String
|
|
58
|
+
|
|
59
|
+
attr_reader preferences: ::Notiflows::Users::UpdatePreferencesRequest?
|
|
60
|
+
|
|
61
|
+
def preferences=: (
|
|
62
|
+
::Notiflows::Users::UpdatePreferencesRequest
|
|
63
|
+
) -> ::Notiflows::Users::UpdatePreferencesRequest
|
|
64
|
+
|
|
65
|
+
attr_reader timezone: String?
|
|
66
|
+
|
|
67
|
+
def timezone=: (String) -> String
|
|
68
|
+
|
|
69
|
+
def initialize: (
|
|
70
|
+
external_id: String,
|
|
71
|
+
?avatar: String,
|
|
72
|
+
?channel_settings: ::Array[Notiflows::UserUpsertParams::ChannelSetting],
|
|
73
|
+
?custom_fields: top,
|
|
74
|
+
?email: String,
|
|
75
|
+
?first_name: String,
|
|
76
|
+
?last_name: String,
|
|
77
|
+
?locale: String,
|
|
78
|
+
?phone: String,
|
|
79
|
+
?preferences: ::Notiflows::Users::UpdatePreferencesRequest,
|
|
80
|
+
?timezone: String,
|
|
81
|
+
?request_options: Notiflows::request_opts
|
|
82
|
+
) -> void
|
|
83
|
+
|
|
84
|
+
def to_hash: -> {
|
|
85
|
+
external_id: String,
|
|
86
|
+
avatar: String,
|
|
87
|
+
channel_settings: ::Array[Notiflows::UserUpsertParams::ChannelSetting],
|
|
88
|
+
custom_fields: top,
|
|
89
|
+
email: String,
|
|
90
|
+
first_name: String,
|
|
91
|
+
last_name: String,
|
|
92
|
+
locale: String,
|
|
93
|
+
phone: String,
|
|
94
|
+
preferences: ::Notiflows::Users::UpdatePreferencesRequest,
|
|
95
|
+
timezone: String,
|
|
96
|
+
request_options: Notiflows::RequestOptions
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type channel_setting = { channel_id: String, settings: top }
|
|
100
|
+
|
|
101
|
+
class ChannelSetting < Notiflows::Internal::Type::BaseModel
|
|
102
|
+
attr_accessor channel_id: String
|
|
103
|
+
|
|
104
|
+
attr_accessor settings: top
|
|
105
|
+
|
|
106
|
+
def initialize: (channel_id: String, settings: top) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> { channel_id: String, settings: top }
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type channel_setting_delete_params =
|
|
5
|
+
{ user_external_id: String }
|
|
6
|
+
& Notiflows::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ChannelSettingDeleteParams < Notiflows::Internal::Type::BaseModel
|
|
9
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor user_external_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
user_external_id: String,
|
|
16
|
+
?request_options: Notiflows::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
user_external_id: String,
|
|
21
|
+
request_options: Notiflows::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type channel_setting_retrieve_params =
|
|
5
|
+
{ user_external_id: String }
|
|
6
|
+
& Notiflows::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ChannelSettingRetrieveParams < Notiflows::Internal::Type::BaseModel
|
|
9
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor user_external_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
user_external_id: String,
|
|
16
|
+
?request_options: Notiflows::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
user_external_id: String,
|
|
21
|
+
request_options: Notiflows::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type channel_setting_update_params =
|
|
5
|
+
{
|
|
6
|
+
user_external_id: String,
|
|
7
|
+
settings: Notiflows::Models::Users::ChannelSettingUpdateParams::settings
|
|
8
|
+
}
|
|
9
|
+
& Notiflows::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class ChannelSettingUpdateParams < Notiflows::Internal::Type::BaseModel
|
|
12
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor user_external_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor settings: Notiflows::Models::Users::ChannelSettingUpdateParams::settings
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
user_external_id: String,
|
|
21
|
+
settings: Notiflows::Models::Users::ChannelSettingUpdateParams::settings,
|
|
22
|
+
?request_options: Notiflows::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
user_external_id: String,
|
|
27
|
+
settings: Notiflows::Models::Users::ChannelSettingUpdateParams::settings,
|
|
28
|
+
request_options: Notiflows::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type settings =
|
|
32
|
+
Notiflows::Users::MobilePushSettings | Notiflows::Users::SlackSettings
|
|
33
|
+
|
|
34
|
+
module Settings
|
|
35
|
+
extend Notiflows::Internal::Type::Union
|
|
36
|
+
|
|
37
|
+
def self?.variants: -> ::Array[Notiflows::Models::Users::ChannelSettingUpdateParams::settings]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type users_channel_settings =
|
|
5
|
+
{
|
|
6
|
+
channel_id: String,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
provider: Notiflows::Models::Users::UsersChannelSettings::provider,
|
|
9
|
+
settings: Notiflows::Models::Users::UsersChannelSettings::settings,
|
|
10
|
+
updated_at: Time,
|
|
11
|
+
user_id: String
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class UsersChannelSettings < Notiflows::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor channel_id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor provider: Notiflows::Models::Users::UsersChannelSettings::provider
|
|
20
|
+
|
|
21
|
+
attr_accessor settings: Notiflows::Models::Users::UsersChannelSettings::settings
|
|
22
|
+
|
|
23
|
+
attr_accessor updated_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor user_id: String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
channel_id: String,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
provider: Notiflows::Models::Users::UsersChannelSettings::provider,
|
|
31
|
+
settings: Notiflows::Models::Users::UsersChannelSettings::settings,
|
|
32
|
+
updated_at: Time,
|
|
33
|
+
user_id: String
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
channel_id: String,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
provider: Notiflows::Models::Users::UsersChannelSettings::provider,
|
|
40
|
+
settings: Notiflows::Models::Users::UsersChannelSettings::settings,
|
|
41
|
+
updated_at: Time,
|
|
42
|
+
user_id: String
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type provider = :apns | :fcm | :slack
|
|
46
|
+
|
|
47
|
+
module Provider
|
|
48
|
+
extend Notiflows::Internal::Type::Enum
|
|
49
|
+
|
|
50
|
+
APNS: :apns
|
|
51
|
+
FCM: :fcm
|
|
52
|
+
SLACK: :slack
|
|
53
|
+
|
|
54
|
+
def self?.values: -> ::Array[Notiflows::Models::Users::UsersChannelSettings::provider]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
type settings =
|
|
58
|
+
Notiflows::Users::MobilePushSettings | Notiflows::Users::SlackSettings
|
|
59
|
+
|
|
60
|
+
module Settings
|
|
61
|
+
extend Notiflows::Internal::Type::Union
|
|
62
|
+
|
|
63
|
+
def self?.variants: -> ::Array[Notiflows::Models::Users::UsersChannelSettings::settings]
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type delivery_list_params =
|
|
5
|
+
{
|
|
6
|
+
after: String,
|
|
7
|
+
before: String,
|
|
8
|
+
channel_id: String,
|
|
9
|
+
created_after: String,
|
|
10
|
+
created_before: String,
|
|
11
|
+
limit: Integer,
|
|
12
|
+
status: String,
|
|
13
|
+
topic: String
|
|
14
|
+
}
|
|
15
|
+
& Notiflows::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class DeliveryListParams < Notiflows::Internal::Type::BaseModel
|
|
18
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_reader after: String?
|
|
22
|
+
|
|
23
|
+
def after=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader before: String?
|
|
26
|
+
|
|
27
|
+
def before=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader channel_id: String?
|
|
30
|
+
|
|
31
|
+
def channel_id=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader created_after: String?
|
|
34
|
+
|
|
35
|
+
def created_after=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader created_before: String?
|
|
38
|
+
|
|
39
|
+
def created_before=: (String) -> String
|
|
40
|
+
|
|
41
|
+
attr_reader limit: Integer?
|
|
42
|
+
|
|
43
|
+
def limit=: (Integer) -> Integer
|
|
44
|
+
|
|
45
|
+
attr_reader status: String?
|
|
46
|
+
|
|
47
|
+
def status=: (String) -> String
|
|
48
|
+
|
|
49
|
+
attr_reader topic: String?
|
|
50
|
+
|
|
51
|
+
def topic=: (String) -> String
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
?after: String,
|
|
55
|
+
?before: String,
|
|
56
|
+
?channel_id: String,
|
|
57
|
+
?created_after: String,
|
|
58
|
+
?created_before: String,
|
|
59
|
+
?limit: Integer,
|
|
60
|
+
?status: String,
|
|
61
|
+
?topic: String,
|
|
62
|
+
?request_options: Notiflows::request_opts
|
|
63
|
+
) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> {
|
|
66
|
+
after: String,
|
|
67
|
+
before: String,
|
|
68
|
+
channel_id: String,
|
|
69
|
+
created_after: String,
|
|
70
|
+
created_before: String,
|
|
71
|
+
limit: Integer,
|
|
72
|
+
status: String,
|
|
73
|
+
topic: String,
|
|
74
|
+
request_options: Notiflows::RequestOptions
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type delivery_retrieve_params =
|
|
5
|
+
{ user_external_id: String }
|
|
6
|
+
& Notiflows::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class DeliveryRetrieveParams < Notiflows::Internal::Type::BaseModel
|
|
9
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor user_external_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
user_external_id: String,
|
|
16
|
+
?request_options: Notiflows::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
user_external_id: String,
|
|
21
|
+
request_options: Notiflows::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type mobile_push_settings = { device_tokens: ::Array[String] }
|
|
5
|
+
|
|
6
|
+
class MobilePushSettings < Notiflows::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor device_tokens: ::Array[String]
|
|
8
|
+
|
|
9
|
+
def initialize: (device_tokens: ::Array[String]) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { device_tokens: ::Array[String] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type notification_list_params =
|
|
5
|
+
{
|
|
6
|
+
after: String,
|
|
7
|
+
before: String,
|
|
8
|
+
created_after: String,
|
|
9
|
+
created_before: String,
|
|
10
|
+
limit: Integer,
|
|
11
|
+
status: String,
|
|
12
|
+
topic: String
|
|
13
|
+
}
|
|
14
|
+
& Notiflows::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class NotificationListParams < Notiflows::Internal::Type::BaseModel
|
|
17
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_reader after: String?
|
|
21
|
+
|
|
22
|
+
def after=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader before: String?
|
|
25
|
+
|
|
26
|
+
def before=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_reader created_after: String?
|
|
29
|
+
|
|
30
|
+
def created_after=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_reader created_before: String?
|
|
33
|
+
|
|
34
|
+
def created_before=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader limit: Integer?
|
|
37
|
+
|
|
38
|
+
def limit=: (Integer) -> Integer
|
|
39
|
+
|
|
40
|
+
attr_reader status: String?
|
|
41
|
+
|
|
42
|
+
def status=: (String) -> String
|
|
43
|
+
|
|
44
|
+
attr_reader topic: String?
|
|
45
|
+
|
|
46
|
+
def topic=: (String) -> String
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
?after: String,
|
|
50
|
+
?before: String,
|
|
51
|
+
?created_after: String,
|
|
52
|
+
?created_before: String,
|
|
53
|
+
?limit: Integer,
|
|
54
|
+
?status: String,
|
|
55
|
+
?topic: String,
|
|
56
|
+
?request_options: Notiflows::request_opts
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
after: String,
|
|
61
|
+
before: String,
|
|
62
|
+
created_after: String,
|
|
63
|
+
created_before: String,
|
|
64
|
+
limit: Integer,
|
|
65
|
+
status: String,
|
|
66
|
+
topic: String,
|
|
67
|
+
request_options: Notiflows::RequestOptions
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type notification_retrieve_params =
|
|
5
|
+
{ user_external_id: String }
|
|
6
|
+
& Notiflows::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class NotificationRetrieveParams < Notiflows::Internal::Type::BaseModel
|
|
9
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor user_external_id: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
user_external_id: String,
|
|
16
|
+
?request_options: Notiflows::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
user_external_id: String,
|
|
21
|
+
request_options: Notiflows::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type preference_retrieve_params =
|
|
5
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PreferenceRetrieveParams < Notiflows::Internal::Type::BaseModel
|
|
8
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (?request_options: Notiflows::request_opts) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { request_options: Notiflows::RequestOptions }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Users
|
|
4
|
+
type preference_update_params =
|
|
5
|
+
{ } & ::Notiflows::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PreferenceUpdateParams < ::Notiflows::Models::Users::UpdatePreferencesRequest
|
|
8
|
+
extend ::Notiflows::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include ::Notiflows::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def initialize: (?request_options: Notiflows::request_opts) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { request_options: ::Notiflows::RequestOptions }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|