klaviyo-api-sdk 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (603) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +513 -119
  4. data/docs/AudiencesSubObject.md +20 -0
  5. data/docs/CampaignCloneQuery.md +18 -0
  6. data/docs/CampaignCloneQueryAsSubResource.md +20 -0
  7. data/docs/CampaignCloneQueryAsSubResourceAttributes.md +20 -0
  8. data/docs/CampaignCreateQuery.md +18 -0
  9. data/docs/CampaignCreateQueryAsSubResource.md +20 -0
  10. data/docs/CampaignCreateQueryAsSubResourceAttributes.md +28 -0
  11. data/docs/CampaignMessageAssignTemplateQuery.md +18 -0
  12. data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +20 -0
  13. data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +20 -0
  14. data/docs/CampaignMessagePartialUpdateQuery.md +18 -0
  15. data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +22 -0
  16. data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +20 -0
  17. data/docs/CampaignPartialUpdateQuery.md +18 -0
  18. data/docs/CampaignPartialUpdateQueryAsSubResource.md +22 -0
  19. data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +26 -0
  20. data/docs/CampaignRecipientEstimationJobCreateQuery.md +18 -0
  21. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResource.md +20 -0
  22. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResourceAttributes.md +18 -0
  23. data/docs/CampaignSendJobCreateQuery.md +18 -0
  24. data/docs/CampaignSendJobCreateQueryAsSubResource.md +20 -0
  25. data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +18 -0
  26. data/docs/CampaignSendJobPartialUpdateQuery.md +18 -0
  27. data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +22 -0
  28. data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +18 -0
  29. data/docs/CampaignTagOp.md +18 -0
  30. data/docs/{ListDeleteQueryAsSubResource.md → CampaignTagOpDataInner.md} +2 -2
  31. data/docs/CampaignsApi.md +1277 -0
  32. data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
  33. data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +7 -7
  34. data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
  35. data/docs/CatalogCategoryDeleteQueryAsSubResource.md +2 -2
  36. data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
  37. data/docs/CatalogCategoryUpdateQueryAsSubResource.md +2 -2
  38. data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +2 -2
  39. data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
  40. data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +23 -21
  41. data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
  42. data/docs/CatalogItemDeleteQueryAsSubResource.md +2 -2
  43. data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
  44. data/docs/CatalogItemUpdateQueryAsSubResource.md +2 -2
  45. data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +18 -16
  46. data/docs/CatalogJobErrorPayload.md +8 -8
  47. data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
  48. data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +29 -29
  49. data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
  50. data/docs/CatalogVariantDeleteQueryAsSubResource.md +2 -2
  51. data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
  52. data/docs/CatalogVariantUpdateQueryAsSubResource.md +2 -2
  53. data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +22 -22
  54. data/docs/CatalogsApi.md +256 -256
  55. data/docs/ClientApi.md +11 -11
  56. data/docs/ContentSubObject.md +28 -0
  57. data/docs/DataPrivacyApi.md +78 -0
  58. data/docs/DataPrivacyCreateDeletionJobQuery.md +18 -0
  59. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +20 -0
  60. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +22 -0
  61. data/docs/ErrorSource.md +2 -2
  62. data/docs/EventCreateQueryAsSubResourceAttributes.md +8 -8
  63. data/docs/EventsApi.md +36 -36
  64. data/docs/FlowsApi.md +147 -69
  65. data/docs/GetCampaigns4XXResponse.md +18 -0
  66. data/docs/GetCampaigns4XXResponseErrorsInner.md +26 -0
  67. data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +20 -0
  68. data/docs/IncludedCategories.md +2 -2
  69. data/docs/IncludedCategoriesAttributes.md +5 -5
  70. data/docs/IncludedItems.md +2 -2
  71. data/docs/IncludedItemsAttributes.md +22 -20
  72. data/docs/IncludedLists.md +2 -2
  73. data/docs/IncludedListsAttributes.md +4 -4
  74. data/docs/IncludedMetrics.md +1 -1
  75. data/docs/IncludedMetricsAttributes.md +4 -4
  76. data/docs/IncludedProfiles.md +2 -2
  77. data/docs/IncludedProfilesAttributes.md +21 -21
  78. data/docs/IncludedSegments.md +1 -1
  79. data/docs/IncludedSegmentsAttributes.md +22 -0
  80. data/docs/{IncludedProfile.md → IncludedTags.md} +5 -5
  81. data/docs/IncludedVariants.md +2 -2
  82. data/docs/IncludedVariantsAttributes.md +28 -28
  83. data/docs/ListCreateQueryAsSubResourceAttributes.md +2 -2
  84. data/docs/ListPartialUpdateQueryAsSubResource.md +2 -2
  85. data/docs/ListsApi.md +111 -35
  86. data/docs/MetricAggregateQueryAsSubResourceAttributes.md +19 -19
  87. data/docs/MetricAggregateRowDTO.md +2 -2
  88. data/docs/MetricCreateQuery.md +3 -3
  89. data/docs/MetricsApi.md +14 -14
  90. data/docs/OnsiteProfileMetaIdentifiers.md +10 -10
  91. data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +10 -10
  92. data/docs/ProfileCreateQueryAsSubResourceAttributes.md +18 -18
  93. data/docs/ProfileLocation.md +15 -15
  94. data/docs/ProfileLocationLongitude.md +49 -0
  95. data/docs/ProfilePartialUpdateQueryAsSubResource.md +2 -2
  96. data/docs/ProfilesApi.md +36 -36
  97. data/docs/STOScheduleOptions.md +18 -0
  98. data/docs/SegmentPartialUpdateQueryAsSubResource.md +1 -1
  99. data/docs/SegmentPartialUpdateQueryAsSubResourceAttributes.md +18 -0
  100. data/docs/SegmentsApi.md +103 -24
  101. data/docs/SendOptionsSubObject.md +18 -0
  102. data/docs/SendStrategySubObject.md +24 -0
  103. data/docs/SendTimeSubObject.md +20 -0
  104. data/docs/StaticScheduleOptions.md +22 -0
  105. data/docs/Subscription.md +8 -4
  106. data/docs/SubscriptionChannels.md +20 -0
  107. data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +5 -5
  108. data/docs/Suppression.md +2 -2
  109. data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
  110. data/docs/TagCreateQuery.md +18 -0
  111. data/docs/TagCreateQueryAsSubResource.md +20 -0
  112. data/docs/TagCreateQueryAsSubResourceAttributes.md +20 -0
  113. data/docs/TagGroupCreateQuery.md +18 -0
  114. data/docs/TagGroupCreateQueryAsSubResource.md +20 -0
  115. data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +20 -0
  116. data/docs/TagGroupUpdateQuery.md +18 -0
  117. data/docs/TagGroupUpdateQueryAsSubResource.md +22 -0
  118. data/docs/{V2TemplateRenderQueryAsSubResourceAttributes.md → TagGroupUpdateQueryAsSubResourceAttributes.md} +4 -4
  119. data/docs/TagSegmentOp.md +18 -0
  120. data/docs/{TemplateDeleteQueryAsSubResource.md → TagSegmentOpDataInner.md} +2 -2
  121. data/docs/TagUpdateQuery.md +18 -0
  122. data/docs/TagUpdateQueryAsSubResource.md +22 -0
  123. data/docs/TagUpdateQueryAsSubResourceAttributes.md +18 -0
  124. data/docs/TagsApi.md +1205 -0
  125. data/docs/TemplateCloneQueryAsSubResourceAttributes.md +5 -3
  126. data/docs/TemplateCreateQueryAsSubResourceAttributes.md +14 -8
  127. data/docs/TemplateRenderQuery.md +18 -0
  128. data/docs/TemplateRenderQueryAsSubResource.md +20 -0
  129. data/docs/TemplateRenderQueryAsSubResourceAttributes.md +22 -0
  130. data/docs/TemplateUpdateQueryAsSubResource.md +1 -1
  131. data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +13 -7
  132. data/docs/TemplatesApi.md +40 -44
  133. data/docs/ThrottledScheduleOptions.md +20 -0
  134. data/docs/TrackingOptionsSubObject.md +24 -0
  135. data/docs/UTMParamsSubObject.md +20 -0
  136. data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +6 -6
  137. data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +1 -1
  138. data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +18 -0
  139. data/docs/V2TemplateRenderQueryAsSubResource.md +2 -4
  140. data/klaviyo-api-sdk.gemspec +3 -3
  141. data/lib/klaviyo-api-sdk/api/campaigns_api.rb +1275 -0
  142. data/lib/klaviyo-api-sdk/api/catalogs_api.rb +338 -338
  143. data/lib/klaviyo-api-sdk/api/client_api.rb +12 -12
  144. data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +92 -0
  145. data/lib/klaviyo-api-sdk/api/events_api.rb +46 -46
  146. data/lib/klaviyo-api-sdk/api/flows_api.rb +167 -93
  147. data/lib/klaviyo-api-sdk/api/lists_api.rb +122 -50
  148. data/lib/klaviyo-api-sdk/api/metrics_api.rb +21 -21
  149. data/lib/klaviyo-api-sdk/api/profiles_api.rb +53 -53
  150. data/lib/klaviyo-api-sdk/api/segments_api.rb +112 -33
  151. data/lib/klaviyo-api-sdk/api/tags_api.rb +1216 -0
  152. data/lib/klaviyo-api-sdk/api/templates_api.rb +57 -69
  153. data/lib/klaviyo-api-sdk/api_client.rb +3 -3
  154. data/lib/klaviyo-api-sdk/api_error.rb +2 -2
  155. data/lib/klaviyo-api-sdk/configuration.rb +2 -2
  156. data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +234 -0
  157. data/lib/klaviyo-api-sdk/models/{v2_template_render_query.rb → campaign_clone_query.rb} +6 -6
  158. data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +272 -0
  159. data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource_attributes.rb +235 -0
  160. data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +224 -0
  161. data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +272 -0
  162. data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource_attributes.rb +291 -0
  163. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +224 -0
  164. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +272 -0
  165. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource_attributes.rb +240 -0
  166. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +224 -0
  167. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +287 -0
  168. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource_attributes.rb +229 -0
  169. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +224 -0
  170. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +287 -0
  171. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource_attributes.rb +256 -0
  172. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +224 -0
  173. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource.rb +272 -0
  174. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes.rb +225 -0
  175. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +224 -0
  176. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource.rb +272 -0
  177. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource_attributes.rb +225 -0
  178. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +224 -0
  179. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +287 -0
  180. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource_attributes.rb +225 -0
  181. data/lib/klaviyo-api-sdk/models/campaign_tag_op.rb +226 -0
  182. data/lib/klaviyo-api-sdk/models/{list_delete_query_as_sub_resource.rb → campaign_tag_op_data_inner.rb} +7 -7
  183. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
  184. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +2 -2
  185. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource_attributes.rb +3 -2
  186. data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
  187. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +2 -2
  188. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource_attributes.rb +8 -3
  189. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
  190. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +2 -2
  191. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
  192. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +3 -2
  193. data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
  194. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
  195. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +2 -2
  196. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource_attributes.rb +3 -2
  197. data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
  198. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +3 -2
  199. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource_attributes.rb +3 -2
  200. data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
  201. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
  202. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +2 -2
  203. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource_attributes.rb +3 -2
  204. data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
  205. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +2 -2
  206. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_attributes.rb +28 -4
  207. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships.rb +2 -2
  208. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories.rb +2 -2
  209. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb +2 -2
  210. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
  211. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +2 -2
  212. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
  213. data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_as_sub_resource.rb +3 -2
  214. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
  215. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +2 -2
  216. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource_attributes.rb +3 -2
  217. data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
  218. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +3 -2
  219. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource_attributes.rb +21 -3
  220. data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +6 -2
  221. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
  222. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +2 -2
  223. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource_attributes.rb +3 -2
  224. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
  225. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +2 -2
  226. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_attributes.rb +21 -9
  227. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships.rb +2 -2
  228. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items.rb +2 -2
  229. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb +2 -2
  230. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
  231. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +2 -2
  232. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
  233. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +3 -2
  234. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
  235. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +2 -2
  236. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource_attributes.rb +3 -2
  237. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
  238. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +3 -2
  239. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource_attributes.rb +13 -3
  240. data/lib/klaviyo-api-sdk/models/content_sub_object.rb +270 -0
  241. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +224 -0
  242. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +272 -0
  243. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb +240 -0
  244. data/lib/klaviyo-api-sdk/models/email_message_content.rb +2 -2
  245. data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +2 -2
  246. data/lib/klaviyo-api-sdk/models/error_source.rb +5 -2
  247. data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
  248. data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource.rb +2 -2
  249. data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource_attributes.rb +7 -2
  250. data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
  251. data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +2 -2
  252. data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource_attributes.rb +2 -2
  253. data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response.rb +226 -0
  254. data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner.rb +275 -0
  255. data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner_source.rb +228 -0
  256. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +2 -2
  257. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +2 -2
  258. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner_source.rb +2 -2
  259. data/lib/klaviyo-api-sdk/models/included_categories.rb +3 -2
  260. data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +5 -2
  261. data/lib/klaviyo-api-sdk/models/included_flow_action.rb +2 -2
  262. data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +2 -2
  263. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +2 -2
  264. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +2 -2
  265. data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +2 -2
  266. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +2 -2
  267. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +2 -2
  268. data/lib/klaviyo-api-sdk/models/included_flows.rb +2 -2
  269. data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +2 -2
  270. data/lib/klaviyo-api-sdk/models/included_items.rb +3 -2
  271. data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +24 -3
  272. data/lib/klaviyo-api-sdk/models/included_lists.rb +3 -2
  273. data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +5 -2
  274. data/lib/klaviyo-api-sdk/models/included_metrics.rb +3 -2
  275. data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +6 -2
  276. data/lib/klaviyo-api-sdk/models/included_profiles.rb +3 -2
  277. data/lib/klaviyo-api-sdk/models/included_profiles_attributes.rb +14 -2
  278. data/lib/klaviyo-api-sdk/models/included_segments.rb +3 -3
  279. data/lib/klaviyo-api-sdk/models/included_segments_attributes.rb +240 -0
  280. data/lib/klaviyo-api-sdk/models/{included_profile.rb → included_tags.rb} +9 -8
  281. data/lib/klaviyo-api-sdk/models/included_variants.rb +3 -2
  282. data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +17 -3
  283. data/lib/klaviyo-api-sdk/models/included_variants_links.rb +2 -2
  284. data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
  285. data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource.rb +2 -2
  286. data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource_attributes.rb +3 -2
  287. data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +2 -2
  288. data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +2 -2
  289. data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +2 -2
  290. data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
  291. data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +3 -2
  292. data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
  293. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +2 -2
  294. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource_attributes.rb +29 -21
  295. data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +4 -2
  296. data/lib/klaviyo-api-sdk/models/metric_create_query.rb +4 -2
  297. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query.rb +2 -2
  298. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +2 -2
  299. data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +2 -2
  300. data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +17 -12
  301. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query.rb +2 -2
  302. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +2 -2
  303. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +7 -2
  304. data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
  305. data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +2 -2
  306. data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource_attributes.rb +11 -2
  307. data/lib/klaviyo-api-sdk/models/profile_location.rb +10 -3
  308. data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +3 -2
  309. data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +106 -0
  310. data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
  311. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +3 -2
  312. data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
  313. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +3 -3
  314. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource_attributes.rb +224 -0
  315. data/lib/klaviyo-api-sdk/models/send_options.rb +2 -2
  316. data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +220 -0
  317. data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +252 -0
  318. data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +240 -0
  319. data/lib/klaviyo-api-sdk/models/sms_message_content.rb +2 -2
  320. data/lib/klaviyo-api-sdk/models/sms_render_options.rb +2 -2
  321. data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +2 -2
  322. data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +245 -0
  323. data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +225 -0
  324. data/lib/klaviyo-api-sdk/models/subscription.rb +27 -6
  325. data/lib/klaviyo-api-sdk/models/subscription_channels.rb +256 -0
  326. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
  327. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +2 -2
  328. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource_attributes.rb +5 -2
  329. data/lib/klaviyo-api-sdk/models/suppression.rb +3 -2
  330. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
  331. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +2 -2
  332. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource_attributes.rb +3 -2
  333. data/lib/klaviyo-api-sdk/models/tag_create_query.rb +224 -0
  334. data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource.rb +272 -0
  335. data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource_attributes.rb +235 -0
  336. data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +224 -0
  337. data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +272 -0
  338. data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource_attributes.rb +234 -0
  339. data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +224 -0
  340. data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +287 -0
  341. data/lib/klaviyo-api-sdk/models/{v2_template_render_query_as_sub_resource_attributes.rb → tag_group_update_query_as_sub_resource_attributes.rb} +16 -15
  342. data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +226 -0
  343. data/lib/klaviyo-api-sdk/models/{template_delete_query_as_sub_resource.rb → tag_segment_op_data_inner.rb} +7 -7
  344. data/lib/klaviyo-api-sdk/models/tag_update_query.rb +224 -0
  345. data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +287 -0
  346. data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource_attributes.rb +225 -0
  347. data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
  348. data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +2 -2
  349. data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource_attributes.rb +20 -3
  350. data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
  351. data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +2 -2
  352. data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource_attributes.rb +7 -2
  353. data/lib/klaviyo-api-sdk/models/template_render_query.rb +224 -0
  354. data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +272 -0
  355. data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource_attributes.rb +252 -0
  356. data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
  357. data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +3 -2
  358. data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource_attributes.rb +6 -2
  359. data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +240 -0
  360. data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +252 -0
  361. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
  362. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +2 -2
  363. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource_attributes.rb +5 -7
  364. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
  365. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +3 -3
  366. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource_attributes.rb +227 -0
  367. data/lib/klaviyo-api-sdk/models/utm_param_info.rb +2 -2
  368. data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +240 -0
  369. data/lib/klaviyo-api-sdk/models/v2_template_render_query_as_sub_resource.rb +11 -62
  370. data/lib/klaviyo-api-sdk/version.rb +2 -2
  371. data/lib/klaviyo-api-sdk.rb +68 -11
  372. data/spec/api/campaigns_api_spec.rb +284 -0
  373. data/spec/api/catalogs_api_spec.rb +94 -94
  374. data/spec/api/client_api_spec.rb +5 -5
  375. data/spec/api/data_privacy_api_spec.rb +47 -0
  376. data/spec/api/events_api_spec.rb +19 -19
  377. data/spec/api/flows_api_spec.rb +44 -33
  378. data/spec/api/lists_api_spec.rb +28 -15
  379. data/spec/api/metrics_api_spec.rb +8 -8
  380. data/spec/api/profiles_api_spec.rb +21 -21
  381. data/spec/api/segments_api_spec.rb +24 -10
  382. data/spec/api/tags_api_spec.rb +245 -0
  383. data/spec/api/templates_api_spec.rb +18 -18
  384. data/spec/api_client_spec.rb +2 -2
  385. data/spec/configuration_spec.rb +2 -2
  386. data/spec/models/audiences_sub_object_spec.rb +40 -0
  387. data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +40 -0
  388. data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +44 -0
  389. data/spec/models/{v2_template_render_query_spec.rb → campaign_clone_query_spec.rb} +8 -8
  390. data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +64 -0
  391. data/spec/models/campaign_create_query_as_sub_resource_spec.rb +44 -0
  392. data/spec/models/campaign_create_query_spec.rb +34 -0
  393. data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +40 -0
  394. data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +44 -0
  395. data/spec/models/campaign_message_assign_template_query_spec.rb +34 -0
  396. data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +40 -0
  397. data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +50 -0
  398. data/spec/models/campaign_message_partial_update_query_spec.rb +34 -0
  399. data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +58 -0
  400. data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +50 -0
  401. data/spec/models/campaign_partial_update_query_spec.rb +34 -0
  402. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
  403. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_spec.rb +44 -0
  404. data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +34 -0
  405. data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
  406. data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +44 -0
  407. data/spec/models/campaign_send_job_create_query_spec.rb +34 -0
  408. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +34 -0
  409. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +50 -0
  410. data/spec/models/campaign_send_job_partial_update_query_spec.rb +34 -0
  411. data/spec/models/{list_delete_query_as_sub_resource_spec.rb → campaign_tag_op_data_inner_spec.rb} +9 -9
  412. data/spec/models/campaign_tag_op_spec.rb +34 -0
  413. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  414. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +2 -2
  415. data/spec/models/catalog_category_create_job_create_query_spec.rb +2 -2
  416. data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +2 -2
  417. data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +2 -2
  418. data/spec/models/catalog_category_create_query_spec.rb +2 -2
  419. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  420. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +2 -2
  421. data/spec/models/catalog_category_delete_job_create_query_spec.rb +2 -2
  422. data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +2 -2
  423. data/spec/models/catalog_category_item_op_spec.rb +2 -2
  424. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  425. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +2 -2
  426. data/spec/models/catalog_category_update_job_create_query_spec.rb +2 -2
  427. data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +2 -2
  428. data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +2 -2
  429. data/spec/models/catalog_category_update_query_spec.rb +2 -2
  430. data/spec/models/catalog_item_category_op_spec.rb +2 -2
  431. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  432. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +2 -2
  433. data/spec/models/catalog_item_create_job_create_query_spec.rb +2 -2
  434. data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +2 -2
  435. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +2 -2
  436. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +2 -2
  437. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +2 -2
  438. data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +2 -2
  439. data/spec/models/catalog_item_create_query_spec.rb +2 -2
  440. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  441. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +2 -2
  442. data/spec/models/catalog_item_delete_job_create_query_spec.rb +2 -2
  443. data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +2 -2
  444. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  445. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +2 -2
  446. data/spec/models/catalog_item_update_job_create_query_spec.rb +2 -2
  447. data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +2 -2
  448. data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +2 -2
  449. data/spec/models/catalog_item_update_query_spec.rb +2 -2
  450. data/spec/models/catalog_job_error_payload_spec.rb +2 -2
  451. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  452. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +2 -2
  453. data/spec/models/catalog_variant_create_job_create_query_spec.rb +2 -2
  454. data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +2 -2
  455. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +2 -2
  456. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +2 -2
  457. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +2 -2
  458. data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +2 -2
  459. data/spec/models/catalog_variant_create_query_spec.rb +2 -2
  460. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  461. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +2 -2
  462. data/spec/models/catalog_variant_delete_job_create_query_spec.rb +2 -2
  463. data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +2 -2
  464. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  465. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +2 -2
  466. data/spec/models/catalog_variant_update_job_create_query_spec.rb +2 -2
  467. data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +2 -2
  468. data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +2 -2
  469. data/spec/models/catalog_variant_update_query_spec.rb +2 -2
  470. data/spec/models/content_sub_object_spec.rb +64 -0
  471. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +46 -0
  472. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +44 -0
  473. data/spec/models/data_privacy_create_deletion_job_query_spec.rb +34 -0
  474. data/spec/models/email_message_content_spec.rb +2 -2
  475. data/spec/models/email_tracking_options_spec.rb +2 -2
  476. data/spec/models/error_source_spec.rb +2 -2
  477. data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +2 -2
  478. data/spec/models/event_create_query_as_sub_resource_spec.rb +2 -2
  479. data/spec/models/event_create_query_spec.rb +2 -2
  480. data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +2 -2
  481. data/spec/models/flow_update_query_as_sub_resource_spec.rb +2 -2
  482. data/spec/models/flow_update_query_spec.rb +2 -2
  483. data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +40 -0
  484. data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +58 -0
  485. data/spec/models/get_campaigns4_xx_response_spec.rb +34 -0
  486. data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +2 -2
  487. data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +2 -2
  488. data/spec/models/get_catalog_items4_xx_response_spec.rb +2 -2
  489. data/spec/models/included_categories_attributes_spec.rb +2 -2
  490. data/spec/models/included_categories_spec.rb +2 -2
  491. data/spec/models/included_flow_action_spec.rb +2 -2
  492. data/spec/models/included_flow_actions_attributes_spec.rb +2 -2
  493. data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +2 -2
  494. data/spec/models/included_flow_actions_spec.rb +2 -2
  495. data/spec/models/included_flow_messages_attributes_content_spec.rb +2 -2
  496. data/spec/models/included_flow_messages_attributes_spec.rb +2 -2
  497. data/spec/models/included_flow_messages_spec.rb +2 -2
  498. data/spec/models/included_flows_attributes_spec.rb +2 -2
  499. data/spec/models/included_flows_spec.rb +2 -2
  500. data/spec/models/included_items_attributes_spec.rb +2 -2
  501. data/spec/models/included_items_spec.rb +2 -2
  502. data/spec/models/included_lists_attributes_spec.rb +2 -2
  503. data/spec/models/included_lists_spec.rb +2 -2
  504. data/spec/models/included_metrics_attributes_spec.rb +2 -2
  505. data/spec/models/included_metrics_spec.rb +2 -2
  506. data/spec/models/included_profiles_attributes_spec.rb +2 -2
  507. data/spec/models/included_profiles_spec.rb +2 -2
  508. data/spec/models/included_segments_attributes_spec.rb +46 -0
  509. data/spec/models/included_segments_spec.rb +2 -2
  510. data/spec/models/{included_profile_spec.rb → included_tags_spec.rb} +9 -9
  511. data/spec/models/included_variants_attributes_spec.rb +2 -2
  512. data/spec/models/included_variants_links_spec.rb +2 -2
  513. data/spec/models/included_variants_spec.rb +2 -2
  514. data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +2 -2
  515. data/spec/models/list_create_query_as_sub_resource_spec.rb +2 -2
  516. data/spec/models/list_create_query_spec.rb +2 -2
  517. data/spec/models/list_members_add_query_data_inner_spec.rb +2 -2
  518. data/spec/models/list_members_add_query_spec.rb +2 -2
  519. data/spec/models/list_members_delete_query_spec.rb +2 -2
  520. data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +2 -2
  521. data/spec/models/list_partial_update_query_spec.rb +2 -2
  522. data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +2 -2
  523. data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +2 -2
  524. data/spec/models/metric_aggregate_query_spec.rb +2 -2
  525. data/spec/models/metric_aggregate_row_dto_spec.rb +2 -2
  526. data/spec/models/metric_create_query_spec.rb +2 -2
  527. data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +2 -2
  528. data/spec/models/onsite_profile_create_query_spec.rb +2 -2
  529. data/spec/models/onsite_profile_meta_identifiers_spec.rb +2 -2
  530. data/spec/models/onsite_profile_meta_spec.rb +2 -2
  531. data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +2 -2
  532. data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +2 -2
  533. data/spec/models/onsite_subscription_create_query_spec.rb +2 -2
  534. data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +2 -2
  535. data/spec/models/profile_create_query_as_sub_resource_spec.rb +2 -2
  536. data/spec/models/profile_create_query_spec.rb +2 -2
  537. data/spec/models/profile_location_latitude_spec.rb +2 -2
  538. data/spec/models/profile_location_longitude_spec.rb +31 -0
  539. data/spec/models/profile_location_spec.rb +2 -2
  540. data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +2 -2
  541. data/spec/models/profile_partial_update_query_spec.rb +2 -2
  542. data/spec/models/segment_partial_update_query_as_sub_resource_attributes_spec.rb +34 -0
  543. data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +2 -2
  544. data/spec/models/segment_partial_update_query_spec.rb +2 -2
  545. data/spec/models/send_options_spec.rb +2 -2
  546. data/spec/models/send_options_sub_object_spec.rb +40 -0
  547. data/spec/models/send_strategy_sub_object_spec.rb +46 -0
  548. data/spec/models/send_time_sub_object_spec.rb +40 -0
  549. data/spec/models/sms_message_content_spec.rb +2 -2
  550. data/spec/models/sms_render_options_spec.rb +2 -2
  551. data/spec/models/sms_tracking_options_spec.rb +2 -2
  552. data/spec/models/static_schedule_options_spec.rb +46 -0
  553. data/spec/models/sto_schedule_options_spec.rb +34 -0
  554. data/spec/models/subscription_channels_spec.rb +48 -0
  555. data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  556. data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +2 -2
  557. data/spec/models/subscription_create_job_create_query_spec.rb +2 -2
  558. data/spec/models/subscription_spec.rb +2 -2
  559. data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  560. data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +2 -2
  561. data/spec/models/suppression_create_job_create_query_spec.rb +2 -2
  562. data/spec/models/suppression_spec.rb +2 -2
  563. data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +40 -0
  564. data/spec/models/tag_create_query_as_sub_resource_spec.rb +44 -0
  565. data/spec/models/tag_create_query_spec.rb +34 -0
  566. data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +40 -0
  567. data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +44 -0
  568. data/spec/models/tag_group_create_query_spec.rb +34 -0
  569. data/spec/models/{v2_template_render_query_as_sub_resource_attributes_spec.rb → tag_group_update_query_as_sub_resource_attributes_spec.rb} +9 -9
  570. data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +50 -0
  571. data/spec/models/tag_group_update_query_spec.rb +34 -0
  572. data/spec/models/tag_segment_op_data_inner_spec.rb +44 -0
  573. data/spec/models/tag_segment_op_spec.rb +34 -0
  574. data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +34 -0
  575. data/spec/models/tag_update_query_as_sub_resource_spec.rb +50 -0
  576. data/spec/models/tag_update_query_spec.rb +34 -0
  577. data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +8 -2
  578. data/spec/models/template_clone_query_as_sub_resource_spec.rb +8 -2
  579. data/spec/models/template_clone_query_spec.rb +2 -2
  580. data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +2 -2
  581. data/spec/models/template_create_query_as_sub_resource_spec.rb +2 -2
  582. data/spec/models/template_create_query_spec.rb +2 -2
  583. data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +46 -0
  584. data/spec/models/{template_delete_query_as_sub_resource_spec.rb → template_render_query_as_sub_resource_spec.rb} +9 -9
  585. data/spec/models/template_render_query_spec.rb +34 -0
  586. data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +2 -2
  587. data/spec/models/template_update_query_as_sub_resource_spec.rb +2 -2
  588. data/spec/models/template_update_query_spec.rb +2 -2
  589. data/spec/models/throttled_schedule_options_spec.rb +40 -0
  590. data/spec/models/tracking_options_sub_object_spec.rb +52 -0
  591. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
  592. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +2 -2
  593. data/spec/models/unsubscription_create_job_create_query_spec.rb +2 -2
  594. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
  595. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +2 -2
  596. data/spec/models/unsuppression_create_job_create_query_spec.rb +2 -2
  597. data/spec/models/utm_param_info_spec.rb +2 -2
  598. data/spec/models/utm_params_sub_object_spec.rb +40 -0
  599. data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +3 -13
  600. data/spec/spec_helper.rb +2 -2
  601. metadata +207 -19
  602. data/docs/V2TemplateRenderQuery.md +0 -18
  603. data/test.rb +0 -50
