klaviyo-api-sdk 1.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (765) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +654 -238
  4. data/klaviyo-api-sdk.gemspec +2 -2
  5. data/lib/klaviyo-api-sdk/api/accounts_api.rb +160 -0
  6. data/lib/klaviyo-api-sdk/api/campaigns_api.rb +101 -107
  7. data/lib/klaviyo-api-sdk/api/catalogs_api.rb +461 -549
  8. data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +4 -4
  9. data/lib/klaviyo-api-sdk/api/events_api.rb +132 -71
  10. data/lib/klaviyo-api-sdk/api/flows_api.rb +368 -206
  11. data/lib/klaviyo-api-sdk/api/lists_api.rb +172 -122
  12. data/lib/klaviyo-api-sdk/api/metrics_api.rb +18 -18
  13. data/lib/klaviyo-api-sdk/api/profiles_api.rb +173 -94
  14. data/lib/klaviyo-api-sdk/api/segments_api.rb +148 -76
  15. data/lib/klaviyo-api-sdk/api/tags_api.rb +932 -260
  16. data/lib/klaviyo-api-sdk/api/templates_api.rb +32 -32
  17. data/lib/klaviyo-api-sdk/api_client.rb +2 -2
  18. data/lib/klaviyo-api-sdk/api_error.rb +1 -1
  19. data/lib/klaviyo-api-sdk/configuration.rb +1 -1
  20. data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
  21. data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +2 -2
  22. data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +238 -0
  23. data/lib/klaviyo-api-sdk/models/{campaign_clone_query_as_sub_resource_attributes.rb → campaign_clone_query_resource_object_attributes.rb} +18 -18
  24. data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +2 -2
  25. data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +238 -0
  26. data/lib/klaviyo-api-sdk/models/{campaign_create_query_as_sub_resource_attributes.rb → campaign_create_query_resource_object_attributes.rb} +38 -38
  27. data/lib/klaviyo-api-sdk/models/campaign_enum.rb +36 -0
  28. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +2 -2
  29. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +238 -0
  30. data/lib/klaviyo-api-sdk/models/{campaign_message_assign_template_query_as_sub_resource_attributes.rb → campaign_message_assign_template_query_resource_object_attributes.rb} +4 -4
  31. data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +36 -0
  32. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +2 -2
  33. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +253 -0
  34. data/lib/klaviyo-api-sdk/models/{campaign_message_partial_update_query_as_sub_resource_attributes.rb → campaign_message_partial_update_query_resource_object_attributes.rb} +17 -17
  35. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +2 -2
  36. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +253 -0
  37. data/lib/klaviyo-api-sdk/models/{campaign_partial_update_query_as_sub_resource_attributes.rb → campaign_partial_update_query_resource_object_attributes.rb} +30 -30
  38. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +2 -2
  39. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +238 -0
  40. data/lib/klaviyo-api-sdk/models/{campaign_recipient_estimation_job_create_query_as_sub_resource_attributes.rb → campaign_recipient_estimation_job_create_query_resource_object_attributes.rb} +4 -4
  41. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +36 -0
  42. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +2 -2
  43. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner_source.rb → campaign_send_job_create_query_resource_object.rb} +27 -17
  44. data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource_attributes.rb → campaign_send_job_create_query_resource_object_attributes.rb} +4 -4
  45. data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +36 -0
  46. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +2 -2
  47. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +253 -0
  48. data/lib/klaviyo-api-sdk/models/{campaign_send_job_partial_update_query_as_sub_resource_attributes.rb → campaign_send_job_partial_update_query_resource_object_attributes.rb} +4 -4
  49. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +36 -0
  50. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +36 -0
  51. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +36 -0
  52. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
  53. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +238 -0
  54. data/lib/klaviyo-api-sdk/models/{catalog_category_create_job_create_query_as_sub_resource_attributes.rb → catalog_category_create_job_create_query_resource_object_attributes.rb} +5 -5
  55. data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
  56. data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource.rb → catalog_category_create_query_resource_object.rb} +27 -52
  57. data/lib/klaviyo-api-sdk/models/{catalog_category_create_query_as_sub_resource_attributes.rb → catalog_category_create_query_resource_object_attributes.rb} +20 -20
  58. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
  59. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +238 -0
  60. data/lib/klaviyo-api-sdk/models/{catalog_category_delete_job_create_query_as_sub_resource_attributes.rb → catalog_category_delete_job_create_query_resource_object_attributes.rb} +5 -5
  61. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +239 -0
  62. data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +36 -0
  63. data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
  64. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
  65. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +238 -0
  66. data/lib/klaviyo-api-sdk/models/{catalog_category_update_job_create_query_as_sub_resource_attributes.rb → catalog_category_update_job_create_query_resource_object_attributes.rb} +5 -5
  67. data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
  68. data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource.rb → catalog_category_update_query_resource_object.rb} +37 -47
  69. data/lib/klaviyo-api-sdk/models/{catalog_category_update_query_as_sub_resource_attributes.rb → catalog_category_update_query_resource_object_attributes.rb} +4 -4
  70. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships.rb → catalog_category_update_query_resource_object_relationships.rb} +5 -5
  71. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories.rb → catalog_category_update_query_resource_object_relationships_items.rb} +5 -5
  72. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb → catalog_category_update_query_resource_object_relationships_items_data_inner.rb} +6 -6
  73. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +36 -0
  74. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +36 -0
  75. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +36 -0
  76. data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
  77. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb → catalog_item_category_op_data_inner.rb} +6 -6
  78. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
  79. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +238 -0
  80. data/lib/klaviyo-api-sdk/models/{catalog_item_create_job_create_query_as_sub_resource_attributes.rb → catalog_item_create_job_create_query_resource_object_attributes.rb} +5 -5
  81. data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
  82. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +247 -0
  83. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_attributes.rb → catalog_item_create_query_resource_object_attributes.rb} +74 -74
  84. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships.rb → catalog_item_create_query_resource_object_relationships.rb} +5 -5
  85. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items.rb → catalog_item_create_query_resource_object_relationships_categories.rb} +5 -5
  86. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
  87. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +238 -0
  88. data/lib/klaviyo-api-sdk/models/{catalog_item_delete_job_create_query_as_sub_resource_attributes.rb → catalog_item_delete_job_create_query_resource_object_attributes.rb} +5 -5
  89. data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +239 -0
  90. data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +36 -0
  91. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
  92. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +238 -0
  93. data/lib/klaviyo-api-sdk/models/{catalog_item_update_job_create_query_as_sub_resource_attributes.rb → catalog_item_update_job_create_query_resource_object_attributes.rb} +5 -5
  94. data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
  95. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +262 -0
  96. data/lib/klaviyo-api-sdk/models/{catalog_item_update_query_as_sub_resource_attributes.rb → catalog_item_update_query_resource_object_attributes.rb} +46 -46
  97. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +36 -0
  98. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +36 -0
  99. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +36 -0
  100. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
  101. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +238 -0
  102. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_job_create_query_as_sub_resource_attributes.rb → catalog_variant_create_job_create_query_resource_object_attributes.rb} +5 -5
  103. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
  104. data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource.rb → catalog_variant_create_query_resource_object.rb} +27 -52
  105. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_attributes.rb → catalog_variant_create_query_resource_object_attributes.rb} +117 -117
  106. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
  107. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +238 -0
  108. data/lib/klaviyo-api-sdk/models/{catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb → catalog_variant_delete_job_create_query_resource_object_attributes.rb} +5 -5
  109. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +239 -0
  110. data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +36 -0
  111. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
  112. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +238 -0
  113. data/lib/klaviyo-api-sdk/models/{catalog_variant_update_job_create_query_as_sub_resource_attributes.rb → catalog_variant_update_job_create_query_resource_object_attributes.rb} +5 -5
  114. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
  115. data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource.rb → catalog_variant_update_query_resource_object.rb} +29 -48
  116. data/lib/klaviyo-api-sdk/models/{catalog_variant_update_query_as_sub_resource_attributes.rb → catalog_variant_update_query_resource_object_attributes.rb} +63 -53
  117. data/lib/klaviyo-api-sdk/models/content_sub_object.rb +30 -30
  118. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +2 -2
  119. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +238 -0
  120. data/lib/klaviyo-api-sdk/models/{data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb → data_privacy_create_deletion_job_query_resource_object_attributes.rb} +18 -18
  121. data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +36 -0
  122. data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
  123. data/lib/klaviyo-api-sdk/models/event_create_query_resource_object.rb +238 -0
  124. data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource_attributes.rb → event_create_query_resource_object_attributes.rb} +19 -19
  125. data/lib/klaviyo-api-sdk/models/event_enum.rb +36 -0
  126. data/lib/klaviyo-api-sdk/models/flow_enum.rb +36 -0
  127. data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
  128. data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +253 -0
  129. data/lib/klaviyo-api-sdk/models/{flow_update_query_as_sub_resource_attributes.rb → flow_update_query_resource_object_attributes.rb} +5 -4
  130. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response.rb → get_create_variants_jobs5_xx_response.rb} +5 -5
  131. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner.rb → get_create_variants_jobs5_xx_response_errors_inner.rb} +40 -40
  132. data/lib/klaviyo-api-sdk/models/{get_catalog_items4_xx_response_errors_inner_source.rb → get_create_variants_jobs5_xx_response_errors_inner_source.rb} +17 -17
  133. data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
  134. data/lib/klaviyo-api-sdk/models/{sms_message_content.rb → list_create_query_resource_object.rb} +23 -23
  135. data/lib/klaviyo-api-sdk/models/{segment_partial_update_query_as_sub_resource_attributes.rb → list_create_query_resource_object_attributes.rb} +5 -4
  136. data/lib/klaviyo-api-sdk/models/list_enum.rb +36 -0
  137. data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
  138. data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +1 -1
  139. data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
  140. data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
  141. data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +253 -0
  142. data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +36 -0
  143. data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
  144. data/lib/klaviyo-api-sdk/models/{v2_template_render_query_as_sub_resource.rb → metric_aggregate_query_resource_object.rb} +30 -13
  145. data/lib/klaviyo-api-sdk/models/{metric_aggregate_query_as_sub_resource_attributes.rb → metric_aggregate_query_resource_object_attributes.rb} +70 -70
  146. data/lib/klaviyo-api-sdk/models/metric_create_query.rb +1 -1
  147. data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
  148. data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +238 -0
  149. data/lib/klaviyo-api-sdk/models/{included_profiles_attributes.rb → profile_create_query_resource_object_attributes.rb} +36 -75
  150. data/lib/klaviyo-api-sdk/models/profile_enum.rb +36 -0
  151. data/lib/klaviyo-api-sdk/models/profile_location.rb +38 -38
  152. data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +1 -1
  153. data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +1 -1
  154. data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
  155. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +253 -0
  156. data/lib/klaviyo-api-sdk/models/{profile_create_query_as_sub_resource_attributes.rb → profile_partial_update_query_resource_object_attributes.rb} +48 -48
  157. data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +36 -0
  158. data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +36 -0
  159. data/lib/klaviyo-api-sdk/models/profile_unsubscription_bulk_create_job_enum.rb +36 -0
  160. data/lib/klaviyo-api-sdk/models/profile_unsuppression_bulk_create_job_enum.rb +36 -0
  161. data/lib/klaviyo-api-sdk/models/segment_enum.rb +36 -0
  162. data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
  163. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +252 -0
  164. data/lib/klaviyo-api-sdk/models/{tag_update_query_as_sub_resource_attributes.rb → segment_partial_update_query_resource_object_attributes.rb} +4 -5
  165. data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +1 -1
  166. data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +17 -17
  167. data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +15 -15
  168. data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +1 -1
  169. data/lib/klaviyo-api-sdk/models/subscription.rb +15 -15
  170. data/lib/klaviyo-api-sdk/models/subscription_channels.rb +17 -17
  171. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
  172. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +238 -0
  173. data/lib/klaviyo-api-sdk/models/{subscription_create_job_create_query_as_sub_resource_attributes.rb → subscription_create_job_create_query_resource_object_attributes.rb} +26 -26
  174. data/lib/klaviyo-api-sdk/models/suppression.rb +1 -1
  175. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
  176. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +238 -0
  177. data/lib/klaviyo-api-sdk/models/{suppression_create_job_create_query_as_sub_resource_attributes.rb → suppression_create_job_create_query_resource_object_attributes.rb} +4 -4
  178. data/lib/klaviyo-api-sdk/models/{campaign_tag_op.rb → tag_campaign_op.rb} +5 -5
  179. data/lib/klaviyo-api-sdk/models/{campaign_tag_op_data_inner.rb → tag_campaign_op_data_inner.rb} +6 -6
  180. data/lib/klaviyo-api-sdk/models/tag_create_query.rb +2 -2
  181. data/lib/klaviyo-api-sdk/models/{utm_param_info.rb → tag_create_query_resource_object.rb} +23 -23
  182. data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource_attributes.rb → tag_create_query_resource_object_attributes.rb} +18 -18
  183. data/lib/klaviyo-api-sdk/models/tag_enum.rb +36 -0
  184. data/lib/klaviyo-api-sdk/models/{onsite_profile_create_query.rb → tag_flow_op.rb} +8 -6
  185. data/lib/klaviyo-api-sdk/models/{catalog_item_delete_query_as_sub_resource.rb → tag_flow_op_data_inner.rb} +6 -7
  186. data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +2 -2
  187. data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +238 -0
  188. data/lib/klaviyo-api-sdk/models/{tag_group_create_query_as_sub_resource_attributes.rb → tag_group_create_query_resource_object_attributes.rb} +17 -17
  189. data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +36 -0
  190. data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +2 -2
  191. data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +253 -0
  192. data/lib/klaviyo-api-sdk/models/{tag_group_update_query_as_sub_resource_attributes.rb → tag_group_update_query_resource_object_attributes.rb} +17 -17
  193. data/lib/klaviyo-api-sdk/models/{onsite_subscription_create_query.rb → tag_list_op.rb} +8 -6
  194. data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +272 -0
  195. data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
  196. data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +1 -1
  197. data/lib/klaviyo-api-sdk/models/tag_update_query.rb +2 -2
  198. data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +253 -0
  199. data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource_attributes.rb → tag_update_query_resource_object_attributes.rb} +5 -5
  200. data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
  201. data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +238 -0
  202. data/lib/klaviyo-api-sdk/models/{template_clone_query_as_sub_resource_attributes.rb → template_clone_query_resource_object_attributes.rb} +20 -20
  203. data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
  204. data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +238 -0
  205. data/lib/klaviyo-api-sdk/models/{template_create_query_as_sub_resource_attributes.rb → template_create_query_resource_object_attributes.rb} +35 -35
  206. data/lib/klaviyo-api-sdk/models/template_enum.rb +36 -0
  207. data/lib/klaviyo-api-sdk/models/template_render_query.rb +2 -2
  208. data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +238 -0
  209. data/lib/klaviyo-api-sdk/models/{template_render_query_as_sub_resource_attributes.rb → template_render_query_resource_object_attributes.rb} +20 -20
  210. data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
  211. data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +253 -0
  212. data/lib/klaviyo-api-sdk/models/{template_update_query_as_sub_resource_attributes.rb → template_update_query_resource_object_attributes.rb} +19 -19
  213. data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +20 -20
  214. data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +15 -15
  215. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
  216. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object.rb +238 -0
  217. data/lib/klaviyo-api-sdk/models/{unsubscription_create_job_create_query_as_sub_resource_attributes.rb → unsubscription_create_job_create_query_resource_object_attributes.rb} +21 -21
  218. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
  219. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object.rb +238 -0
  220. data/lib/klaviyo-api-sdk/models/{unsuppression_create_job_create_query_as_sub_resource_attributes.rb → unsuppression_create_job_create_query_resource_object_attributes.rb} +4 -4
  221. data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
  222. data/lib/klaviyo-api-sdk/version.rb +1 -1
  223. data/lib/klaviyo-api-sdk.rb +137 -143
  224. metadata +139 -609
  225. data/Gemfile +0 -9
  226. data/Rakefile +0 -10
  227. data/docs/AudiencesSubObject.md +0 -20
  228. data/docs/CampaignCloneQuery.md +0 -18
  229. data/docs/CampaignCloneQueryAsSubResource.md +0 -20
  230. data/docs/CampaignCloneQueryAsSubResourceAttributes.md +0 -20
  231. data/docs/CampaignCreateQuery.md +0 -18
  232. data/docs/CampaignCreateQueryAsSubResource.md +0 -20
  233. data/docs/CampaignCreateQueryAsSubResourceAttributes.md +0 -28
  234. data/docs/CampaignMessageAssignTemplateQuery.md +0 -18
  235. data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +0 -20
  236. data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +0 -20
  237. data/docs/CampaignMessagePartialUpdateQuery.md +0 -18
  238. data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +0 -22
  239. data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +0 -20
  240. data/docs/CampaignPartialUpdateQuery.md +0 -18
  241. data/docs/CampaignPartialUpdateQueryAsSubResource.md +0 -22
  242. data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +0 -26
  243. data/docs/CampaignRecipientEstimationJobCreateQuery.md +0 -18
  244. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResource.md +0 -20
  245. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResourceAttributes.md +0 -18
  246. data/docs/CampaignSendJobCreateQuery.md +0 -18
  247. data/docs/CampaignSendJobCreateQueryAsSubResource.md +0 -20
  248. data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +0 -18
  249. data/docs/CampaignSendJobPartialUpdateQuery.md +0 -18
  250. data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +0 -22
  251. data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +0 -18
  252. data/docs/CampaignTagOp.md +0 -18
  253. data/docs/CampaignTagOpDataInner.md +0 -20
  254. data/docs/CampaignsApi.md +0 -1277
  255. data/docs/CatalogCategoryCreateJobCreateQuery.md +0 -18
  256. data/docs/CatalogCategoryCreateJobCreateQueryAsSubResource.md +0 -20
  257. data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  258. data/docs/CatalogCategoryCreateQuery.md +0 -18
  259. data/docs/CatalogCategoryCreateQueryAsSubResource.md +0 -22
  260. data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +0 -24
  261. data/docs/CatalogCategoryDeleteJobCreateQuery.md +0 -18
  262. data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResource.md +0 -20
  263. data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  264. data/docs/CatalogCategoryDeleteQueryAsSubResource.md +0 -20
  265. data/docs/CatalogCategoryItemOp.md +0 -18
  266. data/docs/CatalogCategoryUpdateJobCreateQuery.md +0 -18
  267. data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResource.md +0 -20
  268. data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  269. data/docs/CatalogCategoryUpdateQuery.md +0 -18
  270. data/docs/CatalogCategoryUpdateQueryAsSubResource.md +0 -24
  271. data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +0 -18
  272. data/docs/CatalogItemCategoryOp.md +0 -18
  273. data/docs/CatalogItemCreateJobCreateQuery.md +0 -18
  274. data/docs/CatalogItemCreateJobCreateQueryAsSubResource.md +0 -20
  275. data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  276. data/docs/CatalogItemCreateQuery.md +0 -18
  277. data/docs/CatalogItemCreateQueryAsSubResource.md +0 -22
  278. data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +0 -40
  279. data/docs/CatalogItemCreateQueryAsSubResourceRelationships.md +0 -18
  280. data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategories.md +0 -18
  281. data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategoriesDataInner.md +0 -20
  282. data/docs/CatalogItemDeleteJobCreateQuery.md +0 -18
  283. data/docs/CatalogItemDeleteJobCreateQueryAsSubResource.md +0 -20
  284. data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  285. data/docs/CatalogItemDeleteQueryAsSubResource.md +0 -20
  286. data/docs/CatalogItemUpdateJobCreateQuery.md +0 -18
  287. data/docs/CatalogItemUpdateJobCreateQueryAsSubResource.md +0 -20
  288. data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  289. data/docs/CatalogItemUpdateQuery.md +0 -18
  290. data/docs/CatalogItemUpdateQueryAsSubResource.md +0 -24
  291. data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +0 -34
  292. data/docs/CatalogJobErrorPayload.md +0 -26
  293. data/docs/CatalogVariantCreateJobCreateQuery.md +0 -18
  294. data/docs/CatalogVariantCreateJobCreateQueryAsSubResource.md +0 -20
  295. data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  296. data/docs/CatalogVariantCreateQuery.md +0 -18
  297. data/docs/CatalogVariantCreateQueryAsSubResource.md +0 -22
  298. data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +0 -46
  299. data/docs/CatalogVariantCreateQueryAsSubResourceRelationships.md +0 -18
  300. data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItems.md +0 -18
  301. data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItemsDataInner.md +0 -20
  302. data/docs/CatalogVariantDeleteJobCreateQuery.md +0 -18
  303. data/docs/CatalogVariantDeleteJobCreateQueryAsSubResource.md +0 -20
  304. data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  305. data/docs/CatalogVariantDeleteQueryAsSubResource.md +0 -20
  306. data/docs/CatalogVariantUpdateJobCreateQuery.md +0 -18
  307. data/docs/CatalogVariantUpdateJobCreateQueryAsSubResource.md +0 -20
  308. data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  309. data/docs/CatalogVariantUpdateQuery.md +0 -18
  310. data/docs/CatalogVariantUpdateQueryAsSubResource.md +0 -22
  311. data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +0 -38
  312. data/docs/CatalogsApi.md +0 -4048
  313. data/docs/ClientApi.md +0 -205
  314. data/docs/ContentSubObject.md +0 -28
  315. data/docs/DataPrivacyApi.md +0 -78
  316. data/docs/DataPrivacyCreateDeletionJobQuery.md +0 -18
  317. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +0 -20
  318. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +0 -22
  319. data/docs/EmailMessageContent.md +0 -24
  320. data/docs/EmailTrackingOptions.md +0 -24
  321. data/docs/ErrorSource.md +0 -18
  322. data/docs/EventCreateQuery.md +0 -18
  323. data/docs/EventCreateQueryAsSubResource.md +0 -20
  324. data/docs/EventCreateQueryAsSubResourceAttributes.md +0 -28
  325. data/docs/EventsApi.md +0 -472
  326. data/docs/FlowUpdateQuery.md +0 -18
  327. data/docs/FlowUpdateQueryAsSubResource.md +0 -22
  328. data/docs/FlowUpdateQueryAsSubResourceAttributes.md +0 -18
  329. data/docs/FlowsApi.md +0 -1029
  330. data/docs/GetCampaigns4XXResponse.md +0 -18
  331. data/docs/GetCampaigns4XXResponseErrorsInner.md +0 -26
  332. data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +0 -20
  333. data/docs/GetCatalogItems4XXResponse.md +0 -18
  334. data/docs/GetCatalogItems4XXResponseErrorsInner.md +0 -26
  335. data/docs/GetCatalogItems4XXResponseErrorsInnerSource.md +0 -20
  336. data/docs/IncludedCategories.md +0 -24
  337. data/docs/IncludedCategoriesAttributes.md +0 -22
  338. data/docs/IncludedFlowAction.md +0 -24
  339. data/docs/IncludedFlowActions.md +0 -24
  340. data/docs/IncludedFlowActionsAttributes.md +0 -32
  341. data/docs/IncludedFlowActionsAttributesTrackingOptions.md +0 -49
  342. data/docs/IncludedFlowMessages.md +0 -24
  343. data/docs/IncludedFlowMessagesAttributes.md +0 -26
  344. data/docs/IncludedFlowMessagesAttributesContent.md +0 -49
  345. data/docs/IncludedFlows.md +0 -24
  346. data/docs/IncludedFlowsAttributes.md +0 -28
  347. data/docs/IncludedItems.md +0 -24
  348. data/docs/IncludedItemsAttributes.md +0 -40
  349. data/docs/IncludedLists.md +0 -24
  350. data/docs/IncludedListsAttributes.md +0 -22
  351. data/docs/IncludedMetrics.md +0 -24
  352. data/docs/IncludedMetricsAttributes.md +0 -24
  353. data/docs/IncludedProfiles.md +0 -24
  354. data/docs/IncludedProfilesAttributes.md +0 -44
  355. data/docs/IncludedSegments.md +0 -24
  356. data/docs/IncludedSegmentsAttributes.md +0 -22
  357. data/docs/IncludedTags.md +0 -24
  358. data/docs/IncludedVariants.md +0 -24
  359. data/docs/IncludedVariantsAttributes.md +0 -46
  360. data/docs/IncludedVariantsLinks.md +0 -18
  361. data/docs/ListCreateQuery.md +0 -18
  362. data/docs/ListCreateQueryAsSubResource.md +0 -20
  363. data/docs/ListCreateQueryAsSubResourceAttributes.md +0 -18
  364. data/docs/ListMembersAddQuery.md +0 -18
  365. data/docs/ListMembersAddQueryDataInner.md +0 -20
  366. data/docs/ListMembersDeleteQuery.md +0 -18
  367. data/docs/ListPartialUpdateQuery.md +0 -18
  368. data/docs/ListPartialUpdateQueryAsSubResource.md +0 -22
  369. data/docs/ListsApi.md +0 -762
  370. data/docs/MetricAggregateQuery.md +0 -18
  371. data/docs/MetricAggregateQueryAsSubResource.md +0 -20
  372. data/docs/MetricAggregateQueryAsSubResourceAttributes.md +0 -36
  373. data/docs/MetricAggregateRowDTO.md +0 -20
  374. data/docs/MetricCreateQuery.md +0 -20
  375. data/docs/MetricsApi.md +0 -233
  376. data/docs/OnsiteProfileCreateQuery.md +0 -18
  377. data/docs/OnsiteProfileCreateQueryAsSubResource.md +0 -22
  378. data/docs/OnsiteProfileMeta.md +0 -18
  379. data/docs/OnsiteProfileMetaIdentifiers.md +0 -28
  380. data/docs/OnsiteSubscriptionCreateQuery.md +0 -18
  381. data/docs/OnsiteSubscriptionCreateQueryAsSubResource.md +0 -20
  382. data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +0 -26
  383. data/docs/ProfileCreateQuery.md +0 -18
  384. data/docs/ProfileCreateQueryAsSubResource.md +0 -20
  385. data/docs/ProfileCreateQueryAsSubResourceAttributes.md +0 -38
  386. data/docs/ProfileLocation.md +0 -34
  387. data/docs/ProfileLocationLatitude.md +0 -49
  388. data/docs/ProfileLocationLongitude.md +0 -49
  389. data/docs/ProfilePartialUpdateQuery.md +0 -18
  390. data/docs/ProfilePartialUpdateQueryAsSubResource.md +0 -22
  391. data/docs/ProfilesApi.md +0 -825
  392. data/docs/SMSMessageContent.md +0 -20
  393. data/docs/SMSRenderOptions.md +0 -24
  394. data/docs/SMSTrackingOptions.md +0 -20
  395. data/docs/STOScheduleOptions.md +0 -18
  396. data/docs/SegmentPartialUpdateQuery.md +0 -18
  397. data/docs/SegmentPartialUpdateQueryAsSubResource.md +0 -22
  398. data/docs/SegmentPartialUpdateQueryAsSubResourceAttributes.md +0 -18
  399. data/docs/SegmentsApi.md +0 -469
  400. data/docs/SendOptions.md +0 -20
  401. data/docs/SendOptionsSubObject.md +0 -18
  402. data/docs/SendStrategySubObject.md +0 -24
  403. data/docs/SendTimeSubObject.md +0 -20
  404. data/docs/StaticScheduleOptions.md +0 -22
  405. data/docs/Subscription.md +0 -24
  406. data/docs/SubscriptionChannels.md +0 -20
  407. data/docs/SubscriptionCreateJobCreateQuery.md +0 -18
  408. data/docs/SubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
  409. data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
  410. data/docs/Suppression.md +0 -18
  411. data/docs/SuppressionCreateJobCreateQuery.md +0 -18
  412. data/docs/SuppressionCreateJobCreateQueryAsSubResource.md +0 -20
  413. data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  414. data/docs/TagCreateQuery.md +0 -18
  415. data/docs/TagCreateQueryAsSubResource.md +0 -20
  416. data/docs/TagCreateQueryAsSubResourceAttributes.md +0 -20
  417. data/docs/TagGroupCreateQuery.md +0 -18
  418. data/docs/TagGroupCreateQueryAsSubResource.md +0 -20
  419. data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +0 -20
  420. data/docs/TagGroupUpdateQuery.md +0 -18
  421. data/docs/TagGroupUpdateQueryAsSubResource.md +0 -22
  422. data/docs/TagGroupUpdateQueryAsSubResourceAttributes.md +0 -20
  423. data/docs/TagSegmentOp.md +0 -18
  424. data/docs/TagSegmentOpDataInner.md +0 -20
  425. data/docs/TagUpdateQuery.md +0 -18
  426. data/docs/TagUpdateQueryAsSubResource.md +0 -22
  427. data/docs/TagUpdateQueryAsSubResourceAttributes.md +0 -18
  428. data/docs/TagsApi.md +0 -1205
  429. data/docs/TemplateCloneQuery.md +0 -18
  430. data/docs/TemplateCloneQueryAsSubResource.md +0 -20
  431. data/docs/TemplateCloneQueryAsSubResourceAttributes.md +0 -22
  432. data/docs/TemplateCreateQuery.md +0 -18
  433. data/docs/TemplateCreateQueryAsSubResource.md +0 -20
  434. data/docs/TemplateCreateQueryAsSubResourceAttributes.md +0 -32
  435. data/docs/TemplateRenderQuery.md +0 -18
  436. data/docs/TemplateRenderQueryAsSubResource.md +0 -20
  437. data/docs/TemplateRenderQueryAsSubResourceAttributes.md +0 -22
  438. data/docs/TemplateUpdateQuery.md +0 -18
  439. data/docs/TemplateUpdateQueryAsSubResource.md +0 -22
  440. data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +0 -30
  441. data/docs/TemplatesApi.md +0 -525
  442. data/docs/ThrottledScheduleOptions.md +0 -20
  443. data/docs/TrackingOptionsSubObject.md +0 -24
  444. data/docs/UTMParamsSubObject.md +0 -20
  445. data/docs/UnsubscriptionCreateJobCreateQuery.md +0 -18
  446. data/docs/UnsubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
  447. data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
  448. data/docs/UnsuppressionCreateJobCreateQuery.md +0 -18
  449. data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +0 -20
  450. data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  451. data/docs/UtmParamInfo.md +0 -20
  452. data/docs/V2TemplateRenderQueryAsSubResource.md +0 -18
  453. data/git_push.sh +0 -57
  454. data/lib/klaviyo-api-sdk/api/client_api.rb +0 -249
  455. data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +0 -272
  456. data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +0 -272
  457. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +0 -272
  458. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +0 -287
  459. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +0 -287
  460. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource.rb +0 -272
  461. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +0 -287
  462. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +0 -272
  463. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +0 -281
  464. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +0 -272
  465. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +0 -273
  466. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +0 -272
  467. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +0 -296
  468. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +0 -272
  469. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +0 -281
  470. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +0 -272
  471. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +0 -272
  472. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +0 -296
  473. data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +0 -284
  474. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +0 -272
  475. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +0 -281
  476. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +0 -272
  477. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +0 -273
  478. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +0 -272
  479. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +0 -287
  480. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +0 -272
  481. data/lib/klaviyo-api-sdk/models/email_message_content.rb +0 -266
  482. data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +0 -268
  483. data/lib/klaviyo-api-sdk/models/error_source.rb +0 -227
  484. data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +0 -286
  485. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +0 -226
  486. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +0 -275
  487. data/lib/klaviyo-api-sdk/models/included_categories.rb +0 -301
  488. data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +0 -240
  489. data/lib/klaviyo-api-sdk/models/included_flow_action.rb +0 -300
  490. data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +0 -300
  491. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +0 -282
  492. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +0 -105
  493. data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +0 -300
  494. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +0 -270
  495. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +0 -105
  496. data/lib/klaviyo-api-sdk/models/included_flows.rb +0 -300
  497. data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +0 -264
  498. data/lib/klaviyo-api-sdk/models/included_items.rb +0 -301
  499. data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +0 -332
  500. data/lib/klaviyo-api-sdk/models/included_lists.rb +0 -301
  501. data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +0 -240
  502. data/lib/klaviyo-api-sdk/models/included_metrics.rb +0 -301
  503. data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +0 -250
  504. data/lib/klaviyo-api-sdk/models/included_profiles.rb +0 -301
  505. data/lib/klaviyo-api-sdk/models/included_segments.rb +0 -300
  506. data/lib/klaviyo-api-sdk/models/included_segments_attributes.rb +0 -240
  507. data/lib/klaviyo-api-sdk/models/included_tags.rb +0 -301
  508. data/lib/klaviyo-api-sdk/models/included_variants.rb +0 -301
  509. data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +0 -396
  510. data/lib/klaviyo-api-sdk/models/included_variants_links.rb +0 -224
  511. data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +0 -287
  512. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +0 -272
  513. data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +0 -242
  514. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +0 -281
  515. data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +0 -224
  516. data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +0 -269
  517. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +0 -272
  518. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +0 -265
  519. data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +0 -272
  520. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +0 -287
  521. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +0 -286
  522. data/lib/klaviyo-api-sdk/models/send_options.rb +0 -238
  523. data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +0 -240
  524. data/lib/klaviyo-api-sdk/models/sms_render_options.rb +0 -266
  525. data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +0 -240
  526. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +0 -272
  527. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +0 -272
  528. data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +0 -272
  529. data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +0 -287
  530. data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +0 -287
  531. data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +0 -272
  532. data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +0 -272
  533. data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +0 -272
  534. data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +0 -287
  535. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +0 -272
  536. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +0 -272
  537. data/spec/api/campaigns_api_spec.rb +0 -284
  538. data/spec/api/catalogs_api_spec.rb +0 -759
  539. data/spec/api/client_api_spec.rb +0 -74
  540. data/spec/api/data_privacy_api_spec.rb +0 -47
  541. data/spec/api/events_api_spec.rb +0 -120
  542. data/spec/api/flows_api_spec.rb +0 -220
  543. data/spec/api/lists_api_spec.rb +0 -169
  544. data/spec/api/metrics_api_spec.rb +0 -74
  545. data/spec/api/profiles_api_spec.rb +0 -178
  546. data/spec/api/segments_api_spec.rb +0 -117
  547. data/spec/api/tags_api_spec.rb +0 -245
  548. data/spec/api/templates_api_spec.rb +0 -126
  549. data/spec/api_client_spec.rb +0 -226
  550. data/spec/configuration_spec.rb +0 -42
  551. data/spec/models/audiences_sub_object_spec.rb +0 -40
  552. data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +0 -40
  553. data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +0 -44
  554. data/spec/models/campaign_clone_query_spec.rb +0 -34
  555. data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +0 -64
  556. data/spec/models/campaign_create_query_as_sub_resource_spec.rb +0 -44
  557. data/spec/models/campaign_create_query_spec.rb +0 -34
  558. data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +0 -40
  559. data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +0 -44
  560. data/spec/models/campaign_message_assign_template_query_spec.rb +0 -34
  561. data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +0 -40
  562. data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +0 -50
  563. data/spec/models/campaign_message_partial_update_query_spec.rb +0 -34
  564. data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +0 -58
  565. data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +0 -50
  566. data/spec/models/campaign_partial_update_query_spec.rb +0 -34
  567. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  568. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_spec.rb +0 -44
  569. data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +0 -34
  570. data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  571. data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +0 -44
  572. data/spec/models/campaign_send_job_create_query_spec.rb +0 -34
  573. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
  574. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +0 -50
  575. data/spec/models/campaign_send_job_partial_update_query_spec.rb +0 -34
  576. data/spec/models/campaign_tag_op_data_inner_spec.rb +0 -44
  577. data/spec/models/campaign_tag_op_spec.rb +0 -34
  578. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  579. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +0 -44
  580. data/spec/models/catalog_category_create_job_create_query_spec.rb +0 -34
  581. data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +0 -56
  582. data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +0 -50
  583. data/spec/models/catalog_category_create_query_spec.rb +0 -34
  584. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  585. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  586. data/spec/models/catalog_category_delete_job_create_query_spec.rb +0 -34
  587. data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +0 -44
  588. data/spec/models/catalog_category_item_op_spec.rb +0 -34
  589. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  590. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +0 -44
  591. data/spec/models/catalog_category_update_job_create_query_spec.rb +0 -34
  592. data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +0 -34
  593. data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +0 -56
  594. data/spec/models/catalog_category_update_query_spec.rb +0 -34
  595. data/spec/models/catalog_item_category_op_spec.rb +0 -34
  596. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  597. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +0 -44
  598. data/spec/models/catalog_item_create_job_create_query_spec.rb +0 -34
  599. data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +0 -98
  600. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +0 -44
  601. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +0 -34
  602. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +0 -34
  603. data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +0 -50
  604. data/spec/models/catalog_item_create_query_spec.rb +0 -34
  605. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  606. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  607. data/spec/models/catalog_item_delete_job_create_query_spec.rb +0 -34
  608. data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +0 -44
  609. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  610. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +0 -44
  611. data/spec/models/catalog_item_update_job_create_query_spec.rb +0 -34
  612. data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +0 -76
  613. data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +0 -56
  614. data/spec/models/catalog_item_update_query_spec.rb +0 -34
  615. data/spec/models/catalog_job_error_payload_spec.rb +0 -58
  616. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  617. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +0 -44
  618. data/spec/models/catalog_variant_create_job_create_query_spec.rb +0 -34
  619. data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +0 -126
  620. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +0 -44
  621. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +0 -34
  622. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +0 -34
  623. data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +0 -50
  624. data/spec/models/catalog_variant_create_query_spec.rb +0 -34
  625. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  626. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  627. data/spec/models/catalog_variant_delete_job_create_query_spec.rb +0 -34
  628. data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +0 -44
  629. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  630. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +0 -44
  631. data/spec/models/catalog_variant_update_job_create_query_spec.rb +0 -34
  632. data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +0 -98
  633. data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +0 -50
  634. data/spec/models/catalog_variant_update_query_spec.rb +0 -34
  635. data/spec/models/content_sub_object_spec.rb +0 -64
  636. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +0 -46
  637. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +0 -44
  638. data/spec/models/data_privacy_create_deletion_job_query_spec.rb +0 -34
  639. data/spec/models/email_message_content_spec.rb +0 -52
  640. data/spec/models/email_tracking_options_spec.rb +0 -52
  641. data/spec/models/error_source_spec.rb +0 -34
  642. data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +0 -64
  643. data/spec/models/event_create_query_as_sub_resource_spec.rb +0 -44
  644. data/spec/models/event_create_query_spec.rb +0 -34
  645. data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +0 -34
  646. data/spec/models/flow_update_query_as_sub_resource_spec.rb +0 -50
  647. data/spec/models/flow_update_query_spec.rb +0 -34
  648. data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +0 -40
  649. data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +0 -58
  650. data/spec/models/get_campaigns4_xx_response_spec.rb +0 -34
  651. data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +0 -40
  652. data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +0 -58
  653. data/spec/models/get_catalog_items4_xx_response_spec.rb +0 -34
  654. data/spec/models/included_categories_attributes_spec.rb +0 -46
  655. data/spec/models/included_categories_spec.rb +0 -56
  656. data/spec/models/included_flow_action_spec.rb +0 -56
  657. data/spec/models/included_flow_actions_attributes_spec.rb +0 -76
  658. data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +0 -31
  659. data/spec/models/included_flow_actions_spec.rb +0 -56
  660. data/spec/models/included_flow_messages_attributes_content_spec.rb +0 -31
  661. data/spec/models/included_flow_messages_attributes_spec.rb +0 -58
  662. data/spec/models/included_flow_messages_spec.rb +0 -56
  663. data/spec/models/included_flows_attributes_spec.rb +0 -64
  664. data/spec/models/included_flows_spec.rb +0 -56
  665. data/spec/models/included_items_attributes_spec.rb +0 -94
  666. data/spec/models/included_items_spec.rb +0 -56
  667. data/spec/models/included_lists_attributes_spec.rb +0 -46
  668. data/spec/models/included_lists_spec.rb +0 -56
  669. data/spec/models/included_metrics_attributes_spec.rb +0 -52
  670. data/spec/models/included_metrics_spec.rb +0 -56
  671. data/spec/models/included_profiles_attributes_spec.rb +0 -112
  672. data/spec/models/included_profiles_spec.rb +0 -56
  673. data/spec/models/included_segments_attributes_spec.rb +0 -46
  674. data/spec/models/included_segments_spec.rb +0 -56
  675. data/spec/models/included_tags_spec.rb +0 -56
  676. data/spec/models/included_variants_attributes_spec.rb +0 -122
  677. data/spec/models/included_variants_links_spec.rb +0 -34
  678. data/spec/models/included_variants_spec.rb +0 -56
  679. data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +0 -34
  680. data/spec/models/list_create_query_as_sub_resource_spec.rb +0 -44
  681. data/spec/models/list_create_query_spec.rb +0 -34
  682. data/spec/models/list_members_add_query_data_inner_spec.rb +0 -44
  683. data/spec/models/list_members_add_query_spec.rb +0 -34
  684. data/spec/models/list_members_delete_query_spec.rb +0 -34
  685. data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +0 -50
  686. data/spec/models/list_partial_update_query_spec.rb +0 -34
  687. data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +0 -104
  688. data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +0 -44
  689. data/spec/models/metric_aggregate_query_spec.rb +0 -34
  690. data/spec/models/metric_aggregate_row_dto_spec.rb +0 -40
  691. data/spec/models/metric_create_query_spec.rb +0 -40
  692. data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +0 -50
  693. data/spec/models/onsite_profile_create_query_spec.rb +0 -34
  694. data/spec/models/onsite_profile_meta_identifiers_spec.rb +0 -64
  695. data/spec/models/onsite_profile_meta_spec.rb +0 -34
  696. data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +0 -58
  697. data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +0 -44
  698. data/spec/models/onsite_subscription_create_query_spec.rb +0 -34
  699. data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +0 -94
  700. data/spec/models/profile_create_query_as_sub_resource_spec.rb +0 -44
  701. data/spec/models/profile_create_query_spec.rb +0 -34
  702. data/spec/models/profile_location_latitude_spec.rb +0 -31
  703. data/spec/models/profile_location_longitude_spec.rb +0 -31
  704. data/spec/models/profile_location_spec.rb +0 -82
  705. data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +0 -50
  706. data/spec/models/profile_partial_update_query_spec.rb +0 -34
  707. data/spec/models/segment_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
  708. data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +0 -50
  709. data/spec/models/segment_partial_update_query_spec.rb +0 -34
  710. data/spec/models/send_options_spec.rb +0 -40
  711. data/spec/models/send_options_sub_object_spec.rb +0 -40
  712. data/spec/models/send_strategy_sub_object_spec.rb +0 -46
  713. data/spec/models/send_time_sub_object_spec.rb +0 -40
  714. data/spec/models/sms_message_content_spec.rb +0 -40
  715. data/spec/models/sms_render_options_spec.rb +0 -52
  716. data/spec/models/sms_tracking_options_spec.rb +0 -40
  717. data/spec/models/static_schedule_options_spec.rb +0 -46
  718. data/spec/models/sto_schedule_options_spec.rb +0 -34
  719. data/spec/models/subscription_channels_spec.rb +0 -48
  720. data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
  721. data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
  722. data/spec/models/subscription_create_job_create_query_spec.rb +0 -34
  723. data/spec/models/subscription_spec.rb +0 -40
  724. data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  725. data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
  726. data/spec/models/suppression_create_job_create_query_spec.rb +0 -34
  727. data/spec/models/suppression_spec.rb +0 -34
  728. data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +0 -40
  729. data/spec/models/tag_create_query_as_sub_resource_spec.rb +0 -44
  730. data/spec/models/tag_create_query_spec.rb +0 -34
  731. data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +0 -40
  732. data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +0 -44
  733. data/spec/models/tag_group_create_query_spec.rb +0 -34
  734. data/spec/models/tag_group_update_query_as_sub_resource_attributes_spec.rb +0 -40
  735. data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +0 -50
  736. data/spec/models/tag_group_update_query_spec.rb +0 -34
  737. data/spec/models/tag_segment_op_data_inner_spec.rb +0 -44
  738. data/spec/models/tag_segment_op_spec.rb +0 -34
  739. data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +0 -34
  740. data/spec/models/tag_update_query_as_sub_resource_spec.rb +0 -50
  741. data/spec/models/tag_update_query_spec.rb +0 -34
  742. data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +0 -46
  743. data/spec/models/template_clone_query_as_sub_resource_spec.rb +0 -50
  744. data/spec/models/template_clone_query_spec.rb +0 -34
  745. data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +0 -58
  746. data/spec/models/template_create_query_as_sub_resource_spec.rb +0 -44
  747. data/spec/models/template_create_query_spec.rb +0 -34
  748. data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +0 -46
  749. data/spec/models/template_render_query_as_sub_resource_spec.rb +0 -44
  750. data/spec/models/template_render_query_spec.rb +0 -34
  751. data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +0 -52
  752. data/spec/models/template_update_query_as_sub_resource_spec.rb +0 -50
  753. data/spec/models/template_update_query_spec.rb +0 -34
  754. data/spec/models/throttled_schedule_options_spec.rb +0 -40
  755. data/spec/models/tracking_options_sub_object_spec.rb +0 -52
  756. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
  757. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
  758. data/spec/models/unsubscription_create_job_create_query_spec.rb +0 -34
  759. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  760. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
  761. data/spec/models/unsuppression_create_job_create_query_spec.rb +0 -34
  762. data/spec/models/utm_param_info_spec.rb +0 -40
  763. data/spec/models/utm_params_sub_object_spec.rb +0 -40
  764. data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +0 -34
  765. data/spec/spec_helper.rb +0 -111
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
5
5
 
