knockapi 1.1.0 → 1.3.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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +4 -4
  4. data/SECURITY.md +2 -2
  5. data/lib/knockapi/internal/items_cursor.rb +2 -2
  6. data/lib/knockapi/internal/type/array_of.rb +8 -0
  7. data/lib/knockapi/internal/type/base_model.rb +7 -0
  8. data/lib/knockapi/internal/type/boolean.rb +8 -0
  9. data/lib/knockapi/internal/type/enum.rb +12 -0
  10. data/lib/knockapi/internal/type/file_input.rb +7 -0
  11. data/lib/knockapi/internal/type/hash_of.rb +8 -0
  12. data/lib/knockapi/internal/type/union.rb +12 -0
  13. data/lib/knockapi/internal/type/unknown.rb +8 -0
  14. data/lib/knockapi/internal/util.rb +54 -1
  15. data/lib/knockapi/internal.rb +3 -0
  16. data/lib/knockapi/models/activity.rb +4 -4
  17. data/lib/knockapi/models/audience_add_members_params.rb +5 -5
  18. data/lib/knockapi/models/audience_list_members_response.rb +4 -4
  19. data/lib/knockapi/models/audience_member.rb +4 -4
  20. data/lib/knockapi/models/audience_remove_members_params.rb +5 -5
  21. data/lib/knockapi/models/bulk_operation.rb +5 -5
  22. data/lib/knockapi/models/channels/bulk_update_message_status_params.rb +6 -6
  23. data/lib/knockapi/models/condition.rb +3 -3
  24. data/lib/knockapi/models/identify_user_request.rb +5 -5
  25. data/lib/knockapi/models/inline_identify_user_request.rb +5 -5
  26. data/lib/knockapi/models/inline_object_request.rb +4 -4
  27. data/lib/knockapi/models/inline_tenant_request.rb +1 -5
  28. data/lib/knockapi/models/message.rb +14 -14
  29. data/lib/knockapi/models/message_delivery_log.rb +13 -21
  30. data/lib/knockapi/models/message_event.rb +7 -7
  31. data/lib/knockapi/models/message_get_content_response.rb +0 -21
  32. data/lib/knockapi/models/message_list_params.rb +11 -8
  33. data/lib/knockapi/models/messages/batch_archive_response.rb +1 -1
  34. data/lib/knockapi/models/messages/batch_get_content_response.rb +0 -21
  35. data/lib/knockapi/models/messages/batch_mark_as_interacted_response.rb +1 -1
  36. data/lib/knockapi/models/messages/batch_mark_as_read_response.rb +1 -1
  37. data/lib/knockapi/models/messages/batch_mark_as_seen_response.rb +1 -1
  38. data/lib/knockapi/models/messages/batch_mark_as_unread_response.rb +1 -1
  39. data/lib/knockapi/models/messages/batch_mark_as_unseen_response.rb +1 -1
  40. data/lib/knockapi/models/messages/batch_unarchive_response.rb +1 -1
  41. data/lib/knockapi/models/object_add_subscriptions_params.rb +2 -2
  42. data/lib/knockapi/models/object_delete_subscriptions_params.rb +2 -2
  43. data/lib/knockapi/models/object_list_messages_params.rb +11 -8
  44. data/lib/knockapi/models/object_list_params.rb +2 -2
  45. data/lib/knockapi/models/object_list_subscriptions_params.rb +8 -8
  46. data/lib/knockapi/models/object_set_params.rb +4 -4
  47. data/lib/knockapi/models/objects/bulk_add_subscriptions_params.rb +6 -5
  48. data/lib/knockapi/models/objects/bulk_set_params.rb +2 -2
  49. data/lib/knockapi/models/providers/ms_team_list_channels_params.rb +4 -3
  50. data/lib/knockapi/models/providers/ms_team_list_teams_params.rb +4 -3
  51. data/lib/knockapi/models/providers/slack_list_channels_params.rb +4 -3
  52. data/lib/knockapi/models/recipient.rb +1 -5
  53. data/lib/knockapi/models/recipient_reference.rb +1 -5
  54. data/lib/knockapi/models/recipient_request.rb +1 -5
  55. data/lib/knockapi/models/recipients/channel_data.rb +7 -19
  56. data/lib/knockapi/models/recipients/channel_data_request.rb +4 -16
  57. data/lib/knockapi/models/recipients/discord_channel_data.rb +6 -15
  58. data/lib/knockapi/models/recipients/inline_channel_data_request.rb +1 -13
  59. data/lib/knockapi/models/recipients/ms_teams_channel_data.rb +6 -15
  60. data/lib/knockapi/models/recipients/preference_set.rb +17 -35
  61. data/lib/knockapi/models/recipients/preference_set_channel_type_setting.rb +2 -2
  62. data/lib/knockapi/models/recipients/preference_set_channel_types.rb +24 -48
  63. data/lib/knockapi/models/recipients/preference_set_request.rb +17 -35
  64. data/lib/knockapi/models/recipients/slack_channel_data.rb +6 -15
  65. data/lib/knockapi/models/recipients/subscription.rb +4 -4
  66. data/lib/knockapi/models/schedule.rb +13 -10
  67. data/lib/knockapi/models/schedule_create_params.rb +14 -8
  68. data/lib/knockapi/models/schedule_repeat_rule.rb +5 -5
  69. data/lib/knockapi/models/schedule_update_params.rb +11 -8
  70. data/lib/knockapi/models/schedules/bulk_create_params.rb +16 -13
  71. data/lib/knockapi/models/tenant.rb +10 -10
  72. data/lib/knockapi/models/tenant_request.rb +13 -13
  73. data/lib/knockapi/models/tenant_set_params.rb +12 -12
  74. data/lib/knockapi/models/tenants/bulk_set_params.rb +2 -2
  75. data/lib/knockapi/models/user.rb +2 -2
  76. data/lib/knockapi/models/user_list_messages_params.rb +11 -8
  77. data/lib/knockapi/models/user_list_params.rb +2 -2
  78. data/lib/knockapi/models/user_list_subscriptions_params.rb +2 -2
  79. data/lib/knockapi/models/users/bulk_identify_params.rb +2 -2
  80. data/lib/knockapi/models/users/bulk_set_preferences_params.rb +2 -2
  81. data/lib/knockapi/models/users/feed_list_items_params.rb +4 -4
  82. data/lib/knockapi/models/users/feed_list_items_response.rb +4 -13
  83. data/lib/knockapi/models/workflow_cancel_params.rb +2 -2
  84. data/lib/knockapi/models/workflow_trigger_params.rb +11 -8
  85. data/lib/knockapi/models.rb +30 -19
  86. data/lib/knockapi/resources/audiences.rb +2 -2
  87. data/lib/knockapi/resources/bulk_operations.rb +1 -1
  88. data/lib/knockapi/resources/channels/bulk.rb +5 -5
  89. data/lib/knockapi/resources/messages/batch.rb +14 -14
  90. data/lib/knockapi/resources/messages.rb +18 -18
  91. data/lib/knockapi/resources/objects/bulk.rb +5 -5
  92. data/lib/knockapi/resources/objects.rb +30 -30
  93. data/lib/knockapi/resources/providers/ms_teams.rb +2 -2
  94. data/lib/knockapi/resources/providers/slack.rb +1 -1
  95. data/lib/knockapi/resources/schedules/bulk.rb +2 -2
  96. data/lib/knockapi/resources/schedules.rb +15 -12
  97. data/lib/knockapi/resources/tenants/bulk.rb +3 -3
  98. data/lib/knockapi/resources/tenants.rb +6 -6
  99. data/lib/knockapi/resources/users/bulk.rb +5 -5
  100. data/lib/knockapi/resources/users/feeds.rb +2 -2
  101. data/lib/knockapi/resources/users.rb +24 -24
  102. data/lib/knockapi/resources/workflows.rb +5 -5
  103. data/lib/knockapi/version.rb +1 -1
  104. data/lib/knockapi.rb +3 -1
  105. data/rbi/knockapi/internal/type/array_of.rbi +6 -0
  106. data/rbi/knockapi/internal/type/base_model.rbi +5 -0
  107. data/rbi/knockapi/internal/type/boolean.rbi +6 -0
  108. data/rbi/knockapi/internal/type/enum.rbi +5 -0
  109. data/rbi/knockapi/internal/type/file_input.rbi +5 -0
  110. data/rbi/knockapi/internal/type/hash_of.rbi +6 -0
  111. data/rbi/knockapi/internal/type/union.rbi +5 -0
  112. data/rbi/knockapi/internal/type/unknown.rbi +6 -0
  113. data/rbi/knockapi/internal/util.rbi +34 -0
  114. data/rbi/knockapi/internal.rbi +3 -0
  115. data/rbi/knockapi/models/activity.rbi +4 -4
  116. data/rbi/knockapi/models/message.rbi +4 -20
  117. data/rbi/knockapi/models/message_delivery_log.rbi +24 -8
  118. data/rbi/knockapi/models/message_event.rbi +2 -5
  119. data/rbi/knockapi/models/message_get_content_response.rbi +4 -25
  120. data/rbi/knockapi/models/message_list_params.rbi +19 -4
  121. data/rbi/knockapi/models/messages/batch_archive_response.rbi +1 -1
  122. data/rbi/knockapi/models/messages/batch_get_content_response.rbi +4 -22
  123. data/rbi/knockapi/models/messages/batch_mark_as_interacted_response.rbi +1 -1
  124. data/rbi/knockapi/models/messages/batch_mark_as_read_response.rbi +1 -1
  125. data/rbi/knockapi/models/messages/batch_mark_as_seen_response.rbi +1 -1
  126. data/rbi/knockapi/models/messages/batch_mark_as_unread_response.rbi +1 -1
  127. data/rbi/knockapi/models/messages/batch_mark_as_unseen_response.rbi +1 -1
  128. data/rbi/knockapi/models/messages/batch_unarchive_response.rbi +1 -1
  129. data/rbi/knockapi/models/object_list_messages_params.rbi +19 -4
  130. data/rbi/knockapi/models/recipients/channel_data.rbi +2 -17
  131. data/rbi/knockapi/models/recipients/preference_set.rbi +4 -16
  132. data/rbi/knockapi/models/recipients/subscription.rbi +2 -2
  133. data/rbi/knockapi/models/schedule.rbi +12 -6
  134. data/rbi/knockapi/models/schedule_create_params.rbi +8 -2
  135. data/rbi/knockapi/models/schedule_update_params.rbi +8 -2
  136. data/rbi/knockapi/models/schedules/bulk_create_params.rbi +8 -2
  137. data/rbi/knockapi/models/user_list_messages_params.rbi +19 -4
  138. data/rbi/knockapi/models/users/feed_list_items_response.rbi +4 -10
  139. data/rbi/knockapi/models/workflow_trigger_params.rbi +8 -2
  140. data/rbi/knockapi/resources/messages/batch.rbi +7 -7
  141. data/rbi/knockapi/resources/messages.rbi +3 -5
  142. data/rbi/knockapi/resources/objects.rbi +1 -1
  143. data/rbi/knockapi/resources/schedules.rbi +8 -2
  144. data/rbi/knockapi/resources/users.rbi +1 -1
  145. data/rbi/knockapi/resources/workflows.rbi +4 -1
  146. data/sig/knockapi/internal/entries_cursor.rbs +2 -0
  147. data/sig/knockapi/internal/items_cursor.rbs +2 -0
  148. data/sig/knockapi/internal/type/array_of.rbs +3 -0
  149. data/sig/knockapi/internal/type/base_model.rbs +2 -0
  150. data/sig/knockapi/internal/type/boolean.rbs +3 -0
  151. data/sig/knockapi/internal/type/enum.rbs +2 -0
  152. data/sig/knockapi/internal/type/file_input.rbs +2 -0
  153. data/sig/knockapi/internal/type/hash_of.rbs +3 -0
  154. data/sig/knockapi/internal/type/union.rbs +2 -0
  155. data/sig/knockapi/internal/type/unknown.rbs +3 -0
  156. data/sig/knockapi/internal/util.rbs +12 -0
  157. data/sig/knockapi/internal.rbs +2 -0
  158. data/sig/knockapi/models/activity.rbs +10 -0
  159. data/sig/knockapi/models/audience_add_members_params.rbs +12 -0
  160. data/sig/knockapi/models/audience_list_members_params.rbs +2 -0
  161. data/sig/knockapi/models/audience_list_members_response.rbs +5 -0
  162. data/sig/knockapi/models/audience_member.rbs +8 -0
  163. data/sig/knockapi/models/audience_remove_members_params.rbs +12 -0
  164. data/sig/knockapi/models/bulk_operation.rbs +24 -4
  165. data/sig/knockapi/models/bulk_operation_get_params.rbs +2 -0
  166. data/sig/knockapi/models/channels/bulk_update_message_status_params.rbs +14 -0
  167. data/sig/knockapi/models/condition.rbs +10 -4
  168. data/sig/knockapi/models/identify_user_request.rbs +12 -0
  169. data/sig/knockapi/models/inline_identify_user_request.rbs +13 -0
  170. data/sig/knockapi/models/inline_object_request.rbs +8 -0
  171. data/sig/knockapi/models/integrations/census_custom_destination_params.rbs +8 -0
  172. data/sig/knockapi/models/integrations/census_custom_destination_response.rbs +2 -0
  173. data/sig/knockapi/models/integrations/hightouch_embedded_destination_params.rbs +8 -0
  174. data/sig/knockapi/models/integrations/hightouch_embedded_destination_response.rbs +2 -0
  175. data/sig/knockapi/models/message.rbs +44 -11
  176. data/sig/knockapi/models/message_archive_params.rbs +2 -0
  177. data/sig/knockapi/models/message_delivery_log.rbs +43 -18
  178. data/sig/knockapi/models/message_event.rbs +13 -4
  179. data/sig/knockapi/models/message_get_content_params.rbs +2 -0
  180. data/sig/knockapi/models/message_get_content_response.rbs +68 -0
  181. data/sig/knockapi/models/message_get_params.rbs +2 -0
  182. data/sig/knockapi/models/message_list_activities_params.rbs +8 -0
  183. data/sig/knockapi/models/message_list_delivery_logs_params.rbs +7 -0
  184. data/sig/knockapi/models/message_list_events_params.rbs +7 -0
  185. data/sig/knockapi/models/message_list_params.rbs +45 -15
  186. data/sig/knockapi/models/message_mark_as_interacted_params.rbs +5 -0
  187. data/sig/knockapi/models/message_mark_as_read_params.rbs +2 -0
  188. data/sig/knockapi/models/message_mark_as_seen_params.rbs +2 -0
  189. data/sig/knockapi/models/message_mark_as_unread_params.rbs +2 -0
  190. data/sig/knockapi/models/message_mark_as_unseen_params.rbs +2 -0
  191. data/sig/knockapi/models/message_unarchive_params.rbs +2 -0
  192. data/sig/knockapi/models/messages/batch_archive_params.rbs +5 -0
  193. data/sig/knockapi/models/messages/batch_archive_response.rbs +1 -1
  194. data/sig/knockapi/models/messages/batch_get_content_params.rbs +5 -0
  195. data/sig/knockapi/models/messages/batch_get_content_response.rbs +72 -0
  196. data/sig/knockapi/models/messages/batch_mark_as_interacted_params.rbs +6 -0
  197. data/sig/knockapi/models/messages/batch_mark_as_interacted_response.rbs +2 -1
  198. data/sig/knockapi/models/messages/batch_mark_as_read_params.rbs +5 -0
  199. data/sig/knockapi/models/messages/batch_mark_as_read_response.rbs +1 -1
  200. data/sig/knockapi/models/messages/batch_mark_as_seen_params.rbs +5 -0
  201. data/sig/knockapi/models/messages/batch_mark_as_seen_response.rbs +1 -1
  202. data/sig/knockapi/models/messages/batch_mark_as_unread_params.rbs +5 -0
  203. data/sig/knockapi/models/messages/batch_mark_as_unread_response.rbs +1 -1
  204. data/sig/knockapi/models/messages/batch_mark_as_unseen_params.rbs +5 -0
  205. data/sig/knockapi/models/messages/batch_mark_as_unseen_response.rbs +1 -1
  206. data/sig/knockapi/models/messages/batch_unarchive_params.rbs +5 -0
  207. data/sig/knockapi/models/messages/batch_unarchive_response.rbs +1 -1
  208. data/sig/knockapi/models/object.rbs +9 -0
  209. data/sig/knockapi/models/object_add_subscriptions_params.rbs +6 -0
  210. data/sig/knockapi/models/object_delete_params.rbs +2 -0
  211. data/sig/knockapi/models/object_delete_subscriptions_params.rbs +5 -0
  212. data/sig/knockapi/models/object_get_channel_data_params.rbs +2 -0
  213. data/sig/knockapi/models/object_get_params.rbs +2 -0
  214. data/sig/knockapi/models/object_get_preferences_params.rbs +2 -0
  215. data/sig/knockapi/models/object_list_messages_params.rbs +45 -15
  216. data/sig/knockapi/models/object_list_params.rbs +14 -6
  217. data/sig/knockapi/models/object_list_preferences_params.rbs +2 -0
  218. data/sig/knockapi/models/object_list_schedules_params.rbs +9 -0
  219. data/sig/knockapi/models/object_list_subscriptions_params.rbs +19 -6
  220. data/sig/knockapi/models/object_set_channel_data_params.rbs +2 -0
  221. data/sig/knockapi/models/object_set_params.rbs +8 -0
  222. data/sig/knockapi/models/object_set_preferences_params.rbs +2 -0
  223. data/sig/knockapi/models/object_unset_channel_data_params.rbs +2 -0
  224. data/sig/knockapi/models/objects/bulk_add_subscriptions_params.rbs +10 -0
  225. data/sig/knockapi/models/objects/bulk_delete_params.rbs +5 -0
  226. data/sig/knockapi/models/objects/bulk_set_params.rbs +5 -0
  227. data/sig/knockapi/models/page_info.rbs +7 -0
  228. data/sig/knockapi/models/providers/ms_team_check_auth_params.rbs +5 -0
  229. data/sig/knockapi/models/providers/ms_team_check_auth_response.rbs +6 -0
  230. data/sig/knockapi/models/providers/ms_team_list_channels_params.rbs +9 -0
  231. data/sig/knockapi/models/providers/ms_team_list_channels_response.rbs +13 -0
  232. data/sig/knockapi/models/providers/ms_team_list_teams_params.rbs +13 -0
  233. data/sig/knockapi/models/providers/ms_team_list_teams_response.rbs +6 -0
  234. data/sig/knockapi/models/providers/ms_team_revoke_access_params.rbs +5 -0
  235. data/sig/knockapi/models/providers/ms_team_revoke_access_response.rbs +2 -0
  236. data/sig/knockapi/models/providers/slack_check_auth_params.rbs +5 -0
  237. data/sig/knockapi/models/providers/slack_check_auth_response.rbs +6 -0
  238. data/sig/knockapi/models/providers/slack_list_channels_params.rbs +14 -0
  239. data/sig/knockapi/models/providers/slack_list_channels_response.rbs +8 -0
  240. data/sig/knockapi/models/providers/slack_revoke_access_params.rbs +5 -0
  241. data/sig/knockapi/models/providers/slack_revoke_access_response.rbs +2 -0
  242. data/sig/knockapi/models/recipient_reference.rbs +2 -0
  243. data/sig/knockapi/models/recipients/channel_data.rbs +17 -10
  244. data/sig/knockapi/models/recipients/channel_data_request.rbs +8 -4
  245. data/sig/knockapi/models/recipients/discord_channel_data.rbs +16 -4
  246. data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +2 -2
  247. data/sig/knockapi/models/recipients/ms_teams_channel_data.rbs +22 -4
  248. data/sig/knockapi/models/recipients/one_signal_channel_data.rbs +2 -0
  249. data/sig/knockapi/models/recipients/preference_set.rbs +25 -8
  250. data/sig/knockapi/models/recipients/preference_set_channel_type_setting.rbs +2 -0
  251. data/sig/knockapi/models/recipients/preference_set_channel_types.rbs +45 -36
  252. data/sig/knockapi/models/recipients/preference_set_request.rbs +24 -8
  253. data/sig/knockapi/models/recipients/push_channel_data.rbs +2 -0
  254. data/sig/knockapi/models/recipients/slack_channel_data.rbs +19 -4
  255. data/sig/knockapi/models/recipients/subscription.rbs +9 -0
  256. data/sig/knockapi/models/schedule.rbs +15 -0
  257. data/sig/knockapi/models/schedule_create_params.rbs +11 -0
  258. data/sig/knockapi/models/schedule_delete_params.rbs +5 -0
  259. data/sig/knockapi/models/schedule_list_params.rbs +10 -0
  260. data/sig/knockapi/models/schedule_repeat_rule.rbs +18 -8
  261. data/sig/knockapi/models/schedule_update_params.rbs +11 -0
  262. data/sig/knockapi/models/schedules/bulk_create_params.rbs +16 -0
  263. data/sig/knockapi/models/tenant.rbs +19 -0
  264. data/sig/knockapi/models/tenant_delete_params.rbs +2 -0
  265. data/sig/knockapi/models/tenant_get_params.rbs +2 -0
  266. data/sig/knockapi/models/tenant_list_params.rbs +9 -0
  267. data/sig/knockapi/models/tenant_request.rbs +19 -0
  268. data/sig/knockapi/models/tenant_set_params.rbs +19 -0
  269. data/sig/knockapi/models/tenants/bulk_delete_params.rbs +5 -0
  270. data/sig/knockapi/models/tenants/bulk_set_params.rbs +5 -0
  271. data/sig/knockapi/models/user.rbs +12 -0
  272. data/sig/knockapi/models/user_delete_params.rbs +2 -0
  273. data/sig/knockapi/models/user_get_channel_data_params.rbs +2 -0
  274. data/sig/knockapi/models/user_get_params.rbs +2 -0
  275. data/sig/knockapi/models/user_get_preferences_params.rbs +5 -0
  276. data/sig/knockapi/models/user_list_messages_params.rbs +45 -15
  277. data/sig/knockapi/models/user_list_params.rbs +14 -6
  278. data/sig/knockapi/models/user_list_preferences_params.rbs +2 -0
  279. data/sig/knockapi/models/user_list_schedules_params.rbs +9 -0
  280. data/sig/knockapi/models/user_list_subscriptions_params.rbs +15 -6
  281. data/sig/knockapi/models/user_merge_params.rbs +5 -0
  282. data/sig/knockapi/models/user_set_channel_data_params.rbs +2 -0
  283. data/sig/knockapi/models/user_set_preferences_params.rbs +2 -0
  284. data/sig/knockapi/models/user_unset_channel_data_params.rbs +2 -0
  285. data/sig/knockapi/models/user_update_params.rbs +2 -0
  286. data/sig/knockapi/models/users/bulk_delete_params.rbs +5 -0
  287. data/sig/knockapi/models/users/bulk_identify_params.rbs +5 -0
  288. data/sig/knockapi/models/users/bulk_set_preferences_params.rbs +6 -0
  289. data/sig/knockapi/models/users/feed_get_settings_params.rbs +2 -0
  290. data/sig/knockapi/models/users/feed_get_settings_response.rbs +6 -0
  291. data/sig/knockapi/models/users/feed_list_items_params.rbs +14 -0
  292. data/sig/knockapi/models/users/feed_list_items_response.rbs +43 -0
  293. data/sig/knockapi/models/users/guide_get_channel_params.rbs +7 -0
  294. data/sig/knockapi/models/users/guide_get_channel_response.rbs +14 -0
  295. data/sig/knockapi/models/users/guide_mark_message_as_archived_params.rbs +13 -0
  296. data/sig/knockapi/models/users/guide_mark_message_as_archived_response.rbs +2 -0
  297. data/sig/knockapi/models/users/guide_mark_message_as_interacted_params.rbs +13 -0
  298. data/sig/knockapi/models/users/guide_mark_message_as_interacted_response.rbs +2 -0
  299. data/sig/knockapi/models/users/guide_mark_message_as_seen_params.rbs +13 -0
  300. data/sig/knockapi/models/users/guide_mark_message_as_seen_response.rbs +2 -0
  301. data/sig/knockapi/models/workflow_cancel_params.rbs +6 -0
  302. data/sig/knockapi/models/workflow_trigger_params.rbs +9 -0
  303. data/sig/knockapi/models/workflow_trigger_response.rbs +2 -0
  304. data/sig/knockapi/resources/messages.rbs +5 -5
  305. data/sig/knockapi/resources/objects.rbs +7 -7
  306. data/sig/knockapi/resources/users.rbs +7 -7
  307. metadata +2 -2