@@ -3,10 +3,10 @@
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: 2022-10-17
6
+ The version of the OpenAPI document: 2023-02-22
7
7
  Contact: developers@klaviyo.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.0.1
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -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. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). 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/v2022-10-17/reference/api-overview#sparse-fieldsets
27
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
28
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
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. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). 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/v2022-10-17/reference/api-overview#sparse-fieldsets
40
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
41
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
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'] || "2022-10-17"
75
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
76
76
  # HTTP header 'Accept' (if needed)
77
77
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
78
78
 
@@ -109,10 +109,10 @@ module KlaviyoAPI
109
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/v2022-10-17/reference/api-overview#sparse-fieldsets
113
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
114
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
115
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
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)
@@ -123,10 +123,10 @@ module KlaviyoAPI
123
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/v2022-10-17/reference/api-overview#sparse-fieldsets
127
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
128
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
129
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
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'] || "2022-10-17"
168
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
169
169
  # HTTP header 'Accept' (if needed)
170
170
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
171
171
 
@@ -202,7 +202,7 @@ module KlaviyoAPI
202
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
203
  # @param action_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/v2022-10-17/reference/api-overview#sparse-fieldsets
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
206
206
  # @return [Hash<String, Object>]
207
207
  def get_flow_action_flow(action_id, opts = {})
