knockapi 1.38.0 → 1.40.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -0
  3. data/README.md +1 -1
  4. data/lib/knockapi/models/audience_add_members_params.rb +3 -30
  5. data/lib/knockapi/models/audience_member_request.rb +32 -0
  6. data/lib/knockapi/models/audience_remove_members_params.rb +3 -30
  7. data/lib/knockapi/models/list_messages_response.rb +26 -0
  8. data/lib/knockapi/models/list_schedules_response.rb +26 -0
  9. data/lib/knockapi/models/list_subscriptions_response.rb +26 -0
  10. data/lib/knockapi/models/message.rb +37 -11
  11. data/lib/knockapi/models/{message_get_content_response.rb → message_contents.rb} +30 -156
  12. data/lib/knockapi/models/message_event.rb +3 -3
  13. data/lib/knockapi/models/message_in_app_feed_button_set_block.rb +76 -0
  14. data/lib/knockapi/models/message_in_app_feed_content_block.rb +55 -0
  15. data/lib/knockapi/models/messages/batch_archive_params.rb +2 -10
  16. data/lib/knockapi/models/messages/batch_get_content_response.rb +1 -495
  17. data/lib/knockapi/models/messages/batch_mark_as_read_params.rb +2 -10
  18. data/lib/knockapi/models/messages/batch_mark_as_seen_params.rb +2 -10
  19. data/lib/knockapi/models/messages/batch_mark_as_unread_params.rb +2 -10
  20. data/lib/knockapi/models/messages/batch_mark_as_unseen_params.rb +2 -10
  21. data/lib/knockapi/models/messages/batch_messages_status_request.rb +20 -0
  22. data/lib/knockapi/models/messages/batch_unarchive_params.rb +2 -10
  23. data/lib/knockapi/models/preference_set_commercial_subscribed_setting.rb +19 -0
  24. data/lib/knockapi/models/recipients/preference_set.rb +26 -4
  25. data/lib/knockapi/models/recipients/preference_set_request.rb +26 -4
  26. data/lib/knockapi/models/recipients/slack_channel_data.rb +9 -1
  27. data/lib/knockapi/models/users/bulk_set_preferences_params.rb +26 -4
  28. data/lib/knockapi/models/users/feed_list_items_response.rb +5 -128
  29. data/lib/knockapi/models/users/{guide_mark_message_as_archived_response.rb → guide_action_response.rb} +1 -1
  30. data/lib/knockapi/models/users/guide_archived_request.rb +72 -0
  31. data/lib/knockapi/models/users/guide_interacted_request.rb +60 -0
  32. data/lib/knockapi/models/users/guide_mark_message_as_archived_params.rb +2 -82
  33. data/lib/knockapi/models/users/guide_mark_message_as_interacted_params.rb +2 -82
  34. data/lib/knockapi/models/users/guide_mark_message_as_seen_params.rb +2 -82
  35. data/lib/knockapi/models/users/guide_reset_guide_engagements_params.rb +39 -0
  36. data/lib/knockapi/models/users/guide_seen_request.rb +68 -0
  37. data/lib/knockapi/models/users/guide_unarchive_guide_message_params.rb +39 -0
  38. data/lib/knockapi/models/users/preference_center_branding_config.rb +50 -0
  39. data/lib/knockapi/models/users/preference_center_generate_signed_url_params.rb +22 -0
  40. data/lib/knockapi/models/users/preference_center_generate_signed_url_response.rb +34 -0
  41. data/lib/knockapi/models/users/preference_center_get_config_params.rb +22 -0
  42. data/lib/knockapi/models/users/preference_center_get_config_response.rb +221 -0
  43. data/lib/knockapi/models.rb +16 -0
  44. data/lib/knockapi/resources/audiences.rb +2 -2
  45. data/lib/knockapi/resources/messages/batch.rb +2 -2
  46. data/lib/knockapi/resources/messages.rb +2 -2
  47. data/lib/knockapi/resources/objects.rb +1 -1
  48. data/lib/knockapi/resources/users/guides.rb +79 -42
  49. data/lib/knockapi/resources/users/preference_center.rb +60 -0
  50. data/lib/knockapi/resources/users.rb +7 -1
  51. data/lib/knockapi/version.rb +1 -1
  52. data/lib/knockapi.rb +21 -4
  53. data/rbi/knockapi/models/audience_add_members_params.rbi +3 -56
  54. data/rbi/knockapi/models/audience_member_request.rbi +55 -0
  55. data/rbi/knockapi/models/audience_remove_members_params.rbi +3 -57
  56. data/rbi/knockapi/models/list_messages_response.rbi +46 -0
  57. data/rbi/knockapi/models/list_schedules_response.rbi +49 -0
  58. data/rbi/knockapi/models/list_subscriptions_response.rbi +52 -0
  59. data/rbi/knockapi/models/message.rbi +50 -18
  60. data/rbi/knockapi/models/{message_get_content_response.rbi → message_contents.rbi} +43 -299
  61. data/rbi/knockapi/models/message_event.rbi +9 -9
  62. data/rbi/knockapi/models/message_in_app_feed_button_set_block.rbi +133 -0
  63. data/rbi/knockapi/models/message_in_app_feed_content_block.rbi +97 -0
  64. data/rbi/knockapi/models/messages/batch_archive_params.rbi +6 -22
  65. data/rbi/knockapi/models/messages/batch_get_content_response.rbi +1 -879
  66. data/rbi/knockapi/models/messages/batch_mark_as_read_params.rbi +6 -22
  67. data/rbi/knockapi/models/messages/batch_mark_as_seen_params.rbi +6 -22
  68. data/rbi/knockapi/models/messages/batch_mark_as_unread_params.rbi +6 -22
  69. data/rbi/knockapi/models/messages/batch_mark_as_unseen_params.rbi +6 -22
  70. data/rbi/knockapi/models/messages/batch_messages_status_request.rbi +33 -0
  71. data/rbi/knockapi/models/messages/batch_unarchive_params.rbi +6 -22
  72. data/rbi/knockapi/models/preference_set_commercial_subscribed_setting.rbi +36 -0
  73. data/rbi/knockapi/models/recipients/preference_set.rbi +50 -5
  74. data/rbi/knockapi/models/recipients/preference_set_request.rbi +56 -5
  75. data/rbi/knockapi/models/recipients/slack_channel_data.rbi +8 -0
  76. data/rbi/knockapi/models/users/bulk_set_preferences_params.rbi +56 -5
  77. data/rbi/knockapi/models/users/feed_list_items_response.rbi +4 -251
  78. data/rbi/knockapi/models/users/{guide_mark_message_as_seen_response.rbi → guide_action_response.rbi} +2 -2
  79. data/rbi/knockapi/models/users/guide_archived_request.rbi +102 -0
  80. data/rbi/knockapi/models/users/guide_interacted_request.rbi +89 -0
  81. data/rbi/knockapi/models/users/guide_mark_message_as_archived_params.rbi +3 -99
  82. data/rbi/knockapi/models/users/guide_mark_message_as_interacted_params.rbi +3 -99
  83. data/rbi/knockapi/models/users/guide_mark_message_as_seen_params.rbi +3 -99
  84. data/rbi/knockapi/models/users/guide_reset_guide_engagements_params.rbi +65 -0
  85. data/rbi/knockapi/models/users/guide_seen_request.rbi +97 -0
  86. data/rbi/knockapi/models/users/guide_unarchive_guide_message_params.rbi +65 -0
  87. data/rbi/knockapi/models/users/preference_center_branding_config.rbi +72 -0
  88. data/rbi/knockapi/models/users/preference_center_generate_signed_url_params.rbi +40 -0
  89. data/rbi/knockapi/models/users/preference_center_generate_signed_url_response.rbi +41 -0
  90. data/rbi/knockapi/models/users/preference_center_get_config_params.rbi +40 -0
  91. data/rbi/knockapi/models/users/preference_center_get_config_response.rbi +476 -0
  92. data/rbi/knockapi/models.rbi +18 -0
  93. data/rbi/knockapi/resources/audiences.rbi +2 -3
  94. data/rbi/knockapi/resources/messages/batch.rbi +1 -3
  95. data/rbi/knockapi/resources/messages.rbi +1 -1
  96. data/rbi/knockapi/resources/objects.rbi +10 -2
  97. data/rbi/knockapi/resources/users/guides.rbi +56 -42
  98. data/rbi/knockapi/resources/users/preference_center.rbi +48 -0
  99. data/rbi/knockapi/resources/users.rbi +15 -2
  100. data/sig/knockapi/models/audience_add_members_params.rbs +4 -23
  101. data/sig/knockapi/models/audience_member_request.rbs +22 -0
  102. data/sig/knockapi/models/audience_remove_members_params.rbs +4 -26
  103. data/sig/knockapi/models/list_messages_response.rbs +22 -0
  104. data/sig/knockapi/models/list_schedules_response.rbs +22 -0
  105. data/sig/knockapi/models/list_subscriptions_response.rbs +25 -0
  106. data/sig/knockapi/models/message.rbs +28 -5
  107. data/sig/knockapi/models/message_contents.rbs +286 -0
  108. data/sig/knockapi/models/message_event.rbs +6 -6
  109. data/sig/knockapi/models/message_in_app_feed_button_set_block.rbs +54 -0
  110. data/sig/knockapi/models/message_in_app_feed_content_block.rbs +46 -0
  111. data/sig/knockapi/models/messages/batch_archive_params.rbs +4 -13
  112. data/sig/knockapi/models/messages/batch_get_content_response.rbs +1 -391
  113. data/sig/knockapi/models/messages/batch_mark_as_read_params.rbs +4 -13
  114. data/sig/knockapi/models/messages/batch_mark_as_seen_params.rbs +4 -13
  115. data/sig/knockapi/models/messages/batch_mark_as_unread_params.rbs +4 -13
  116. data/sig/knockapi/models/messages/batch_mark_as_unseen_params.rbs +4 -13
  117. data/sig/knockapi/models/messages/batch_messages_status_request.rbs +15 -0
  118. data/sig/knockapi/models/messages/batch_unarchive_params.rbs +4 -13
  119. data/sig/knockapi/models/preference_set_commercial_subscribed_setting.rbs +14 -0
  120. data/sig/knockapi/models/recipients/preference_set.rbs +13 -4
  121. data/sig/knockapi/models/recipients/preference_set_request.rbs +13 -4
  122. data/sig/knockapi/models/recipients/slack_channel_data.rbs +10 -1
  123. data/sig/knockapi/models/users/bulk_set_preferences_params.rbs +13 -4
  124. data/sig/knockapi/models/users/feed_list_items_response.rbs +2 -100
  125. data/sig/knockapi/models/users/{guide_mark_message_as_seen_response.rbs → guide_action_response.rbs} +2 -2
  126. data/sig/knockapi/models/users/guide_archived_request.rbs +58 -0
  127. data/sig/knockapi/models/users/guide_interacted_request.rbs +51 -0
  128. data/sig/knockapi/models/users/guide_mark_message_as_archived_params.rbs +4 -63
  129. data/sig/knockapi/models/users/guide_mark_message_as_interacted_params.rbs +4 -63
  130. data/sig/knockapi/models/users/guide_mark_message_as_seen_params.rbs +4 -63
  131. data/sig/knockapi/models/users/guide_reset_guide_engagements_params.rbs +36 -0
  132. data/sig/knockapi/models/users/guide_seen_request.rbs +56 -0
  133. data/sig/knockapi/models/users/guide_unarchive_guide_message_params.rbs +36 -0
  134. data/sig/knockapi/models/users/preference_center_branding_config.rbs +37 -0
  135. data/sig/knockapi/models/users/preference_center_generate_signed_url_params.rbs +25 -0
  136. data/sig/knockapi/models/users/preference_center_generate_signed_url_response.rbs +18 -0
  137. data/sig/knockapi/models/users/preference_center_get_config_params.rbs +25 -0
  138. data/sig/knockapi/models/users/preference_center_get_config_response.rbs +189 -0
  139. data/sig/knockapi/models.rbs +16 -0
  140. data/sig/knockapi/resources/audiences.rbs +2 -2
  141. data/sig/knockapi/resources/messages.rbs +1 -1
  142. data/sig/knockapi/resources/objects.rbs +1 -1
  143. data/sig/knockapi/resources/users/guides.rbs +22 -18
  144. data/sig/knockapi/resources/users/preference_center.rbs +19 -0
  145. data/sig/knockapi/resources/users.rbs +3 -1
  146. metadata +65 -14
  147. data/lib/knockapi/models/users/guide_mark_message_as_interacted_response.rb +0 -21
  148. data/lib/knockapi/models/users/guide_mark_message_as_seen_response.rb +0 -21
  149. data/rbi/knockapi/models/users/guide_mark_message_as_archived_response.rbi +0 -33
  150. data/rbi/knockapi/models/users/guide_mark_message_as_interacted_response.rbi +0 -33
  151. data/sig/knockapi/models/message_get_content_response.rbs +0 -384
  152. data/sig/knockapi/models/users/guide_mark_message_as_archived_response.rbs +0 -15
  153. data/sig/knockapi/models/users/guide_mark_message_as_interacted_response.rbs +0 -15
