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,77 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notification_list_deliveries_params =
|
|
4
|
+
{
|
|
5
|
+
after: String,
|
|
6
|
+
before: String,
|
|
7
|
+
channel_id: 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 NotificationListDeliveriesParams < 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 channel_id: String?
|
|
29
|
+
|
|
30
|
+
def channel_id=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_reader created_after: String?
|
|
33
|
+
|
|
34
|
+
def created_after=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader created_before: String?
|
|
37
|
+
|
|
38
|
+
def created_before=: (String) -> String
|
|
39
|
+
|
|
40
|
+
attr_reader limit: Integer?
|
|
41
|
+
|
|
42
|
+
def limit=: (Integer) -> Integer
|
|
43
|
+
|
|
44
|
+
attr_reader status: String?
|
|
45
|
+
|
|
46
|
+
def status=: (String) -> String
|
|
47
|
+
|
|
48
|
+
attr_reader topic: String?
|
|
49
|
+
|
|
50
|
+
def topic=: (String) -> String
|
|
51
|
+
|
|
52
|
+
def initialize: (
|
|
53
|
+
?after: String,
|
|
54
|
+
?before: String,
|
|
55
|
+
?channel_id: String,
|
|
56
|
+
?created_after: String,
|
|
57
|
+
?created_before: String,
|
|
58
|
+
?limit: Integer,
|
|
59
|
+
?status: String,
|
|
60
|
+
?topic: String,
|
|
61
|
+
?request_options: Notiflows::request_opts
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
after: String,
|
|
66
|
+
before: String,
|
|
67
|
+
channel_id: String,
|
|
68
|
+
created_after: String,
|
|
69
|
+
created_before: String,
|
|
70
|
+
limit: Integer,
|
|
71
|
+
status: String,
|
|
72
|
+
topic: String,
|
|
73
|
+
request_options: Notiflows::RequestOptions
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notification_list_params =
|
|
4
|
+
{
|
|
5
|
+
after: String,
|
|
6
|
+
before: String,
|
|
7
|
+
created_after: String,
|
|
8
|
+
created_before: String,
|
|
9
|
+
limit: Integer,
|
|
10
|
+
status: String,
|
|
11
|
+
topic: String
|
|
12
|
+
}
|
|
13
|
+
& Notiflows::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class NotificationListParams < Notiflows::Internal::Type::BaseModel
|
|
16
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_reader after: String?
|
|
20
|
+
|
|
21
|
+
def after=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader before: String?
|
|
24
|
+
|
|
25
|
+
def before=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader created_after: String?
|
|
28
|
+
|
|
29
|
+
def created_after=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader created_before: String?
|
|
32
|
+
|
|
33
|
+
def created_before=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader limit: Integer?
|
|
36
|
+
|
|
37
|
+
def limit=: (Integer) -> Integer
|
|
38
|
+
|
|
39
|
+
attr_reader status: String?
|
|
40
|
+
|
|
41
|
+
def status=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader topic: String?
|
|
44
|
+
|
|
45
|
+
def topic=: (String) -> String
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
?after: String,
|
|
49
|
+
?before: String,
|
|
50
|
+
?created_after: String,
|
|
51
|
+
?created_before: String,
|
|
52
|
+
?limit: Integer,
|
|
53
|
+
?status: String,
|
|
54
|
+
?topic: String,
|
|
55
|
+
?request_options: Notiflows::request_opts
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
after: String,
|
|
60
|
+
before: String,
|
|
61
|
+
created_after: String,
|
|
62
|
+
created_before: String,
|
|
63
|
+
limit: Integer,
|
|
64
|
+
status: String,
|
|
65
|
+
topic: String,
|
|
66
|
+
request_options: Notiflows::RequestOptions
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notification_retrieve_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationRetrieveParams < 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,199 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notiflow_run_params =
|
|
4
|
+
{
|
|
5
|
+
actor: Notiflows::NotiflowRunParams::Actor,
|
|
6
|
+
data: top,
|
|
7
|
+
recipients: ::Array[Notiflows::NotiflowRunParams::Recipient],
|
|
8
|
+
topic: String
|
|
9
|
+
}
|
|
10
|
+
& Notiflows::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class NotiflowRunParams < Notiflows::Internal::Type::BaseModel
|
|
13
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_reader actor: Notiflows::NotiflowRunParams::Actor?
|
|
17
|
+
|
|
18
|
+
def actor=: (
|
|
19
|
+
Notiflows::NotiflowRunParams::Actor
|
|
20
|
+
) -> Notiflows::NotiflowRunParams::Actor
|
|
21
|
+
|
|
22
|
+
attr_reader data: top?
|
|
23
|
+
|
|
24
|
+
def data=: (top) -> top
|
|
25
|
+
|
|
26
|
+
attr_reader recipients: ::Array[Notiflows::NotiflowRunParams::Recipient]?
|
|
27
|
+
|
|
28
|
+
def recipients=: (
|
|
29
|
+
::Array[Notiflows::NotiflowRunParams::Recipient]
|
|
30
|
+
) -> ::Array[Notiflows::NotiflowRunParams::Recipient]
|
|
31
|
+
|
|
32
|
+
attr_reader topic: String?
|
|
33
|
+
|
|
34
|
+
def topic=: (String) -> String
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
?actor: Notiflows::NotiflowRunParams::Actor,
|
|
38
|
+
?data: top,
|
|
39
|
+
?recipients: ::Array[Notiflows::NotiflowRunParams::Recipient],
|
|
40
|
+
?topic: String,
|
|
41
|
+
?request_options: Notiflows::request_opts
|
|
42
|
+
) -> void
|
|
43
|
+
|
|
44
|
+
def to_hash: -> {
|
|
45
|
+
actor: Notiflows::NotiflowRunParams::Actor,
|
|
46
|
+
data: top,
|
|
47
|
+
recipients: ::Array[Notiflows::NotiflowRunParams::Recipient],
|
|
48
|
+
topic: String,
|
|
49
|
+
request_options: Notiflows::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type actor =
|
|
53
|
+
{
|
|
54
|
+
external_id: String,
|
|
55
|
+
avatar: String,
|
|
56
|
+
custom_fields: top,
|
|
57
|
+
email: String,
|
|
58
|
+
first_name: String,
|
|
59
|
+
last_name: String,
|
|
60
|
+
locale: String,
|
|
61
|
+
phone: String,
|
|
62
|
+
timezone: String
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
class Actor < Notiflows::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor external_id: String
|
|
67
|
+
|
|
68
|
+
attr_reader avatar: String?
|
|
69
|
+
|
|
70
|
+
def avatar=: (String) -> String
|
|
71
|
+
|
|
72
|
+
attr_reader custom_fields: top?
|
|
73
|
+
|
|
74
|
+
def custom_fields=: (top) -> top
|
|
75
|
+
|
|
76
|
+
attr_reader email: String?
|
|
77
|
+
|
|
78
|
+
def email=: (String) -> String
|
|
79
|
+
|
|
80
|
+
attr_reader first_name: String?
|
|
81
|
+
|
|
82
|
+
def first_name=: (String) -> String
|
|
83
|
+
|
|
84
|
+
attr_reader last_name: String?
|
|
85
|
+
|
|
86
|
+
def last_name=: (String) -> String
|
|
87
|
+
|
|
88
|
+
attr_reader locale: String?
|
|
89
|
+
|
|
90
|
+
def locale=: (String) -> String
|
|
91
|
+
|
|
92
|
+
attr_reader phone: String?
|
|
93
|
+
|
|
94
|
+
def phone=: (String) -> String
|
|
95
|
+
|
|
96
|
+
attr_reader timezone: String?
|
|
97
|
+
|
|
98
|
+
def timezone=: (String) -> String
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
external_id: String,
|
|
102
|
+
?avatar: String,
|
|
103
|
+
?custom_fields: top,
|
|
104
|
+
?email: String,
|
|
105
|
+
?first_name: String,
|
|
106
|
+
?last_name: String,
|
|
107
|
+
?locale: String,
|
|
108
|
+
?phone: String,
|
|
109
|
+
?timezone: String
|
|
110
|
+
) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> {
|
|
113
|
+
external_id: String,
|
|
114
|
+
avatar: String,
|
|
115
|
+
custom_fields: top,
|
|
116
|
+
email: String,
|
|
117
|
+
first_name: String,
|
|
118
|
+
last_name: String,
|
|
119
|
+
locale: String,
|
|
120
|
+
phone: String,
|
|
121
|
+
timezone: String
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
type recipient =
|
|
126
|
+
{
|
|
127
|
+
external_id: String,
|
|
128
|
+
avatar: String,
|
|
129
|
+
custom_fields: top,
|
|
130
|
+
email: String,
|
|
131
|
+
first_name: String,
|
|
132
|
+
last_name: String,
|
|
133
|
+
locale: String,
|
|
134
|
+
phone: String,
|
|
135
|
+
timezone: String
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
class Recipient < Notiflows::Internal::Type::BaseModel
|
|
139
|
+
attr_accessor external_id: String
|
|
140
|
+
|
|
141
|
+
attr_reader avatar: String?
|
|
142
|
+
|
|
143
|
+
def avatar=: (String) -> String
|
|
144
|
+
|
|
145
|
+
attr_reader custom_fields: top?
|
|
146
|
+
|
|
147
|
+
def custom_fields=: (top) -> top
|
|
148
|
+
|
|
149
|
+
attr_reader email: String?
|
|
150
|
+
|
|
151
|
+
def email=: (String) -> String
|
|
152
|
+
|
|
153
|
+
attr_reader first_name: String?
|
|
154
|
+
|
|
155
|
+
def first_name=: (String) -> String
|
|
156
|
+
|
|
157
|
+
attr_reader last_name: String?
|
|
158
|
+
|
|
159
|
+
def last_name=: (String) -> String
|
|
160
|
+
|
|
161
|
+
attr_reader locale: String?
|
|
162
|
+
|
|
163
|
+
def locale=: (String) -> String
|
|
164
|
+
|
|
165
|
+
attr_reader phone: String?
|
|
166
|
+
|
|
167
|
+
def phone=: (String) -> String
|
|
168
|
+
|
|
169
|
+
attr_reader timezone: String?
|
|
170
|
+
|
|
171
|
+
def timezone=: (String) -> String
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
external_id: String,
|
|
175
|
+
?avatar: String,
|
|
176
|
+
?custom_fields: top,
|
|
177
|
+
?email: String,
|
|
178
|
+
?first_name: String,
|
|
179
|
+
?last_name: String,
|
|
180
|
+
?locale: String,
|
|
181
|
+
?phone: String,
|
|
182
|
+
?timezone: String
|
|
183
|
+
) -> void
|
|
184
|
+
|
|
185
|
+
def to_hash: -> {
|
|
186
|
+
external_id: String,
|
|
187
|
+
avatar: String,
|
|
188
|
+
custom_fields: top,
|
|
189
|
+
email: String,
|
|
190
|
+
first_name: String,
|
|
191
|
+
last_name: String,
|
|
192
|
+
locale: String,
|
|
193
|
+
phone: String,
|
|
194
|
+
timezone: String
|
|
195
|
+
}
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notiflow_run_response = { notiflow_run_id: String }
|
|
4
|
+
|
|
5
|
+
class NotiflowRunResponse < Notiflows::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor notiflow_run_id: String
|
|
7
|
+
|
|
8
|
+
def initialize: (notiflow_run_id: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { notiflow_run_id: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type topic = { created_at: Time, name: String }
|
|
4
|
+
|
|
5
|
+
class Topic < Notiflows::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor created_at: Time
|
|
7
|
+
|
|
8
|
+
attr_accessor name: String
|
|
9
|
+
|
|
10
|
+
def initialize: (created_at: Time, name: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { created_at: Time, name: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type topic_delete_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class TopicDeleteParams < 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,38 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type topic_list_params =
|
|
4
|
+
{ after: String, before: String, limit: Integer }
|
|
5
|
+
& Notiflows::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class TopicListParams < Notiflows::Internal::Type::BaseModel
|
|
8
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader after: String?
|
|
12
|
+
|
|
13
|
+
def after=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader before: String?
|
|
16
|
+
|
|
17
|
+
def before=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader limit: Integer?
|
|
20
|
+
|
|
21
|
+
def limit=: (Integer) -> Integer
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
?after: String,
|
|
25
|
+
?before: String,
|
|
26
|
+
?limit: Integer,
|
|
27
|
+
?request_options: Notiflows::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
after: String,
|
|
32
|
+
before: String,
|
|
33
|
+
limit: Integer,
|
|
34
|
+
request_options: Notiflows::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type topic_retrieve_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class TopicRetrieveParams < 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,39 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Topics
|
|
4
|
+
type bulk_operation_response =
|
|
5
|
+
{
|
|
6
|
+
failed: ::Array[Notiflows::Topics::BulkOperationResponse::Failed],
|
|
7
|
+
successful: ::Array[Notiflows::Users::Subscription]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class BulkOperationResponse < Notiflows::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor failed: ::Array[Notiflows::Topics::BulkOperationResponse::Failed]
|
|
12
|
+
|
|
13
|
+
attr_accessor successful: ::Array[Notiflows::Users::Subscription]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
failed: ::Array[Notiflows::Topics::BulkOperationResponse::Failed],
|
|
17
|
+
successful: ::Array[Notiflows::Users::Subscription]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
failed: ::Array[Notiflows::Topics::BulkOperationResponse::Failed],
|
|
22
|
+
successful: ::Array[Notiflows::Users::Subscription]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type failed = { external_id: String, reason: String }
|
|
26
|
+
|
|
27
|
+
class Failed < Notiflows::Internal::Type::BaseModel
|
|
28
|
+
attr_accessor external_id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor reason: String
|
|
31
|
+
|
|
32
|
+
def initialize: (external_id: String, reason: String) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> { external_id: String, reason: String }
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Topics
|
|
4
|
+
type bulk_subscribe_request = { user_external_ids: ::Array[String] }
|
|
5
|
+
|
|
6
|
+
class BulkSubscribeRequest < Notiflows::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor user_external_ids: ::Array[String]
|
|
8
|
+
|
|
9
|
+
def initialize: (user_external_ids: ::Array[String]) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { user_external_ids: ::Array[String] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Topics
|
|
4
|
+
type subscription_list_params =
|
|
5
|
+
{
|
|
6
|
+
after: String,
|
|
7
|
+
before: String,
|
|
8
|
+
created_after: String,
|
|
9
|
+
created_before: String,
|
|
10
|
+
limit: Integer
|
|
11
|
+
}
|
|
12
|
+
& Notiflows::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class SubscriptionListParams < Notiflows::Internal::Type::BaseModel
|
|
15
|
+
extend Notiflows::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Notiflows::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_reader after: String?
|
|
19
|
+
|
|
20
|
+
def after=: (String) -> String
|
|
21
|
+
|
|
22
|
+
attr_reader before: String?
|
|
23
|
+
|
|
24
|
+
def before=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader created_after: String?
|
|
27
|
+
|
|
28
|
+
def created_after=: (String) -> String
|
|
29
|
+
|
|
30
|
+
attr_reader created_before: String?
|
|
31
|
+
|
|
32
|
+
def created_before=: (String) -> String
|
|
33
|
+
|
|
34
|
+
attr_reader limit: Integer?
|
|
35
|
+
|
|
36
|
+
def limit=: (Integer) -> Integer
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
?after: String,
|
|
40
|
+
?before: String,
|
|
41
|
+
?created_after: String,
|
|
42
|
+
?created_before: String,
|
|
43
|
+
?limit: Integer,
|
|
44
|
+
?request_options: Notiflows::request_opts
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
after: String,
|
|
49
|
+
before: String,
|
|
50
|
+
created_after: String,
|
|
51
|
+
created_before: String,
|
|
52
|
+
limit: Integer,
|
|
53
|
+
request_options: Notiflows::RequestOptions
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
module Topics
|
|
4
|
+
type subscription_subscribe_bulk_params =
|
|
5
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class SubscriptionSubscribeBulkParams < Notiflows::Models::Topics::BulkSubscribeRequest
|
|
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 Topics
|
|
4
|
+
type subscription_unsubscribe_bulk_params =
|
|
5
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class SubscriptionUnsubscribeBulkParams < Notiflows::Models::Topics::BulkSubscribeRequest
|
|
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,75 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type user =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
external_id: String,
|
|
8
|
+
updated_at: Time,
|
|
9
|
+
avatar: String?,
|
|
10
|
+
custom_fields: top?,
|
|
11
|
+
email: String?,
|
|
12
|
+
first_name: String?,
|
|
13
|
+
last_name: String?,
|
|
14
|
+
locale: String?,
|
|
15
|
+
phone: String?,
|
|
16
|
+
timezone: String?
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class User < Notiflows::Internal::Type::BaseModel
|
|
20
|
+
attr_accessor id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor created_at: Time
|
|
23
|
+
|
|
24
|
+
attr_accessor external_id: String
|
|
25
|
+
|
|
26
|
+
attr_accessor updated_at: Time
|
|
27
|
+
|
|
28
|
+
attr_accessor avatar: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor custom_fields: top?
|
|
31
|
+
|
|
32
|
+
attr_accessor email: String?
|
|
33
|
+
|
|
34
|
+
attr_accessor first_name: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor last_name: String?
|
|
37
|
+
|
|
38
|
+
attr_accessor locale: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor phone: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor timezone: String?
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
id: String,
|
|
46
|
+
created_at: Time,
|
|
47
|
+
external_id: String,
|
|
48
|
+
updated_at: Time,
|
|
49
|
+
?avatar: String?,
|
|
50
|
+
?custom_fields: top?,
|
|
51
|
+
?email: String?,
|
|
52
|
+
?first_name: String?,
|
|
53
|
+
?last_name: String?,
|
|
54
|
+
?locale: String?,
|
|
55
|
+
?phone: String?,
|
|
56
|
+
?timezone: String?
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
id: String,
|
|
61
|
+
created_at: Time,
|
|
62
|
+
external_id: String,
|
|
63
|
+
updated_at: Time,
|
|
64
|
+
avatar: String?,
|
|
65
|
+
custom_fields: top?,
|
|
66
|
+
email: String?,
|
|
67
|
+
first_name: String?,
|
|
68
|
+
last_name: String?,
|
|
69
|
+
locale: String?,
|
|
70
|
+
phone: String?,
|
|
71
|
+
timezone: String?
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|