trycourier 4.17.0 → 4.17.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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/lib/courier/client.rb +3 -3
  4. data/lib/courier/models/publish_preferences_response.rb +1 -1
  5. data/lib/courier/models/{preference_section_archive_params.rb → workspace_preference_archive_params.rb} +2 -2
  6. data/lib/courier/models/{preference_section_create_params.rb → workspace_preference_create_params.rb} +2 -2
  7. data/lib/courier/models/{preference_section_create_request.rb → workspace_preference_create_request.rb} +8 -8
  8. data/lib/courier/models/{preference_section_get_response.rb → workspace_preference_get_response.rb} +15 -15
  9. data/lib/courier/models/{preference_section_list_params.rb → workspace_preference_list_params.rb} +2 -2
  10. data/lib/courier/models/workspace_preference_list_response.rb +18 -0
  11. data/lib/courier/models/{preference_section_publish_params.rb → workspace_preference_publish_params.rb} +2 -2
  12. data/lib/courier/models/{preference_section_replace_params.rb → workspace_preference_replace_params.rb} +2 -2
  13. data/lib/courier/models/{preference_section_replace_request.rb → workspace_preference_replace_request.rb} +8 -8
  14. data/lib/courier/models/{preference_section_retrieve_params.rb → workspace_preference_retrieve_params.rb} +2 -2
  15. data/lib/courier/models/{preference_topic_create_request.rb → workspace_preference_topic_create_request.rb} +9 -9
  16. data/lib/courier/models/{preference_topic_get_response.rb → workspace_preference_topic_get_response.rb} +8 -8
  17. data/lib/courier/models/workspace_preference_topic_list_response.rb +17 -0
  18. data/lib/courier/models/{preference_topic_replace_request.rb → workspace_preference_topic_replace_request.rb} +8 -8
  19. data/lib/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rb +2 -2
  20. data/lib/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rb +3 -3
  21. data/lib/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rb +2 -2
  22. data/lib/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rb +3 -3
  23. data/lib/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rb +2 -2
  24. data/lib/courier/models.rb +30 -30
  25. data/lib/courier/resources/notifications/checks.rb +3 -3
  26. data/lib/courier/resources/{preference_sections → workspace_preferences}/topics.rb +40 -37
  27. data/lib/courier/resources/{preference_sections.rb → workspace_preferences.rb} +40 -40
  28. data/lib/courier/version.rb +1 -1
  29. data/lib/courier.rb +21 -21
  30. data/rbi/courier/client.rbi +2 -2
  31. data/rbi/courier/models/{preference_section_retrieve_params.rbi → workspace_preference_archive_params.rbi} +2 -2
  32. data/rbi/courier/models/{preference_section_create_params.rbi → workspace_preference_create_params.rbi} +2 -2
  33. data/rbi/courier/models/{preference_section_create_request.rbi → workspace_preference_create_request.rbi} +9 -9
  34. data/rbi/courier/models/{preference_section_get_response.rbi → workspace_preference_get_response.rbi} +17 -16
  35. data/rbi/courier/models/{preference_section_list_params.rbi → workspace_preference_list_params.rbi} +2 -2
  36. data/rbi/courier/models/{preference_topic_list_response.rbi → workspace_preference_list_response.rbi} +6 -6
  37. data/rbi/courier/models/{preference_section_publish_params.rbi → workspace_preference_publish_params.rbi} +2 -2
  38. data/rbi/courier/models/{preference_section_replace_params.rbi → workspace_preference_replace_params.rbi} +2 -2
  39. data/rbi/courier/models/{preference_section_replace_request.rbi → workspace_preference_replace_request.rbi} +9 -9
  40. data/rbi/courier/models/{preference_section_archive_params.rbi → workspace_preference_retrieve_params.rbi} +2 -2
  41. data/rbi/courier/models/{preference_topic_create_request.rbi → workspace_preference_topic_create_request.rbi} +22 -17
  42. data/rbi/courier/models/{preference_topic_get_response.rbi → workspace_preference_topic_get_response.rbi} +23 -17
  43. data/rbi/courier/models/workspace_preference_topic_list_response.rbi +36 -0
  44. data/rbi/courier/models/{preference_topic_replace_request.rbi → workspace_preference_topic_replace_request.rbi} +22 -17
  45. data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbi +2 -2
  46. data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbi +3 -3
  47. data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbi +2 -2
  48. data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbi +3 -3
  49. data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbi +2 -2
  50. data/rbi/courier/models.rbi +43 -36
  51. data/rbi/courier/resources/notifications/checks.rbi +3 -3
  52. data/rbi/courier/resources/{preference_sections → workspace_preferences}/topics.rbi +25 -22
  53. data/rbi/courier/resources/{preference_sections.rbi → workspace_preferences.rbi} +27 -27
  54. data/sig/courier/client.rbs +1 -1
  55. data/sig/courier/models/{preference_section_retrieve_params.rbs → workspace_preference_archive_params.rbs} +2 -2
  56. data/sig/courier/models/{preference_section_create_params.rbs → workspace_preference_create_params.rbs} +2 -2
  57. data/sig/courier/models/{preference_section_replace_request.rbs → workspace_preference_create_request.rbs} +2 -2
  58. data/sig/courier/models/{preference_section_get_response.rbs → workspace_preference_get_response.rbs} +6 -6
  59. data/sig/courier/models/{preference_section_list_params.rbs → workspace_preference_list_params.rbs} +2 -2
  60. data/sig/courier/models/workspace_preference_list_response.rbs +18 -0
  61. data/sig/courier/models/{preference_section_publish_params.rbs → workspace_preference_publish_params.rbs} +2 -2
  62. data/sig/courier/models/{preference_section_replace_params.rbs → workspace_preference_replace_params.rbs} +2 -2
  63. data/sig/courier/models/{preference_section_create_request.rbs → workspace_preference_replace_request.rbs} +2 -2
  64. data/sig/courier/models/{preference_section_archive_params.rbs → workspace_preference_retrieve_params.rbs} +2 -2
  65. data/sig/courier/models/{preference_topic_create_request.rbs → workspace_preference_topic_create_request.rbs} +12 -12
  66. data/sig/courier/models/{preference_topic_get_response.rbs → workspace_preference_topic_get_response.rbs} +12 -12
  67. data/sig/courier/models/workspace_preference_topic_list_response.rbs +18 -0
  68. data/sig/courier/models/{preference_topic_replace_request.rbs → workspace_preference_topic_replace_request.rbs} +12 -12
  69. data/sig/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbs +1 -1
  70. data/sig/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbs +2 -2
  71. data/sig/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbs +1 -1
  72. data/sig/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbs +2 -2
  73. data/sig/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbs +1 -1
  74. data/sig/courier/models.rbs +30 -30
  75. data/sig/courier/resources/{preference_sections → workspace_preferences}/topics.rbs +9 -9
  76. data/sig/courier/resources/{preference_sections.rbs → workspace_preferences.rbs} +6 -6
  77. metadata +65 -65
  78. data/lib/courier/models/preference_section_list_response.rb +0 -18
  79. data/lib/courier/models/preference_topic_list_response.rb +0 -17
  80. data/rbi/courier/models/preference_section_list_response.rbi +0 -35
  81. data/sig/courier/models/preference_section_list_response.rbs +0 -18
  82. data/sig/courier/models/preference_topic_list_response.rbs +0 -16