208
208
  data, _status_code, _headers = get_flow_action_flow_with_http_info(action_id, opts)
@@ -213,7 +213,7 @@ module KlaviyoAPI
213
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
214
  # @param action_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/v2022-10-17/reference/api-overview#sparse-fieldsets
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
217
217
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
218
218
  def get_flow_action_flow_with_http_info(action_id, opts = {})
219
219
  if @api_client.config.debugging
@@ -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'] || "2022-10-17"
240
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
241
241
  # HTTP header 'Accept' (if needed)
242
242
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
243
 
@@ -271,12 +271,13 @@ module KlaviyoAPI
271
271
  end
272
272
 
273
273
  # Get Messages For Flow Action
274
- # Get all flow messages associated with the given action ID. Flow messages can be sorted by the following fields, in ascending and descending order: `id`, `name`, `created`, `updated` Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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`
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
275
  # @param action_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/v2022-10-17/reference/api-overview#sparse-fieldsets
278
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
280
281
  # @return [Hash<String, Object>]
281
282
  def get_flow_action_messages(action_id, opts = {})
282
283
  data, _status_code, _headers = get_flow_action_messages_with_http_info(action_id, opts)
@@ -284,12 +285,13 @@ module KlaviyoAPI
284
285
  end
285
286
 
286
287
  # Get Messages For Flow Action