@@ -30,24 +30,33 @@ module Knockapi
30
30
  extend Knockapi::Internal::Type::Union
31
31
 
32
32
  type slack_token_connection =
33
- { access_token: String?, channel_id: String?, user_id: String? }
33
+ {
34
+ access_token: String?,
35
+ channel_id: String?,
36
+ channel_name: String?,
37
+ user_id: String?
38
+ }
34
39
 
35
40
  class SlackTokenConnection < Knockapi::Internal::Type::BaseModel
36
41
  attr_accessor access_token: String?
37
42
 
38
43
  attr_accessor channel_id: String?
39
44
 
45
+ attr_accessor channel_name: String?
46
+
40
47
  attr_accessor user_id: String?
41
48
 
42
49
  def initialize: (
43
50
  ?access_token: String?,
44
51
  ?channel_id: String?,
52
+ ?channel_name: String?,
45
53
  ?user_id: String?
46
54
  ) -> void
47
55
 
48
56
  def to_hash: -> {
49
57
  access_token: String?,
50
58
  channel_id: String?,
59
+ channel_name: String?,
51
60
  user_id: String?
52
61
  }
53
62
  end
@@ -34,7 +34,7 @@ module Knockapi
34
34
  categories: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::category]?,
35
35
  channel_types: Knockapi::Recipients::PreferenceSetChannelTypes?,