@@ -1,19 +1,19 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_get_response =
3
+ type workspace_preference_get_response =
4
4
  {
5
5
  id: String,
6
6
  created: String,
7
7
  has_custom_routing: bool,
8
8
  name: String,
9
9
  routing_options: ::Array[Courier::Models::channel_classification],
10
- topics: ::Array[Courier::PreferenceTopicGetResponse],
10
+ topics: ::Array[Courier::WorkspacePreferenceTopicGetResponse],
11
11
  creator: String?,
12
12
  updated: String?,
13
13
  updater: String?
14
14
  }
15
15
 
16
- class PreferenceSectionGetResponse < Courier::Internal::Type::BaseModel
16
+ class WorkspacePreferenceGetResponse < Courier::Internal::Type::BaseModel
17
17
  attr_accessor id: String
18
18
 
19
19
  attr_accessor created: String
@@ -24,7 +24,7 @@ module Courier
24
24
 
25
25
  attr_accessor routing_options: ::Array[Courier::Models::channel_classification]
26
26
 
27
- attr_accessor topics: ::Array[Courier::PreferenceTopicGetResponse]
27
+ attr_accessor topics: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
28
28
 
29
29
  attr_accessor creator: String?
30
30
 
@@ -38,7 +38,7 @@ module Courier
38
38
  has_custom_routing: bool,