287
- # Get all flow messages associated with the given action ID. Flow messages can be sorted by the following fields, in ascending and descending order: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;created&#x60;, &#x60;updated&#x60; Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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;
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;
288
289
  # @param action_id [String]
289
290
  # @param [Hash] opts the optional parameters
290
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
291
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
292
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
293
295
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
294
296
  def get_flow_action_messages_with_http_info(action_id, opts = {})
295
297
  if @api_client.config.debugging
@@ -314,12 +316,13 @@ module KlaviyoAPI
314
316
  query_params = opts[:query_params] || {}
315
317
  query_params[:'fields[flow-message]'] = @api_client.build_collection_param(opts[:'fields_flow_message'], :csv) if !opts[:'fields_flow_message'].nil?
316
318
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
319
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
317
320
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
318
321
 
319
322
  # header parameters
320
323
  header_params = opts[:header_params] || {}
321
324
  # klaviyo api revision
322
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
325
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
323
326
  # HTTP header 'Accept' (if needed)
324
327
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
328
 
@@ -353,12 +356,13 @@ module KlaviyoAPI
353
356
  end
354
357
 
355
358
  # Get Flow Action Relationships
356
- # Get all [relationships](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#relationships) for flow messages associated with the given flow action ID. Flow message relationships can be sorted by the following fields, in ascending and descending order: `id`, `name`, `created`, `updated` Use filters to narrow your results. Returns a maximum of 50 flow message relationships per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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`
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`
357
360
  # @param id [String]
358
361
  # @param related_resource [String]
359
362
  # @param [Hash] opts the optional parameters
360
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
361
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
362
366
  # @return [Hash<String, Object>]
363
367
  def get_flow_action_relationships(id, related_resource, opts = {})
364
368
  data, _status_code, _headers = get_flow_action_relationships_with_http_info(id, related_resource, opts)
@@ -366,12 +370,13 @@ module KlaviyoAPI
366
370
  end
367
371
 
368
372
  # Get Flow Action Relationships
369
- # Get all [relationships](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#relationships) for flow messages associated with the given flow action ID. Flow message relationships can be sorted by the following fields, in ascending and descending order: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;created&#x60;, &#x60;updated&#x60; Use filters to narrow your results. Returns a maximum of 50 flow message relationships per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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;
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;
370
374
  # @param id [String]
371
375
  # @param related_resource [String]
372
376
  # @param [Hash] opts the optional parameters
373
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
374
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
375
380
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
376
381
  def get_flow_action_relationships_with_http_info(id, related_resource, opts = {})
377
382
  if @api_client.config.debugging
@@ -400,12 +405,13 @@ module KlaviyoAPI
400
405
  # query parameters
401
406
  query_params = opts[:query_params] || {}
402
407
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
408
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
403
409
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
404
410
 
405
411
  # header parameters
406
412
  header_params = opts[:header_params] || {}
407
413
  # klaviyo api revision
408
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
414
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
409
415
  # HTTP header 'Accept' (if needed)
410
416
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
411
417
 
@@ -439,12 +445,13 @@ module KlaviyoAPI
439
445
  end
440
446
 
441
447
  # Get Flow Actions For Flow
442
- # Get all flow actions associated with the given flow ID. Flow actions can be sorted by the following fields, in ascending and descending order: `id`, `status`, `created`, `updated`, `action_type` Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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`
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`
443
449
  # @param flow_id [String]
444
450
  # @param [Hash] opts the optional parameters
445
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
446
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
447
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
448
455
  # @return [Hash<String, Object>]
449
456
  def get_flow_flow_actions(flow_id, opts = {})
450
457
  data, _status_code, _headers = get_flow_flow_actions_with_http_info(flow_id, opts)
@@ -452,12 +459,13 @@ module KlaviyoAPI
452
459
  end
453
460
 
454
461
  # Get Flow Actions For Flow
455
- # Get all flow actions associated with the given flow ID. Flow actions can be sorted by the following fields, in ascending and descending order: &#x60;id&#x60;, &#x60;status&#x60;, &#x60;created&#x60;, &#x60;updated&#x60;, &#x60;action_type&#x60; Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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;
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;
456
463
  # @param flow_id [String]
457
464
  # @param [Hash] opts the optional parameters
458
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
459
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
460
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
461
469
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
462
470
  def get_flow_flow_actions_with_http_info(flow_id, opts = {})
463
471
  if @api_client.config.debugging
@@ -482,12 +490,13 @@ module KlaviyoAPI
482
490
  query_params = opts[:query_params] || {}
483
491
  query_params[:'fields[flow-action]'] = @api_client.build_collection_param(opts[:'fields_flow_action'], :csv) if !opts[:'fields_flow_action'].nil?
484
492
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
493
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
485
494
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
486
495
 
487
496
  # header parameters
488
497
  header_params = opts[:header_params] || {}
489
498
  # klaviyo api revision
490
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
499
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
491
500
  # HTTP header 'Accept' (if needed)
492
501
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
493
502
 
@@ -521,12 +530,12 @@ module KlaviyoAPI
521
530
  end
522
531
 
523
532
  # Get Flow Message
524
- # Get the flow message of a flow with the given message ID. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). 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`
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`
525
534
  # @param id [String]
526
535
  # @param [Hash] opts the optional parameters
527
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
528
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
529
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
530
539
  # @return [Hash<String, Object>]
531
540
  def get_flow_message(id, opts = {})
532
541
  data, _status_code, _headers = get_flow_message_with_http_info(id, opts)
@@ -534,12 +543,12 @@ module KlaviyoAPI
534
543
  end
535
544
 
536
545
  # Get Flow Message
537
- # Get the flow message of a flow with the given message ID. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). 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;
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;
538
547
  # @param id [String]
539
548
  # @param [Hash] opts the optional parameters
540
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
541
- # @option opts [Array<String>] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
542
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
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
543
552
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
544
553
  def get_flow_message_with_http_info(id, opts = {})
545
554
  if @api_client.config.debugging
@@ -573,7 +582,7 @@ module KlaviyoAPI
573
582
  # header parameters
574
583
  header_params = opts[:header_params] || {}
575
584
  # klaviyo api revision
576
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
585
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
577
586
  # HTTP header 'Accept' (if needed)
578
587
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
579
588
 
@@ -607,10 +616,10 @@ module KlaviyoAPI
607
616
  end
608
617
 
609
618
  # Get Flow Action For Message
610
- # Get the flow action for a flow message with the given message ID. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets).<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
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`
611
620
  # @param message_id [String]
