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,48 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Internal
|
|
3
|
+
module Type
|
|
4
|
+
class HashOf[Elem]
|
|
5
|
+
include Notiflows::Internal::Type::Converter
|
|
6
|
+
include Notiflows::Internal::Util::SorbetRuntimeSupport
|
|
7
|
+
|
|
8
|
+
def self.[]: (
|
|
9
|
+
::Hash[Symbol, top]
|
|
10
|
+
| ^-> Notiflows::Internal::Type::Converter::input
|
|
11
|
+
| Notiflows::Internal::Type::Converter::input type_info,
|
|
12
|
+
?::Hash[Symbol, top] spec
|
|
13
|
+
) -> instance
|
|
14
|
+
|
|
15
|
+
def ===: (top other) -> bool
|
|
16
|
+
|
|
17
|
+
def ==: (top other) -> bool
|
|
18
|
+
|
|
19
|
+
def hash: -> Integer
|
|
20
|
+
|
|
21
|
+
def coerce: (
|
|
22
|
+
::Hash[top, top] | top value,
|
|
23
|
+
state: Notiflows::Internal::Type::Converter::coerce_state
|
|
24
|
+
) -> (::Hash[Symbol, top] | top)
|
|
25
|
+
|
|
26
|
+
def dump: (
|
|
27
|
+
::Hash[top, top] | top value,
|
|
28
|
+
state: Notiflows::Internal::Type::Converter::dump_state
|
|
29
|
+
) -> (::Hash[Symbol, top] | top)
|
|
30
|
+
|
|
31
|
+
def to_sorbet_type: -> top
|
|
32
|
+
|
|
33
|
+
def item_type: -> Elem
|
|
34
|
+
|
|
35
|
+
def nilable?: -> bool
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
::Hash[Symbol, top]
|
|
39
|
+
| ^-> Notiflows::Internal::Type::Converter::input
|
|
40
|
+
| Notiflows::Internal::Type::Converter::input type_info,
|
|
41
|
+
?::Hash[Symbol, top] spec
|
|
42
|
+
) -> void
|
|
43
|
+
|
|
44
|
+
def inspect: (?depth: Integer) -> String
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Internal
|
|
3
|
+
module Type
|
|
4
|
+
type request_parameters = { request_options: Notiflows::request_opts }
|
|
5
|
+
|
|
6
|
+
module RequestParameters
|
|
7
|
+
attr_reader request_options: Notiflows::request_opts
|
|
8
|
+
|
|
9
|
+
def request_options=: (
|
|
10
|
+
Notiflows::request_opts
|
|
11
|
+
) -> Notiflows::request_opts
|
|
12
|
+
|
|
13
|
+
module Converter
|
|
14
|
+
def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Internal
|
|
3
|
+
module Type
|
|
4
|
+
module Union
|
|
5
|
+
include Notiflows::Internal::Type::Converter
|
|
6
|
+
include Notiflows::Internal::Util::SorbetRuntimeSupport
|
|
7
|
+
|
|
8
|
+
private def self.known_variants: -> ::Array[[Symbol?, (^-> Notiflows::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
|
|
9
|
+
|
|
10
|
+
def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
|
|
11
|
+
|
|
12
|
+
def self.variants: -> ::Array[top]
|
|
13
|
+
|
|
14
|
+
private def self.discriminator: (Symbol property) -> void
|
|
15
|
+
|
|
16
|
+
private def self.variant: (
|
|
17
|
+
Symbol
|
|
18
|
+
| ::Hash[Symbol, top]
|
|
19
|
+
| ^-> Notiflows::Internal::Type::Converter::input
|
|
20
|
+
| Notiflows::Internal::Type::Converter::input key,
|
|
21
|
+
?::Hash[Symbol, top]
|
|
22
|
+
| ^-> Notiflows::Internal::Type::Converter::input
|
|
23
|
+
| Notiflows::Internal::Type::Converter::input spec
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
private def self.resolve_variant: (
|
|
27
|
+
top value
|
|
28
|
+
) -> Notiflows::Internal::Type::Converter::input?
|
|
29
|
+
|
|
30
|
+
def ===: (top other) -> bool
|
|
31
|
+
|
|
32
|
+
def ==: (top other) -> bool
|
|
33
|
+
|
|
34
|
+
def hash: -> Integer
|
|
35
|
+
|
|
36
|
+
def coerce: (
|
|
37
|
+
top value,
|
|
38
|
+
state: Notiflows::Internal::Type::Converter::coerce_state
|
|
39
|
+
) -> top
|
|
40
|
+
|
|
41
|
+
def dump: (
|
|
42
|
+
top value,
|
|
43
|
+
state: Notiflows::Internal::Type::Converter::dump_state
|
|
44
|
+
) -> top
|
|
45
|
+
|
|
46
|
+
def to_sorbet_type: -> top
|
|
47
|
+
|
|
48
|
+
def inspect: (?depth: Integer) -> String
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Internal
|
|
3
|
+
module Type
|
|
4
|
+
class Unknown
|
|
5
|
+
extend Notiflows::Internal::Type::Converter
|
|
6
|
+
extend Notiflows::Internal::Util::SorbetRuntimeSupport
|
|
7
|
+
|
|
8
|
+
def self.===: (top other) -> bool
|
|
9
|
+
|
|
10
|
+
def self.==: (top other) -> bool
|
|
11
|
+
|
|
12
|
+
def self.coerce: (
|
|
13
|
+
top value,
|
|
14
|
+
state: Notiflows::Internal::Type::Converter::coerce_state
|
|
15
|
+
) -> top
|
|
16
|
+
|
|
17
|
+
def self.dump: (
|
|
18
|
+
top value,
|
|
19
|
+
state: Notiflows::Internal::Type::Converter::dump_state
|
|
20
|
+
) -> top
|
|
21
|
+
|
|
22
|
+
def self.to_sorbet_type: -> top
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Internal
|
|
3
|
+
module Util
|
|
4
|
+
extend Notiflows::Internal::Util::SorbetRuntimeSupport
|
|
5
|
+
|
|
6
|
+
def self?.monotonic_secs: -> Float
|
|
7
|
+
|
|
8
|
+
def self?.walk_namespaces: (
|
|
9
|
+
Module | Class ns
|
|
10
|
+
) -> Enumerable[(Module | Class)]
|
|
11
|
+
|
|
12
|
+
def self?.arch: -> String
|
|
13
|
+
|
|
14
|
+
def self?.os: -> String
|
|
15
|
+
|
|
16
|
+
def self?.primitive?: (top input) -> bool
|
|
17
|
+
|
|
18
|
+
def self?.coerce_boolean: (String | bool input) -> (bool | top)
|
|
19
|
+
|
|
20
|
+
def self?.coerce_boolean!: (String | bool input) -> bool?
|
|
21
|
+
|
|
22
|
+
def self?.coerce_integer: (String | Integer input) -> (Integer | top)
|
|
23
|
+
|
|
24
|
+
def self?.coerce_float: (String | Integer | Float input) -> (Float | top)
|
|
25
|
+
|
|
26
|
+
def self?.coerce_hash: (top input) -> (::Hash[top, top] | top)
|
|
27
|
+
|
|
28
|
+
def self?.coerce_hash!: (top input) -> ::Hash[top, top]?
|
|
29
|
+
|
|
30
|
+
def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top
|
|
31
|
+
|
|
32
|
+
def self?.deep_merge: (
|
|
33
|
+
*::Array[top] values,
|
|
34
|
+
?sentinel: top?,
|
|
35
|
+
?concat: bool
|
|
36
|
+
) -> top
|
|
37
|
+
|
|
38
|
+
def self?.dig: (
|
|
39
|
+
::Hash[Symbol, top] | ::Array[top] | top data,
|
|
40
|
+
(Symbol
|
|
41
|
+
| Integer
|
|
42
|
+
| ::Array[(Symbol | Integer)]
|
|
43
|
+
| (^(top arg0) -> top))? pick
|
|
44
|
+
) {
|
|
45
|
+
-> top?
|
|
46
|
+
} -> top?
|
|
47
|
+
|
|
48
|
+
def self?.uri_origin: (URI::Generic uri) -> String
|
|
49
|
+
|
|
50
|
+
def self?.interpolate_path: (String | ::Array[String] path) -> String
|
|
51
|
+
|
|
52
|
+
def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
|
|
53
|
+
|
|
54
|
+
def self?.encode_query: (
|
|
55
|
+
::Hash[String, (::Array[String] | String)?]? query
|
|
56
|
+
) -> String?
|
|
57
|
+
|
|
58
|
+
type parsed_uri =
|
|
59
|
+
{
|
|
60
|
+
scheme: String?,
|
|
61
|
+
host: String?,
|
|
62
|
+
port: Integer?,
|
|
63
|
+
path: String?,
|
|
64
|
+
query: ::Hash[String, ::Array[String]]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
def self?.parse_uri: (
|
|
68
|
+
URI::Generic | String url
|
|
69
|
+
) -> Notiflows::Internal::Util::parsed_uri
|
|
70
|
+
|
|
71
|
+
def self?.unparse_uri: (
|
|
72
|
+
Notiflows::Internal::Util::parsed_uri parsed
|
|
73
|
+
) -> URI::Generic
|
|
74
|
+
|
|
75
|
+
def self?.join_parsed_uri: (
|
|
76
|
+
Notiflows::Internal::Util::parsed_uri lhs,
|
|
77
|
+
Notiflows::Internal::Util::parsed_uri rhs
|
|
78
|
+
) -> URI::Generic
|
|
79
|
+
|
|
80
|
+
def self?.normalized_headers: (
|
|
81
|
+
*::Hash[String, (String
|
|
82
|
+
| Integer
|
|
83
|
+
| ::Array[(String | Integer)?])?] headers
|
|
84
|
+
) -> ::Hash[String, String]
|
|
85
|
+
|
|
86
|
+
class ReadIOAdapter
|
|
87
|
+
def close?: -> bool?
|
|
88
|
+
|
|
89
|
+
def close: -> void
|
|
90
|
+
|
|
91
|
+
private def read_enum: (Integer? max_len) -> String
|
|
92
|
+
|
|
93
|
+
def read: (?Integer? max_len, ?String? out_string) -> String?
|
|
94
|
+
|
|
95
|
+
def initialize: (
|
|
96
|
+
String | Pathname | StringIO | Enumerable[String] src
|
|
97
|
+
) {
|
|
98
|
+
(String arg0) -> void
|
|
99
|
+
} -> void
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def self?.writable_enum: {
|
|
103
|
+
(Enumerator::Yielder y) -> void
|
|
104
|
+
} -> Enumerable[String]
|
|
105
|
+
|
|
106
|
+
JSON_CONTENT: Regexp
|
|
107
|
+
JSONL_CONTENT: Regexp
|
|
108
|
+
|
|
109
|
+
def self?.write_multipart_content: (
|
|
110
|
+
Enumerator::Yielder y,
|
|
111
|
+
val: top,
|
|
112
|
+
closing: ::Array[^-> void],
|
|
113
|
+
?content_type: String?
|
|
114
|
+
) -> void
|
|
115
|
+
|
|
116
|
+
def self?.write_multipart_chunk: (
|
|
117
|
+
Enumerator::Yielder y,
|
|
118
|
+
boundary: String,
|
|
119
|
+
key: Symbol | String,
|
|
120
|
+
val: top,
|
|
121
|
+
closing: ::Array[^-> void]
|
|
122
|
+
) -> void
|
|
123
|
+
|
|
124
|
+
def self?.encode_multipart_streaming: (
|
|
125
|
+
top body
|
|
126
|
+
) -> [String, Enumerable[String]]
|
|
127
|
+
|
|
128
|
+
def self?.encode_content: (
|
|
129
|
+
::Hash[String, String] headers,
|
|
130
|
+
top body
|
|
131
|
+
) -> top
|
|
132
|
+
|
|
133
|
+
def self?.force_charset!: (String content_type, text: String) -> void
|
|
134
|
+
|
|
135
|
+
def self?.decode_content: (
|
|
136
|
+
::Hash[String, String] headers,
|
|
137
|
+
stream: Enumerable[String],
|
|
138
|
+
?suppress_error: bool
|
|
139
|
+
) -> top
|
|
140
|
+
|
|
141
|
+
def self?.fused_enum: (
|
|
142
|
+
Enumerable[top] enum,
|
|
143
|
+
?external: bool
|
|
144
|
+
) {
|
|
145
|
+
-> void
|
|
146
|
+
} -> Enumerable[top]
|
|
147
|
+
|
|
148
|
+
def self?.close_fused!: (Enumerable[top]? enum) -> void
|
|
149
|
+
|
|
150
|
+
def self?.chain_fused: (
|
|
151
|
+
Enumerable[top]? enum
|
|
152
|
+
) {
|
|
153
|
+
(Enumerator::Yielder arg0) -> void
|
|
154
|
+
} -> Enumerable[top]
|
|
155
|
+
|
|
156
|
+
type server_sent_event =
|
|
157
|
+
{ event: String?, data: String?, id: String?, retry: Integer? }
|
|
158
|
+
|
|
159
|
+
def self?.decode_lines: (Enumerable[String] enum) -> Enumerable[String]
|
|
160
|
+
|
|
161
|
+
def self?.decode_sse: (
|
|
162
|
+
Enumerable[String] lines
|
|
163
|
+
) -> Enumerable[Notiflows::Internal::Util::server_sent_event]
|
|
164
|
+
|
|
165
|
+
module SorbetRuntimeSupport
|
|
166
|
+
class MissingSorbetRuntimeError < ::RuntimeError
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
private def sorbet_runtime_constants: -> ::Hash[Symbol, top]
|
|
170
|
+
|
|
171
|
+
def const_missing: (Symbol name) -> void
|
|
172
|
+
|
|
173
|
+
def sorbet_constant_defined?: (Symbol name) -> bool
|
|
174
|
+
|
|
175
|
+
def define_sorbet_constant!: (Symbol name) { -> top } -> void
|
|
176
|
+
|
|
177
|
+
def to_sorbet_type: -> top
|
|
178
|
+
|
|
179
|
+
def self.to_sorbet_type: (
|
|
180
|
+
Notiflows::Internal::Util::SorbetRuntimeSupport | top `type`
|
|
181
|
+
) -> top
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type delivery =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
channel_type: Notiflows::Models::Delivery::channel_type,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
notification_id: String,
|
|
9
|
+
notiflow_id: String,
|
|
10
|
+
recipient_id: String,
|
|
11
|
+
status: Notiflows::Models::Delivery::status,
|
|
12
|
+
updated_at: Time,
|
|
13
|
+
actor_id: String?,
|
|
14
|
+
archived_at: Time?,
|
|
15
|
+
channel_id: String?,
|
|
16
|
+
clicked_at: Time?,
|
|
17
|
+
data: top,
|
|
18
|
+
read_at: Time?,
|
|
19
|
+
seen_at: Time?,
|
|
20
|
+
sent_at: Time?,
|
|
21
|
+
topic: String?
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class Delivery < Notiflows::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor channel_type: Notiflows::Models::Delivery::channel_type
|
|
28
|
+
|
|
29
|
+
attr_accessor created_at: Time
|
|
30
|
+
|
|
31
|
+
attr_accessor notification_id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor notiflow_id: String
|
|
34
|
+
|
|
35
|
+
attr_accessor recipient_id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor status: Notiflows::Models::Delivery::status
|
|
38
|
+
|
|
39
|
+
attr_accessor updated_at: Time
|
|
40
|
+
|
|
41
|
+
attr_accessor actor_id: String?
|
|
42
|
+
|
|
43
|
+
attr_accessor archived_at: Time?
|
|
44
|
+
|
|
45
|
+
attr_accessor channel_id: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor clicked_at: Time?
|
|
48
|
+
|
|
49
|
+
attr_reader data: top?
|
|
50
|
+
|
|
51
|
+
def data=: (top) -> top
|
|
52
|
+
|
|
53
|
+
attr_accessor read_at: Time?
|
|
54
|
+
|
|
55
|
+
attr_accessor seen_at: Time?
|
|
56
|
+
|
|
57
|
+
attr_accessor sent_at: Time?
|
|
58
|
+
|
|
59
|
+
attr_accessor topic: String?
|
|
60
|
+
|
|
61
|
+
def initialize: (
|
|
62
|
+
id: String,
|
|
63
|
+
channel_type: Notiflows::Models::Delivery::channel_type,
|
|
64
|
+
created_at: Time,
|
|
65
|
+
notification_id: String,
|
|
66
|
+
notiflow_id: String,
|
|
67
|
+
recipient_id: String,
|
|
68
|
+
status: Notiflows::Models::Delivery::status,
|
|
69
|
+
updated_at: Time,
|
|
70
|
+
?actor_id: String?,
|
|
71
|
+
?archived_at: Time?,
|
|
72
|
+
?channel_id: String?,
|
|
73
|
+
?clicked_at: Time?,
|
|
74
|
+
?data: top,
|
|
75
|
+
?read_at: Time?,
|
|
76
|
+
?seen_at: Time?,
|
|
77
|
+
?sent_at: Time?,
|
|
78
|
+
?topic: String?
|
|
79
|
+
) -> void
|
|
80
|
+
|
|
81
|
+
def to_hash: -> {
|
|
82
|
+
id: String,
|
|
83
|
+
channel_type: Notiflows::Models::Delivery::channel_type,
|
|
84
|
+
created_at: Time,
|
|
85
|
+
notification_id: String,
|
|
86
|
+
notiflow_id: String,
|
|
87
|
+
recipient_id: String,
|
|
88
|
+
status: Notiflows::Models::Delivery::status,
|
|
89
|
+
updated_at: Time,
|
|
90
|
+
actor_id: String?,
|
|
91
|
+
archived_at: Time?,
|
|
92
|
+
channel_id: String?,
|
|
93
|
+
clicked_at: Time?,
|
|
94
|
+
data: top,
|
|
95
|
+
read_at: Time?,
|
|
96
|
+
seen_at: Time?,
|
|
97
|
+
sent_at: Time?,
|
|
98
|
+
topic: String?
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type channel_type =
|
|
102
|
+
:in_app | :email | :sms | :chat | :web_push | :mobile_push
|
|
103
|
+
|
|
104
|
+
module ChannelType
|
|
105
|
+
extend Notiflows::Internal::Type::Enum
|
|
106
|
+
|
|
107
|
+
IN_APP: :in_app
|
|
108
|
+
EMAIL: :email
|
|
109
|
+
SMS: :sms
|
|
110
|
+
CHAT: :chat
|
|
111
|
+
WEB_PUSH: :web_push
|
|
112
|
+
MOBILE_PUSH: :mobile_push
|
|
113
|
+
|
|
114
|
+
def self?.values: -> ::Array[Notiflows::Models::Delivery::channel_type]
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
type status = :pending | :sent | :failed
|
|
118
|
+
|
|
119
|
+
module Status
|
|
120
|
+
extend Notiflows::Internal::Type::Enum
|
|
121
|
+
|
|
122
|
+
PENDING: :pending
|
|
123
|
+
SENT: :sent
|
|
124
|
+
FAILED: :failed
|
|
125
|
+
|
|
126
|
+
def self?.values: -> ::Array[Notiflows::Models::Delivery::status]
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type delivery_list_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 DeliveryListParams < 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,15 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type delivery_retrieve_params =
|
|
4
|
+
{ } & Notiflows::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DeliveryRetrieveParams < 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,104 @@
|
|
|
1
|
+
module Notiflows
|
|
2
|
+
module Models
|
|
3
|
+
type notification =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
data: top,
|
|
8
|
+
notiflow_id: String,
|
|
9
|
+
notiflow_run_id: String,
|
|
10
|
+
recipient_id: String,
|
|
11
|
+
status: Notiflows::Models::Notification::status,
|
|
12
|
+
updated_at: Time,
|
|
13
|
+
actor: Notiflows::User?,
|
|
14
|
+
actor_id: String?,
|
|
15
|
+
deliveries: ::Array[Notiflows::Delivery],
|
|
16
|
+
processed_at: Time?,
|
|
17
|
+
recipient: Notiflows::User,
|
|
18
|
+
topic: String?
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class Notification < Notiflows::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor created_at: Time
|
|
25
|
+
|
|
26
|
+
attr_accessor data: top
|
|
27
|
+
|
|
28
|
+
attr_accessor notiflow_id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor notiflow_run_id: String
|
|
31
|
+
|
|
32
|
+
attr_accessor recipient_id: String
|
|
33
|
+
|
|
34
|
+
attr_accessor status: Notiflows::Models::Notification::status
|
|
35
|
+
|
|
36
|
+
attr_accessor updated_at: Time
|
|
37
|
+
|
|
38
|
+
attr_accessor actor: Notiflows::User?
|
|
39
|
+
|
|
40
|
+
attr_accessor actor_id: String?
|
|
41
|
+
|
|
42
|
+
attr_reader deliveries: ::Array[Notiflows::Delivery]?
|
|
43
|
+
|
|
44
|
+
def deliveries=: (
|
|
45
|
+
::Array[Notiflows::Delivery]
|
|
46
|
+
) -> ::Array[Notiflows::Delivery]
|
|
47
|
+
|
|
48
|
+
attr_accessor processed_at: Time?
|
|
49
|
+
|
|
50
|
+
attr_reader recipient: Notiflows::User?
|
|
51
|
+
|
|
52
|
+
def recipient=: (Notiflows::User) -> Notiflows::User
|
|
53
|
+
|
|
54
|
+
attr_accessor topic: String?
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
id: String,
|
|
58
|
+
created_at: Time,
|
|
59
|
+
data: top,
|
|
60
|
+
notiflow_id: String,
|
|
61
|
+
notiflow_run_id: String,
|
|
62
|
+
recipient_id: String,
|
|
63
|
+
status: Notiflows::Models::Notification::status,
|
|
64
|
+
updated_at: Time,
|
|
65
|
+
?actor: Notiflows::User?,
|
|
66
|
+
?actor_id: String?,
|
|
67
|
+
?deliveries: ::Array[Notiflows::Delivery],
|
|
68
|
+
?processed_at: Time?,
|
|
69
|
+
?recipient: Notiflows::User,
|
|
70
|
+
?topic: String?
|
|
71
|
+
) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> {
|
|
74
|
+
id: String,
|
|
75
|
+
created_at: Time,
|
|
76
|
+
data: top,
|
|
77
|
+
notiflow_id: String,
|
|
78
|
+
notiflow_run_id: String,
|
|
79
|
+
recipient_id: String,
|
|
80
|
+
status: Notiflows::Models::Notification::status,
|
|
81
|
+
updated_at: Time,
|
|
82
|
+
actor: Notiflows::User?,
|
|
83
|
+
actor_id: String?,
|
|
84
|
+
deliveries: ::Array[Notiflows::Delivery],
|
|
85
|
+
processed_at: Time?,
|
|
86
|
+
recipient: Notiflows::User,
|
|
87
|
+
topic: String?
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type status = :pending | :processing | :processed | :failed
|
|
91
|
+
|
|
92
|
+
module Status
|
|
93
|
+
extend Notiflows::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
PENDING: :pending
|
|
96
|
+
PROCESSING: :processing
|
|
97
|
+
PROCESSED: :processed
|
|
98
|
+
FAILED: :failed
|
|
99
|
+
|
|
100
|
+
def self?.values: -> ::Array[Notiflows::Models::Notification::status]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|