36
36
  channels: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::channel]?,
37
- commercial_subscribed: bool?,
37
+ commercial_subscribed: Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::commercial_subscribed?,
38
38
  workflows: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::workflow]?
39
39
  }
40
40
 
@@ -49,7 +49,7 @@ module Knockapi
49
49
 
50
50
  attr_accessor channels: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::channel]?
51
51
 
52
- attr_accessor commercial_subscribed: bool?
52
+ attr_accessor commercial_subscribed: Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::commercial_subscribed?
53
53
 
54
54
  attr_accessor workflows: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::workflow]?
55
55
 
@@ -58,7 +58,7 @@ module Knockapi
58
58
  ?categories: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::category]?,
59
59
  ?channel_types: Knockapi::Recipients::PreferenceSetChannelTypes?,
60
60
  ?channels: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::channel]?,
61
- ?commercial_subscribed: bool?,
61
+ ?commercial_subscribed: Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::commercial_subscribed?,
62
62
  ?workflows: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::workflow]?
63
63
  ) -> void
64
64
 
@@ -67,7 +67,7 @@ module Knockapi
67
67
  categories: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::category]?,
68
68
  channel_types: Knockapi::Recipients::PreferenceSetChannelTypes?,
69
69
  channels: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::channel]?,
70
- commercial_subscribed: bool?,
70
+ commercial_subscribed: Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::commercial_subscribed?,
71
71
  workflows: ::Hash[Symbol, Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::workflow]?