612
621
  # @param [Hash] opts the optional parameters
613
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
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
614
623
  # @return [Hash<String, Object>]
615
624
  def get_flow_message_action(message_id, opts = {})
616
625
  data, _status_code, _headers = get_flow_message_action_with_http_info(message_id, opts)
@@ -618,10 +627,10 @@ module KlaviyoAPI
618
627
  end
619
628
 
620
629
  # Get Flow Action For Message
621
- # Get the flow action for a flow message with the given message ID. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets).&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;
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;
622
631
  # @param message_id [String]
623
632
  # @param [Hash] opts the optional parameters
624
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
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
625
634
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
626
635
  def get_flow_message_action_with_http_info(message_id, opts = {})
627
636
  if @api_client.config.debugging
@@ -645,7 +654,7 @@ module KlaviyoAPI
645
654
  # header parameters
646
655
  header_params = opts[:header_params] || {}
647
656
  # klaviyo api revision
648
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
657
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
649
658
  # HTTP header 'Accept' (if needed)
650
659
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
651
660
 
@@ -679,7 +688,7 @@ module KlaviyoAPI
679
688
  end
680
689
 
681
690
  # Get Flow Message Relationships
682
- # Get the [relationship](https://developers.klaviyo.com/en/v2022-10-17/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`
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`
683
692
  # @param id [String]
684
693
  # @param related_resource [String]
685
694
  # @param [Hash] opts the optional parameters
@@ -690,7 +699,7 @@ module KlaviyoAPI
690
699
  end
691
700
 
692
701
  # Get Flow Message Relationships
693
- # Get the [relationship](https://developers.klaviyo.com/en/v2022-10-17/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;
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;
694
703
  # @param id [String]
695
704
  # @param related_resource [String]
696
705
  # @param [Hash] opts the optional parameters
@@ -721,7 +730,7 @@ module KlaviyoAPI
721
730
  # header parameters
722
731
  header_params = opts[:header_params] || {}
723
732
  # klaviyo api revision
724
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
733
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
725
734
  # HTTP header 'Accept' (if needed)
726
735
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
727
736
 
@@ -755,12 +764,10 @@ module KlaviyoAPI
755
764
  end
756
765
 
757
766
  # Get Flow Relationships
758
- # Get all [relationships](https://developers.klaviyo.com/en/v2022-10-17/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](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination)<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
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`
759
768
  # @param id [String]