@@ -10,13 +10,13 @@ module Knockapi
10
10
  # @!attribute recipients
11
11
  # The recipients to set the schedule for. Limited to 100 recipients per request.
12
12
  #
13
- # @return [Array<String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest>]
13
+ # @return [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>]
14
14
  required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] }
15
15
 
16
16
  # @!attribute repeats
17
17
  # The repeat rule for the schedule.
18
18
  #
19
- # @return [Array<Knockapi::ScheduleRepeatRule>]
19
+ # @return [Array<Knockapi::Models::ScheduleRepeatRule>]
20
20
  required :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] }
21
21
 
22
22
  # @!attribute workflow
@@ -26,7 +26,10 @@ module Knockapi
26
26
  required :workflow, String
27
27
 
28
28
  # @!attribute data
29
- # An optional map of data to pass into the workflow execution.
29
+ # An optional map of data to pass into the workflow execution. There is a 1024
30
+ # byte limit on the size of any single string value (with the exception of
31
+ # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
32
+ # size of the full `data` payload.
30
33
  #
31
34
  # @return [Hash{Symbol=>Object}, nil]
32
35
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -46,23 +49,26 @@ module Knockapi
46
49
  # @!attribute tenant
47
50
  # An request to set a tenant inline.
48
51
  #
49
- # @return [String, Knockapi::TenantRequest, nil]
52
+ # @return [String, Knockapi::Models::TenantRequest, nil]
50
53
  optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true