39
39
  name: String,
40
40
  routing_options: ::Array[Courier::Models::channel_classification],
41
- topics: ::Array[Courier::PreferenceTopicGetResponse],
41
+ topics: ::Array[Courier::WorkspacePreferenceTopicGetResponse],
42
42
  ?creator: String?,
43
43
  ?updated: String?,
44
44
  ?updater: String?
@@ -50,7 +50,7 @@ module Courier
50
50
  has_custom_routing: bool,
51
51
  name: String,
52
52
  routing_options: ::Array[Courier::Models::channel_classification],
53
- topics: ::Array[Courier::PreferenceTopicGetResponse],
53
+ topics: ::Array[Courier::WorkspacePreferenceTopicGetResponse],
54
54
  creator: String?,
55
55
  updated: String?,
56
56
  updater: String?
@@ -1,9 +1,9 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_list_params =
3
+ type workspace_preference_list_params =
4
4
  { } & Courier::Internal::Type::request_parameters
5
5
 
6
- class PreferenceSectionListParams < Courier::Internal::Type::BaseModel
6
+ class WorkspacePreferenceListParams < Courier::Internal::Type::BaseModel
7
7
  extend Courier::Internal::Type::RequestParameters::Converter
8
8
  include Courier::Internal::Type::RequestParameters
9
9
 
@@ -0,0 +1,18 @@
1
+ module Courier
2
+ module Models
3
+ type workspace_preference_list_response =
4
+ { results: ::Array[Courier::WorkspacePreferenceGetResponse] }
5
+
6
+ class WorkspacePreferenceListResponse < Courier::Internal::Type::BaseModel
7
+ attr_accessor results: ::Array[Courier::WorkspacePreferenceGetResponse]
8
+
9
+ def initialize: (
10
+ results: ::Array[Courier::WorkspacePreferenceGetResponse]
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ results: ::Array[Courier::WorkspacePreferenceGetResponse]
15
+ }
16
+ end
17
+ end
18
+ end
@@ -1,9 +1,9 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_publish_params =
3
+ type workspace_preference_publish_params =
4
4
  { } & Courier::Internal::Type::request_parameters
5
5
 
6
- class PreferenceSectionPublishParams < Courier::Internal::Type::BaseModel
6
+ class WorkspacePreferencePublishParams < Courier::Internal::Type::BaseModel
7
7
  extend Courier::Internal::Type::RequestParameters::Converter
8
8
  include Courier::Internal::Type::RequestParameters
9
9
 
@@ -1,9 +1,9 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_replace_params =
3
+ type workspace_preference_replace_params =
4
4
  { section_id: String } & Courier::Internal::Type::request_parameters
5
5
 
6
- class PreferenceSectionReplaceParams < Courier::Models::PreferenceSectionReplaceRequest
6
+ class WorkspacePreferenceReplaceParams < Courier::Models::WorkspacePreferenceReplaceRequest
7
7
  extend Courier::Internal::Type::RequestParameters::Converter
8
8
  include Courier::Internal::Type::RequestParameters
9
9
 
@@ -1,13 +1,13 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_create_request =
3
+ type workspace_preference_replace_request =
4
4
  {
5
5
  name: String,
6
6
  has_custom_routing: bool?,
7
7
  routing_options: ::Array[Courier::Models::channel_classification]?
8
8
  }