760
769
  # @param related_resource [String]
761
770
  # @param [Hash] opts the optional parameters
762
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
763
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
764
771
  # @return [Hash<String, Object>]
765
772
  def get_flow_relationships(id, related_resource, opts = {})
766
773
  data, _status_code, _headers = get_flow_relationships_with_http_info(id, related_resource, opts)
@@ -768,12 +775,10 @@ module KlaviyoAPI
768
775
  end
769
776
 
770
777
  # Get Flow Relationships
771
- # Get all [relationships](https://developers.klaviyo.com/en/v2022-10-17/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](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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;
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;
772
779
  # @param id [String]
773
780
  # @param related_resource [String]
774
781
  # @param [Hash] opts the optional parameters
775
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
776
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
777
782
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
778
783
  def get_flow_relationships_with_http_info(id, related_resource, opts = {})
779
784
  if @api_client.config.debugging
@@ -788,26 +793,20 @@ module KlaviyoAPI
788
793
  fail ArgumentError, "Missing the required parameter 'related_resource' when calling FlowsApi.get_flow_relationships"
789
794
  end
790
795
  # verify enum value
791
- allowable_values = ["flow-actions"]
796
+ allowable_values = ["flow-actions", "tags"]
792
797
  if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
793
798
  fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
794
799
  end