72
72
  }
73
73
 
@@ -126,6 +126,15 @@ module Knockapi
126
126
  def self?.variants: -> ::Array[Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::channel]
127
127
  end
128
128
 
129
+ type commercial_subscribed =
130
+ bool | Knockapi::PreferenceSetCommercialSubscribedSetting
131
+
132
+ module CommercialSubscribed
133
+ extend Knockapi::Internal::Type::Union
134
+
135
+ def self?.variants: -> ::Array[Knockapi::Models::Users::BulkSetPreferencesParams::Preferences::commercial_subscribed]
136
+ end
137
+
129
138
  type workflow =
130
139
  bool
131
140
  | Knockapi::Users::BulkSetPreferencesParams::Preferences::Workflow::PreferenceSetWorkflowCategorySettingObject
@@ -103,110 +103,12 @@ module Knockapi
103
103
  }
104
104
 
105
105
  type block =
106
- Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock
107
- | Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock
106
+ Knockapi::MessageInAppFeedContentBlock
107
+ | Knockapi::MessageInAppFeedButtonSetBlock
108
108
 
109
109
  module Block
110
110
  extend Knockapi::Internal::Type::Union
111
111
 
112
- type message_in_app_feed_content_block =
113
- {
114
- content: String,
115
- name: String,
116
- rendered: String,
117
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock::type_
118
- }
119
-
120
- class MessageInAppFeedContentBlock < Knockapi::Internal::Type::BaseModel
121
- attr_accessor content: String
122
-
123
- attr_accessor name: String
124
-
125
- attr_accessor rendered: String
126
-
127
- attr_accessor type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock::type_
128
-
129
- def initialize: (
130
- content: String,
131
- name: String,
132
- rendered: String,
133
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock::type_
134
- ) -> void
135
-
136
- def to_hash: -> {
137
- content: String,
138
- name: String,
139
- rendered: String,
140
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock::type_
141
- }
142
-
143
- type type_ = :markdown | :text
144
-
145
- module Type
146
- extend Knockapi::Internal::Type::Enum
147
-
148
- MARKDOWN: :markdown
149
- TEXT: :text
150
-
151
- def self?.values: -> ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedContentBlock::type_]
152
- end
153
- end
154
-
155
- type message_in_app_feed_button_set_block =
156
- {
157
- buttons: ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button],
158
- name: String,
159
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::type_
160
- }
161
-
162
- class MessageInAppFeedButtonSetBlock < Knockapi::Internal::Type::BaseModel
163
- attr_accessor buttons: ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button]
164
-
165
- attr_accessor name: String
166
-
167
- attr_accessor type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::type_
168
-
169
- def initialize: (
170
- buttons: ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button],
171
- name: String,
172
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::type_
173
- ) -> void
174
-
175
- def to_hash: -> {
176
- buttons: ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::Button],
177
- name: String,
178
- type: Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::type_
179
- }
180
-
181
- type button = { action: String, label: String, name: String }
182
-
183
- class Button < Knockapi::Internal::Type::BaseModel
184
- attr_accessor action: String
185
-
186
- attr_accessor label: String
187
-
188
- attr_accessor name: String
189
-
190
- def initialize: (
191
- action: String,
192
- label: String,
193
- name: String
194
- ) -> void
195
-
196
- def to_hash: -> { action: String, label: String, name: String }
197
- end
198
-
199
- type type_ = :button_set
200
-
201
- module Type
202
- extend Knockapi::Internal::Type::Enum
203
-
204
- BUTTON_SET: :button_set
205
-
206
- def self?.values: -> ::Array[Knockapi::Models::Users::FeedListItemsResponse::Block::MessageInAppFeedButtonSetBlock::type_]
207
- end
208
- end
209
-
210
112
  def self?.variants: -> ::Array[Knockapi::Models::Users::FeedListItemsResponse::block]