9
9
 
10
- class PreferenceSectionCreateRequest < Courier::Internal::Type::BaseModel
10
+ class WorkspacePreferenceReplaceRequest < Courier::Internal::Type::BaseModel
11
11
  attr_accessor name: String
12
12
 
13
13
  attr_accessor has_custom_routing: bool?
@@ -1,9 +1,9 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_section_archive_params =
3
+ type workspace_preference_retrieve_params =
4
4
  { section_id: String } & Courier::Internal::Type::request_parameters
5
5
 
6
- class PreferenceSectionArchiveParams < Courier::Internal::Type::BaseModel
6
+ class WorkspacePreferenceRetrieveParams < Courier::Internal::Type::BaseModel
7
7
  extend Courier::Internal::Type::RequestParameters::Converter
8
8
  include Courier::Internal::Type::RequestParameters
9
9
 
@@ -1,21 +1,21 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_topic_create_request =
3
+ type workspace_preference_topic_create_request =
4
4
  {
5
- default_status: Courier::Models::PreferenceTopicCreateRequest::default_status,
5
+ default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
6
6
  name: String,
7
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]?,
7
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
8
8
  include_unsubscribe_header: bool?,
9
9
  routing_options: ::Array[Courier::Models::channel_classification]?,
10
10
  topic_data: ::Hash[Symbol, top]?
11
11
  }
12
12
 
13
- class PreferenceTopicCreateRequest < Courier::Internal::Type::BaseModel
14
- attr_accessor default_status: Courier::Models::PreferenceTopicCreateRequest::default_status
13
+ class WorkspacePreferenceTopicCreateRequest < Courier::Internal::Type::BaseModel
14
+ attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status
15
15
 
16
16
  attr_accessor name: String
17
17
 
18
- attr_accessor allowed_preferences: ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]?
18
+ attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?
19
19
 
20
20
  attr_accessor include_unsubscribe_header: bool?
21
21
 
@@ -24,18 +24,18 @@ module Courier
24
24
  attr_accessor topic_data: ::Hash[Symbol, top]?
25
25
 
26
26
  def initialize: (
27
- default_status: Courier::Models::PreferenceTopicCreateRequest::default_status,
27
+ default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
28
28
  name: String,
29
- ?allowed_preferences: ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]?,
29
+ ?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
30
30
  ?include_unsubscribe_header: bool?,
31
31
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
32
32
  ?topic_data: ::Hash[Symbol, top]?
33
33
  ) -> void
34
34
 
35
35
  def to_hash: -> {
36
- default_status: Courier::Models::PreferenceTopicCreateRequest::default_status,
36
+ default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
37
37
  name: String,
38
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]?,
38
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
39
39
  include_unsubscribe_header: bool?,
40
40
  routing_options: ::Array[Courier::Models::channel_classification]?,
41
41
  topic_data: ::Hash[Symbol, top]?
@@ -50,7 +50,7 @@ module Courier
50
50
  OPTED_IN: :OPTED_IN
51
51
  REQUIRED: :REQUIRED
52
52
 
53
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicCreateRequest::default_status]
53
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status]
54
54
  end
55
55
 
56
56
  type allowed_preference = :snooze | :channel_preferences
@@ -61,7 +61,7 @@ module Courier
61
61
  SNOOZE: :snooze
62
62
  CHANNEL_PREFERENCES: :channel_preferences
63
63
 
64
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]
64
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]
65
65
  end
66
66
  end
67
67
  end
@@ -1,11 +1,11 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_topic_get_response =
3
+ type workspace_preference_topic_get_response =
4
4
  {
5
5
  id: String,
6
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicGetResponse::allowed_preference],
6
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
7
7
  created: String,
8
- default_status: Courier::Models::PreferenceTopicGetResponse::default_status,
8
+ default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
9
9
  include_unsubscribe_header: bool,
10
10
  name: String,