795
- allowable_values = ["created", "-created", "id", "-id", "status", "-status", "updated", "-updated"]
796
- if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
797
- fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
798
- end
799
800
  # resource path
800
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))
801
802
 
802
803
  # query parameters
803
804
  query_params = opts[:query_params] || {}
804
- query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
805
- query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
806
805
 
807
806
  # header parameters
808
807
  header_params = opts[:header_params] || {}
809
808
  # klaviyo api revision
810
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
809
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
811
810
  # HTTP header 'Accept' (if needed)
812
811
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
813
812
 
@@ -840,14 +839,87 @@ module KlaviyoAPI
840
839
  return data, status_code, headers
841
840
  end
842
841
 
842
+ # 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]
845
+ # @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
847
+ # @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)
850
+ data
851
+ end
852
+
853
+ # 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]
856
+ # @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
858
+ # @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 = {})
860
+ if @api_client.config.debugging
861
+ @api_client.config.logger.debug 'Calling API: FlowsApi.get_flow_tags ...'
862
+ 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"
866
+ end
867
+ allowable_values = ["name"]
868
+ if @api_client.config.client_side_validation && opts[:'fields_tag'] && !opts[:'fields_tag'].all? { |item| allowable_values.include?(item) }
869
+ fail ArgumentError, "invalid value for \"fields_tag\", must include one of #{allowable_values}"
870
+ end
871
+ # resource path
872
+ local_var_path = '/api/flows/{flow_id}/tags/'.sub('{' + 'flow_id' + '}', CGI.escape(flow_id.to_s))
873
+
874
+ # query parameters
875
+ query_params = opts[:query_params] || {}
876
+ query_params[:'fields[tag]'] = @api_client.build_collection_param(opts[:'fields_tag'], :csv) if !opts[:'fields_tag'].nil?
877
+
878
+ # header parameters
879
+ header_params = opts[:header_params] || {}
880
+ # klaviyo api revision
881
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
882
+ # HTTP header 'Accept' (if needed)
883
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
884
+
885
+ # form parameters
886
+ form_params = opts[:form_params] || {}
887
+
888
+ # http body (model)
889
+ post_body = opts[:debug_body]
890
+
891
+ # return_type
892
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
893
+
894
+ # auth_names
895
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
896
+
897
+ new_options = opts.merge(
898
+ :operation => :"FlowsApi.get_flow_tags",
899
+ :header_params => header_params,
900
+ :query_params => query_params,
901
+ :form_params => form_params,
902
+ :body => post_body,
903
+ :auth_names => auth_names,
904
+ :return_type => return_type
905
+ )
906
+
907
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
908
+ if @api_client.config.debugging
909
+ @api_client.config.logger.debug "API called: FlowsApi#get_flow_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
910
+ end
911
+ return data, status_code, headers
912
+ end
913
+
843
914
  # Get Flows