6
- The version of the OpenAPI document: 2023-02-22
6
+ The version of the OpenAPI document: 2023-06-15
7
7
  Contact: developers@klaviyo.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.2.1
@@ -20,12 +20,12 @@ module KlaviyoAPI
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get Flow
23
- # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: `flow-actions`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
23
+ # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: `flow-actions`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
24
24
  # @param id [String]
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
27
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
28
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
26
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
27
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
28
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
29
29
  # @return [Hash<String, Object>]
30
30
  def get_flow(id, opts = {})
31
31
  data, _status_code, _headers = get_flow_with_http_info(id, opts)
@@ -33,12 +33,12 @@ module KlaviyoAPI
33
33
  end
34
34
 
35
35
  # Get Flow
36
- # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: &#x60;flow-actions&#x60;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
36
+ # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: &#x60;flow-actions&#x60;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
37
37
  # @param id [String]
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
40
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
41
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
39
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
40
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
41
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
42
42
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
43
43
  def get_flow_with_http_info(id, opts = {})
44
44
  if @api_client.config.debugging
@@ -72,7 +72,7 @@ module KlaviyoAPI
72
72
  # header parameters
73
73
  header_params = opts[:header_params] || {}
74
74
  # klaviyo api revision
75
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
75
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
76
76
  # HTTP header 'Accept' (if needed)