51
54
 
52
55
  # @!method initialize(recipients:, repeats:, workflow:, data: nil, ending_at: nil, scheduled_at: nil, tenant: nil, request_options: {})
53
- # @param recipients [Array<String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest>] The recipients to set the schedule for. Limited to 100 recipients per request.
56
+ # Some parameter documentations has been truncated, see
57
+ # {Knockapi::Models::ScheduleCreateParams} for more details.
54
58
  #
55
- # @param repeats [Array<Knockapi::ScheduleRepeatRule>] The repeat rule for the schedule.
59
+ # @param recipients [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>] The recipients to set the schedule for. Limited to 100 recipients per request.
60
+ #
61
+ # @param repeats [Array<Knockapi::Models::ScheduleRepeatRule>] The repeat rule for the schedule.
56
62
  #
57
63
  # @param workflow [String] The key of the workflow.
58
64
  #
59
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution.
65
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
60
66
  #
61
67
  # @param ending_at [Time, nil] The ending date and time for the schedule.
62
68
  #
63
69
  # @param scheduled_at [Time, nil] The starting date and time for the schedule.
64
70
  #
65
- # @param tenant [String, Knockapi::TenantRequest, nil] An request to set a tenant inline.
71
+ # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
66
72
  #
67
73
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
68
74
  end
