trycourier 6.9.0 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/courier/client.rb +6 -0
- data/lib/courier/models/create_device_set_request.rb +27 -0
- data/lib/courier/models/device_set.rb +63 -0
- data/lib/courier/models/device_set_list_response.rb +18 -0
- data/lib/courier/models/notifications/previews/create_preview_run_request.rb +68 -0
- data/lib/courier/models/notifications/previews/preview_result.rb +67 -0
- data/lib/courier/models/notifications/previews/preview_result_failure_reason.rb +24 -0
- data/lib/courier/models/notifications/previews/preview_result_status.rb +29 -0
- data/lib/courier/models/notifications/previews/preview_run.rb +84 -0
- data/lib/courier/models/notifications/previews/preview_run_detail.rb +93 -0
- data/lib/courier/models/notifications/previews/preview_run_failure_reason.rb +28 -0
- data/lib/courier/models/notifications/previews/preview_run_list_response.rb +30 -0
- data/lib/courier/models/notifications/previews/preview_run_status.rb +28 -0
- data/lib/courier/models/notifications/previews/run_create_params.rb +36 -0
- data/lib/courier/models/notifications/previews/run_list_params.rb +41 -0
- data/lib/courier/models/notifications/previews/run_retrieve_params.rb +30 -0
- data/lib/courier/models/preference_change_log_entry.rb +94 -0
- data/lib/courier/models/preference_change_log_value.rb +32 -0
- data/lib/courier/models/preference_logs_list_response.rb +24 -0
- data/lib/courier/models/preview_archive_device_set_params.rb +20 -0
- data/lib/courier/models/preview_create_device_set_params.rb +14 -0
- data/lib/courier/models/preview_device.rb +125 -0
- data/lib/courier/models/preview_device_list_response.rb +18 -0
- data/lib/courier/models/preview_list_device_sets_params.rb +14 -0
- data/lib/courier/models/preview_list_devices_params.rb +14 -0
- data/lib/courier/models/preview_retrieve_device_set_params.rb +20 -0
- data/lib/courier/models/preview_update_device_set_params.rb +20 -0
- data/lib/courier/models/workspace_preference_list_logs_params.rb +61 -0
- data/lib/courier/models.rb +30 -0
- data/lib/courier/resources/notifications/previews/runs.rb +148 -0
- data/lib/courier/resources/notifications/previews.rb +22 -0
- data/lib/courier/resources/notifications.rb +4 -0
- data/lib/courier/resources/previews.rb +153 -0
- data/lib/courier/resources/workspace_preferences.rb +37 -0
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +30 -0
- data/rbi/courier/client.rbi +5 -0
- data/rbi/courier/models/create_device_set_request.rbi +39 -0
- data/rbi/courier/models/device_set.rbi +81 -0
- data/rbi/courier/models/device_set_list_response.rbi +28 -0
- data/rbi/courier/models/notifications/previews/create_preview_run_request.rbi +110 -0
- data/rbi/courier/models/notifications/previews/preview_result.rbi +117 -0
- data/rbi/courier/models/notifications/previews/preview_result_failure_reason.rbi +44 -0
- data/rbi/courier/models/notifications/previews/preview_result_status.rbi +69 -0
- data/rbi/courier/models/notifications/previews/preview_run.rbi +134 -0
- data/rbi/courier/models/notifications/previews/preview_run_detail.rbi +148 -0
- data/rbi/courier/models/notifications/previews/preview_run_failure_reason.rbi +64 -0
- data/rbi/courier/models/notifications/previews/preview_run_list_response.rbi +54 -0
- data/rbi/courier/models/notifications/previews/preview_run_status.rbi +61 -0
- data/rbi/courier/models/notifications/previews/run_create_params.rbi +66 -0
- data/rbi/courier/models/notifications/previews/run_list_params.rbi +67 -0
- data/rbi/courier/models/notifications/previews/run_retrieve_params.rbi +50 -0
- data/rbi/courier/models/preference_change_log_entry.rbi +122 -0
- data/rbi/courier/models/preference_change_log_value.rbi +54 -0
- data/rbi/courier/models/preference_logs_list_response.rbi +46 -0
- data/rbi/courier/models/preview_archive_device_set_params.rbi +38 -0
- data/rbi/courier/models/preview_create_device_set_params.rbi +30 -0
- data/rbi/courier/models/preview_device.rbi +168 -0
- data/rbi/courier/models/preview_device_list_response.rbi +28 -0
- data/rbi/courier/models/preview_list_device_sets_params.rbi +30 -0
- data/rbi/courier/models/preview_list_devices_params.rbi +27 -0
- data/rbi/courier/models/preview_retrieve_device_set_params.rbi +38 -0
- data/rbi/courier/models/preview_update_device_set_params.rbi +38 -0
- data/rbi/courier/models/workspace_preference_list_logs_params.rbi +101 -0
- data/rbi/courier/models.rbi +32 -0
- data/rbi/courier/resources/notifications/previews/runs.rbi +136 -0
- data/rbi/courier/resources/notifications/previews.rbi +19 -0
- data/rbi/courier/resources/notifications.rbi +3 -0
- data/rbi/courier/resources/previews.rbi +106 -0
- data/rbi/courier/resources/workspace_preferences.rbi +33 -0
- data/sig/courier/client.rbs +2 -0
- data/sig/courier/models/create_device_set_request.rbs +16 -0
- data/sig/courier/models/device_set.rbs +47 -0
- data/sig/courier/models/device_set_list_response.rbs +13 -0
- data/sig/courier/models/notifications/previews/create_preview_run_request.rbs +54 -0
- data/sig/courier/models/notifications/previews/preview_result.rbs +50 -0
- data/sig/courier/models/notifications/previews/preview_result_failure_reason.rbs +19 -0
- data/sig/courier/models/notifications/previews/preview_result_status.rbs +30 -0
- data/sig/courier/models/notifications/previews/preview_run.rbs +62 -0
- data/sig/courier/models/notifications/previews/preview_run_detail.rbs +67 -0
- data/sig/courier/models/notifications/previews/preview_run_failure_reason.rbs +28 -0
- data/sig/courier/models/notifications/previews/preview_run_list_response.rbs +31 -0
- data/sig/courier/models/notifications/previews/preview_run_status.rbs +24 -0
- data/sig/courier/models/notifications/previews/run_create_params.rbs +46 -0
- data/sig/courier/models/notifications/previews/run_list_params.rbs +38 -0
- data/sig/courier/models/notifications/previews/run_retrieve_params.rbs +32 -0
- data/sig/courier/models/preference_change_log_entry.rbs +71 -0
- data/sig/courier/models/preference_change_log_value.rbs +30 -0
- data/sig/courier/models/preference_logs_list_response.rbs +25 -0
- data/sig/courier/models/preview_archive_device_set_params.rbs +23 -0
- data/sig/courier/models/preview_create_device_set_params.rbs +15 -0
- data/sig/courier/models/preview_device.rbs +83 -0
- data/sig/courier/models/preview_device_list_response.rbs +14 -0
- data/sig/courier/models/preview_list_device_sets_params.rbs +15 -0
- data/sig/courier/models/preview_list_devices_params.rbs +15 -0
- data/sig/courier/models/preview_retrieve_device_set_params.rbs +23 -0
- data/sig/courier/models/preview_update_device_set_params.rbs +25 -0
- data/sig/courier/models/workspace_preference_list_logs_params.rbs +56 -0
- data/sig/courier/models.rbs +30 -0
- data/sig/courier/resources/notifications/previews/runs.rbs +36 -0
- data/sig/courier/resources/notifications/previews.rbs +11 -0
- data/sig/courier/resources/notifications.rbs +2 -0
- data/sig/courier/resources/previews.rbs +38 -0
- data/sig/courier/resources/workspace_preferences.rbs +9 -0
- metadata +91 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module Notifications
|
|
4
|
+
module Previews
|
|
5
|
+
type run_list_params =
|
|
6
|
+
{ id: String, cursor: String?, limit: Integer }
|
|
7
|
+
& Courier::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class RunListParams < Courier::Internal::Type::BaseModel
|
|
10
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Courier::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor cursor: String?
|
|
16
|
+
|
|
17
|
+
attr_reader limit: Integer?
|
|
18
|
+
|
|
19
|
+
def limit=: (Integer) -> Integer
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
id: String,
|
|
23
|
+
?cursor: String?,
|
|
24
|
+
?limit: Integer,
|
|
25
|
+
?request_options: Courier::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
id: String,
|
|
30
|
+
cursor: String?,
|
|
31
|
+
limit: Integer,
|
|
32
|
+
request_options: Courier::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module Notifications
|
|
4
|
+
module Previews
|
|
5
|
+
type run_retrieve_params =
|
|
6
|
+
{ id: String, preview_run_id: String }
|
|
7
|
+
& Courier::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class RunRetrieveParams < Courier::Internal::Type::BaseModel
|
|
10
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Courier::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor preview_run_id: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
preview_run_id: String,
|
|
20
|
+
?request_options: Courier::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
preview_run_id: String,
|
|
26
|
+
request_options: Courier::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preference_change_log_entry =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
7
|
+
has_custom_routing: bool,
|
|
8
|
+
status: Courier::Models::preference_status,
|
|
9
|
+
timestamp: String,
|
|
10
|
+
topic_id: String,
|
|
11
|
+
topic_name: String,
|
|
12
|
+
user_id: String,
|
|
13
|
+
previous: Courier::PreferenceChangeLogValue,
|
|
14
|
+
tenant_id: String
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class PreferenceChangeLogEntry < Courier::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor custom_routing: ::Array[Courier::Models::channel_classification]
|
|
21
|
+
|
|
22
|
+
attr_accessor has_custom_routing: bool
|
|
23
|
+
|
|
24
|
+
attr_accessor status: Courier::Models::preference_status
|
|
25
|
+
|
|
26
|
+
attr_accessor timestamp: String
|
|
27
|
+
|
|
28
|
+
attr_accessor topic_id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor topic_name: String
|
|
31
|
+
|
|
32
|
+
attr_accessor user_id: String
|
|
33
|
+
|
|
34
|
+
attr_reader previous: Courier::PreferenceChangeLogValue?
|
|
35
|
+
|
|
36
|
+
def previous=: (
|
|
37
|
+
Courier::PreferenceChangeLogValue
|
|
38
|
+
) -> Courier::PreferenceChangeLogValue
|
|
39
|
+
|
|
40
|
+
attr_reader tenant_id: String?
|
|
41
|
+
|
|
42
|
+
def tenant_id=: (String) -> String
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
id: String,
|
|
46
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
47
|
+
has_custom_routing: bool,
|
|
48
|
+
status: Courier::Models::preference_status,
|
|
49
|
+
timestamp: String,
|
|
50
|
+
topic_id: String,
|
|
51
|
+
topic_name: String,
|
|
52
|
+
user_id: String,
|
|
53
|
+
?previous: Courier::PreferenceChangeLogValue,
|
|
54
|
+
?tenant_id: String
|
|
55
|
+
) -> void
|
|
56
|
+
|
|
57
|
+
def to_hash: -> {
|
|
58
|
+
id: String,
|
|
59
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
60
|
+
has_custom_routing: bool,
|
|
61
|
+
status: Courier::Models::preference_status,
|
|
62
|
+
timestamp: String,
|
|
63
|
+
topic_id: String,
|
|
64
|
+
topic_name: String,
|
|
65
|
+
user_id: String,
|
|
66
|
+
previous: Courier::PreferenceChangeLogValue,
|
|
67
|
+
tenant_id: String
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preference_change_log_value =
|
|
4
|
+
{
|
|
5
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
6
|
+
has_custom_routing: bool,
|
|
7
|
+
status: Courier::Models::preference_status
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PreferenceChangeLogValue < Courier::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor custom_routing: ::Array[Courier::Models::channel_classification]
|
|
12
|
+
|
|
13
|
+
attr_accessor has_custom_routing: bool
|
|
14
|
+
|
|
15
|
+
attr_accessor status: Courier::Models::preference_status
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
19
|
+
has_custom_routing: bool,
|
|
20
|
+
status: Courier::Models::preference_status
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
custom_routing: ::Array[Courier::Models::channel_classification],
|
|
25
|
+
has_custom_routing: bool,
|
|
26
|
+
status: Courier::Models::preference_status
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preference_logs_list_response =
|
|
4
|
+
{
|
|
5
|
+
items: ::Array[Courier::PreferenceChangeLogEntry],
|
|
6
|
+
paging: Courier::Paging
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class PreferenceLogsListResponse < Courier::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor items: ::Array[Courier::PreferenceChangeLogEntry]
|
|
11
|
+
|
|
12
|
+
attr_accessor paging: Courier::Paging
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
items: ::Array[Courier::PreferenceChangeLogEntry],
|
|
16
|
+
paging: Courier::Paging
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
items: ::Array[Courier::PreferenceChangeLogEntry],
|
|
21
|
+
paging: Courier::Paging
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_archive_device_set_params =
|
|
4
|
+
{ device_set_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewArchiveDeviceSetParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor device_set_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
device_set_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
device_set_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_create_device_set_params =
|
|
4
|
+
{ } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewCreateDeviceSetParams < Courier::Models::CreateDeviceSetRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Courier::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Courier::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_device =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
app: String,
|
|
7
|
+
category: Courier::Models::PreviewDevice::category,
|
|
8
|
+
name: String,
|
|
9
|
+
os: String,
|
|
10
|
+
os_version: String,
|
|
11
|
+
platform: String?,
|
|
12
|
+
platform_version: String?,
|
|
13
|
+
theme: Courier::Models::PreviewDevice::theme
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class PreviewDevice < Courier::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor app: String
|
|
20
|
+
|
|
21
|
+
attr_accessor category: Courier::Models::PreviewDevice::category
|
|
22
|
+
|
|
23
|
+
attr_accessor name: String
|
|
24
|
+
|
|
25
|
+
attr_accessor os: String
|
|
26
|
+
|
|
27
|
+
attr_accessor os_version: String
|
|
28
|
+
|
|
29
|
+
attr_accessor platform: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor platform_version: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor theme: Courier::Models::PreviewDevice::theme
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
id: String,
|
|
37
|
+
app: String,
|
|
38
|
+
category: Courier::Models::PreviewDevice::category,
|
|
39
|
+
name: String,
|
|
40
|
+
os: String,
|
|
41
|
+
os_version: String,
|
|
42
|
+
platform: String?,
|
|
43
|
+
platform_version: String?,
|
|
44
|
+
theme: Courier::Models::PreviewDevice::theme
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
app: String,
|
|
50
|
+
category: Courier::Models::PreviewDevice::category,
|
|
51
|
+
name: String,
|
|
52
|
+
os: String,
|
|
53
|
+
os_version: String,
|
|
54
|
+
platform: String?,
|
|
55
|
+
platform_version: String?,
|
|
56
|
+
theme: Courier::Models::PreviewDevice::theme
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type category = :webmail | :mobile | :desktop
|
|
60
|
+
|
|
61
|
+
module Category
|
|
62
|
+
extend Courier::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
WEBMAIL: :webmail
|
|
65
|
+
MOBILE: :mobile
|
|
66
|
+
DESKTOP: :desktop
|
|
67
|
+
|
|
68
|
+
def self?.values: -> ::Array[Courier::Models::PreviewDevice::category]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
type theme = :light | :dark
|
|
72
|
+
|
|
73
|
+
module Theme
|
|
74
|
+
extend Courier::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
LIGHT: :light
|
|
77
|
+
DARK: :dark
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[Courier::Models::PreviewDevice::theme]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_device_list_response =
|
|
4
|
+
{ results: ::Array[Courier::PreviewDevice] }
|
|
5
|
+
|
|
6
|
+
class PreviewDeviceListResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor results: ::Array[Courier::PreviewDevice]
|
|
8
|
+
|
|
9
|
+
def initialize: (results: ::Array[Courier::PreviewDevice]) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { results: ::Array[Courier::PreviewDevice] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_list_device_sets_params =
|
|
4
|
+
{ } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewListDeviceSetsParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Courier::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Courier::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_list_devices_params =
|
|
4
|
+
{ } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewListDevicesParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Courier::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Courier::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_retrieve_device_set_params =
|
|
4
|
+
{ device_set_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewRetrieveDeviceSetParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor device_set_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
device_set_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
device_set_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type preview_update_device_set_params =
|
|
4
|
+
{ device_set_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PreviewUpdateDeviceSetParams < Courier::Models::CreateDeviceSetRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def device_set_id: -> String
|
|
11
|
+
|
|
12
|
+
def device_set_id=: (String _) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
device_set_id: String,
|
|
16
|
+
?request_options: Courier::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
device_set_id: String,
|
|
21
|
+
request_options: Courier::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type workspace_preference_list_logs_params =
|
|
4
|
+
{
|
|
5
|
+
cursor: String,
|
|
6
|
+
limit: Integer,
|
|
7
|
+
since: String,
|
|
8
|
+
tenant_id: String,
|
|
9
|
+
user_id: String
|
|
10
|
+
}
|
|
11
|
+
& Courier::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class WorkspacePreferenceListLogsParams < Courier::Internal::Type::BaseModel
|
|
14
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Courier::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader cursor: String?
|
|
18
|
+
|
|
19
|
+
def cursor=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader limit: Integer?
|
|
22
|
+
|
|
23
|
+
def limit=: (Integer) -> Integer
|
|
24
|
+
|
|
25
|
+
attr_reader since: String?
|
|
26
|
+
|
|
27
|
+
def since=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader tenant_id: String?
|
|
30
|
+
|
|
31
|
+
def tenant_id=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader user_id: String?
|
|
34
|
+
|
|
35
|
+
def user_id=: (String) -> String
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
?cursor: String,
|
|
39
|
+
?limit: Integer,
|
|
40
|
+
?since: String,
|
|
41
|
+
?tenant_id: String,
|
|
42
|
+
?user_id: String,
|
|
43
|
+
?request_options: Courier::request_opts
|
|
44
|
+
) -> void
|
|
45
|
+
|
|
46
|
+
def to_hash: -> {
|
|
47
|
+
cursor: String,
|
|
48
|
+
limit: Integer,
|
|
49
|
+
since: String,
|
|
50
|
+
tenant_id: String,
|
|
51
|
+
user_id: String,
|
|
52
|
+
request_options: Courier::RequestOptions
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -139,10 +139,16 @@ module Courier
|
|
|
139
139
|
|
|
140
140
|
class CreateBroadcastRequest = Courier::Models::CreateBroadcastRequest
|
|
141
141
|
|
|
142
|
+
class CreateDeviceSetRequest = Courier::Models::CreateDeviceSetRequest
|
|
143
|
+
|
|
142
144
|
class CreateJourneyRequest = Courier::Models::CreateJourneyRequest
|
|
143
145
|
|
|
144
146
|
class DefaultPreferences = Courier::Models::DefaultPreferences
|
|
145
147
|
|
|
148
|
+
class DeviceSet = Courier::Models::DeviceSet
|
|
149
|
+
|
|
150
|
+
class DeviceSetListResponse = Courier::Models::DeviceSetListResponse
|
|
151
|
+
|
|
146
152
|
class DeviceType = Courier::Models::DeviceType
|
|
147
153
|
|
|
148
154
|
class DigestCategory = Courier::Models::DigestCategory
|
|
@@ -473,8 +479,30 @@ module Courier
|
|
|
473
479
|
|
|
474
480
|
class Preference = Courier::Models::Preference
|
|
475
481
|
|
|
482
|
+
class PreferenceChangeLogEntry = Courier::Models::PreferenceChangeLogEntry
|
|
483
|
+
|
|
484
|
+
class PreferenceChangeLogValue = Courier::Models::PreferenceChangeLogValue
|
|
485
|
+
|
|
486
|
+
class PreferenceLogsListResponse = Courier::Models::PreferenceLogsListResponse
|
|
487
|
+
|
|
476
488
|
module PreferenceStatus = Courier::Models::PreferenceStatus
|
|
477
489
|
|
|
490
|
+
class PreviewArchiveDeviceSetParams = Courier::Models::PreviewArchiveDeviceSetParams
|
|
491
|
+
|
|
492
|
+
class PreviewCreateDeviceSetParams = Courier::Models::PreviewCreateDeviceSetParams
|
|
493
|
+
|
|
494
|
+
class PreviewDevice = Courier::Models::PreviewDevice
|
|
495
|
+
|
|
496
|
+
class PreviewDeviceListResponse = Courier::Models::PreviewDeviceListResponse
|
|
497
|
+
|
|
498
|
+
class PreviewListDeviceSetsParams = Courier::Models::PreviewListDeviceSetsParams
|
|
499
|
+
|
|
500
|
+
class PreviewListDevicesParams = Courier::Models::PreviewListDevicesParams
|
|
501
|
+
|
|
502
|
+
class PreviewRetrieveDeviceSetParams = Courier::Models::PreviewRetrieveDeviceSetParams
|
|
503
|
+
|
|
504
|
+
class PreviewUpdateDeviceSetParams = Courier::Models::PreviewUpdateDeviceSetParams
|
|
505
|
+
|
|
478
506
|
class ProfileCreateParams = Courier::Models::ProfileCreateParams
|
|
479
507
|
|
|
480
508
|
class ProfileDeleteParams = Courier::Models::ProfileDeleteParams
|
|
@@ -655,6 +683,8 @@ module Courier
|
|
|
655
683
|
|
|
656
684
|
class WorkspacePreferenceGetResponse = Courier::Models::WorkspacePreferenceGetResponse
|
|
657
685
|
|
|
686
|
+
class WorkspacePreferenceListLogsParams = Courier::Models::WorkspacePreferenceListLogsParams
|
|
687
|
+
|
|
658
688
|
class WorkspacePreferenceListParams = Courier::Models::WorkspacePreferenceListParams
|
|
659
689
|
|
|
660
690
|
class WorkspacePreferenceListResponse = Courier::Models::WorkspacePreferenceListResponse
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Resources
|
|
3
|
+
class Notifications
|
|
4
|
+
class Previews
|
|
5
|
+
class Runs
|
|
6
|
+
def create: (
|
|
7
|
+
String id,
|
|
8
|
+
?data: ::Hash[Symbol, top],
|
|
9
|
+
?device_ids: ::Array[String],
|
|
10
|
+
?device_set_id: String,
|
|
11
|
+
?locale: String,
|
|
12
|
+
?template_version: String,
|
|
13
|
+
?idempotency_key: String,
|
|
14
|
+
?x_idempotency_expiration: String,
|
|
15
|
+
?request_options: Courier::request_opts
|
|
16
|
+
) -> Courier::Notifications::Previews::PreviewRun
|
|
17
|
+
|
|
18
|
+
def retrieve: (
|
|
19
|
+
String preview_run_id,
|
|
20
|
+
id: String,
|
|
21
|
+
?request_options: Courier::request_opts
|
|
22
|
+
) -> Courier::Notifications::Previews::PreviewRunDetail
|
|
23
|
+
|
|
24
|
+
def list: (
|
|
25
|
+
String id,
|
|
26
|
+
?cursor: String?,
|
|
27
|
+
?limit: Integer,
|
|
28
|
+
?request_options: Courier::request_opts
|
|
29
|
+
) -> Courier::Notifications::Previews::PreviewRunListResponse
|
|
30
|
+
|
|
31
|
+
def initialize: (client: Courier::Client) -> void
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -3,6 +3,8 @@ module Courier
|
|
|
3
3
|
class Notifications
|
|
4
4
|
attr_reader checks: Courier::Resources::Notifications::Checks
|
|
5
5
|
|
|
6
|
+
attr_reader previews: Courier::Resources::Notifications::Previews
|
|
7
|
+
|
|
6
8
|
def create: (
|
|
7
9
|
notification: Courier::NotificationTemplateWritePayload,
|
|
8
10
|
?state: Courier::Models::NotificationTemplateCreateRequest::state,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Resources
|
|
3
|
+
class Previews
|
|
4
|
+
def archive_device_set: (
|
|
5
|
+
String device_set_id,
|
|
6
|
+
?request_options: Courier::request_opts
|
|
7
|
+
) -> Courier::DeviceSet
|
|
8
|
+
|
|
9
|
+
def create_device_set: (
|
|
10
|
+
device_ids: ::Array[String],
|
|
11
|
+
name: String,
|
|
12
|
+
?request_options: Courier::request_opts
|
|
13
|
+
) -> Courier::DeviceSet
|
|
14
|
+
|
|
15
|
+
def list_device_sets: (
|
|
16
|
+
?request_options: Courier::request_opts
|
|
17
|
+
) -> Courier::DeviceSetListResponse
|
|
18
|
+
|
|
19
|
+
def list_devices: (
|
|
20
|
+
?request_options: Courier::request_opts
|
|
21
|
+
) -> Courier::PreviewDeviceListResponse
|
|
22
|
+
|
|
23
|
+
def retrieve_device_set: (
|
|
24
|
+
String device_set_id,
|
|
25
|
+
?request_options: Courier::request_opts
|
|
26
|
+
) -> Courier::DeviceSet
|
|
27
|
+
|
|
28
|
+
def update_device_set: (
|
|
29
|
+
String device_set_id,
|
|
30
|
+
device_ids: ::Array[String],
|
|
31
|
+
name: String,
|
|
32
|
+
?request_options: Courier::request_opts
|
|
33
|
+
) -> Courier::DeviceSet
|
|
34
|
+
|
|
35
|
+
def initialize: (client: Courier::Client) -> void
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -27,6 +27,15 @@ module Courier
|
|
|
27
27
|
?request_options: Courier::request_opts
|
|
28
28
|
) -> nil
|
|
29
29
|
|
|
30
|
+
def list_logs: (
|
|
31
|
+
?cursor: String,
|
|
32
|
+
?limit: Integer,
|
|
33
|
+
?since: String,
|
|
34
|
+
?tenant_id: String,
|
|
35
|
+
?user_id: String,
|
|
36
|
+
?request_options: Courier::request_opts
|
|
37
|
+
) -> Courier::PreferenceLogsListResponse
|
|
38
|
+
|
|
30
39
|
def publish: (
|
|
31
40
|
?brand_id: String?,
|
|
32
41
|
?description: String?,
|