11
11
  routing_options: ::Array[Courier::Models::channel_classification],
@@ -15,14 +15,14 @@ module Courier
15
15
  updater: String?
16
16
  }
17
17
 
18
- class PreferenceTopicGetResponse < Courier::Internal::Type::BaseModel
18
+ class WorkspacePreferenceTopicGetResponse < Courier::Internal::Type::BaseModel
19
19
  attr_accessor id: String
20
20
 
21
- attr_accessor allowed_preferences: ::Array[Courier::Models::PreferenceTopicGetResponse::allowed_preference]
21
+ attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference]
22
22
 
23
23
  attr_accessor created: String
24
24
 
25
- attr_accessor default_status: Courier::Models::PreferenceTopicGetResponse::default_status
25
+ attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status
26
26
 
27
27
  attr_accessor include_unsubscribe_header: bool
28
28
 
@@ -40,9 +40,9 @@ module Courier
40
40
 
41
41
  def initialize: (
42
42
  id: String,
43
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicGetResponse::allowed_preference],
43
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
44
44
  created: String,
45
- default_status: Courier::Models::PreferenceTopicGetResponse::default_status,
45
+ default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
46
46
  include_unsubscribe_header: bool,
47
47
  name: String,
48
48
  routing_options: ::Array[Courier::Models::channel_classification],
@@ -54,9 +54,9 @@ module Courier
54
54
 
55
55
  def to_hash: -> {
56
56
  id: String,
57
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicGetResponse::allowed_preference],
57
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
58
58
  created: String,
59
- default_status: Courier::Models::PreferenceTopicGetResponse::default_status,
59
+ default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
60
60
  include_unsubscribe_header: bool,
61
61
  name: String,
62
62
  routing_options: ::Array[Courier::Models::channel_classification],
@@ -74,7 +74,7 @@ module Courier
74
74
  SNOOZE: :snooze
75
75
  CHANNEL_PREFERENCES: :channel_preferences
76
76
 
77
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicGetResponse::allowed_preference]
77
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference]
78
78
  end
79
79
 
80
80
  type default_status = :OPTED_OUT | :OPTED_IN | :REQUIRED
@@ -86,7 +86,7 @@ module Courier
86
86
  OPTED_IN: :OPTED_IN
87
87
  REQUIRED: :REQUIRED
88
88
 
89
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicGetResponse::default_status]
89
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::default_status]
90
90
  end
91
91
  end
92
92
  end
@@ -0,0 +1,18 @@
1
+ module Courier
2
+ module Models
3
+ type workspace_preference_topic_list_response =
4
+ { results: ::Array[Courier::WorkspacePreferenceTopicGetResponse] }
5
+
6
+ class WorkspacePreferenceTopicListResponse < Courier::Internal::Type::BaseModel
7
+ attr_accessor results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
8
+
9
+ def initialize: (
10
+ results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
15
+ }
16
+ end
17
+ end
18
+ end
@@ -1,21 +1,21 @@
1
1
  module Courier
2
2
  module Models
3
- type preference_topic_replace_request =
3
+ type workspace_preference_topic_replace_request =
4
4
  {
5
- default_status: Courier::Models::PreferenceTopicReplaceRequest::default_status,
5
+ default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
6
6
  name: String,
7
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]?,
7
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
8
8
  include_unsubscribe_header: bool?,
9
9
  routing_options: ::Array[Courier::Models::channel_classification]?,
10
10
  topic_data: ::Hash[Symbol, top]?
11
11
  }
12
12
 
13
- class PreferenceTopicReplaceRequest < Courier::Internal::Type::BaseModel
14
- attr_accessor default_status: Courier::Models::PreferenceTopicReplaceRequest::default_status
13
+ class WorkspacePreferenceTopicReplaceRequest < Courier::Internal::Type::BaseModel
14
+ attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status
15
15
 
16
16
  attr_accessor name: String
17
17
 
18
- attr_accessor allowed_preferences: ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]?
18
+ attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?
19
19
 