@@ -12,7 +12,7 @@ module Knockapi
12
12
  # @!attribute frequency
13
13
  # The frequency of the schedule.
14
14
  #
15
- # @return [Symbol, Knockapi::ScheduleRepeatRule::Frequency]
15
+ # @return [Symbol, Knockapi::Models::ScheduleRepeatRule::Frequency]
16
16
  required :frequency, enum: -> { Knockapi::ScheduleRepeatRule::Frequency }
17
17
 
18
18
  # @!attribute day_of_month
@@ -24,7 +24,7 @@ module Knockapi
24
24
  # @!attribute days
25
25
  # The days of the week to repeat the schedule.
26
26
  #
27
- # @return [Array<Symbol, Knockapi::ScheduleRepeatRule::Day>, nil]
27
+ # @return [Array<Symbol, Knockapi::Models::ScheduleRepeatRule::Day>, nil]
28
28
  optional :days,
29
29
  -> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::ScheduleRepeatRule::Day] },
30
30
  nil?: true
@@ -52,11 +52,11 @@ module Knockapi
52
52
  #
53
53
  # @param _typename [String] The typename of the schema.
54
54
  #
55
- # @param frequency [Symbol, Knockapi::ScheduleRepeatRule::Frequency] The frequency of the schedule.
55
+ # @param frequency [Symbol, Knockapi::Models::ScheduleRepeatRule::Frequency] The frequency of the schedule.
56
56
  #
