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,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ module Previews
7
+ # @see Courier::Resources::Notifications::Previews::Runs#list
8
+ class RunListParams < Courier::Internal::Type::BaseModel
9
+ extend Courier::Internal::Type::RequestParameters::Converter
10
+ include Courier::Internal::Type::RequestParameters
11
+
12
+ # @!attribute id
13
+ #
14
+ # @return [String]
15
+ required :id, String
16
+
17
+ # @!attribute cursor
18
+ # Opaque pagination cursor from a previous response. Omit for the first page.
19
+ #
20
+ # @return [String, nil]
21
+ optional :cursor, String, nil?: true
22
+
23
+ # @!attribute limit
24
+ # Maximum number of results per page.
25
+ #
26
+ # @return [Integer, nil]
27
+ optional :limit, Integer
28
+
29
+ # @!method initialize(id:, cursor: nil, limit: nil, request_options: {})
30
+ # @param id [String]
31
+ #
32
+ # @param cursor [String, nil] Opaque pagination cursor from a previous response. Omit for the first page.
33
+ #
34
+ # @param limit [Integer] Maximum number of results per page.
35
+ #
36
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ module Notifications
6
+ module Previews
7
+ # @see Courier::Resources::Notifications::Previews::Runs#retrieve
8
+ class RunRetrieveParams < Courier::Internal::Type::BaseModel
9
+ extend Courier::Internal::Type::RequestParameters::Converter
10
+ include Courier::Internal::Type::RequestParameters
11
+
12
+ # @!attribute id
13
+ #
14
+ # @return [String]
15
+ required :id, String
16
+
17
+ # @!attribute preview_run_id
18
+ #
19
+ # @return [String]
20
+ required :preview_run_id, String
21
+
22
+ # @!method initialize(id:, preview_run_id:, request_options: {})
23
+ # @param id [String]
24
+ # @param preview_run_id [String]
25
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ class PreferenceChangeLogEntry < Courier::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # Unique identifier for this change.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute custom_routing
13
+ # The channels chosen for this topic, present only when has_custom_routing is
14
+ # true. Empty otherwise.
15
+ #
16
+ # @return [Array<Symbol, Courier::Models::ChannelClassification>]
17
+ required :custom_routing, -> { Courier::Internal::Type::ArrayOf[enum: Courier::ChannelClassification] }
18
+
19
+ # @!attribute has_custom_routing
20
+ # Whether specific delivery channels were chosen for this topic rather than the
21
+ # topic's default routing.
22
+ #
23
+ # @return [Boolean]
24
+ required :has_custom_routing, Courier::Internal::Type::Boolean
25
+
26
+ # @!attribute status
27
+ # The subscription status the change set.
28
+ #
29
+ # @return [Symbol, Courier::Models::PreferenceStatus]
30
+ required :status, enum: -> { Courier::PreferenceStatus }
31
+
32
+ # @!attribute timestamp
33
+ # When the change was made, as an ISO-8601 date-time in UTC.
34
+ #
35
+ # @return [String]
36
+ required :timestamp, String
37
+
38
+ # @!attribute topic_id
39
+ # The subscription topic the change applies to.
40
+ #
41
+ # @return [String]
42
+ required :topic_id, String
43
+
44
+ # @!attribute topic_name
45
+ # The display name of that topic when the change was made.
46
+ #
47
+ # @return [String]
48
+ required :topic_name, String
49
+
50
+ # @!attribute user_id
51
+ # The user whose preference changed.
52
+ #
53
+ # @return [String]
54
+ required :user_id, String
55
+
56
+ # @!attribute previous
57
+ # The value before this change, where it was recorded.
58
+ #
59
+ # @return [Courier::Models::PreferenceChangeLogValue, nil]
60
+ optional :previous, -> { Courier::PreferenceChangeLogValue }
61
+
62
+ # @!attribute tenant_id
63
+ # The tenant context the change was made in. Absent when the user set the
64
+ # preference outside any tenant.
65
+ #
66
+ # @return [String, nil]
67
+ optional :tenant_id, String
68
+
69
+ # @!method initialize(id:, custom_routing:, has_custom_routing:, status:, timestamp:, topic_id:, topic_name:, user_id:, previous: nil, tenant_id: nil)
70
+ # Some parameter documentations has been truncated, see
71
+ # {Courier::Models::PreferenceChangeLogEntry} for more details.
72
+ #
73
+ # @param id [String] Unique identifier for this change.
74
+ #
75
+ # @param custom_routing [Array<Symbol, Courier::Models::ChannelClassification>] The channels chosen for this topic, present only when has_custom_routing is true
76
+ #
77
+ # @param has_custom_routing [Boolean] Whether specific delivery channels were chosen for this topic rather than the to
78
+ #
79
+ # @param status [Symbol, Courier::Models::PreferenceStatus] The subscription status the change set.
80
+ #
81
+ # @param timestamp [String] When the change was made, as an ISO-8601 date-time in UTC.
82
+ #
83
+ # @param topic_id [String] The subscription topic the change applies to.
84
+ #
85
+ # @param topic_name [String] The display name of that topic when the change was made.
86
+ #
87
+ # @param user_id [String] The user whose preference changed.
88
+ #
89
+ # @param previous [Courier::Models::PreferenceChangeLogValue] The value before this change, where it was recorded.
90
+ #
91
+ # @param tenant_id [String] The tenant context the change was made in. Absent when the user set the preferen
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ class PreferenceChangeLogValue < Courier::Internal::Type::BaseModel
6
+ # @!attribute custom_routing
7
+ # The channels chosen before the change.
8
+ #
9
+ # @return [Array<Symbol, Courier::Models::ChannelClassification>]
10
+ required :custom_routing, -> { Courier::Internal::Type::ArrayOf[enum: Courier::ChannelClassification] }
11
+
12
+ # @!attribute has_custom_routing
13
+ # Whether custom routing was in effect before the change.
14
+ #
15
+ # @return [Boolean]
16
+ required :has_custom_routing, Courier::Internal::Type::Boolean
17
+
18
+ # @!attribute status
19
+ # The subscription status before the change.
20
+ #
21
+ # @return [Symbol, Courier::Models::PreferenceStatus]
22
+ required :status, enum: -> { Courier::PreferenceStatus }
23
+
24
+ # @!method initialize(custom_routing:, has_custom_routing:, status:)
25
+ # @param custom_routing [Array<Symbol, Courier::Models::ChannelClassification>] The channels chosen before the change.
26
+ #
27
+ # @param has_custom_routing [Boolean] Whether custom routing was in effect before the change.
28
+ #
29
+ # @param status [Symbol, Courier::Models::PreferenceStatus] The subscription status before the change.
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::WorkspacePreferences#list_logs
6
+ class PreferenceLogsListResponse < Courier::Internal::Type::BaseModel
7
+ # @!attribute items
8
+ # One entry per preference change, newest first.
9
+ #
10
+ # @return [Array<Courier::Models::PreferenceChangeLogEntry>]
11
+ required :items, -> { Courier::Internal::Type::ArrayOf[Courier::PreferenceChangeLogEntry] }
12
+
13
+ # @!attribute paging
14
+ #
15
+ # @return [Courier::Models::Paging]
16
+ required :paging, -> { Courier::Paging }
17
+
18
+ # @!method initialize(items:, paging:)
19
+ # @param items [Array<Courier::Models::PreferenceChangeLogEntry>] One entry per preference change, newest first.
20
+ #
21
+ # @param paging [Courier::Models::Paging]
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#archive_device_set
6
+ class PreviewArchiveDeviceSetParams < Courier::Internal::Type::BaseModel
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!attribute device_set_id
11
+ #
12
+ # @return [String]
13
+ required :device_set_id, String
14
+
15
+ # @!method initialize(device_set_id:, request_options: {})
16
+ # @param device_set_id [String]
17
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#create_device_set
6
+ class PreviewCreateDeviceSetParams < Courier::Models::CreateDeviceSetRequest
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,125 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ class PreviewDevice < Courier::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The device's identifier, used in `device_ids` when creating a device set or a
8
+ # run.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute app
14
+ # The mail app. For webmail it is the service (`outlook_com`, `gmail_com`); for
15
+ # mobile the app (`apple_mail`, `gmail`); for desktop the app together with the
16
+ # version it is sold under (`outlook_2019`, `outlook_microsoft_365`,
17
+ # `apple_mail_16`), because that version is what separates one desktop Outlook
18
+ # from another.
19
+ #
20
+ # @return [String]
21
+ required :app, String
22
+
23
+ # @!attribute category
24
+ # Where the app runs.
25
+ #
26
+ # @return [Symbol, Courier::Models::PreviewDevice::Category]
27
+ required :category, enum: -> { Courier::PreviewDevice::Category }
28
+
29
+ # @!attribute name
30
+ # Display name. Render it as-is rather than parsing it. It is also what separates
31
+ # the two 120-dpi Outlook renders from their 100% siblings, which are otherwise
32
+ # identical field for field.
33
+ #
34
+ # @return [String]
35
+ required :name, String
36
+
37
+ # @!attribute os
38
+ # The operating system.
39
+ #
40
+ # @return [String]
41
+ required :os, String
42
+
43
+ # @!attribute os_version
44
+ # The operating system's version. Always set.
45
+ #
46
+ # @return [String]
47
+ required :os_version, String
48
+
49
+ # @!attribute platform
50
+ # What the app runs on — the browser for webmail (`chrome`, `edge`, `firefox`),
51
+ # the phone for mobile (`iphone`, `pixel`). Null for desktop, where the app runs
52
+ # on nothing but the OS.
53
+ #
54
+ # @return [String, nil]
55
+ required :platform, String, nil?: true
56
+
57
+ # @!attribute platform_version
58
+ # Which one of the platform — the phone model for mobile (`15_pro_max`, `10`).
59
+ # Null for webmail, which always renders in the current browser, and for desktop.
60
+ #
61
+ # @return [String, nil]
62
+ required :platform_version, String, nil?: true
63
+
64
+ # @!attribute theme
65
+ # Whether the email is rendered in light or dark mode.
66
+ #
67
+ # @return [Symbol, Courier::Models::PreviewDevice::Theme]
68
+ required :theme, enum: -> { Courier::PreviewDevice::Theme }
69
+
70
+ # @!method initialize(id:, app:, category:, name:, os:, os_version:, platform:, platform_version:, theme:)
71
+ # Some parameter documentations has been truncated, see
72
+ # {Courier::Models::PreviewDevice} for more details.
73
+ #
74
+ # One mail app on one platform, operating system and theme that a preview can be
75
+ # rendered on. Reference data, identical for every workspace. Every field is
76
+ # always present; `platform` and `platform_version` are null where they do not
77
+ # apply.
78
+ #
79
+ # @param id [String] The device's identifier, used in `device_ids` when creating a device set or a ru
80
+ #
81
+ # @param app [String] The mail app. For webmail it is the service (`outlook_com`, `gmail_com`); for mo
82
+ #
83
+ # @param category [Symbol, Courier::Models::PreviewDevice::Category] Where the app runs.
84
+ #
85
+ # @param name [String] Display name. Render it as-is rather than parsing it. It is also what separates
86
+ #
87
+ # @param os [String] The operating system.
88
+ #
89
+ # @param os_version [String] The operating system's version. Always set.
90
+ #
91
+ # @param platform [String, nil] What the app runs on — the browser for webmail (`chrome`, `edge`, `firefox`), th
92
+ #
93
+ # @param platform_version [String, nil] Which one of the platform — the phone model for mobile (`15_pro_max`, `10`). Nul
94
+ #
95
+ # @param theme [Symbol, Courier::Models::PreviewDevice::Theme] Whether the email is rendered in light or dark mode.
96
+
97
+ # Where the app runs.
98
+ #
99
+ # @see Courier::Models::PreviewDevice#category
100
+ module Category
101
+ extend Courier::Internal::Type::Enum
102
+
103
+ WEBMAIL = :webmail
104
+ MOBILE = :mobile
105
+ DESKTOP = :desktop
106
+
107
+ # @!method self.values
108
+ # @return [Array<Symbol>]
109
+ end
110
+
111
+ # Whether the email is rendered in light or dark mode.
112
+ #
113
+ # @see Courier::Models::PreviewDevice#theme
114
+ module Theme
115
+ extend Courier::Internal::Type::Enum
116
+
117
+ LIGHT = :light
118
+ DARK = :dark
119
+
120
+ # @!method self.values
121
+ # @return [Array<Symbol>]
122
+ end
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#list_devices
6
+ class PreviewDeviceListResponse < Courier::Internal::Type::BaseModel
7
+ # @!attribute results
8
+ #
9
+ # @return [Array<Courier::Models::PreviewDevice>]
10
+ required :results, -> { Courier::Internal::Type::ArrayOf[Courier::PreviewDevice] }
11
+
12
+ # @!method initialize(results:)
13
+ # The full catalog of renderable devices. Not paginated.
14
+ #
15
+ # @param results [Array<Courier::Models::PreviewDevice>]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#list_device_sets
6
+ class PreviewListDeviceSetsParams < Courier::Internal::Type::BaseModel
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#list_devices
6
+ class PreviewListDevicesParams < Courier::Internal::Type::BaseModel
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#retrieve_device_set
6
+ class PreviewRetrieveDeviceSetParams < Courier::Internal::Type::BaseModel
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!attribute device_set_id
11
+ #
12
+ # @return [String]
13
+ required :device_set_id, String
14
+
15
+ # @!method initialize(device_set_id:, request_options: {})
16
+ # @param device_set_id [String]
17
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::Previews#update_device_set
6
+ class PreviewUpdateDeviceSetParams < Courier::Models::CreateDeviceSetRequest
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!attribute device_set_id
11
+ #
12
+ # @return [String]
13
+ required :device_set_id, String
14
+
15
+ # @!method initialize(device_set_id:, request_options: {})
16
+ # @param device_set_id [String]
17
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Courier
4
+ module Models
5
+ # @see Courier::Resources::WorkspacePreferences#list_logs
6
+ class WorkspacePreferenceListLogsParams < Courier::Internal::Type::BaseModel
7
+ extend Courier::Internal::Type::RequestParameters::Converter
8
+ include Courier::Internal::Type::RequestParameters
9
+
10
+ # @!attribute cursor
11
+ # A cursor from a previous response's paging.cursor. Continue only while
12
+ # paging.more is true; the cursor is omitted on the last page.
13
+ #
14
+ # @return [String, nil]
15
+ optional :cursor, String
16
+
17
+ # @!attribute limit
18
+ # How many entries to return. Defaults to 25.
19
+ #
20
+ # @return [Integer, nil]
21
+ optional :limit, Integer
22
+
23
+ # @!attribute since
24
+ # Return only changes at or after this time, as an ISO-8601 date or date-time. A
25
+ # date alone is read as the start of that day in UTC.
26
+ #
27
+ # @return [String, nil]
28
+ optional :since, String
29
+
30
+ # @!attribute tenant_id
31
+ # Narrow to the changes this user made in one tenant context. Only valid together
32
+ # with user_id.
33
+ #
34
+ # @return [String, nil]
35
+ optional :tenant_id, String
36
+
37
+ # @!attribute user_id
38
+ # Return only this user's changes. Omit it to read every change in the
39
+ # environment.
40
+ #
41
+ # @return [String, nil]
42
+ optional :user_id, String
43
+
44
+ # @!method initialize(cursor: nil, limit: nil, since: nil, tenant_id: nil, user_id: nil, request_options: {})
45
+ # Some parameter documentations has been truncated, see
46
+ # {Courier::Models::WorkspacePreferenceListLogsParams} for more details.
47
+ #
48
+ # @param cursor [String] A cursor from a previous response's paging.cursor. Continue only while paging.mo
49
+ #
50
+ # @param limit [Integer] How many entries to return. Defaults to 25.
51
+ #
52
+ # @param since [String] Return only changes at or after this time, as an ISO-8601 date or date-time. A d
53
+ #
54
+ # @param tenant_id [String] Narrow to the changes this user made in one tenant context. Only valid together
55
+ #
56
+ # @param user_id [String] Return only this user's changes. Omit it to read every change in the environment
57
+ #
58
+ # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
59
+ end
60
+ end
61
+ end
@@ -179,10 +179,16 @@ module Courier
179
179
 