77
77
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
78
78
 
@@ -106,13 +106,13 @@ module KlaviyoAPI
106
106
  end
107
107
 
108
108
  # Get Flow Action
109
- # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: `flows`, `flow-messages`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
109
+ # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: `flows`, `flow-messages`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
110
110
  # @param id [String]
111
111
  # @param [Hash] opts the optional parameters
112
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
113
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
114
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
115
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
112
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
113
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
114
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
115
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
116
116
  # @return [Hash<String, Object>]
117
117
  def get_flow_action(id, opts = {})
118
118
  data, _status_code, _headers = get_flow_action_with_http_info(id, opts)
@@ -120,13 +120,13 @@ module KlaviyoAPI
120
120
  end
121
121
 
122
122
  # Get Flow Action
123
- # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: &#x60;flows&#x60;, &#x60;flow-messages&#x60;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
123
+ # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: &#x60;flows&#x60;, &#x60;flow-messages&#x60;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
124
124
  # @param id [String]
125
125
  # @param [Hash] opts the optional parameters
126
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
127
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
128
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
129
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
126
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
127
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
128
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
129
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
130
130
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
131
131
  def get_flow_action_with_http_info(id, opts = {})
132
132
  if @api_client.config.debugging
@@ -165,7 +165,7 @@ module KlaviyoAPI
165
165
  # header parameters