57
57
  # @param day_of_month [Integer, nil] The day of the month to repeat the schedule.
58
58
  #
59
- # @param days [Array<Symbol, Knockapi::ScheduleRepeatRule::Day>, nil] The days of the week to repeat the schedule.
59
+ # @param days [Array<Symbol, Knockapi::Models::ScheduleRepeatRule::Day>, nil] The days of the week to repeat the schedule.
60
60
  #
61
61
  # @param hours [Integer, nil] The hour of the day to repeat the schedule.
62
62
  #
@@ -66,7 +66,7 @@ module Knockapi
66
66
 
67
67
  # The frequency of the schedule.
68
68
  #
69
- # @see Knockapi::ScheduleRepeatRule#frequency
69
+ # @see Knockapi::Models::ScheduleRepeatRule#frequency
70
70
  module Frequency
71
71
  extend Knockapi::Internal::Type::Enum
72
72
 
@@ -17,11 +17,14 @@ module Knockapi
17
17
  # A reference to a recipient, either a user identifier (string) or an object
18
18
  # reference (ID, collection).
19
19
  #
20
- # @return [String, Knockapi::RecipientReference::ObjectReference, nil]
20
+ # @return [String, Knockapi::Models::RecipientReference::ObjectReference, nil]
21
21
  optional :actor, union: -> { Knockapi::RecipientReference }, nil?: true
22
22
 
23
23
  # @!attribute data
24
- # An optional map of data to pass into the workflow execution.
24
+ # An optional map of data to pass into the workflow execution. There is a 1024
25
+ # byte limit on the size of any single string value (with the exception of
26
+ # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
27
+ # size of the full `data` payload.
25
28
  #
26
29
  # @return [Hash{Symbol=>Object}, nil]
27
30
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -35,7 +38,7 @@ module Knockapi
35
38
  # @!attribute repeats
36
39
  # The repeat rule for the schedule.
37
40
  #
38
- # @return [Array<Knockapi::ScheduleRepeatRule>, nil]
41
+ # @return [Array<Knockapi::Models::ScheduleRepeatRule>, nil]
39
42
  optional :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] }
40
43
 
41
44
  # @!attribute scheduled_at
@@ -47,7 +50,7 @@ module Knockapi
47
50
  # @!attribute tenant
48
51
  # An request to set a tenant inline.
49
52
  #
50
- # @return [String, Knockapi::TenantRequest, nil]
53
+ # @return [String, Knockapi::Models::TenantRequest, nil]
51
54
  optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true
52
55
 
53
56
  # @!method initialize(schedule_ids:, actor: nil, data: nil, ending_at: nil, repeats: nil, scheduled_at: nil, tenant: nil, request_options: {})
@@ -56,17 +59,17 @@ module Knockapi
56
59
  #
57
60
  # @param schedule_ids [Array<String>] A list of schedule IDs.
58
61
  #
59
- # @param actor [String, Knockapi::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
62
+ # @param actor [String, Knockapi::Models::RecipientReference::ObjectReference, nil] A reference to a recipient, either a user identifier (string) or an object refer
60
63
  #
61
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution.
64
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
62
65
  #
63
66
  # @param ending_at [Time, nil] The ending date and time for the schedule.
64
67
  #
65
- # @param repeats [Array<Knockapi::ScheduleRepeatRule>] The repeat rule for the schedule.
68
+ # @param repeats [Array<Knockapi::Models::ScheduleRepeatRule>] The repeat rule for the schedule.
66
69
  #
67
70
  # @param scheduled_at [Time, nil] The starting date and time for the schedule.
68
71
  #
69
- # @param tenant [String, Knockapi::TenantRequest, nil] An request to set a tenant inline.
72
+ # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
70
73
  #
71
74
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
72
75
  end
@@ -11,12 +11,12 @@ module Knockapi
11
11
  # @!attribute schedules
12
12
  # A list of schedules.
13
13
  #
14
- # @return [Array<Knockapi::Schedules::BulkCreateParams::Schedule>]
14
+ # @return [Array<Knockapi::Models::Schedules::BulkCreateParams::Schedule>]
15
15
  required :schedules,
16
16
  -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Schedules::BulkCreateParams::Schedule] }
17
17
 
18
18
  # @!method initialize(schedules:, request_options: {})
19
- # @param schedules [Array<Knockapi::Schedules::BulkCreateParams::Schedule>] A list of schedules.
19
+ # @param schedules [Array<Knockapi::Models::Schedules::BulkCreateParams::Schedule>] A list of schedules.
20
20
  #
21
21
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
22
22
 
@@ -32,11 +32,14 @@ module Knockapi
32
32
  # (string), an inline user request (object), or an inline object request, which is
33
33
  # determined by the presence of a `collection` property.
34
34
  #
35
- # @return [String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest, nil]
35
+ # @return [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil]
36
36
  optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true
37
37
 
38
38
  # @!attribute data
39
- # An optional map of data to pass into the workflow execution.
39
+ # An optional map of data to pass into the workflow execution. There is a 1024
40
+ # byte limit on the size of any single string value (with the exception of
41
+ # [email attachments](/integrations/email/attachments)), and a 10MB limit on the
42
+ # size of the full `data` payload.
40
43
  #
41
44
  # @return [Hash{Symbol=>Object}, nil]
42
45
  optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true
@@ -52,13 +55,13 @@ module Knockapi
52
55
  # (string), an inline user request (object), or an inline object request, which is
53
56
  # determined by the presence of a `collection` property.
54
57
  #
55
- # @return [String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest, nil]
58
+ # @return [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil]
56
59
  optional :recipient, union: -> { Knockapi::RecipientRequest }
57
60
 
58
61
  # @!attribute repeats
59
62
  # The repeat rule for the schedule.
60
63
  #
61
- # @return [Array<Knockapi::ScheduleRepeatRule>, nil]
64
+ # @return [Array<Knockapi::Models::ScheduleRepeatRule>, nil]
62
65
  optional :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] }
63
66
 
64
67
  # @!attribute scheduled_at
@@ -70,30 +73,30 @@ module Knockapi
70
73
  # @!attribute tenant
71
74
  # An request to set a tenant inline.
72
75
  #
73
- # @return [String, Knockapi::TenantRequest, nil]
76
+ # @return [String, Knockapi::Models::TenantRequest, nil]
74
77
  optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true
75
78
 
76
79
  # @!method initialize(workflow:, actor: nil, data: nil, ending_at: nil, recipient: nil, repeats: nil, scheduled_at: nil, tenant: nil)
77
80
  # Some parameter documentations has been truncated, see
78
- # {Knockapi::Schedules::BulkCreateParams::Schedule} for more details.
81
+ # {Knockapi::Models::Schedules::BulkCreateParams::Schedule} for more details.
79
82
  #
80
83
  # A schedule represents a recurring workflow execution.
81
84
  #
82
85
  # @param workflow [String] The key of the workflow.
83
86
  #
84
- # @param actor [String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
87
+ # @param actor [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest, nil] Specifies a recipient in a request. This can either be a user identifier (string
85
88
  #