20
20
  attr_accessor include_unsubscribe_header: bool?
21
21
 
@@ -24,18 +24,18 @@ module Courier
24
24
  attr_accessor topic_data: ::Hash[Symbol, top]?
25
25
 
26
26
  def initialize: (
27
- default_status: Courier::Models::PreferenceTopicReplaceRequest::default_status,
27
+ default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
28
28
  name: String,
29
- ?allowed_preferences: ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]?,
29
+ ?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
30
30
  ?include_unsubscribe_header: bool?,
31
31
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
32
32
  ?topic_data: ::Hash[Symbol, top]?
33
33
  ) -> void
34
34
 
35
35
  def to_hash: -> {
36
- default_status: Courier::Models::PreferenceTopicReplaceRequest::default_status,
36
+ default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
37
37
  name: String,
38
- allowed_preferences: ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]?,
38
+ allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
39
39
  include_unsubscribe_header: bool?,
40
40
  routing_options: ::Array[Courier::Models::channel_classification]?,
41
41
  topic_data: ::Hash[Symbol, top]?
@@ -50,7 +50,7 @@ module Courier
50
50
  OPTED_IN: :OPTED_IN
51
51
  REQUIRED: :REQUIRED
52
52
 
53
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicReplaceRequest::default_status]
53
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status]
54
54
  end
55
55
 
56
56
  type allowed_preference = :snooze | :channel_preferences
@@ -61,7 +61,7 @@ module Courier
61
61
  SNOOZE: :snooze
62
62
  CHANNEL_PREFERENCES: :channel_preferences
63
63
 
64
- def self?.values: -> ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]
64
+ def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]
65
65
  end
66
66
  end
67
67
  end
@@ -1,6 +1,6 @@
1
1
  module Courier
2
2
  module Models
3
- module PreferenceSections
3
+ module WorkspacePreferences
4
4
  type topic_archive_params =
5
5
  { section_id: String, topic_id: String }
6
6
  & Courier::Internal::Type::request_parameters
@@ -1,10 +1,10 @@
1
1
  module Courier
2
2
  module Models
3
- module PreferenceSections
3
+ module WorkspacePreferences
4
4
  type topic_create_params =
5
5
  { section_id: String } & Courier::Internal::Type::request_parameters
6
6
 
7
- class TopicCreateParams < Courier::Models::PreferenceTopicCreateRequest
7
+ class TopicCreateParams < Courier::Models::WorkspacePreferenceTopicCreateRequest
8
8
  extend Courier::Internal::Type::RequestParameters::Converter
9
9
  include Courier::Internal::Type::RequestParameters
10
10
 
@@ -1,6 +1,6 @@
1
1
  module Courier
2
2
  module Models
3
- module PreferenceSections
3
+ module WorkspacePreferences
4
4
  type topic_list_params =
5
5
  { section_id: String } & Courier::Internal::Type::request_parameters
6
6
 
@@ -1,11 +1,11 @@
1
1
  module Courier
2
2
  module Models
3
- module PreferenceSections
3
+ module WorkspacePreferences
4
4
  type topic_replace_params =
5
5
  { section_id: String, topic_id: String }
6
6
  & Courier::Internal::Type::request_parameters
7
7
 
8
- class TopicReplaceParams < Courier::Models::PreferenceTopicReplaceRequest
8
+ class TopicReplaceParams < Courier::Models::WorkspacePreferenceTopicReplaceRequest
9
9
  extend Courier::Internal::Type::RequestParameters::Converter
10
10
  include Courier::Internal::Type::RequestParameters
11
11
 
@@ -1,6 +1,6 @@
1
1
  module Courier
2
2
  module Models
3
- module PreferenceSections
3
+ module WorkspacePreferences
4
4
  type topic_retrieve_params =
5
5
  { section_id: String, topic_id: String }
6
6
  & Courier::Internal::Type::request_parameters
@@ -361,38 +361,8 @@ module Courier
361
361
 
362
362
  class Preference = Courier::Models::Preference
363
363
 