166
166
  header_params = opts[:header_params] || {}
167
167
  # klaviyo api revision
168
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
168
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
169
169
  # HTTP header 'Accept' (if needed)
170
170
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
171
171
 
@@ -199,36 +199,36 @@ module KlaviyoAPI
199
199
  end
200
200
 
201
201
  # Get Flow For Flow Action
202
- # Get the flow associated with the given action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
203
- # @param action_id [String]
202
+ # Get the flow associated with the given action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
203
+ # @param id [String]
204
204
  # @param [Hash] opts the optional parameters
205
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
205
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
206
206
  # @return [Hash<String, Object>]
207
- def get_flow_action_flow(action_id, opts = {})
208
- data, _status_code, _headers = get_flow_action_flow_with_http_info(action_id, opts)
207
+ def get_flow_action_flow(id, opts = {})
208
+ data, _status_code, _headers = get_flow_action_flow_with_http_info(id, opts)
209
209
  data
210
210
  end
211
211
 
212
212
  # Get Flow For Flow Action
213
- # Get the flow associated with the given action ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
214
- # @param action_id [String]
213
+ # Get the flow associated with the given action ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
214
+ # @param id [String]
215
215
  # @param [Hash] opts the optional parameters
216
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
216
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
217
217
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
218
- def get_flow_action_flow_with_http_info(action_id, opts = {})
218
+ def get_flow_action_flow_with_http_info(id, opts = {})
219
219
  if @api_client.config.debugging