86
- # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution.
89
+ # @param data [Hash{Symbol=>Object}, nil] An optional map of data to pass into the workflow execution. There is a 1024 byt
87
90
  #
88
91
  # @param ending_at [Time, nil] The ending date and time for the schedule.
89
92
  #
90
- # @param recipient [String, Knockapi::InlineIdentifyUserRequest, Knockapi::InlineObjectRequest] Specifies a recipient in a request. This can either be a user identifier (string
93
+ # @param recipient [String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest] Specifies a recipient in a request. This can either be a user identifier (string
91
94
  #
92
- # @param repeats [Array<Knockapi::ScheduleRepeatRule>] The repeat rule for the schedule.
95
+ # @param repeats [Array<Knockapi::Models::ScheduleRepeatRule>] The repeat rule for the schedule.
93
96
  #
94
97
  # @param scheduled_at [Time, nil] The starting date and time for the schedule.
95
98
  #
96
- # @param tenant [String, Knockapi::TenantRequest, nil] An request to set a tenant inline.
99
+ # @param tenant [String, Knockapi::Models::TenantRequest, nil] An request to set a tenant inline.
97
100
  end
98
101
  end
99
102
  end
@@ -25,7 +25,7 @@ module Knockapi
25
25
  # @!attribute settings
26
26
  # The settings for the tenant. Includes branding and preference set.
27
27
  #
28
- # @return [Knockapi::Tenant::Settings, nil]
28
+ # @return [Knockapi::Models::Tenant::Settings, nil]
29
29
  optional :settings, -> { Knockapi::Tenant::Settings }, nil?: true
30
30
 
31
31
  # @!method initialize(id:, _typename:, name: nil, settings: nil)
@@ -37,34 +37,34 @@ module Knockapi
37
37
  #
38
38
  # @param name [String, nil] An optional name for the tenant.
39
39
  #
40
- # @param settings [Knockapi::Tenant::Settings, nil] The settings for the tenant. Includes branding and preference set.
40
+ # @param settings [Knockapi::Models::Tenant::Settings, nil] The settings for the tenant. Includes branding and preference set.
41
41
 
42
- # @see Knockapi::Tenant#settings
42
+ # @see Knockapi::Models::Tenant#settings
43
43
  class Settings < Knockapi::Internal::Type::BaseModel
44
44
  # @!attribute branding
45
45
  # The branding for the tenant.
46
46
  #
47
- # @return [Knockapi::Tenant::Settings::Branding, nil]
47
+ # @return [Knockapi::Models::Tenant::Settings::Branding, nil]
48
48
  optional :branding, -> { Knockapi::Tenant::Settings::Branding }, nil?: true
49
49
 
50
50
  # @!attribute preference_set
51
51
  # A preference set represents a specific set of notification preferences for a
52
52
  # recipient. A recipient can have multiple preference sets.
53
53
  #
54
- # @return [Knockapi::Recipients::PreferenceSet, nil]
54
+ # @return [Knockapi::Models::Recipients::PreferenceSet, nil]
55
55
  optional :preference_set, -> { Knockapi::Recipients::PreferenceSet }, nil?: true
56
56
 
57
57
  # @!method initialize(branding: nil, preference_set: nil)
58
58
  # Some parameter documentations has been truncated, see
59
- # {Knockapi::Tenant::Settings} for more details.
59
+ # {Knockapi::Models::Tenant::Settings} for more details.
60
60
  #
61
61
  # The settings for the tenant. Includes branding and preference set.
62
62
  #
63
- # @param branding [Knockapi::Tenant::Settings::Branding, nil] The branding for the tenant.
63
+ # @param branding [Knockapi::Models::Tenant::Settings::Branding, nil] The branding for the tenant.
64
64
  #
65
- # @param preference_set [Knockapi::Recipients::PreferenceSet, nil] A preference set represents a specific set of notification preferences for a rec
65
+ # @param preference_set [Knockapi::Models::Recipients::PreferenceSet, nil] A preference set represents a specific set of notification preferences for a rec
66
66
 
67
- # @see Knockapi::Tenant::Settings#branding
67
+ # @see Knockapi::Models::Tenant::Settings#branding
68
68
  class Branding < Knockapi::Internal::Type::BaseModel
69
69
  # @!attribute icon_url
70
70
  # The icon URL for the tenant. Must point to a valid image with an image MIME
@@ -94,7 +94,7 @@ module Knockapi
94
94
 
95
95
  # @!method initialize(icon_url: nil, logo_url: nil, primary_color: nil, primary_color_contrast: nil)
96
96
  # Some parameter documentations has been truncated, see
97
- # {Knockapi::Tenant::Settings::Branding} for more details.
97
+ # {Knockapi::Models::Tenant::Settings::Branding} for more details.
98
98
  #
99
99
  # The branding for the tenant.
100
100
  #
@@ -12,7 +12,7 @@ module Knockapi
12
12
  # @!attribute channel_data
13
13
  # A request to set channel data for a type of channel inline.
14
14
  #
15
- # @return [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil]
15
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
16
16
  optional :channel_data,
17
17
  -> {
18
18
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::InlineChannelDataRequestItem]
@@ -22,7 +22,7 @@ module Knockapi
22
22
  # @!attribute preferences
23
23
  # Inline set preferences for a recipient, where the key is the preference set id.
24
24
  #
25
- # @return [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil]
25
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil]
26
26
  optional :preferences,
27
27
  -> { Knockapi::Internal::Type::HashOf[Knockapi::Recipients::PreferenceSetRequest] },
28
28
  nil?: true
@@ -30,7 +30,7 @@ module Knockapi
30
30
  # @!attribute settings
31
31
  # The settings for the tenant. Includes branding and preference set.
32
32
  #
33
- # @return [Knockapi::TenantRequest::Settings, nil]
33
+ # @return [Knockapi::Models::TenantRequest::Settings, nil]
34
34
  optional :settings, -> { Knockapi::TenantRequest::Settings }
35
35
 
36
36
  # @!method initialize(id:, channel_data: nil, preferences: nil, settings: nil)
@@ -39,34 +39,34 @@ module Knockapi
39
39
  #
40
40
  # @param id [String] The unique identifier for the tenant.
41
41
  #
42
- # @param channel_data [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
42
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
43
43
  #
44
- # @param preferences [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
44
+ # @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
45
45
  #
46
- # @param settings [Knockapi::TenantRequest::Settings] The settings for the tenant. Includes branding and preference set.
46
+ # @param settings [Knockapi::Models::TenantRequest::Settings] The settings for the tenant. Includes branding and preference set.
47
47
 
48
- # @see Knockapi::TenantRequest#settings
48
+ # @see Knockapi::Models::TenantRequest#settings
49
49
  class Settings < Knockapi::Internal::Type::BaseModel
50
50
  # @!attribute branding
51
51
  # The branding for the tenant.
52
52
  #
53
- # @return [Knockapi::TenantRequest::Settings::Branding, nil]
53
+ # @return [Knockapi::Models::TenantRequest::Settings::Branding, nil]
54
54
  optional :branding, -> { Knockapi::TenantRequest::Settings::Branding }
55
55
 
56
56
  # @!attribute preference_set
57
57
  # A request to set a preference set for a recipient.
58
58
  #