364
- class PreferenceSectionArchiveParams = Courier::Models::PreferenceSectionArchiveParams
365
-
366
- class PreferenceSectionCreateParams = Courier::Models::PreferenceSectionCreateParams
367
-
368
- class PreferenceSectionCreateRequest = Courier::Models::PreferenceSectionCreateRequest
369
-
370
- class PreferenceSectionGetResponse = Courier::Models::PreferenceSectionGetResponse
371
-
372
- class PreferenceSectionListParams = Courier::Models::PreferenceSectionListParams
373
-
374
- class PreferenceSectionListResponse = Courier::Models::PreferenceSectionListResponse
375
-
376
- class PreferenceSectionPublishParams = Courier::Models::PreferenceSectionPublishParams
377
-
378
- class PreferenceSectionReplaceParams = Courier::Models::PreferenceSectionReplaceParams
379
-
380
- class PreferenceSectionReplaceRequest = Courier::Models::PreferenceSectionReplaceRequest
381
-
382
- class PreferenceSectionRetrieveParams = Courier::Models::PreferenceSectionRetrieveParams
383
-
384
- module PreferenceSections = Courier::Models::PreferenceSections
385
-
386
364
  module PreferenceStatus = Courier::Models::PreferenceStatus
387
365
 
388
- class PreferenceTopicCreateRequest = Courier::Models::PreferenceTopicCreateRequest
389
-
390
- class PreferenceTopicGetResponse = Courier::Models::PreferenceTopicGetResponse
391
-
392
- class PreferenceTopicListResponse = Courier::Models::PreferenceTopicListResponse
393
-
394
- class PreferenceTopicReplaceRequest = Courier::Models::PreferenceTopicReplaceRequest
395
-
396
366
  class ProfileCreateParams = Courier::Models::ProfileCreateParams
397
367
 
398
368
  class ProfileDeleteParams = Courier::Models::ProfileDeleteParams
@@ -544,4 +514,34 @@ module Courier
544
514
  class WebhookRecipient = Courier::Models::WebhookRecipient
545
515
 
546
516
  class WidgetBackground = Courier::Models::WidgetBackground
517
+
518
+ class WorkspacePreferenceArchiveParams = Courier::Models::WorkspacePreferenceArchiveParams
519
+
520
+ class WorkspacePreferenceCreateParams = Courier::Models::WorkspacePreferenceCreateParams
521
+
522
+ class WorkspacePreferenceCreateRequest = Courier::Models::WorkspacePreferenceCreateRequest
523
+
524
+ class WorkspacePreferenceGetResponse = Courier::Models::WorkspacePreferenceGetResponse
525
+
526
+ class WorkspacePreferenceListParams = Courier::Models::WorkspacePreferenceListParams
527
+
528
+ class WorkspacePreferenceListResponse = Courier::Models::WorkspacePreferenceListResponse
529
+
530
+ class WorkspacePreferencePublishParams = Courier::Models::WorkspacePreferencePublishParams
531
+
532
+ class WorkspacePreferenceReplaceParams = Courier::Models::WorkspacePreferenceReplaceParams
533
+
534
+ class WorkspacePreferenceReplaceRequest = Courier::Models::WorkspacePreferenceReplaceRequest
535
+
536
+ class WorkspacePreferenceRetrieveParams = Courier::Models::WorkspacePreferenceRetrieveParams
537
+
538
+ module WorkspacePreferences = Courier::Models::WorkspacePreferences
539
+
540
+ class WorkspacePreferenceTopicCreateRequest = Courier::Models::WorkspacePreferenceTopicCreateRequest
541
+
542
+ class WorkspacePreferenceTopicGetResponse = Courier::Models::WorkspacePreferenceTopicGetResponse
543
+
544
+ class WorkspacePreferenceTopicListResponse = Courier::Models::WorkspacePreferenceTopicListResponse
545
+
546
+ class WorkspacePreferenceTopicReplaceRequest = Courier::Models::WorkspacePreferenceTopicReplaceRequest
547
547
  end