220
220
  @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_action_flow ...'
221
221
  end
222
- # verify the required parameter 'action_id' is set
223
- if @api_client.config.client_side_validation && action_id.nil?
224
- fail ArgumentError, "Missing the required parameter 'action_id' when calling FlowsApi.get_flow_action_flow"
222
+ # verify the required parameter 'id' is set
223
+ if @api_client.config.client_side_validation && id.nil?
224
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_action_flow"
225
225
  end
226
226
  allowable_values = ["name", "status", "archived", "created", "updated", "trigger_type"]
227
227
  if @api_client.config.client_side_validation && opts[:'fields_flow'] && !opts[:'fields_flow'].all? { |item| allowable_values.include?(item) }
228
228
  fail ArgumentError, "invalid value for \"fields_flow\", must include one of #{allowable_values}"
229
229
  end
230
230
  # resource path
231
- local_var_path = '/api/flow-actions/{action_id}/flow/'.sub('{' + 'action_id' + '}', CGI.escape(action_id.to_s))
231
+ local_var_path = '/api/flow-actions/{id}/flow/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
232
232
 
233
233
  # query parameters
234
234
  query_params = opts[:query_params] || {}
@@ -237,7 +237,7 @@ module KlaviyoAPI
237
237
  # header parameters
238
238
  header_params = opts[:header_params] || {}
239
239
  # klaviyo api revision
240
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
240
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
241
241
  # HTTP header 'Accept' (if needed)
242
242
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
243
 
@@ -271,58 +271,69 @@ module KlaviyoAPI
271
271
  end
272
272
 
273
273
  # Get Messages For Flow Action
274
- # Get all flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
275
- # @param action_id [String]
274
+ # Get all flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
275
+ # @param id [String]
276
276
  # @param [Hash] opts the optional parameters
277
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
278
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
279
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
280
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
277
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
278
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
279
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
280
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
281
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
281
282
  # @return [Hash<String, Object>]
282
- def get_flow_action_messages(action_id, opts = {})
283
- data, _status_code, _headers = get_flow_action_messages_with_http_info(action_id, opts)
283
+ def get_flow_action_messages(id, opts = {})
284
+ data, _status_code, _headers = get_flow_action_messages_with_http_info(id, opts)
284
285
  data
285
286
  end
286
287
 
287
288
  # Get Messages For Flow Action
288
- # Get all flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
289
- # @param action_id [String]
289
+ # Get all flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
290
+ # @param id [String]
290
291
  # @param [Hash] opts the optional parameters
291
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
292
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
293
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
294
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
292
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
293
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
294
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
295
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
296
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
295
297
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
296
- def get_flow_action_messages_with_http_info(action_id, opts = {})
298
+ def get_flow_action_messages_with_http_info(id, opts = {})
297
299
  if @api_client.config.debugging
298
300
  @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_action_messages ...'
299
301
  end
300
- # verify the required parameter 'action_id' is set
301
- if @api_client.config.client_side_validation && action_id.nil?
302
- fail ArgumentError, "Missing the required parameter 'action_id' when calling FlowsApi.get_flow_action_messages"
302
+ # verify the required parameter 'id' is set
303
+ if @api_client.config.client_side_validation && id.nil?
304
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_action_messages"
303
305
  end
304
306
  allowable_values = ["name", "channel", "content", "created", "updated"]
305
307
  if @api_client.config.client_side_validation && opts[:'fields_flow_message'] && !opts[:'fields_flow_message'].all? { |item| allowable_values.include?(item) }
306
308
  fail ArgumentError, "invalid value for \"fields_flow_message\", must include one of #{allowable_values}"
307
309
  end