59
- # @return [Knockapi::Recipients::PreferenceSetRequest, nil]
59
+ # @return [Knockapi::Models::Recipients::PreferenceSetRequest, nil]
60
60
  optional :preference_set, -> { Knockapi::Recipients::PreferenceSetRequest }, nil?: true
61
61
 
62
62
  # @!method initialize(branding: nil, preference_set: nil)
63
63
  # The settings for the tenant. Includes branding and preference set.
64
64
  #
65
- # @param branding [Knockapi::TenantRequest::Settings::Branding] The branding for the tenant.
65
+ # @param branding [Knockapi::Models::TenantRequest::Settings::Branding] The branding for the tenant.
66
66
  #
67
- # @param preference_set [Knockapi::Recipients::PreferenceSetRequest, nil] A request to set a preference set for a recipient.
67
+ # @param preference_set [Knockapi::Models::Recipients::PreferenceSetRequest, nil] A request to set a preference set for a recipient.
68
68
 
69
- # @see Knockapi::TenantRequest::Settings#branding
69
+ # @see Knockapi::Models::TenantRequest::Settings#branding
70
70
  class Branding < Knockapi::Internal::Type::BaseModel
71
71
  # @!attribute icon_url
72
72
  # The icon URL for the tenant. Must point to a valid image with an image MIME
@@ -96,7 +96,7 @@ module Knockapi
96
96
 
97
97
  # @!method initialize(icon_url: nil, logo_url: nil, primary_color: nil, primary_color_contrast: nil)
98
98
  # Some parameter documentations has been truncated, see
99
- # {Knockapi::TenantRequest::Settings::Branding} for more details.
99
+ # {Knockapi::Models::TenantRequest::Settings::Branding} for more details.
100
100
  #
101
101
  # The branding for the tenant.
102
102
  #
@@ -10,7 +10,7 @@ module Knockapi
10
10
  # @!attribute channel_data
11
11
  # A request to set channel data for a type of channel inline.
12
12
  #
13
- # @return [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil]
13
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
14
14
  optional :channel_data,
15
15
  -> {
16
16
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::InlineChannelDataRequestItem]
@@ -20,7 +20,7 @@ module Knockapi
20
20
  # @!attribute preferences
21
21
  # Inline set preferences for a recipient, where the key is the preference set id.
22
22
  #
23
- # @return [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil]
23
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil]
24
24
  optional :preferences,
25
25
  -> { Knockapi::Internal::Type::HashOf[Knockapi::Recipients::PreferenceSetRequest] },
26
26
  nil?: true
@@ -28,15 +28,15 @@ module Knockapi
28
28
  # @!attribute settings
29
29
  # The settings for the tenant. Includes branding and preference set.
30
30
  #
31
- # @return [Knockapi::TenantSetParams::Settings, nil]
31
+ # @return [Knockapi::Models::TenantSetParams::Settings, nil]
32
32
  optional :settings, -> { Knockapi::TenantSetParams::Settings }
33
33
 
34
34
  # @!method initialize(channel_data: nil, preferences: nil, settings: nil, request_options: {})
35
- # @param channel_data [Hash{Symbol=>Knockapi::Recipients::PushChannelData, Knockapi::Recipients::OneSignalChannelData, Knockapi::Recipients::SlackChannelData, Knockapi::Recipients::MsTeamsChannelData, Knockapi::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
35
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelData, Knockapi::Models::Recipients::OneSignalChannelData, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
36
36
  #
37
- # @param preferences [Hash{Symbol=>Knockapi::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
37
+ # @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
38
38
  #
39
- # @param settings [Knockapi::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
39
+ # @param settings [Knockapi::Models::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
40
40
  #
41
41
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
42
42
 
@@ -44,23 +44,23 @@ module Knockapi
44
44
  # @!attribute branding
45
45
  # The branding for the tenant.
46
46
  #
47
- # @return [Knockapi::TenantSetParams::Settings::Branding, nil]
47
+ # @return [Knockapi::Models::TenantSetParams::Settings::Branding, nil]
48
48
  optional :branding, -> { Knockapi::TenantSetParams::Settings::Branding }
49
49
 
50
50
  # @!attribute preference_set
51
51
  # A request to set a preference set for a recipient.
52
52
  #
53
- # @return [Knockapi::Recipients::PreferenceSetRequest, nil]
53
+ # @return [Knockapi::Models::Recipients::PreferenceSetRequest, nil]
54
54
  optional :preference_set, -> { Knockapi::Recipients::PreferenceSetRequest }, nil?: true
55
55
 
56
56
  # @!method initialize(branding: nil, preference_set: nil)
57
57
  # The settings for the tenant. Includes branding and preference set.
58
58
  #
59
- # @param branding [Knockapi::TenantSetParams::Settings::Branding] The branding for the tenant.
59
+ # @param branding [Knockapi::Models::TenantSetParams::Settings::Branding] The branding for the tenant.
60
60
  #
61
- # @param preference_set [Knockapi::Recipients::PreferenceSetRequest, nil] A request to set a preference set for a recipient.
61
+ # @param preference_set [Knockapi::Models::Recipients::PreferenceSetRequest, nil] A request to set a preference set for a recipient.
62
62
 
63
- # @see Knockapi::TenantSetParams::Settings#branding
63
+ # @see Knockapi::Models::TenantSetParams::Settings#branding
64
64
  class Branding < Knockapi::Internal::Type::BaseModel
65
65
  # @!attribute icon_url
66
66
  # The icon URL for the tenant. Must point to a valid image with an image MIME
@@ -90,7 +90,7 @@ module Knockapi
90
90
 
91
91
  # @!method initialize(icon_url: nil, logo_url: nil, primary_color: nil, primary_color_contrast: nil)
92
92
  # Some parameter documentations has been truncated, see
93
- # {Knockapi::TenantSetParams::Settings::Branding} for more details.
93
+ # {Knockapi::Models::TenantSetParams::Settings::Branding} for more details.
94
94
  #
95
95
  # The branding for the tenant.
96
96
  #
@@ -11,11 +11,11 @@ module Knockapi
11
11
  # @!attribute tenants
12
12
  # The tenants to be upserted.
13
13
  #
14
- # @return [Array<String, Knockapi::TenantRequest>]
14
+ # @return [Array<String, Knockapi::Models::TenantRequest>]
15
15
  required :tenants, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::InlineTenantRequest] }
16
16
 
17
17
  # @!method initialize(tenants:, request_options: {})
18
- # @param tenants [Array<String, Knockapi::TenantRequest>] The tenants to be upserted.
18
+ # @param tenants [Array<String, Knockapi::Models::TenantRequest>] The tenants to be upserted.
19
19
  #
20
20
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
21
21
  end
@@ -63,8 +63,8 @@ module Knockapi
63
63
  optional :timezone, String, nil?: true
64
64
 
65
65
  # @!method initialize(id:, _typename:, updated_at:, avatar: nil, created_at: nil, email: nil, name: nil, phone_number: nil, timezone: nil)
66
- # Some parameter documentations has been truncated, see {Knockapi::User} for more
67
- # details.
66
+ # Some parameter documentations has been truncated, see {Knockapi::Models::User}
67
+ # for more details.
68
68
  #
69
69
  # A [User](/concepts/users) represents an individual in your system who can
70
70
  # receive notifications through Knock. Users are the most common recipients of