211
113
  end
212
114
 
@@ -1,9 +1,9 @@
1
1
  module Knockapi
2
2
  module Models
3
3
  module Users
4
- type guide_mark_message_as_seen_response = { status: String }
4
+ type guide_action_response = { status: String }
5
5
 
6
- class GuideMarkMessageAsSeenResponse < Knockapi::Internal::Type::BaseModel
6
+ class GuideActionResponse < Knockapi::Internal::Type::BaseModel
7
7
  attr_accessor status: String
8
8
 
9
9
  def initialize: (status: String) -> void
@@ -0,0 +1,58 @@
1
+ module Knockapi
2
+ module Models
3
+ module Users
4
+ type guide_archived_request =
5
+ {
6
+ channel_id: String,
7
+ guide_id: String,
8
+ guide_key: String,
9
+ guide_step_ref: String,
10
+ is_final: bool,
11
+ tenant: String,
12
+ unthrottled: bool
13
+ }
14
+
15
+ class GuideArchivedRequest < Knockapi::Internal::Type::BaseModel
16
+ attr_accessor channel_id: String
17
+
18
+ attr_accessor guide_id: String
19
+
20
+ attr_accessor guide_key: String
21
+
22
+ attr_accessor guide_step_ref: String
23
+
24
+ attr_reader is_final: bool?
25
+
26
+ def is_final=: (bool) -> bool
27
+
28
+ attr_reader tenant: String?
29
+
30
+ def tenant=: (String) -> String
31
+
32
+ attr_reader unthrottled: bool?
33
+
34
+ def unthrottled=: (bool) -> bool
35
+
36
+ def initialize: (
37
+ channel_id: String,
38
+ guide_id: String,
39
+ guide_key: String,
40
+ guide_step_ref: String,
41
+ ?is_final: bool,
42
+ ?tenant: String,
43
+ ?unthrottled: bool
44
+ ) -> void
45
+
46
+ def to_hash: -> {
47
+ channel_id: String,
48
+ guide_id: String,
49
+ guide_key: String,
50
+ guide_step_ref: String,
51
+ is_final: bool,
52
+ tenant: String,
53
+ unthrottled: bool
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,51 @@
1
+ module Knockapi
2
+ module Models
3
+ module Users
4
+ type guide_interacted_request =
5
+ {
6
+ channel_id: String,
7
+ guide_id: String,
8
+ guide_key: String,
9
+ guide_step_ref: String,
10
+ metadata: ::Hash[Symbol, top],
11
+ tenant: String
12
+ }
13
+
14
+ class GuideInteractedRequest < Knockapi::Internal::Type::BaseModel
15
+ attr_accessor channel_id: String
16
+
17
+ attr_accessor guide_id: String
18
+
19
+ attr_accessor guide_key: String
20
+
21
+ attr_accessor guide_step_ref: String
22
+
23
+ attr_reader metadata: ::Hash[Symbol, top]?
24
+
25
+ def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
26
+
27
+ attr_reader tenant: String?
28
+
29
+ def tenant=: (String) -> String
30
+
31
+ def initialize: (
32
+ channel_id: String,
33
+ guide_id: String,
34
+ guide_key: String,
35
+ guide_step_ref: String,
36
+ ?metadata: ::Hash[Symbol, top],
37
+ ?tenant: String
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ channel_id: String,
42
+ guide_id: String,
43
+ guide_key: String,
44
+ guide_step_ref: String,
45
+ metadata: ::Hash[Symbol, top],
46
+ tenant: String
47
+ }
48
+ end
49
+ end
50
+ end
51
+ end
@@ -2,82 +2,23 @@ module Knockapi
2
2
  module Models
3
3
  module Users
4
4
  type guide_mark_message_as_archived_params =
5
- {
6
- user_id: String,
7
- message_id: String,
8
- channel_id: String,
9
- guide_id: String,
10
- guide_key: String,
11
- guide_step_ref: String,
12
- content: ::Hash[Symbol, top],
13
- data: ::Hash[Symbol, top],
14
- is_final: bool,
15
- metadata: ::Hash[Symbol, top],
16
- tenant: String?
17
- }
18
- & Knockapi::Internal::Type::request_parameters
5
+ { user_id: String } & Knockapi::Internal::Type::request_parameters
19
6
 
20
- class GuideMarkMessageAsArchivedParams < Knockapi::Internal::Type::BaseModel
7
+ class GuideMarkMessageAsArchivedParams < Knockapi::Models::Users::GuideArchivedRequest
21
8
  extend Knockapi::Internal::Type::RequestParameters::Converter
22
9
  include Knockapi::Internal::Type::RequestParameters
23
10
 
24
- attr_accessor user_id: String
25
-
26
- attr_accessor message_id: String
27
-
28
- attr_accessor channel_id: String
29
-
30
- attr_accessor guide_id: String
31
-
32
- attr_accessor guide_key: String
33
-
34
- attr_accessor guide_step_ref: String
35
-
36
- attr_reader content: ::Hash[Symbol, top]?
37
-
38
- def content=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
39
-
40
- attr_reader data: ::Hash[Symbol, top]?
41
-
42
- def data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
43
-
44
- attr_reader is_final: bool?
45
-
46
- def is_final=: (bool) -> bool
47
-
48
- attr_reader metadata: ::Hash[Symbol, top]?
49
-
50
- def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
11
+ def user_id: -> String
51
12
 
52
- attr_accessor tenant: String?
13
+ def user_id=: (String _) -> String
53
14
 
54
15
  def initialize: (
55
16
  user_id: String,
56
- message_id: String,
57
- channel_id: String,
58
- guide_id: String,
59
- guide_key: String,
60
- guide_step_ref: String,
61
- ?content: ::Hash[Symbol, top],
62
- ?data: ::Hash[Symbol, top],
63
- ?is_final: bool,
64
- ?metadata: ::Hash[Symbol, top],
65
- ?tenant: String?,
66
17
  ?request_options: Knockapi::request_opts
67
18
  ) -> void
68
19
 
69
20
  def to_hash: -> {
70
21
  user_id: String,
71
- message_id: String,
72
- channel_id: String,
73
- guide_id: String,
74
- guide_key: String,
75
- guide_step_ref: String,
76
- content: ::Hash[Symbol, top],
77
- data: ::Hash[Symbol, top],
78
- is_final: bool,
79
- metadata: ::Hash[Symbol, top],
80
- tenant: String?,
81
22
  request_options: Knockapi::RequestOptions
82
23
  }
83
24
  end
@@ -2,82 +2,23 @@ module Knockapi
2
2
  module Models
3
3
  module Users
4
4
  type guide_mark_message_as_interacted_params =
5
- {
6
- user_id: String,
7
- message_id: String,
8
- channel_id: String,
9
- guide_id: String,
10
- guide_key: String,
11
- guide_step_ref: String,
12
- content: ::Hash[Symbol, top],
13
- data: ::Hash[Symbol, top],
14
- is_final: bool,
15
- metadata: ::Hash[Symbol, top],
16
- tenant: String?
17
- }
18
- & Knockapi::Internal::Type::request_parameters
5
+ { user_id: String } & Knockapi::Internal::Type::request_parameters
19
6
 
20
- class GuideMarkMessageAsInteractedParams < Knockapi::Internal::Type::BaseModel
7
+ class GuideMarkMessageAsInteractedParams < Knockapi::Models::Users::GuideInteractedRequest
21
8
  extend Knockapi::Internal::Type::RequestParameters::Converter
22
9
  include Knockapi::Internal::Type::RequestParameters
23
10
 
24
- attr_accessor user_id: String
25
-
26
- attr_accessor message_id: String
27
-
28
- attr_accessor channel_id: String
29
-
30
- attr_accessor guide_id: String
31
-
32
- attr_accessor guide_key: String
33
-
34
- attr_accessor guide_step_ref: String
35
-
36
- attr_reader content: ::Hash[Symbol, top]?
37
-
38
- def content=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
39
-
40
- attr_reader data: ::Hash[Symbol, top]?
41
-
42
- def data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
43
-
44
- attr_reader is_final: bool?
45
-
46
- def is_final=: (bool) -> bool
47
-
48
- attr_reader metadata: ::Hash[Symbol, top]?
49
-
50
- def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
11
+ def user_id: -> String
51
12
 
52
- attr_accessor tenant: String?
13
+ def user_id=: (String _) -> String
53
14
 
54
15
  def initialize: (
55
16
  user_id: String,
56
- message_id: String,
57
- channel_id: String,
58
- guide_id: String,
59
- guide_key: String,
60
- guide_step_ref: String,
61
- ?content: ::Hash[Symbol, top],
62
- ?data: ::Hash[Symbol, top],
63
- ?is_final: bool,
64
- ?metadata: ::Hash[Symbol, top],
65
- ?tenant: String?,
66
17
  ?request_options: Knockapi::request_opts
67
18
  ) -> void
68
19
 
69
20
  def to_hash: -> {
70
21
  user_id: String,
71
- message_id: String,
72
- channel_id: String,
73
- guide_id: String,
74
- guide_key: String,
75
- guide_step_ref: String,
76
- content: ::Hash[Symbol, top],
77
- data: ::Hash[Symbol, top],
78
- is_final: bool,
79
- metadata: ::Hash[Symbol, top],
80
- tenant: String?,
81
22
  request_options: Knockapi::RequestOptions
82
23
  }
83
24
  end
@@ -2,82 +2,23 @@ module Knockapi
2
2
  module Models
3
3
  module Users
4
4
  type guide_mark_message_as_seen_params =
5
- {
6
- user_id: String,
7
- message_id: String,
8
- channel_id: String,
9
- guide_id: String,
10
- guide_key: String,
11
- guide_step_ref: String,
12
- content: ::Hash[Symbol, top],
13
- data: ::Hash[Symbol, top],
14
- is_final: bool,
15
- metadata: ::Hash[Symbol, top],
16
- tenant: String?
17
- }
18
- & Knockapi::Internal::Type::request_parameters
5
+ { user_id: String } & Knockapi::Internal::Type::request_parameters
19
6
 
20
- class GuideMarkMessageAsSeenParams < Knockapi::Internal::Type::BaseModel
7
+ class GuideMarkMessageAsSeenParams < Knockapi::Models::Users::GuideSeenRequest
21
8
  extend Knockapi::Internal::Type::RequestParameters::Converter
22
9
  include Knockapi::Internal::Type::RequestParameters
23
10
 
24
- attr_accessor user_id: String
25
-
26
- attr_accessor message_id: String
27
-
28
- attr_accessor channel_id: String
29
-
30
- attr_accessor guide_id: String
31
-
32
- attr_accessor guide_key: String
33
-
34
- attr_accessor guide_step_ref: String
35
-
36
- attr_reader content: ::Hash[Symbol, top]?
37
-
38
- def content=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
39
-
40
- attr_reader data: ::Hash[Symbol, top]?
41
-
42
- def data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
43
-
44
- attr_reader is_final: bool?
45
-
46
- def is_final=: (bool) -> bool
47
-
48
- attr_reader metadata: ::Hash[Symbol, top]?
49
-
50
- def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
11
+ def user_id: -> String
51
12
 
52
- attr_accessor tenant: String?
13
+ def user_id=: (String _) -> String
53
14
 
54
15
  def initialize: (
55
16
  user_id: String,
56
- message_id: String,
57
- channel_id: String,
58
- guide_id: String,
59
- guide_key: String,
60
- guide_step_ref: String,
61
- ?content: ::Hash[Symbol, top],
62
- ?data: ::Hash[Symbol, top],
63
- ?is_final: bool,
64
- ?metadata: ::Hash[Symbol, top],
65
- ?tenant: String?,
66
17
  ?request_options: Knockapi::request_opts
67
18
  ) -> void
68
19
 
69
20
  def to_hash: -> {
70
21
  user_id: String,
71
- message_id: String,
72
- channel_id: String,
73
- guide_id: String,
74
- guide_key: String,
75
- guide_step_ref: String,
76
- content: ::Hash[Symbol, top],
77
- data: ::Hash[Symbol, top],
78
- is_final: bool,
79
- metadata: ::Hash[Symbol, top],
80
- tenant: String?,
81
22
  request_options: Knockapi::RequestOptions
82
23
  }
83
24
  end
@@ -0,0 +1,36 @@
1
+ module Knockapi
2
+ module Models
3
+ module Users
4
+ type guide_reset_guide_engagements_params =
5
+ { user_id: String, guide_key: String, tenant: String }
6
+ & Knockapi::Internal::Type::request_parameters
7
+
8
+ class GuideResetGuideEngagementsParams < Knockapi::Internal::Type::BaseModel
9
+ extend Knockapi::Internal::Type::RequestParameters::Converter
10
+ include Knockapi::Internal::Type::RequestParameters
11
+
12
+ attr_accessor user_id: String
13
+
14
+ attr_accessor guide_key: String
15
+
16
+ attr_reader tenant: String?
17
+
18
+ def tenant=: (String) -> String
19
+
20
+ def initialize: (
21
+ user_id: String,
22
+ guide_key: String,
23
+ ?tenant: String,
24
+ ?request_options: Knockapi::request_opts
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ user_id: String,
29
+ guide_key: String,
30
+ tenant: String,
31
+ request_options: Knockapi::RequestOptions
32
+ }
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,56 @@
1
+ module Knockapi
2
+ module Models
3
+ module Users
4
+ type guide_seen_request =
5
+ {
6
+ channel_id: String,
7
+ content: ::Hash[Symbol, top],
8
+ guide_id: String,
9
+ guide_key: String,
10
+ guide_step_ref: String,
11
+ data: ::Hash[Symbol, top],
12
+ tenant: String
13
+ }
14
+
15
+ class GuideSeenRequest < Knockapi::Internal::Type::BaseModel
16
+ attr_accessor channel_id: String
17
+
18
+ attr_accessor content: ::Hash[Symbol, top]
19
+
20
+ attr_accessor guide_id: String
21
+
22
+ attr_accessor guide_key: String
23
+
24
+ attr_accessor guide_step_ref: String
25
+
26
+ attr_reader data: ::Hash[Symbol, top]?
27
+
28
+ def data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
29
+
30
+ attr_reader tenant: String?
31
+
32
+ def tenant=: (String) -> String
33
+
34
+ def initialize: (
35
+ channel_id: String,
36
+ content: ::Hash[Symbol, top],
37
+ guide_id: String,
38
+ guide_key: String,
39
+ guide_step_ref: String,
40
+ ?data: ::Hash[Symbol, top],
41
+ ?tenant: String
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ channel_id: String,
46
+ content: ::Hash[Symbol, top],
47
+ guide_id: String,
48
+ guide_key: String,
49
+ guide_step_ref: String,
50
+ data: ::Hash[Symbol, top],
51
+ tenant: String
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end