310
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 50
311
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_action_messages, must be smaller than or equal to 50.'
312
+ end
313
+
314
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
315
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_action_messages, must be greater than or equal to 1.'
316
+ end
317
+
308
318
  allowable_values = ["created", "-created", "id", "-id", "name", "-name", "updated", "-updated"]
309
319
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
310
320
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
311
321
  end
312
322
  # resource path
313
- local_var_path = '/api/flow-actions/{action_id}/flow-messages/'.sub('{' + 'action_id' + '}', CGI.escape(action_id.to_s))
323
+ local_var_path = '/api/flow-actions/{id}/flow-messages/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
314
324
 
315
325
  # query parameters
316
326
  query_params = opts[:query_params] || {}
317
327
  query_params[:'fields[flow-message]'] = @api_client.build_collection_param(opts[:'fields_flow_message'], :csv) if !opts[:'fields_flow_message'].nil?
318
328
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
319
329
  query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
330
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
320
331
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
321
332
 
322
333
  # header parameters
323
334
  header_params = opts[:header_params] || {}
324
335
  # klaviyo api revision
325
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
336
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
326
337
  # HTTP header 'Accept' (if needed)
327
338
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
328
339
 
@@ -355,63 +366,128 @@ module KlaviyoAPI
355
366
  return data, status_code, headers
356
367
  end
357
368
 
358
- # Get Flow Action Relationships
359
- # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
369
+ # Get Flow Action Relationships Flow
370
+ # Get the flow associated with the given action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
360
371
  # @param id [String]
361
- # @param related_resource [String]
362
372
  # @param [Hash] opts the optional parameters
363
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
364
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
365
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
366
373
  # @return [Hash<String, Object>]
367
- def get_flow_action_relationships(id, related_resource, opts = {})
368
- data, _status_code, _headers = get_flow_action_relationships_with_http_info(id, related_resource, opts)
374
+ def get_flow_action_relationships_flow(id, opts = {})
375
+ data, _status_code, _headers = get_flow_action_relationships_flow_with_http_info(id, opts)
369
376
  data
370
377
  end
371
378
 
372
- # Get Flow Action Relationships
373
- # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
379
+ # Get Flow Action Relationships Flow
380
+ # Get the flow associated with the given action ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
374
381
  # @param id [String]
375
- # @param related_resource [String]
376
382
  # @param [Hash] opts the optional parameters
377
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
378
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
379
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
380
383
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
381
- def get_flow_action_relationships_with_http_info(id, related_resource, opts = {})
384
+ def get_flow_action_relationships_flow_with_http_info(id, opts = {})
382
385
  if @api_client.config.debugging
383
- @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_action_relationships ...'
386
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_action_relationships_flow ...'
384
387
  end
385
388
  # verify the required parameter 'id' is set
386
389
  if @api_client.config.client_side_validation && id.nil?
387
- fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_action_relationships"
390
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_action_relationships_flow"
388
391
  end
389
- # verify the required parameter 'related_resource' is set
390
- if @api_client.config.client_side_validation && related_resource.nil?
391
- fail ArgumentError, "Missing the required parameter 'related_resource' when calling FlowsApi.get_flow_action_relationships"
392
+ # resource path
393
+ local_var_path = '/api/flow-actions/{id}/relationships/flow/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+
398
+ # header parameters
399
+ header_params = opts[:header_params] || {}
400
+ # klaviyo api revision
401
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
402
+ # HTTP header 'Accept' (if needed)
403
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
404
+
405
+ # form parameters
406
+ form_params = opts[:form_params] || {}
407
+
408
+ # http body (model)
409
+ post_body = opts[:debug_body]
410
+
411
+ # return_type
412
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
413
+
414
+ # auth_names
415
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
416
+
417
+ new_options = opts.merge(
418
+ :operation => :"FlowsApi.get_flow_action_relationships_flow",
419
+ :header_params => header_params,
420
+ :query_params => query_params,
421
+ :form_params => form_params,
422
+ :body => post_body,
423
+ :auth_names => auth_names,
424
+ :return_type => return_type
425
+ )
426
+
427
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_action_relationships_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
430
  end
393
- # verify enum value
394
- allowable_values = ["flow", "flow-messages"]
395
- if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
396
- fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
431
+ return data, status_code, headers
432
+ end
433
+
434
+ # Get Flow Action Relationships Messages
435
+ # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
436
+ # @param id [String]
437
+ # @param [Hash] opts the optional parameters
438
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
439
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
440
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
441
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
442
+ # @return [Hash<String, Object>]
443
+ def get_flow_action_relationships_messages(id, opts = {})
444
+ data, _status_code, _headers = get_flow_action_relationships_messages_with_http_info(id, opts)
445
+ data
446
+ end
447
+
448
+ # Get Flow Action Relationships Messages
449
+ # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
450
+ # @param id [String]
451
+ # @param [Hash] opts the optional parameters
452
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
453
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
454
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
455
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
456
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
457
+ def get_flow_action_relationships_messages_with_http_info(id, opts = {})
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_action_relationships_messages ...'
460
+ end
461
+ # verify the required parameter 'id' is set
462
+ if @api_client.config.client_side_validation && id.nil?
463
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_action_relationships_messages"
397
464
  end
465
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 50
466
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_action_relationships_messages, must be smaller than or equal to 50.'
467
+ end
468
+
469
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
470
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_action_relationships_messages, must be greater than or equal to 1.'
471
+ end
472
+
398
473
  allowable_values = ["created", "-created", "id", "-id", "name", "-name", "updated", "-updated"]
399
474
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
400
475
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
401
476
  end
402
477
  # resource path
403
- local_var_path = '/api/flow-actions/{id}/relationships/{related_resource}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'related_resource' + '}', CGI.escape(related_resource.to_s))
478
+ local_var_path = '/api/flow-actions/{id}/relationships/flow-messages/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
404
479
 
405
480
  # query parameters
406
481
  query_params = opts[:query_params] || {}
407
482
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
408
483
  query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
484
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
409
485
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
410
486
 
411
487
  # header parameters
412
488
  header_params = opts[:header_params] || {}
413
489
  # klaviyo api revision
414
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
490
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
415
491
  # HTTP header 'Accept' (if needed)
416
492
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
417
493
 
@@ -428,7 +504,7 @@ module KlaviyoAPI
428
504
  auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
429
505
 