@@ -28,7 +28,7 @@ module Knockapi
28
28
  # @!attribute engagement_status
29
29
  # Limits the results to messages with the given engagement status.
30
30
  #
31
- # @return [Array<Symbol, Knockapi::UserListMessagesParams::EngagementStatus>, nil]
31
+ # @return [Array<Symbol, Knockapi::Models::UserListMessagesParams::EngagementStatus>, nil]
32
32
  optional :engagement_status,
33
33
  -> {
34
34
  Knockapi::Internal::Type::ArrayOf[enum: Knockapi::UserListMessagesParams::EngagementStatus]
@@ -36,7 +36,7 @@ module Knockapi
36
36
 
37
37
  # @!attribute inserted_at
38
38
  #
39
- # @return [Knockapi::UserListMessagesParams::InsertedAt, nil]
39
+ # @return [Knockapi::Models::UserListMessagesParams::InsertedAt, nil]
40
40
  optional :inserted_at, -> { Knockapi::UserListMessagesParams::InsertedAt }
41
41
 
42
42
  # @!attribute message_ids
@@ -61,7 +61,7 @@ module Knockapi
61
61
  # @!attribute status
62
62
  # Limits the results to messages with the given delivery status.
63
63
  #
64
- # @return [Array<Symbol, Knockapi::UserListMessagesParams::Status>, nil]
64
+ # @return [Array<Symbol, Knockapi::Models::UserListMessagesParams::Status>, nil]
65
65
  optional :status,
66
66
  -> {
67
67
  Knockapi::Internal::Type::ArrayOf[enum: Knockapi::UserListMessagesParams::Status]
@@ -110,9 +110,9 @@ module Knockapi
110
110
  #
111
111
  # @param channel_id [String] Limits the results to items with the corresponding channel ID.
112
112
  #
113
- # @param engagement_status [Array<Symbol, Knockapi::UserListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
113
+ # @param engagement_status [Array<Symbol, Knockapi::Models::UserListMessagesParams::EngagementStatus>] Limits the results to messages with the given engagement status.
114
114
  #
115
- # @param inserted_at [Knockapi::UserListMessagesParams::InsertedAt]
115
+ # @param inserted_at [Knockapi::Models::UserListMessagesParams::InsertedAt]
116
116
  #
117
117
  # @param message_ids [Array<String>] Limits the results to only the message IDs given (max 50). Note: when using this
118
118
  #
@@ -120,7 +120,7 @@ module Knockapi
120
120
  #
121
121
  # @param source [String] Limits the results to messages triggered by the given workflow key.
122
122
  #
123
- # @param status [Array<Symbol, Knockapi::UserListMessagesParams::Status>] Limits the results to messages with the given delivery status.
123
+ # @param status [Array<Symbol, Knockapi::Models::UserListMessagesParams::Status>] Limits the results to messages with the given delivery status.
124
124
  #
125
125
  # @param tenant [String] Limits the results to items with the corresponding tenant.
126
126
  #
@@ -138,10 +138,13 @@ module Knockapi
138
138
  extend Knockapi::Internal::Type::Enum
139
139
 
140
140
  SEEN = :seen
141
+ UNSEEN = :unseen
141
142
  READ = :read
142
- INTERACTED = :interacted
143
- LINK_CLICKED = :link_clicked
143
+ UNREAD = :unread
144
144
  ARCHIVED = :archived
145
+ UNARCHIVED = :unarchived
146
+ LINK_CLICKED = :link_clicked
147
+ INTERACTED = :interacted
145
148
 
146
149
  # @!method self.values
147
150
  # @return [Array<Symbol>]
@@ -22,7 +22,7 @@ module Knockapi
22
22
  # @!attribute include
23
23
  # Associated resources to include in the response.
24
24
  #
25
- # @return [Array<Symbol, Knockapi::UserListParams::Include>, nil]
25
+ # @return [Array<Symbol, Knockapi::Models::UserListParams::Include>, nil]
26
26
  optional :include, -> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::UserListParams::Include] }
27
27
 
28
28
  # @!attribute page_size
@@ -36,7 +36,7 @@ module Knockapi
36
36
  #
37
37
  # @param before [String] The cursor to fetch entries before.
38
38
  #
39
- # @param include [Array<Symbol, Knockapi::UserListParams::Include>] Associated resources to include in the response.
39
+ # @param include [Array<Symbol, Knockapi::Models::UserListParams::Include>] Associated resources to include in the response.
40
40
  #
41
41
  # @param page_size [Integer] The number of items per page.
42
42
  #
@@ -22,7 +22,7 @@ module Knockapi
22
22
  # @!attribute include
23
23
  # Associated resources to include in the response.
24
24
  #
25
- # @return [Array<Symbol, Knockapi::UserListSubscriptionsParams::Include>, nil]
25
+ # @return [Array<Symbol, Knockapi::Models::UserListSubscriptionsParams::Include>, nil]
26
26
  optional :include,
27
27
  -> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::UserListSubscriptionsParams::Include] }
28
28
 
@@ -43,7 +43,7 @@ module Knockapi
43
43
  #
44
44
  # @param before [String] The cursor to fetch entries before.
45
45
  #
46
- # @param include [Array<Symbol, Knockapi::UserListSubscriptionsParams::Include>] Associated resources to include in the response.
46
+ # @param include [Array<Symbol, Knockapi::Models::UserListSubscriptionsParams::Include>] Associated resources to include in the response.
47
47
  #
48
48
  # @param objects [Array<String>] Only returns subscriptions for the specified object GIDs.
49
49
  #
@@ -11,11 +11,11 @@ module Knockapi
11
11
  # @!attribute users
12
12
  # A list of users.
13
13
  #
14
- # @return [Array<Knockapi::InlineIdentifyUserRequest>]
14
+ # @return [Array<Knockapi::Models::InlineIdentifyUserRequest>]
15
15
  required :users, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::InlineIdentifyUserRequest] }
16
16
 
17
17
  # @!method initialize(users:, request_options: {})
18
- # @param users [Array<Knockapi::InlineIdentifyUserRequest>] A list of users.
18
+ # @param users [Array<Knockapi::Models::InlineIdentifyUserRequest>] A list of users.
19
19
  #
20
20
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}]
21
21
  end
@@ -11,7 +11,7 @@ module Knockapi
11
11
  # @!attribute preferences
12
12
  # A request to set a preference set for a recipient.
13
13
  #
14
- # @return [Knockapi::Recipients::PreferenceSetRequest]
14
+ # @return [Knockapi::Models::Recipients::PreferenceSetRequest]
15
15
  required :preferences, -> { Knockapi::Recipients::PreferenceSetRequest }
16
16
 
17
17
  # @!attribute user_ids
@@ -21,7 +21,7 @@ module Knockapi
21
21
  required :user_ids, Knockapi::Internal::Type::ArrayOf[String]
22
22
 
23
23
  # @!method initialize(preferences:, user_ids:, request_options: {})
24
- # @param preferences [Knockapi::Recipients::PreferenceSetRequest] A request to set a preference set for a recipient.
24
+ # @param preferences [Knockapi::Models::Recipients::PreferenceSetRequest] A request to set a preference set for a recipient.
25
25
  #
26
26
  # @param user_ids [Array<String>] A list of user IDs.
27
27
  #