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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/courier/client.rb +6 -0
  5. data/lib/courier/models/create_device_set_request.rb +27 -0
  6. data/lib/courier/models/device_set.rb +63 -0
  7. data/lib/courier/models/device_set_list_response.rb +18 -0
  8. data/lib/courier/models/notifications/previews/create_preview_run_request.rb +68 -0
  9. data/lib/courier/models/notifications/previews/preview_result.rb +67 -0
  10. data/lib/courier/models/notifications/previews/preview_result_failure_reason.rb +24 -0
  11. data/lib/courier/models/notifications/previews/preview_result_status.rb +29 -0
  12. data/lib/courier/models/notifications/previews/preview_run.rb +84 -0
  13. data/lib/courier/models/notifications/previews/preview_run_detail.rb +93 -0
  14. data/lib/courier/models/notifications/previews/preview_run_failure_reason.rb +28 -0
  15. data/lib/courier/models/notifications/previews/preview_run_list_response.rb +30 -0
  16. data/lib/courier/models/notifications/previews/preview_run_status.rb +28 -0
  17. data/lib/courier/models/notifications/previews/run_create_params.rb +36 -0
  18. data/lib/courier/models/notifications/previews/run_list_params.rb +41 -0
  19. data/lib/courier/models/notifications/previews/run_retrieve_params.rb +30 -0
  20. data/lib/courier/models/preference_change_log_entry.rb +94 -0
  21. data/lib/courier/models/preference_change_log_value.rb +32 -0
  22. data/lib/courier/models/preference_logs_list_response.rb +24 -0
  23. data/lib/courier/models/preview_archive_device_set_params.rb +20 -0
  24. data/lib/courier/models/preview_create_device_set_params.rb +14 -0
  25. data/lib/courier/models/preview_device.rb +125 -0
  26. data/lib/courier/models/preview_device_list_response.rb +18 -0
  27. data/lib/courier/models/preview_list_device_sets_params.rb +14 -0
  28. data/lib/courier/models/preview_list_devices_params.rb +14 -0
  29. data/lib/courier/models/preview_retrieve_device_set_params.rb +20 -0
  30. data/lib/courier/models/preview_update_device_set_params.rb +20 -0
  31. data/lib/courier/models/workspace_preference_list_logs_params.rb +61 -0
  32. data/lib/courier/models.rb +30 -0
  33. data/lib/courier/resources/notifications/previews/runs.rb +148 -0
  34. data/lib/courier/resources/notifications/previews.rb +22 -0
  35. data/lib/courier/resources/notifications.rb +4 -0
  36. data/lib/courier/resources/previews.rb +153 -0
  37. data/lib/courier/resources/workspace_preferences.rb +37 -0
  38. data/lib/courier/version.rb +1 -1
  39. data/lib/courier.rb +30 -0
  40. data/rbi/courier/client.rbi +5 -0
  41. data/rbi/courier/models/create_device_set_request.rbi +39 -0
  42. data/rbi/courier/models/device_set.rbi +81 -0
  43. data/rbi/courier/models/device_set_list_response.rbi +28 -0
  44. data/rbi/courier/models/notifications/previews/create_preview_run_request.rbi +110 -0
  45. data/rbi/courier/models/notifications/previews/preview_result.rbi +117 -0
  46. data/rbi/courier/models/notifications/previews/preview_result_failure_reason.rbi +44 -0
  47. data/rbi/courier/models/notifications/previews/preview_result_status.rbi +69 -0
  48. data/rbi/courier/models/notifications/previews/preview_run.rbi +134 -0
  49. data/rbi/courier/models/notifications/previews/preview_run_detail.rbi +148 -0
  50. data/rbi/courier/models/notifications/previews/preview_run_failure_reason.rbi +64 -0
  51. data/rbi/courier/models/notifications/previews/preview_run_list_response.rbi +54 -0
  52. data/rbi/courier/models/notifications/previews/preview_run_status.rbi +61 -0
  53. data/rbi/courier/models/notifications/previews/run_create_params.rbi +66 -0
  54. data/rbi/courier/models/notifications/previews/run_list_params.rbi +67 -0
  55. data/rbi/courier/models/notifications/previews/run_retrieve_params.rbi +50 -0
  56. data/rbi/courier/models/preference_change_log_entry.rbi +122 -0
  57. data/rbi/courier/models/preference_change_log_value.rbi +54 -0
  58. data/rbi/courier/models/preference_logs_list_response.rbi +46 -0
  59. data/rbi/courier/models/preview_archive_device_set_params.rbi +38 -0
  60. data/rbi/courier/models/preview_create_device_set_params.rbi +30 -0
  61. data/rbi/courier/models/preview_device.rbi +168 -0
  62. data/rbi/courier/models/preview_device_list_response.rbi +28 -0
  63. data/rbi/courier/models/preview_list_device_sets_params.rbi +30 -0
  64. data/rbi/courier/models/preview_list_devices_params.rbi +27 -0
  65. data/rbi/courier/models/preview_retrieve_device_set_params.rbi +38 -0
  66. data/rbi/courier/models/preview_update_device_set_params.rbi +38 -0
  67. data/rbi/courier/models/workspace_preference_list_logs_params.rbi +101 -0
  68. data/rbi/courier/models.rbi +32 -0
  69. data/rbi/courier/resources/notifications/previews/runs.rbi +136 -0
  70. data/rbi/courier/resources/notifications/previews.rbi +19 -0
  71. data/rbi/courier/resources/notifications.rbi +3 -0
  72. data/rbi/courier/resources/previews.rbi +106 -0
  73. data/rbi/courier/resources/workspace_preferences.rbi +33 -0
  74. data/sig/courier/client.rbs +2 -0
  75. data/sig/courier/models/create_device_set_request.rbs +16 -0
  76. data/sig/courier/models/device_set.rbs +47 -0
  77. data/sig/courier/models/device_set_list_response.rbs +13 -0
  78. data/sig/courier/models/notifications/previews/create_preview_run_request.rbs +54 -0
  79. data/sig/courier/models/notifications/previews/preview_result.rbs +50 -0
  80. data/sig/courier/models/notifications/previews/preview_result_failure_reason.rbs +19 -0
  81. data/sig/courier/models/notifications/previews/preview_result_status.rbs +30 -0
  82. data/sig/courier/models/notifications/previews/preview_run.rbs +62 -0
  83. data/sig/courier/models/notifications/previews/preview_run_detail.rbs +67 -0
  84. data/sig/courier/models/notifications/previews/preview_run_failure_reason.rbs +28 -0
  85. data/sig/courier/models/notifications/previews/preview_run_list_response.rbs +31 -0
  86. data/sig/courier/models/notifications/previews/preview_run_status.rbs +24 -0
  87. data/sig/courier/models/notifications/previews/run_create_params.rbs +46 -0
  88. data/sig/courier/models/notifications/previews/run_list_params.rbs +38 -0
  89. data/sig/courier/models/notifications/previews/run_retrieve_params.rbs +32 -0
  90. data/sig/courier/models/preference_change_log_entry.rbs +71 -0
  91. data/sig/courier/models/preference_change_log_value.rbs +30 -0
  92. data/sig/courier/models/preference_logs_list_response.rbs +25 -0
  93. data/sig/courier/models/preview_archive_device_set_params.rbs +23 -0
  94. data/sig/courier/models/preview_create_device_set_params.rbs +15 -0
  95. data/sig/courier/models/preview_device.rbs +83 -0
  96. data/sig/courier/models/preview_device_list_response.rbs +14 -0
  97. data/sig/courier/models/preview_list_device_sets_params.rbs +15 -0
  98. data/sig/courier/models/preview_list_devices_params.rbs +15 -0
  99. data/sig/courier/models/preview_retrieve_device_set_params.rbs +23 -0
  100. data/sig/courier/models/preview_update_device_set_params.rbs +25 -0
  101. data/sig/courier/models/workspace_preference_list_logs_params.rbs +56 -0
  102. data/sig/courier/models.rbs +30 -0
  103. data/sig/courier/resources/notifications/previews/runs.rbs +36 -0
  104. data/sig/courier/resources/notifications/previews.rbs +11 -0
  105. data/sig/courier/resources/notifications.rbs +2 -0
  106. data/sig/courier/resources/previews.rbs +38 -0
  107. data/sig/courier/resources/workspace_preferences.rbs +9 -0
  108. metadata +91 -1
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ PreviewRunListResponse = Previews::PreviewRunListResponse
7
+
8
+ module Previews
9
+ class PreviewRunListResponse < Courier::Internal::Type::BaseModel
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Courier::Notifications::Previews::PreviewRunListResponse,
14
+ Courier::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(Courier::Paging) }
19
+ attr_reader :paging
20
+
21
+ sig { params(paging: Courier::Paging::OrHash).void }
22
+ attr_writer :paging
23
+
24
+ sig do
25
+ returns(T::Array[Courier::Notifications::Previews::PreviewRun])
26
+ end
27
+ attr_accessor :results
28
+
29
+ # Paginated list of preview runs, newest first.
30
+ sig do
31
+ params(
32
+ paging: Courier::Paging::OrHash,
33
+ results:
34
+ T::Array[Courier::Notifications::Previews::PreviewRun::OrHash]
35
+ ).returns(T.attached_class)
36
+ end
37
+ def self.new(paging:, results:)
38
+ end
39
+
40
+ sig do
41
+ override.returns(
42
+ {
43
+ paging: Courier::Paging,
44
+ results: T::Array[Courier::Notifications::Previews::PreviewRun]
45
+ }
46
+ )
47
+ end
48
+ def to_hash
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,61 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ PreviewRunStatus = Previews::PreviewRunStatus
7
+
8
+ module Previews
9
+ # Where the run itself has got to. `PENDING` and `RENDERED` mean Courier is still
10
+ # preparing the email, `SUBMITTED` means it is with the rendering service, and
11
+ # `COMPLETED` means every device has reported. `FAILED` is the run as a whole
12
+ # failing — an individual device failing never fails the run.
13
+ module PreviewRunStatus
14
+ extend Courier::Internal::Type::Enum
15
+
16
+ TaggedSymbol =
17
+ T.type_alias do
18
+ T.all(Symbol, Courier::Notifications::Previews::PreviewRunStatus)
19
+ end
20
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
21
+
22
+ PENDING =
23
+ T.let(
24
+ :PENDING,
25
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
26
+ )
27
+ RENDERED =
28
+ T.let(
29
+ :RENDERED,
30
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
31
+ )
32
+ SUBMITTED =
33
+ T.let(
34
+ :SUBMITTED,
35
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
36
+ )
37
+ COMPLETED =
38
+ T.let(
39
+ :COMPLETED,
40
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
41
+ )
42
+ FAILED =
43
+ T.let(
44
+ :FAILED,
45
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
46
+ )
47
+
48
+ sig do
49
+ override.returns(
50
+ T::Array[
51
+ Courier::Notifications::Previews::PreviewRunStatus::TaggedSymbol
52
+ ]
53
+ )
54
+ end
55
+ def self.values
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,66 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ module Previews
7
+ class RunCreateParams < Courier::Models::Notifications::Previews::CreatePreviewRunRequest
8
+ extend Courier::Internal::Type::RequestParameters::Converter
9
+ include Courier::Internal::Type::RequestParameters
10
+
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Courier::Notifications::Previews::RunCreateParams,
15
+ Courier::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ sig { returns(String) }
20
+ attr_accessor :id
21
+
22
+ sig { returns(T.nilable(String)) }
23
+ attr_reader :idempotency_key
24
+
25
+ sig { params(idempotency_key: String).void }
26
+ attr_writer :idempotency_key
27
+
28
+ sig { returns(T.nilable(String)) }
29
+ attr_reader :x_idempotency_expiration
30
+
31
+ sig { params(x_idempotency_expiration: String).void }
32
+ attr_writer :x_idempotency_expiration
33
+
34
+ sig do
35
+ params(
36
+ id: String,
37
+ idempotency_key: String,
38
+ x_idempotency_expiration: String,
39
+ request_options: Courier::RequestOptions::OrHash
40
+ ).returns(T.attached_class)
41
+ end
42
+ def self.new(
43
+ id:,
44
+ idempotency_key: nil,
45
+ x_idempotency_expiration: nil,
46
+ request_options: {}
47
+ )
48
+ end
49
+
50
+ sig do
51
+ override.returns(
52
+ {
53
+ id: String,
54
+ idempotency_key: String,
55
+ x_idempotency_expiration: String,
56
+ request_options: Courier::RequestOptions
57
+ }
58
+ )
59
+ end
60
+ def to_hash
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,67 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ module Previews
7
+ class RunListParams < Courier::Internal::Type::BaseModel
8
+ extend Courier::Internal::Type::RequestParameters::Converter
9
+ include Courier::Internal::Type::RequestParameters
10
+
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Courier::Notifications::Previews::RunListParams,
15
+ Courier::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ sig { returns(String) }
20
+ attr_accessor :id
21
+
22
+ # Opaque pagination cursor from a previous response. Omit for the first page.
23
+ sig { returns(T.nilable(String)) }
24
+ attr_accessor :cursor
25
+
26
+ # Maximum number of results per page.
27
+ sig { returns(T.nilable(Integer)) }
28
+ attr_reader :limit
29
+
30
+ sig { params(limit: Integer).void }
31
+ attr_writer :limit
32
+
33
+ sig do
34
+ params(
35
+ id: String,
36
+ cursor: T.nilable(String),
37
+ limit: Integer,
38
+ request_options: Courier::RequestOptions::OrHash
39
+ ).returns(T.attached_class)
40
+ end
41
+ def self.new(
42
+ id:,
43
+ # Opaque pagination cursor from a previous response. Omit for the first page.
44
+ cursor: nil,
45
+ # Maximum number of results per page.
46
+ limit: nil,
47
+ request_options: {}
48
+ )
49
+ end
50
+
51
+ sig do
52
+ override.returns(
53
+ {
54
+ id: String,
55
+ cursor: T.nilable(String),
56
+ limit: Integer,
57
+ request_options: Courier::RequestOptions
58
+ }
59
+ )
60
+ end
61
+ def to_hash
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,50 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ module Previews
7
+ class RunRetrieveParams < Courier::Internal::Type::BaseModel
8
+ extend Courier::Internal::Type::RequestParameters::Converter
9
+ include Courier::Internal::Type::RequestParameters
10
+
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Courier::Notifications::Previews::RunRetrieveParams,
15
+ Courier::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ sig { returns(String) }
20
+ attr_accessor :id
21
+
22
+ sig { returns(String) }
23
+ attr_accessor :preview_run_id
24
+
25
+ sig do
26
+ params(
27
+ id: String,
28
+ preview_run_id: String,
29
+ request_options: Courier::RequestOptions::OrHash
30
+ ).returns(T.attached_class)
31
+ end
32
+ def self.new(id:, preview_run_id:, request_options: {})
33
+ end
34
+
35
+ sig do
36
+ override.returns(
37
+ {
38
+ id: String,
39
+ preview_run_id: String,
40
+ request_options: Courier::RequestOptions
41
+ }
42
+ )
43
+ end
44
+ def to_hash
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,122 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ class PreferenceChangeLogEntry < Courier::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Courier::PreferenceChangeLogEntry, Courier::Internal::AnyHash)
9
+ end
10
+
11
+ # Unique identifier for this change.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The channels chosen for this topic, present only when has_custom_routing is
16
+ # true. Empty otherwise.
17
+ sig { returns(T::Array[Courier::ChannelClassification::TaggedSymbol]) }
18
+ attr_accessor :custom_routing
19
+
20
+ # Whether specific delivery channels were chosen for this topic rather than the
21
+ # topic's default routing.
22
+ sig { returns(T::Boolean) }
23
+ attr_accessor :has_custom_routing
24
+
25
+ # The subscription status the change set.
26
+ sig { returns(Courier::PreferenceStatus::TaggedSymbol) }
27
+ attr_accessor :status
28
+
29
+ # When the change was made, as an ISO-8601 date-time in UTC.
30
+ sig { returns(String) }
31
+ attr_accessor :timestamp
32
+
33
+ # The subscription topic the change applies to.
34
+ sig { returns(String) }
35
+ attr_accessor :topic_id
36
+
37
+ # The display name of that topic when the change was made.
38
+ sig { returns(String) }
39
+ attr_accessor :topic_name
40
+
41
+ # The user whose preference changed.
42
+ sig { returns(String) }
43
+ attr_accessor :user_id
44
+
45
+ # The value before this change, where it was recorded.
46
+ sig { returns(T.nilable(Courier::PreferenceChangeLogValue)) }
47
+ attr_reader :previous
48
+
49
+ sig { params(previous: Courier::PreferenceChangeLogValue::OrHash).void }
50
+ attr_writer :previous
51
+
52
+ # The tenant context the change was made in. Absent when the user set the
53
+ # preference outside any tenant.
54
+ sig { returns(T.nilable(String)) }
55
+ attr_reader :tenant_id
56
+
57
+ sig { params(tenant_id: String).void }
58
+ attr_writer :tenant_id
59
+
60
+ sig do
61
+ params(
62
+ id: String,
63
+ custom_routing: T::Array[Courier::ChannelClassification::OrSymbol],
64
+ has_custom_routing: T::Boolean,
65
+ status: Courier::PreferenceStatus::OrSymbol,
66
+ timestamp: String,
67
+ topic_id: String,
68
+ topic_name: String,
69
+ user_id: String,
70
+ previous: Courier::PreferenceChangeLogValue::OrHash,
71
+ tenant_id: String
72
+ ).returns(T.attached_class)
73
+ end
74
+ def self.new(
75
+ # Unique identifier for this change.
76
+ id:,
77
+ # The channels chosen for this topic, present only when has_custom_routing is
78
+ # true. Empty otherwise.
79
+ custom_routing:,
80
+ # Whether specific delivery channels were chosen for this topic rather than the
81
+ # topic's default routing.
82
+ has_custom_routing:,
83
+ # The subscription status the change set.
84
+ status:,
85
+ # When the change was made, as an ISO-8601 date-time in UTC.
86
+ timestamp:,
87
+ # The subscription topic the change applies to.
88
+ topic_id:,
89
+ # The display name of that topic when the change was made.
90
+ topic_name:,
91
+ # The user whose preference changed.
92
+ user_id:,
93
+ # The value before this change, where it was recorded.
94
+ previous: nil,
95
+ # The tenant context the change was made in. Absent when the user set the
96
+ # preference outside any tenant.
97
+ tenant_id: nil
98
+ )
99
+ end
100
+
101
+ sig do
102
+ override.returns(
103
+ {
104
+ id: String,
105
+ custom_routing:
106
+ T::Array[Courier::ChannelClassification::TaggedSymbol],
107
+ has_custom_routing: T::Boolean,
108
+ status: Courier::PreferenceStatus::TaggedSymbol,
109
+ timestamp: String,
110
+ topic_id: String,
111
+ topic_name: String,
112
+ user_id: String,
113
+ previous: Courier::PreferenceChangeLogValue,
114
+ tenant_id: String
115
+ }
116
+ )
117
+ end
118
+ def to_hash
119
+ end
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ class PreferenceChangeLogValue < Courier::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Courier::PreferenceChangeLogValue, Courier::Internal::AnyHash)
9
+ end
10
+
11
+ # The channels chosen before the change.
12
+ sig { returns(T::Array[Courier::ChannelClassification::TaggedSymbol]) }
13
+ attr_accessor :custom_routing
14
+
15
+ # Whether custom routing was in effect before the change.
16
+ sig { returns(T::Boolean) }
17
+ attr_accessor :has_custom_routing
18
+
19
+ # The subscription status before the change.
20
+ sig { returns(Courier::PreferenceStatus::TaggedSymbol) }
21
+ attr_accessor :status
22
+
23
+ sig do
24
+ params(
25
+ custom_routing: T::Array[Courier::ChannelClassification::OrSymbol],
26
+ has_custom_routing: T::Boolean,
27
+ status: Courier::PreferenceStatus::OrSymbol
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(
31
+ # The channels chosen before the change.
32
+ custom_routing:,
33
+ # Whether custom routing was in effect before the change.
34
+ has_custom_routing:,
35
+ # The subscription status before the change.
36
+ status:
37
+ )
38
+ end
39
+
40
+ sig do
41
+ override.returns(
42
+ {
43
+ custom_routing:
44
+ T::Array[Courier::ChannelClassification::TaggedSymbol],
45
+ has_custom_routing: T::Boolean,
46
+ status: Courier::PreferenceStatus::TaggedSymbol
47
+ }
48
+ )
49
+ end
50
+ def to_hash
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ class PreferenceLogsListResponse < Courier::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Courier::PreferenceLogsListResponse, Courier::Internal::AnyHash)
9
+ end
10
+
11
+ # One entry per preference change, newest first.
12
+ sig { returns(T::Array[Courier::PreferenceChangeLogEntry]) }
13
+ attr_accessor :items
14
+
15
+ sig { returns(Courier::Paging) }
16
+ attr_reader :paging
17
+
18
+ sig { params(paging: Courier::Paging::OrHash).void }
19
+ attr_writer :paging
20
+
21
+ sig do
22
+ params(
23
+ items: T::Array[Courier::PreferenceChangeLogEntry::OrHash],
24
+ paging: Courier::Paging::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # One entry per preference change, newest first.
29
+ items:,
30
+ paging:
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ items: T::Array[Courier::PreferenceChangeLogEntry],
38
+ paging: Courier::Paging
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,38 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ class PreviewArchiveDeviceSetParams < Courier::Internal::Type::BaseModel
6
+ extend Courier::Internal::Type::RequestParameters::Converter
7
+ include Courier::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Courier::PreviewArchiveDeviceSetParams,
13
+ Courier::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(String) }
18
+ attr_accessor :device_set_id
19
+
20
+ sig do
21
+ params(
22
+ device_set_id: String,
23
+ request_options: Courier::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
25
+ end
26
+ def self.new(device_set_id:, request_options: {})
27
+ end
28
+
29
+ sig do
30
+ override.returns(
31
+ { device_set_id: String, request_options: Courier::RequestOptions }
32
+ )
33
+ end
34
+ def to_hash
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,30 @@
1
+ # typed: strong
2
+
3
+ module Courier
4
+ module Models
5
+ class PreviewCreateDeviceSetParams < Courier::Models::CreateDeviceSetRequest
6
+ extend Courier::Internal::Type::RequestParameters::Converter
7
+ include Courier::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Courier::PreviewCreateDeviceSetParams,
13
+ Courier::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig do
18
+ params(request_options: Courier::RequestOptions::OrHash).returns(
19
+ T.attached_class
20
+ )
21
+ end
22
+ def self.new(request_options: {})
23
+ end
24
+
25
+ sig { override.returns({ request_options: Courier::RequestOptions }) }
26
+ def to_hash
27
+ end
28
+ end
29
+ end
30
+ end