430
506
  new_options = opts.merge(
431
- :operation => :"FlowsApi.get_flow_action_relationships",
507
+ :operation => :"FlowsApi.get_flow_action_relationships_messages",
432
508
  :header_params => header_params,
433
509
  :query_params => query_params,
434
510
  :form_params => form_params,
@@ -439,64 +515,75 @@ module KlaviyoAPI
439
515
 
440
516
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
441
517
  if @api_client.config.debugging
442
- @api_client.config.logger.debug "API called: FlowsApi#get_flow_action_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
518
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_action_relationships_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
443
519
  end
444
520
  return data, status_code, headers
445
521
  end
446
522
 
447
523
  # Get Flow Actions For Flow
448
- # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
449
- # @param flow_id [String]
524
+ # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
525
+ # @param id [String]
450
526
  # @param [Hash] opts the optional parameters
451
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
452
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;action_type&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
453
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
454
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
527
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
528
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;action_type&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
529
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
530
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
531
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
455
532
  # @return [Hash<String, Object>]
456
- def get_flow_flow_actions(flow_id, opts = {})
457
- data, _status_code, _headers = get_flow_flow_actions_with_http_info(flow_id, opts)
533
+ def get_flow_flow_actions(id, opts = {})
534
+ data, _status_code, _headers = get_flow_flow_actions_with_http_info(id, opts)
458
535
  data
459
536
  end
460
537
 
461
538
  # Get Flow Actions For Flow
462
- # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
463
- # @param flow_id [String]
539
+ # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
540
+ # @param id [String]
464
541
  # @param [Hash] opts the optional parameters
465
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
466
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;action_type&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
467
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
468
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
542
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
543
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;action_type&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
544
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
545
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
546
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
469
547
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
470
- def get_flow_flow_actions_with_http_info(flow_id, opts = {})
548
+ def get_flow_flow_actions_with_http_info(id, opts = {})
471
549
  if @api_client.config.debugging
472
550
  @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_flow_actions ...'
473
551
  end
474
- # verify the required parameter 'flow_id' is set
475
- if @api_client.config.client_side_validation && flow_id.nil?
476
- fail ArgumentError, "Missing the required parameter 'flow_id' when calling FlowsApi.get_flow_flow_actions"
552
+ # verify the required parameter 'id' is set
553
+ if @api_client.config.client_side_validation && id.nil?
554
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_flow_actions"
477
555
  end
478
556
  allowable_values = ["action_type", "status", "created", "updated", "settings", "tracking_options", "send_options", "send_options.use_smart_sending", "send_options.is_transactional", "render_options", "render_options.shorten_links", "render_options.add_org_prefix", "render_options.add_info_link", "render_options.add_opt_out_language"]
479
557
  if @api_client.config.client_side_validation && opts[:'fields_flow_action'] && !opts[:'fields_flow_action'].all? { |item| allowable_values.include?(item) }
480
558
  fail ArgumentError, "invalid value for \"fields_flow_action\", must include one of #{allowable_values}"
481
559
  end
560
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 50
561
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_flow_actions, must be smaller than or equal to 50.'
562
+ end
563
+
564
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
565
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_flow_actions, must be greater than or equal to 1.'
566
+ end
567
+
482
568
  allowable_values = ["action_type", "-action_type", "created", "-created", "id", "-id", "status", "-status", "updated", "-updated"]
483
569
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
484
570
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
485
571
  end
486
572
  # resource path
487
- local_var_path = '/api/flows/{flow_id}/flow-actions/'.sub('{' + 'flow_id' + '}', CGI.escape(flow_id.to_s))
573
+ local_var_path = '/api/flows/{id}/flow-actions/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
488
574
 
489
575
  # query parameters
490
576
  query_params = opts[:query_params] || {}
491
577
  query_params[:'fields[flow-action]'] = @api_client.build_collection_param(opts[:'fields_flow_action'], :csv) if !opts[:'fields_flow_action'].nil?
492
578
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
493
579
  query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
580
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
494
581
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
495
582
 
496
583
  # header parameters
497
584
  header_params = opts[:header_params] || {}
498
585
  # klaviyo api revision
499
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
586
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
500
587
  # HTTP header 'Accept' (if needed)
501
588
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
502
589
 
@@ -530,12 +617,12 @@ module KlaviyoAPI
530
617
  end
531
618
 
532
619
  # Get Flow Message
533
- # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: 'flow-actions'<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
620
+ # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: 'flow-actions'<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
534
621
  # @param id [String]
535
622
  # @param [Hash] opts the optional parameters
536
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
537
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
538
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
623
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
624
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
625
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
539
626
  # @return [Hash<String, Object>]
540
627
  def get_flow_message(id, opts = {})
541
628
  data, _status_code, _headers = get_flow_message_with_http_info(id, opts)
@@ -543,12 +630,12 @@ module KlaviyoAPI
543
630
  end
544
631
 
545
632
  # Get Flow Message
546
- # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: &#39;flow-actions&#39;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
633
+ # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: &#39;flow-actions&#39;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
547
634
  # @param id [String]
548
635
  # @param [Hash] opts the optional parameters
549
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
550
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
551
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
636
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
637
+ # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
638
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
552
639
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
553
640
  def get_flow_message_with_http_info(id, opts = {})
554
641
  if @api_client.config.debugging
@@ -582,7 +669,7 @@ module KlaviyoAPI
582
669
  # header parameters
583
670
  header_params = opts[:header_params] || {}
584
671
  # klaviyo api revision
585
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
672
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
586
673
  # HTTP header 'Accept' (if needed)
587
674
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
588
675
 
@@ -616,36 +703,36 @@ module KlaviyoAPI
616
703
  end
617
704
 
618
705
  # Get Flow Action For Message
619
- # Get the flow action for a flow message with the given message ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
620
- # @param message_id [String]
706
+ # Get the flow action for a flow message with the given message ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
707
+ # @param id [String]
621
708
  # @param [Hash] opts the optional parameters
622
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
709
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
623
710
  # @return [Hash<String, Object>]
624
- def get_flow_message_action(message_id, opts = {})
625
- data, _status_code, _headers = get_flow_message_action_with_http_info(message_id, opts)
711
+ def get_flow_message_action(id, opts = {})
712
+ data, _status_code, _headers = get_flow_message_action_with_http_info(id, opts)
626
713
  data
627
714
  end
628
715
 
629
716
  # Get Flow Action For Message
630
- # Get the flow action for a flow message with the given message ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
631
- # @param message_id [String]
717
+ # Get the flow action for a flow message with the given message ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
718
+ # @param id [String]
632
719
  # @param [Hash] opts the optional parameters
633
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
720
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
634
721
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
635
- def get_flow_message_action_with_http_info(message_id, opts = {})
722
+ def get_flow_message_action_with_http_info(id, opts = {})
636
723
  if @api_client.config.debugging
637
724
  @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_message_action ...'
638
725
  end
639
- # verify the required parameter 'message_id' is set
640
- if @api_client.config.client_side_validation && message_id.nil?
641
- fail ArgumentError, "Missing the required parameter 'message_id' when calling FlowsApi.get_flow_message_action"
726
+ # verify the required parameter 'id' is set
727
+ if @api_client.config.client_side_validation && id.nil?
728
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_message_action"
642
729
  end
643
730
  allowable_values = ["action_type", "status", "created", "updated", "settings", "tracking_options", "send_options", "send_options.use_smart_sending", "send_options.is_transactional", "render_options", "render_options.shorten_links", "render_options.add_org_prefix", "render_options.add_info_link", "render_options.add_opt_out_language"]
644
731
  if @api_client.config.client_side_validation && opts[:'fields_flow_action'] && !opts[:'fields_flow_action'].all? { |item| allowable_values.include?(item) }
645
732
  fail ArgumentError, "invalid value for \"fields_flow_action\", must include one of #{allowable_values}"
646
733
  end
647
734
  # resource path
648
- local_var_path = '/api/flow-messages/{message_id}/flow-action/'.sub('{' + 'message_id' + '}', CGI.escape(message_id.to_s))
735
+ local_var_path = '/api/flow-messages/{id}/flow-action/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
649
736
 
650
737
  # query parameters
651
738
  query_params = opts[:query_params] || {}
@@ -654,7 +741,7 @@ module KlaviyoAPI
654
741
  # header parameters
655
742
  header_params = opts[:header_params] || {}
656
743
  # klaviyo api revision
657
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
744
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
658
745
  # HTTP header 'Accept' (if needed)
659
746
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
660
747
 
@@ -687,42 +774,31 @@ module KlaviyoAPI
687
774
  return data, status_code, headers
688
775
  end
689
776
 
690
- # Get Flow Message Relationships
691
- # Get the [relationship](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a flow message's flow action, given the flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
777
+ # Get Flow Message Relationships Action
778
+ # Get the [relationship](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a flow message's flow action, given the flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
692
779
  # @param id [String]
693
- # @param related_resource [String]
694
780
  # @param [Hash] opts the optional parameters
695
781
  # @return [Hash<String, Object>]
696
- def get_flow_message_relationships(id, related_resource, opts = {})
697
- data, _status_code, _headers = get_flow_message_relationships_with_http_info(id, related_resource, opts)
782
+ def get_flow_message_relationships_action(id, opts = {})
783
+ data, _status_code, _headers = get_flow_message_relationships_action_with_http_info(id, opts)
698
784
  data
699
785
  end
700
786
 
701
- # Get Flow Message Relationships
702
- # Get the [relationship](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a flow message&#39;s flow action, given the flow ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
787
+ # Get Flow Message Relationships Action
788
+ # Get the [relationship](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a flow message&#39;s flow action, given the flow ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
703
789
  # @param id [String]
704
- # @param related_resource [String]
705
790
  # @param [Hash] opts the optional parameters
706
791
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
707
- def get_flow_message_relationships_with_http_info(id, related_resource, opts = {})
792
+ def get_flow_message_relationships_action_with_http_info(id, opts = {})
708
793
  if @api_client.config.debugging
709
- @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_message_relationships ...'
794
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_message_relationships_action ...'
710
795
  end
711
796
  # verify the required parameter 'id' is set
712
797
  if @api_client.config.client_side_validation && id.nil?
713
- fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_message_relationships"
714
- end
715
- # verify the required parameter 'related_resource' is set
716
- if @api_client.config.client_side_validation && related_resource.nil?
717
- fail ArgumentError, "Missing the required parameter 'related_resource' when calling FlowsApi.get_flow_message_relationships"
718
- end
719
- # verify enum value
720
- allowable_values = ["flow-action"]
721
- if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
722
- fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
798
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_message_relationships_action"
723
799
  end
724
800
  # resource path
725
- local_var_path = '/api/flow-messages/{id}/relationships/{related_resource}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'related_resource' + '}', CGI.escape(related_resource.to_s))
801
+ local_var_path = '/api/flow-messages/{id}/relationships/flow-action/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
726
802
 
727
803
  # query parameters
728
804
  query_params = opts[:query_params] || {}
@@ -730,7 +806,7 @@ module KlaviyoAPI
730
806
  # header parameters
731
807
  header_params = opts[:header_params] || {}
732
808
  # klaviyo api revision
733
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
809
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
734
810
  # HTTP header 'Accept' (if needed)
735
811
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
736
812
 
@@ -747,7 +823,7 @@ module KlaviyoAPI
747
823
  auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
748
824
 
749
825
  new_options = opts.merge(
750
- :operation => :"FlowsApi.get_flow_message_relationships",
826
+ :operation => :"FlowsApi.get_flow_message_relationships_action",
751
827
  :header_params => header_params,
752
828
  :query_params => query_params,
753
829
  :form_params => form_params,
@@ -758,55 +834,65 @@ module KlaviyoAPI
758
834
 
759
835
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
760
836
  if @api_client.config.debugging
761
- @api_client.config.logger.debug "API called: FlowsApi#get_flow_message_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_message_relationships_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
762
838
  end
763
839
  return data, status_code, headers
764
840
  end
765
841
 
766
- # Get Flow Relationships
767
- # If the `related_resource` is `tags`, returns the tag IDs of all tags associated with the given flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read` `Tags Read`
842
+ # Get Flow Relationships Flow Actions
843
+ # Get all [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for flow actions associated with the given flow ID. Flow action relationships can be sorted by the following fields, in ascending and descending order: `id`, `status`, `created`, `updated` Use filters to narrow your results. Returns a maximum of 50 flow action relationships per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: `page[size]` and `page[number]`.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
768
844
  # @param id [String]
769
- # @param related_resource [String]
770
845
  # @param [Hash] opts the optional parameters
846
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;action_type&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
847
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50)
848
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
771
849
  # @return [Hash<String, Object>]
772
- def get_flow_relationships(id, related_resource, opts = {})
773
- data, _status_code, _headers = get_flow_relationships_with_http_info(id, related_resource, opts)
850
+ def get_flow_relationships_flow_actions(id, opts = {})
851
+ data, _status_code, _headers = get_flow_relationships_flow_actions_with_http_info(id, opts)
774
852
  data
775
853
  end
776
854
 
777
- # Get Flow Relationships
778
- # If the &#x60;related_resource&#x60; is &#x60;tags&#x60;, returns the tag IDs of all tags associated with the given flow.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60; &#x60;Tags Read&#x60;
855
+ # Get Flow Relationships Flow Actions
856
+ # Get all [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for flow actions associated with the given flow ID. Flow action relationships can be sorted by the following fields, in ascending and descending order: &#x60;id&#x60;, &#x60;status&#x60;, &#x60;created&#x60;, &#x60;updated&#x60; Use filters to narrow your results. Returns a maximum of 50 flow action relationships per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: &#x60;page[size]&#x60; and &#x60;page[number]&#x60;.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
779
857
  # @param id [String]
780
- # @param related_resource [String]
781
858
  # @param [Hash] opts the optional parameters
859
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;action_type&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;
860
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50)
861
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
782
862
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
783
- def get_flow_relationships_with_http_info(id, related_resource, opts = {})
863
+ def get_flow_relationships_flow_actions_with_http_info(id, opts = {})
784
864
  if @api_client.config.debugging
785
- @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_relationships ...'
865
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_relationships_flow_actions ...'
786
866
  end
787
867
  # verify the required parameter 'id' is set
788
868
  if @api_client.config.client_side_validation && id.nil?
789
- fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_relationships"
869
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_relationships_flow_actions"
790
870
  end
791
- # verify the required parameter 'related_resource' is set
792
- if @api_client.config.client_side_validation && related_resource.nil?
793
- fail ArgumentError, "Missing the required parameter 'related_resource' when calling FlowsApi.get_flow_relationships"
871
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
872
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_relationships_flow_actions, must be smaller than or equal to 100.'
794
873
  end
795
- # verify enum value
796
- allowable_values = ["flow-actions", "tags"]
797
- if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
798
- fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
874
+
875
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
876
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flow_relationships_flow_actions, must be greater than or equal to 1.'
877
+ end
878
+
879
+ allowable_values = ["created", "-created", "id", "-id", "status", "-status", "updated", "-updated"]
880
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
881
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
799
882
  end
800
883
  # resource path
801
- local_var_path = '/api/flows/{id}/relationships/{related_resource}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'related_resource' + '}', CGI.escape(related_resource.to_s))
884
+ local_var_path = '/api/flows/{id}/relationships/flow-actions/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
802
885
 