@@ -1,28 +1,28 @@
1
1
  module Courier
2
2
  module Resources
3
- class PreferenceSections
3
+ class WorkspacePreferences
4
4
  class Topics
5
5
  def create: (
6
6
  String section_id,
7
- default_status: Courier::Models::PreferenceTopicCreateRequest::default_status,
7
+ default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
8
8
  name: String,
9
- ?allowed_preferences: ::Array[Courier::Models::PreferenceTopicCreateRequest::allowed_preference]?,
9
+ ?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
10
10
  ?include_unsubscribe_header: bool?,
11
11
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
12
12
  ?topic_data: ::Hash[Symbol, top]?,
13
13
  ?request_options: Courier::request_opts
14
- ) -> Courier::PreferenceTopicGetResponse
14
+ ) -> Courier::WorkspacePreferenceTopicGetResponse
15
15
 
16
16
  def retrieve: (
17
17
  String topic_id,
18
18
  section_id: String,
19
19
  ?request_options: Courier::request_opts
20
- ) -> Courier::PreferenceTopicGetResponse
20
+ ) -> Courier::WorkspacePreferenceTopicGetResponse
21
21
 
22
22
  def list: (
23
23
  String section_id,
24
24
  ?request_options: Courier::request_opts
25
- ) -> Courier::PreferenceTopicListResponse
25
+ ) -> Courier::WorkspacePreferenceTopicListResponse
26
26
 
27
27
  def archive: (
28
28
  String topic_id,
@@ -33,14 +33,14 @@ module Courier
33
33
  def replace: (
34
34
  String topic_id,
35
35
  section_id: String,
36
- default_status: Courier::Models::PreferenceTopicReplaceRequest::default_status,
36
+ default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
37
37
  name: String,
38
- ?allowed_preferences: ::Array[Courier::Models::PreferenceTopicReplaceRequest::allowed_preference]?,
38
+ ?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
39
39
  ?include_unsubscribe_header: bool?,
40
40
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
41
41
  ?topic_data: ::Hash[Symbol, top]?,
42
42
  ?request_options: Courier::request_opts
43
- ) -> Courier::PreferenceTopicGetResponse
43
+ ) -> Courier::WorkspacePreferenceTopicGetResponse
44
44
 
45
45
  def initialize: (client: Courier::Client) -> void
46
46
  end
@@ -1,23 +1,23 @@
1
1
  module Courier
2
2
  module Resources
3
- class PreferenceSections
4
- attr_reader topics: Courier::Resources::PreferenceSections::Topics
3
+ class WorkspacePreferences
4
+ attr_reader topics: Courier::Resources::WorkspacePreferences::Topics
5
5
 
6
6
  def create: (
7
7
  name: String,
8
8
  ?has_custom_routing: bool?,
9
9
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
10
10
  ?request_options: Courier::request_opts
11
- ) -> Courier::PreferenceSectionGetResponse
11
+ ) -> Courier::WorkspacePreferenceGetResponse
12
12
 
13
13
  def retrieve: (
14
14
  String section_id,
15
15
  ?request_options: Courier::request_opts
16
- ) -> Courier::PreferenceSectionGetResponse
16
+ ) -> Courier::WorkspacePreferenceGetResponse
17
17
 
18
18
  def list: (
19
19
  ?request_options: Courier::request_opts
20
- ) -> Courier::PreferenceSectionListResponse
20
+ ) -> Courier::WorkspacePreferenceListResponse
21
21
 
22
22
  def archive: (
23
23
  String section_id,
@@ -34,7 +34,7 @@ module Courier
34
34
  ?has_custom_routing: bool?,
35
35
  ?routing_options: ::Array[Courier::Models::channel_classification]?,
36
36
  ?request_options: Courier::request_opts
37
- ) -> Courier::PreferenceSectionGetResponse
37
+ ) -> Courier::WorkspacePreferenceGetResponse
38
38
 
39
39
  def initialize: (client: Courier::Client) -> void
40
40
  end