844
- # Get all flows in an account. Flows can be sorted by the following fields, in ascending and descending order: `id`, `name`, `status`, `trigger_type`, `created`, `updated` Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Include parameters can be provided to get the following related resource data: `flow-actions` Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination)<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
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`
845
916
  # @param [Hash] opts the optional parameters
846
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
847
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
848
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
849
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
850
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
851
923
  # @return [Hash<String, Object>]
852
924
  def get_flows(opts = {})
853
925
  data, _status_code, _headers = get_flows_with_http_info(opts)
@@ -855,13 +927,14 @@ module KlaviyoAPI
855
927
  end
856
928
 
857
929
  # Get Flows
858
- # Get all flows in an account. Flows can be sorted by the following fields, in ascending and descending order: &#x60;id&#x60;, &#x60;name&#x60;, &#x60;status&#x60;, &#x60;trigger_type&#x60;, &#x60;created&#x60;, &#x60;updated&#x60; Use filters to narrow your results. Request specific fields using [sparse fieldsets](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#sparse-fieldsets). Include parameters can be provided to get the following related resource data: &#x60;flow-actions&#x60; Returns a maximum of 50 flows per request, which can be paginated with [offset pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#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;
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;
859
931
  # @param [Hash] opts the optional parameters
860
- # @option opts [Array<String>] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
861
- # @option opts [Array<String>] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
862
- # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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;
863
- # @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#relationships
864
- # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting
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
865
938
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
866
939
  def get_flows_with_http_info(opts = {})
867
940
  if @api_client.config.debugging
@@ -892,12 +965,13 @@ module KlaviyoAPI
892
965
  query_params[:'fields[flow]'] = @api_client.build_collection_param(opts[:'fields_flow'], :csv) if !opts[:'fields_flow'].nil?
893
966
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
894
967
  query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil?
968
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
895
969
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
896
970
 
897
971
  # header parameters
898
972
  header_params = opts[:header_params] || {}
899
973
  # klaviyo api revision
900
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
974
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
901
975
  # HTTP header 'Accept' (if needed)
902
976
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
903
977
 
@@ -968,7 +1042,7 @@ module KlaviyoAPI
968
1042
  # header parameters
969
1043
  header_params = opts[:header_params] || {}
970
1044
  # klaviyo api revision
971
- header_params['revision'] = ENV['API_REVISION'] || "2022-10-17"
1045
+ header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
972
1046
  # HTTP header 'Accept' (if needed)
973
1047
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
974
1048
  # HTTP header 'Content-Type'