803
886
  # query parameters
804
887
  query_params = opts[:query_params] || {}
888
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
889
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
890
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
805
891
 
806
892
  # header parameters
807
893
  header_params = opts[:header_params] || {}
808
894
  # klaviyo api revision
809
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
895
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
810
896
  # HTTP header 'Accept' (if needed)
811
897
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
812
898
 
@@ -823,7 +909,7 @@ module KlaviyoAPI
823
909
  auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
824
910
 
825
911
  new_options = opts.merge(
826
- :operation => :"FlowsApi.get_flow_relationships",
912
+ :operation => :"FlowsApi.get_flow_relationships_flow_actions",
827
913
  :header_params => header_params,
828
914
  :query_params => query_params,
829
915
  :form_params => form_params,
@@ -834,42 +920,107 @@ module KlaviyoAPI
834
920
 
835
921
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
836
922
  if @api_client.config.debugging
837
- @api_client.config.logger.debug "API called: FlowsApi#get_flow_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
923
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_relationships_flow_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
924
+ end
925
+ return data, status_code, headers
926
+ end
927
+
928
+ # Get Flow Relationships Tags
929
+ # Return the tag IDs of all tags associated with the given flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` `tags:read`
930
+ # @param id [String]
931
+ # @param [Hash] opts the optional parameters
932
+ # @return [Hash<String, Object>]
933
+ def get_flow_relationships_tags(id, opts = {})
934
+ data, _status_code, _headers = get_flow_relationships_tags_with_http_info(id, opts)
935
+ data
936
+ end
937
+
938
+ # Get Flow Relationships Tags
939
+ # Return the tag IDs of all tags associated with the given flow.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60; &#x60;tags:read&#x60;
940
+ # @param id [String]
941
+ # @param [Hash] opts the optional parameters
942
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
943
+ def get_flow_relationships_tags_with_http_info(id, opts = {})
944
+ if @api_client.config.debugging
945
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_relationships_tags ...'
946
+ end
947
+ # verify the required parameter 'id' is set
948
+ if @api_client.config.client_side_validation && id.nil?
949
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_relationships_tags"
950
+ end
951
+ # resource path
952
+ local_var_path = '/api/flows/{id}/relationships/tags/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
953
+
954
+ # query parameters
955
+ query_params = opts[:query_params] || {}
956
+
957
+ # header parameters
958
+ header_params = opts[:header_params] || {}
959
+ # klaviyo api revision
960
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
961
+ # HTTP header 'Accept' (if needed)
962
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
963
+
964
+ # form parameters
965
+ form_params = opts[:form_params] || {}
966
+
967
+ # http body (model)
968
+ post_body = opts[:debug_body]
969
+
970
+ # return_type
971
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
972
+
973
+ # auth_names
974
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
975
+
976
+ new_options = opts.merge(
977
+ :operation => :"FlowsApi.get_flow_relationships_tags",
978
+ :header_params => header_params,
979
+ :query_params => query_params,
980
+ :form_params => form_params,
981
+ :body => post_body,
982
+ :auth_names => auth_names,
983
+ :return_type => return_type
984
+ )
985
+
986
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
987
+ if @api_client.config.debugging
988
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_relationships_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
838
989
  end
839
990
  return data, status_code, headers
840
991
  end
841
992
 
842
993
  # Get Flow Tags
843
- # Return all tags associated with the given flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read` `Tags Read`
844
- # @param flow_id [String]
994
+ # Return all tags associated with the given flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` `tags:read`
995
+ # @param id [String]
845
996
  # @param [Hash] opts the optional parameters
846
- # @option opts [Array<String>] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
997
+ # @option opts [Array<String>] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
847
998
  # @return [Hash<String, Object>]
848
- def get_flow_tags(flow_id, opts = {})
849
- data, _status_code, _headers = get_flow_tags_with_http_info(flow_id, opts)
999
+ def get_flow_tags(id, opts = {})
1000
+ data, _status_code, _headers = get_flow_tags_with_http_info(id, opts)
850
1001
  data
851
1002
  end
852
1003
 
853
1004
  # Get Flow Tags
854
- # Return all tags associated with the given flow ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60; &#x60;Tags Read&#x60;
855
- # @param flow_id [String]
1005
+ # Return all tags associated with the given flow ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60; &#x60;tags:read&#x60;
1006
+ # @param id [String]
856
1007
  # @param [Hash] opts the optional parameters
857
- # @option opts [Array<String>] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
1008
+ # @option opts [Array<String>] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
858
1009
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
859
- def get_flow_tags_with_http_info(flow_id, opts = {})
1010
+ def get_flow_tags_with_http_info(id, opts = {})
860
1011
  if @api_client.config.debugging
861
1012
  @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_tags ...'
862
1013
  end
863
- # verify the required parameter 'flow_id' is set
864
- if @api_client.config.client_side_validation && flow_id.nil?
865
- fail ArgumentError, "Missing the required parameter 'flow_id' when calling FlowsApi.get_flow_tags"
1014
+ # verify the required parameter 'id' is set
1015
+ if @api_client.config.client_side_validation && id.nil?
1016
+ fail ArgumentError, "Missing the required parameter 'id' when calling FlowsApi.get_flow_tags"
866
1017
  end
867
1018
  allowable_values = ["name"]
868
1019
  if @api_client.config.client_side_validation && opts[:'fields_tag'] && !opts[:'fields_tag'].all? { |item| allowable_values.include?(item) }
869
1020
  fail ArgumentError, "invalid value for \"fields_tag\", must include one of #{allowable_values}"
870
1021
  end
871
1022
  # resource path
872
- local_var_path = '/api/flows/{flow_id}/tags/'.sub('{' + 'flow_id' + '}', CGI.escape(flow_id.to_s))
1023
+ local_var_path = '/api/flows/{id}/tags/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
873
1024
 
874
1025
  # query parameters
875
1026
  query_params = opts[:query_params] || {}
@@ -878,7 +1029,7 @@ module KlaviyoAPI
878
1029
  # header parameters
879
1030
  header_params = opts[:header_params] || {}
880
1031
  # klaviyo api revision
881
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
1032
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
882
1033
  # HTTP header 'Accept' (if needed)
883
1034
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
884
1035
 
@@ -912,14 +1063,15 @@ module KlaviyoAPI
912
1063
  end
913
1064
 
914
1065
  # Get Flows
915
- # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
1066
+ # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read`
916
1067
  # @param [Hash] opts the optional parameters
917
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
918
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
919
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;archived&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;trigger_type&#x60;: &#x60;equals&#x60;
920
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
921
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
922
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
1068
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
1069
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
1070
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;archived&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;trigger_type&#x60;: &#x60;equals&#x60;
1071
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
1072
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
1073
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
1074
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
923
1075
  # @return [Hash<String, Object>]
924
1076
  def get_flows(opts = {})
925
1077
  data, _status_code, _headers = get_flows_with_http_info(opts)
@@ -927,14 +1079,15 @@ module KlaviyoAPI
927
1079
  end
928
1080
 
929
1081
  # Get Flows
930
- # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Read&#x60;
1082
+ # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:read&#x60;
931
1083
  # @param [Hash] opts the optional parameters
932
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
933
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
934
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;archived&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;trigger_type&#x60;: &#x60;equals&#x60;
935
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
936
- # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
937
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
1084
+ # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
1085
+ # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sparse-fieldsets
1086
+ # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;&lt;br&gt;&#x60;name&#x60;: &#x60;contains&#x60;, &#x60;ends-with&#x60;, &#x60;equals&#x60;, &#x60;starts-with&#x60;&lt;br&gt;&#x60;status&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;archived&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;equals&#x60;, &#x60;greater-or-equal&#x60;, &#x60;greater-than&#x60;, &#x60;less-or-equal&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;trigger_type&#x60;: &#x60;equals&#x60;
1087
+ # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#relationships
1088
+ # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#pagination
1089
+ # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50)
1090
+ # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-06-15/reference/api-overview#sorting
938
1091
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
939
1092
  def get_flows_with_http_info(opts = {})
940
1093
  if @api_client.config.debugging
@@ -952,6 +1105,14 @@ module KlaviyoAPI
952
1105
  if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) }
953
1106
  fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}"
954
1107
  end
1108
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 50
1109
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flows, must be smaller than or equal to 50.'
1110
+ end
1111
+
1112
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
1113
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FlowsApi.get_flows, must be greater than or equal to 1.'
1114
+ end
1115
+
955
1116
  allowable_values = ["created", "-created", "id", "-id", "name", "-name", "status", "-status", "trigger_type", "-trigger_type", "updated", "-updated"]
956
1117
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
957
1118
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -966,12 +1127,13 @@ module KlaviyoAPI
966
1127
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
967
1128
  query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil?
968
1129
  query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
1130
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
969
1131
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
970
1132
 
971
1133
  # header parameters
972
1134
  header_params = opts[:header_params] || {}
973
1135
  # klaviyo api revision
974
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
1136
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
975
1137
  # HTTP header 'Accept' (if needed)
976
1138
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
977
1139
 
@@ -1005,8 +1167,8 @@ module KlaviyoAPI
1005
1167
  end
1006
1168
 
1007
1169
  # Update Flow Status
1008
- # Update the status of a flow with the given flow ID, and all actions in that flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Write`
1009
- # @param id [String]
1170
+ # Update the status of a flow with the given flow ID, and all actions in that flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:write`
1171
+ # @param id [String] ID of the Flow to update. Ex: XVTP5Q
1010
1172
  # @param flow_update_query [FlowUpdateQuery]
1011
1173
  # @param [Hash] opts the optional parameters
1012
1174
  # @return [Hash<String, Object>]
@@ -1016,8 +1178,8 @@ module KlaviyoAPI
1016
1178
  end
1017
1179
 
1018
1180
  # Update Flow Status
1019
- # Update the status of a flow with the given flow ID, and all actions in that flow.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;Flows Write&#x60;
1020
- # @param id [String]
1181
+ # Update the status of a flow with the given flow ID, and all actions in that flow.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;3/s&#x60;&lt;br&gt;Steady: &#x60;60/m&#x60; **Scopes:** &#x60;flows:write&#x60;
1182
+ # @param id [String] ID of the Flow to update. Ex: XVTP5Q
1021
1183
  # @param flow_update_query [FlowUpdateQuery]
1022
1184
  # @param [Hash] opts the optional parameters
1023
1185
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
@@ -1042,7 +1204,7 @@ module KlaviyoAPI
1042
1204
  # header parameters
1043
1205
  header_params = opts[:header_params] || {}
1044
1206
  # klaviyo api revision
1045
- header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
1207
+ header_params['revision'] = ENV['API_REVISION'] || "2023-06-15"
1046
1208
  # HTTP header 'Accept' (if needed)
1047
1209
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1048
1210
  # HTTP header 'Content-Type'