180
180
  CreateBroadcastRequest = Courier::Models::CreateBroadcastRequest
181
181
 
182
+ CreateDeviceSetRequest = Courier::Models::CreateDeviceSetRequest
183
+
182
184
  CreateJourneyRequest = Courier::Models::CreateJourneyRequest
183
185
 
184
186
  DefaultPreferences = Courier::Models::DefaultPreferences
185
187
 
188
+ DeviceSet = Courier::Models::DeviceSet
189
+
190
+ DeviceSetListResponse = Courier::Models::DeviceSetListResponse
191
+
186
192
  DeviceType = Courier::Models::DeviceType
187
193
 
188
194
  DigestCategory = Courier::Models::DigestCategory
@@ -517,8 +523,30 @@ module Courier
517
523
 
518
524
  Preference = Courier::Models::Preference
519
525
 
526
+ PreferenceChangeLogEntry = Courier::Models::PreferenceChangeLogEntry
527
+
528
+ PreferenceChangeLogValue = Courier::Models::PreferenceChangeLogValue
529
+
530
+ PreferenceLogsListResponse = Courier::Models::PreferenceLogsListResponse
531
+
520
532
  PreferenceStatus = Courier::Models::PreferenceStatus
521
533
 
534
+ PreviewArchiveDeviceSetParams = Courier::Models::PreviewArchiveDeviceSetParams
535
+
536
+ PreviewCreateDeviceSetParams = Courier::Models::PreviewCreateDeviceSetParams
537
+
538
+ PreviewDevice = Courier::Models::PreviewDevice
539
+
540
+ PreviewDeviceListResponse = Courier::Models::PreviewDeviceListResponse
541
+
542
+ PreviewListDeviceSetsParams = Courier::Models::PreviewListDeviceSetsParams
543
+
544
+ PreviewListDevicesParams = Courier::Models::PreviewListDevicesParams
545
+
546
+ PreviewRetrieveDeviceSetParams = Courier::Models::PreviewRetrieveDeviceSetParams
547
+
548
+ PreviewUpdateDeviceSetParams = Courier::Models::PreviewUpdateDeviceSetParams
549
+
522
550
  ProfileCreateParams = Courier::Models::ProfileCreateParams
523
551
 
524
552
  ProfileDeleteParams = Courier::Models::ProfileDeleteParams
@@ -699,6 +727,8 @@ module Courier
699
727
 
700
728
  WorkspacePreferenceGetResponse = Courier::Models::WorkspacePreferenceGetResponse
701
729
 
730
+ WorkspacePreferenceListLogsParams = Courier::Models::WorkspacePreferenceListLogsParams
731
+
702
732
  WorkspacePreferenceListParams = Courier::Models::WorkspacePreferenceListParams
703
733
 
704
734
  WorkspacePreferenceListResponse = Courier::Models::WorkspacePreferenceListResponse