postboost 1.0.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +119 -0
  3. data/docs/AIApi.md +439 -0
  4. data/docs/AICredits.md +22 -0
  5. data/docs/Account.md +14 -8
  6. data/docs/AccountAnalytics.md +28 -0
  7. data/docs/AccountAnalyticsInitialSync.md +20 -0
  8. data/docs/AccountSchedule.md +22 -0
  9. data/docs/AccountsApi.md +15 -5
  10. data/docs/AddPostToQueueRequest.md +18 -0
  11. data/docs/AnalyticsApi.md +401 -0
  12. data/docs/AnalyticsPeriod.md +24 -0
  13. data/docs/AnalyticsSummary.md +20 -0
  14. data/docs/AnalyticsSummaryData.md +38 -0
  15. data/docs/ApprovePostRequest.md +24 -0
  16. data/docs/BestPostingTimes.md +20 -0
  17. data/docs/BestPostingTimesTimesInner.md +24 -0
  18. data/docs/BlogToSocial200Response.md +18 -0
  19. data/docs/BlogToSocial429Response.md +18 -0
  20. data/docs/BlogToSocialCaption.md +28 -0
  21. data/docs/BlogToSocialInput.md +42 -0
  22. data/docs/BlogToSocialMedia.md +20 -0
  23. data/docs/BlogToSocialResponse.md +30 -0
  24. data/docs/CancelSubscription422Response.md +20 -0
  25. data/docs/CancelSubscription422ResponseErrors.md +18 -0
  26. data/docs/CancelSubscriptionRequest.md +18 -0
  27. data/docs/CompleteChunkedUploadRequest.md +20 -0
  28. data/docs/CreateMediaFolderRequest.md +20 -0
  29. data/docs/CreateMention201Response.md +18 -0
  30. data/docs/DeleteMediaBulkRequest.md +1 -1
  31. data/docs/DeleteMediaBulkRequestItemsInner.md +49 -0
  32. data/docs/DeleteMediaFolderRequest.md +18 -0
  33. data/docs/DeleteResult.md +3 -3
  34. data/docs/ImageAltText200Response.md +18 -0
  35. data/docs/ImageAltTextInput.md +18 -0
  36. data/docs/ImageAltTextResponse.md +24 -0
  37. data/docs/ImageEditInput.md +28 -0
  38. data/docs/ImageGenerate200Response.md +18 -0
  39. data/docs/ImageGenerate429Response.md +18 -0
  40. data/docs/ImageGenerateInput.md +36 -0
  41. data/docs/ImageGenerationResponse.md +30 -0
  42. data/docs/ImagePrompt200Response.md +18 -0
  43. data/docs/ImagePrompt429Response.md +18 -0
  44. data/docs/ImagePromptInput.md +28 -0
  45. data/docs/ImagePromptResponse.md +18 -0
  46. data/docs/ImageVariations200Response.md +18 -0
  47. data/docs/ImageVariationsInput.md +24 -0
  48. data/docs/ImageVariationsResponse.md +26 -0
  49. data/docs/{InitiateChunkedUpload200Response.md → InitiateChunkedUpload201Response.md} +2 -2
  50. data/docs/{InitiateRemoteUpload200Response.md → InitiateRemoteUpload201Response.md} +7 -7
  51. data/docs/{InitiateRemoteUpload200ResponseOneOf.md → InitiateRemoteUpload201ResponseOneOf.md} +2 -2
  52. data/docs/InitiateRemoteUploadRequest.md +3 -1
  53. data/docs/ListMediaFolders200Response.md +18 -0
  54. data/docs/ListMentions200Response.md +22 -0
  55. data/docs/ListMyWorkspaces200Response.md +18 -0
  56. data/docs/Media.md +22 -8
  57. data/docs/MediaApi.md +340 -26
  58. data/docs/MediaFolder.md +24 -0
  59. data/docs/MediaFolderInput.md +20 -0
  60. data/docs/MediaFolderRef.md +20 -0
  61. data/docs/Mention.md +28 -0
  62. data/docs/MentionIdentity.md +24 -0
  63. data/docs/MentionIdentityInput.md +26 -0
  64. data/docs/MentionInput.md +22 -0
  65. data/docs/MentionsApi.md +375 -0
  66. data/docs/Post.md +10 -8
  67. data/docs/PostAnalytics.md +22 -0
  68. data/docs/PostInput.md +3 -1
  69. data/docs/PostVersion.md +2 -0
  70. data/docs/PostingTimeSlot.md +22 -0
  71. data/docs/PostingTimes.md +32 -0
  72. data/docs/PostingTimesBestInner.md +24 -0
  73. data/docs/PostingTimesDayIntervalsInnerInner.md +28 -0
  74. data/docs/PostingTimesDaysInner.md +24 -0
  75. data/docs/PostsApi.md +174 -14
  76. data/docs/PublicWorkspace.md +24 -0
  77. data/docs/PublicWorkspacePivot.md +22 -0
  78. data/docs/PublishProgress.md +22 -0
  79. data/docs/Receipt.md +8 -8
  80. data/docs/ReceiptsApi.md +15 -1
  81. data/docs/RemoveGenericSubscription422Response.md +18 -0
  82. data/docs/RetryPostAccountResult.md +22 -0
  83. data/docs/SchedulePostRequest.md +9 -1
  84. data/docs/ScheduleResult.md +4 -2
  85. data/docs/Subscription.md +5 -5
  86. data/docs/SubscriptionsApi.md +27 -5
  87. data/docs/Tag.md +4 -4
  88. data/docs/TagsApi.md +10 -0
  89. data/docs/UpdateMediaRequest.md +6 -2
  90. data/docs/{UploadChunk200Response.md → UploadChunk201Response.md} +2 -2
  91. data/docs/User.md +7 -5
  92. data/docs/UsersApi.md +15 -1
  93. data/docs/Workspace.md +8 -6
  94. data/docs/WorkspaceInput.md +1 -1
  95. data/docs/WorkspacesApi.md +156 -3
  96. data/lib/postboost/api/accounts_api.rb +16 -4
  97. data/lib/postboost/api/ai_api.rb +466 -0
  98. data/lib/postboost/api/analytics_api.rb +425 -0
  99. data/lib/postboost/api/media_api.rb +365 -22
  100. data/lib/postboost/api/mentions_api.rb +386 -0
  101. data/lib/postboost/api/posts_api.rb +176 -12
  102. data/lib/postboost/api/receipts_api.rb +17 -2
  103. data/lib/postboost/api/subscriptions_api.rb +28 -3
  104. data/lib/postboost/api/tags_api.rb +12 -2
  105. data/lib/postboost/api/users_api.rb +17 -2
  106. data/lib/postboost/api/workspaces_api.rb +139 -2
  107. data/lib/postboost/api_client.rb +2 -2
  108. data/lib/postboost/api_error.rb +2 -2
  109. data/lib/postboost/configuration.rb +2 -2
  110. data/lib/postboost/models/account.rb +120 -3
  111. data/lib/postboost/models/account_analytics.rb +308 -0
  112. data/lib/postboost/models/account_analytics_initial_sync.rb +231 -0
  113. data/lib/postboost/models/account_schedule.rb +255 -0
  114. data/lib/postboost/models/add_generic_subscription_request.rb +2 -2
  115. data/lib/postboost/models/add_post_to_queue_request.rb +215 -0
  116. data/lib/postboost/models/ai_credits.rb +256 -0
  117. data/lib/postboost/models/analytics_period.rb +270 -0
  118. data/lib/postboost/models/analytics_summary.rb +237 -0
  119. data/lib/postboost/models/analytics_summary_data.rb +327 -0
  120. data/lib/postboost/models/approve_post_request.rb +247 -0
  121. data/lib/postboost/models/best_posting_times.rb +240 -0
  122. data/lib/postboost/models/best_posting_times_times_inner.rb +269 -0
  123. data/lib/postboost/models/blog_to_social200_response.rb +214 -0
  124. data/lib/postboost/models/blog_to_social429_response.rb +214 -0
  125. data/lib/postboost/models/blog_to_social_caption.rb +265 -0
  126. data/lib/postboost/models/blog_to_social_input.rb +536 -0
  127. data/lib/postboost/models/blog_to_social_media.rb +226 -0
  128. data/lib/postboost/models/blog_to_social_response.rb +276 -0
  129. data/lib/postboost/models/cancel_subscription422_response.rb +223 -0
  130. data/lib/postboost/models/cancel_subscription422_response_errors.rb +216 -0
  131. data/lib/postboost/models/cancel_subscription_request.rb +217 -0
  132. data/lib/postboost/models/change_subscription_plan_request.rb +2 -2
  133. data/lib/postboost/models/checkout_subscription200_response.rb +2 -2
  134. data/lib/postboost/models/checkout_subscription_request.rb +2 -2
  135. data/lib/postboost/models/complete_chunked_upload_request.rb +243 -0
  136. data/lib/postboost/models/create_media_folder_request.rb +258 -0
  137. data/lib/postboost/models/create_mention201_response.rb +214 -0
  138. data/lib/postboost/models/delete_media_bulk_request.rb +23 -4
  139. data/lib/postboost/models/{initiate_remote_upload200_response.rb → delete_media_bulk_request_items_inner.rb} +5 -5
  140. data/lib/postboost/models/delete_media_folder_request.rb +216 -0
  141. data/lib/postboost/models/delete_mode.rb +2 -2
  142. data/lib/postboost/models/delete_post_request.rb +2 -2
  143. data/lib/postboost/models/delete_posts_bulk_request.rb +2 -2
  144. data/lib/postboost/models/delete_receipts_bulk_request.rb +2 -2
  145. data/lib/postboost/models/delete_result.rb +23 -2
  146. data/lib/postboost/models/delete_user400_response.rb +2 -2
  147. data/lib/postboost/models/delete_users_bulk_request.rb +2 -2
  148. data/lib/postboost/models/delete_workspaces_bulk_request.rb +2 -2
  149. data/lib/postboost/models/get_remote_upload_status200_response.rb +2 -2
  150. data/lib/postboost/models/image_alt_text200_response.rb +221 -0
  151. data/lib/postboost/models/image_alt_text_input.rb +221 -0
  152. data/lib/postboost/models/image_alt_text_response.rb +262 -0
  153. data/lib/postboost/models/image_edit_input.rb +375 -0
  154. data/lib/postboost/models/image_generate200_response.rb +221 -0
  155. data/lib/postboost/models/image_generate429_response.rb +214 -0
  156. data/lib/postboost/models/image_generate_input.rb +447 -0
  157. data/lib/postboost/models/image_generation_response.rb +305 -0
  158. data/lib/postboost/models/image_prompt200_response.rb +221 -0
  159. data/lib/postboost/models/image_prompt429_response.rb +214 -0
  160. data/lib/postboost/models/image_prompt_input.rb +345 -0
  161. data/lib/postboost/models/image_prompt_response.rb +221 -0
  162. data/lib/postboost/models/image_variations200_response.rb +221 -0
  163. data/lib/postboost/models/image_variations_input.rb +328 -0
  164. data/lib/postboost/models/image_variations_response.rb +280 -0
  165. data/lib/postboost/models/{initiate_chunked_upload200_response.rb → initiate_chunked_upload201_response.rb} +5 -5
  166. data/lib/postboost/models/initiate_chunked_upload_request.rb +2 -2
  167. data/lib/postboost/models/initiate_remote_upload201_response.rb +105 -0
  168. data/lib/postboost/models/{initiate_remote_upload200_response_one_of.rb → initiate_remote_upload201_response_one_of.rb} +5 -5
  169. data/lib/postboost/models/initiate_remote_upload_request.rb +16 -6
  170. data/lib/postboost/models/list_accounts200_response.rb +2 -2
  171. data/lib/postboost/models/list_media200_response.rb +2 -2
  172. data/lib/postboost/models/list_media_folders200_response.rb +216 -0
  173. data/lib/postboost/models/list_mentions200_response.rb +241 -0
  174. data/lib/postboost/models/list_my_workspaces200_response.rb +216 -0
  175. data/lib/postboost/models/list_posts200_response.rb +2 -2
  176. data/lib/postboost/models/list_receipts200_response.rb +2 -2
  177. data/lib/postboost/models/list_tags200_response.rb +2 -2
  178. data/lib/postboost/models/list_users200_response.rb +2 -2
  179. data/lib/postboost/models/list_workspaces200_response.rb +2 -2
  180. data/lib/postboost/models/media.rb +128 -3
  181. data/lib/postboost/models/media_folder.rb +271 -0
  182. data/lib/postboost/models/media_folder_input.rb +244 -0
  183. data/lib/postboost/models/media_folder_ref.rb +237 -0
  184. data/lib/postboost/models/mention.rb +290 -0
  185. data/lib/postboost/models/mention_identity.rb +257 -0
  186. data/lib/postboost/models/mention_identity_input.rb +325 -0
  187. data/lib/postboost/models/mention_input.rb +279 -0
  188. data/lib/postboost/models/pagination_meta.rb +2 -2
  189. data/lib/postboost/models/pagination_meta_links.rb +2 -2
  190. data/lib/postboost/models/pagination_meta_meta.rb +2 -2
  191. data/lib/postboost/models/post.rb +69 -3
  192. data/lib/postboost/models/post_analytics.rb +252 -0
  193. data/lib/postboost/models/post_content.rb +2 -2
  194. data/lib/postboost/models/post_input.rb +16 -3
  195. data/lib/postboost/models/post_status.rb +6 -3
  196. data/lib/postboost/models/post_version.rb +32 -3
  197. data/lib/postboost/models/posting_time_slot.rb +315 -0
  198. data/lib/postboost/models/posting_times.rb +362 -0
  199. data/lib/postboost/models/posting_times_best_inner.rb +269 -0
  200. data/lib/postboost/models/posting_times_day_intervals_inner_inner.rb +370 -0
  201. data/lib/postboost/models/posting_times_days_inner.rb +366 -0
  202. data/lib/postboost/models/public_workspace.rb +262 -0
  203. data/lib/postboost/models/public_workspace_pivot.rb +267 -0
  204. data/lib/postboost/models/publish_progress.rb +254 -0
  205. data/lib/postboost/models/receipt.rb +58 -2
  206. data/lib/postboost/models/receipt_input.rb +2 -2
  207. data/lib/postboost/models/receipt_update_input.rb +2 -2
  208. data/lib/postboost/models/remove_generic_subscription422_response.rb +214 -0
  209. data/lib/postboost/models/remove_user_from_workspace_request.rb +2 -2
  210. data/lib/postboost/models/retry_post_account_result.rb +275 -0
  211. data/lib/postboost/models/schedule_post_request.rb +48 -6
  212. data/lib/postboost/models/schedule_result.rb +23 -6
  213. data/lib/postboost/models/subscription.rb +37 -2
  214. data/lib/postboost/models/subscription_input.rb +2 -2
  215. data/lib/postboost/models/subscription_status.rb +2 -2
  216. data/lib/postboost/models/subscription_update_input.rb +2 -2
  217. data/lib/postboost/models/tag.rb +30 -2
  218. data/lib/postboost/models/tag_input.rb +2 -2
  219. data/lib/postboost/models/update_media_request.rb +61 -11
  220. data/lib/postboost/models/{upload_chunk200_response.rb → upload_chunk201_response.rb} +5 -5
  221. data/lib/postboost/models/user.rb +48 -3
  222. data/lib/postboost/models/user_input.rb +2 -2
  223. data/lib/postboost/models/user_update_input.rb +2 -2
  224. data/lib/postboost/models/workspace.rb +42 -3
  225. data/lib/postboost/models/workspace_input.rb +3 -9
  226. data/lib/postboost/models/workspace_user_input.rb +2 -2
  227. data/lib/postboost/version.rb +3 -3
  228. data/lib/postboost.rb +70 -6
  229. data/postboost.gemspec +3 -3
  230. data/spec/api/accounts_api_spec.rb +7 -3
  231. data/spec/api/ai_api_spec.rb +113 -0
  232. data/spec/api/analytics_api_spec.rb +113 -0
  233. data/spec/api/media_api_spec.rb +73 -10
  234. data/spec/api/mentions_api_spec.rb +103 -0
  235. data/spec/api/posts_api_spec.rb +38 -6
  236. data/spec/api/receipts_api_spec.rb +9 -2
  237. data/spec/api/subscriptions_api_spec.rb +12 -2
  238. data/spec/api/tags_api_spec.rb +7 -2
  239. data/spec/api/users_api_spec.rb +9 -2
  240. data/spec/api/workspaces_api_spec.rb +33 -2
  241. data/spec/models/account_analytics_initial_sync_spec.rb +42 -0
  242. data/spec/models/account_analytics_spec.rb +66 -0
  243. data/spec/models/account_schedule_spec.rb +48 -0
  244. data/spec/models/account_spec.rb +24 -2
  245. data/spec/models/add_generic_subscription_request_spec.rb +2 -2
  246. data/spec/models/add_post_to_queue_request_spec.rb +36 -0
  247. data/spec/models/ai_credits_spec.rb +48 -0
  248. data/spec/models/analytics_period_spec.rb +54 -0
  249. data/spec/models/analytics_summary_data_spec.rb +96 -0
  250. data/spec/models/analytics_summary_spec.rb +42 -0
  251. data/spec/models/approve_post_request_spec.rb +54 -0
  252. data/spec/models/best_posting_times_spec.rb +42 -0
  253. data/spec/models/best_posting_times_times_inner_spec.rb +54 -0
  254. data/spec/models/blog_to_social200_response_spec.rb +36 -0
  255. data/spec/models/blog_to_social429_response_spec.rb +36 -0
  256. data/spec/models/blog_to_social_caption_spec.rb +66 -0
  257. data/spec/models/blog_to_social_input_spec.rb +128 -0
  258. data/spec/models/blog_to_social_media_spec.rb +42 -0
  259. data/spec/models/blog_to_social_response_spec.rb +72 -0
  260. data/spec/models/cancel_subscription422_response_errors_spec.rb +36 -0
  261. data/spec/models/cancel_subscription422_response_spec.rb +42 -0
  262. data/spec/models/cancel_subscription_request_spec.rb +36 -0
  263. data/spec/models/change_subscription_plan_request_spec.rb +2 -2
  264. data/spec/models/checkout_subscription200_response_spec.rb +2 -2
  265. data/spec/models/checkout_subscription_request_spec.rb +2 -2
  266. data/spec/models/complete_chunked_upload_request_spec.rb +42 -0
  267. data/spec/models/create_media_folder_request_spec.rb +42 -0
  268. data/spec/models/create_mention201_response_spec.rb +36 -0
  269. data/spec/models/delete_media_bulk_request_items_inner_spec.rb +32 -0
  270. data/spec/models/delete_media_bulk_request_spec.rb +2 -2
  271. data/spec/models/delete_media_folder_request_spec.rb +36 -0
  272. data/spec/models/delete_mode_spec.rb +2 -2
  273. data/spec/models/delete_post_request_spec.rb +2 -2
  274. data/spec/models/delete_posts_bulk_request_spec.rb +2 -2
  275. data/spec/models/delete_receipts_bulk_request_spec.rb +2 -2
  276. data/spec/models/delete_result_spec.rb +2 -2
  277. data/spec/models/delete_user400_response_spec.rb +2 -2
  278. data/spec/models/delete_users_bulk_request_spec.rb +2 -2
  279. data/spec/models/delete_workspaces_bulk_request_spec.rb +2 -2
  280. data/spec/models/get_remote_upload_status200_response_spec.rb +2 -2
  281. data/spec/models/image_alt_text200_response_spec.rb +36 -0
  282. data/spec/models/image_alt_text_input_spec.rb +36 -0
  283. data/spec/models/image_alt_text_response_spec.rb +54 -0
  284. data/spec/models/image_edit_input_spec.rb +74 -0
  285. data/spec/models/image_generate200_response_spec.rb +36 -0
  286. data/spec/models/image_generate429_response_spec.rb +36 -0
  287. data/spec/models/image_generate_input_spec.rb +102 -0
  288. data/spec/models/image_generation_response_spec.rb +72 -0
  289. data/spec/models/image_prompt200_response_spec.rb +36 -0
  290. data/spec/models/image_prompt429_response_spec.rb +36 -0
  291. data/spec/models/image_prompt_input_spec.rb +70 -0
  292. data/spec/models/image_prompt_response_spec.rb +36 -0
  293. data/spec/models/image_variations200_response_spec.rb +36 -0
  294. data/spec/models/image_variations_input_spec.rb +62 -0
  295. data/spec/models/image_variations_response_spec.rb +60 -0
  296. data/spec/models/initiate_chunked_upload201_response_spec.rb +48 -0
  297. data/spec/models/initiate_chunked_upload_request_spec.rb +2 -2
  298. data/spec/models/initiate_remote_upload201_response_one_of_spec.rb +36 -0
  299. data/spec/models/initiate_remote_upload201_response_spec.rb +32 -0
  300. data/spec/models/initiate_remote_upload_request_spec.rb +8 -2
  301. data/spec/models/list_accounts200_response_spec.rb +2 -2
  302. data/spec/models/list_media200_response_spec.rb +2 -2
  303. data/spec/models/list_media_folders200_response_spec.rb +36 -0
  304. data/spec/models/list_mentions200_response_spec.rb +48 -0
  305. data/spec/models/list_my_workspaces200_response_spec.rb +36 -0
  306. data/spec/models/list_posts200_response_spec.rb +2 -2
  307. data/spec/models/list_receipts200_response_spec.rb +2 -2
  308. data/spec/models/list_tags200_response_spec.rb +2 -2
  309. data/spec/models/list_users200_response_spec.rb +2 -2
  310. data/spec/models/list_workspaces200_response_spec.rb +2 -2
  311. data/spec/models/media_folder_input_spec.rb +42 -0
  312. data/spec/models/media_folder_ref_spec.rb +42 -0
  313. data/spec/models/media_folder_spec.rb +54 -0
  314. data/spec/models/media_spec.rb +44 -2
  315. data/spec/models/mention_identity_input_spec.rb +60 -0
  316. data/spec/models/mention_identity_spec.rb +54 -0
  317. data/spec/models/mention_input_spec.rb +48 -0
  318. data/spec/models/mention_spec.rb +66 -0
  319. data/spec/models/pagination_meta_links_spec.rb +2 -2
  320. data/spec/models/pagination_meta_meta_spec.rb +2 -2
  321. data/spec/models/pagination_meta_spec.rb +2 -2
  322. data/spec/models/post_analytics_spec.rb +48 -0
  323. data/spec/models/post_content_spec.rb +2 -2
  324. data/spec/models/post_input_spec.rb +8 -2
  325. data/spec/models/post_spec.rb +8 -2
  326. data/spec/models/post_status_spec.rb +2 -2
  327. data/spec/models/post_version_spec.rb +8 -2
  328. data/spec/models/posting_time_slot_spec.rb +52 -0
  329. data/spec/models/posting_times_best_inner_spec.rb +54 -0
  330. data/spec/models/posting_times_day_intervals_inner_inner_spec.rb +70 -0
  331. data/spec/models/posting_times_days_inner_spec.rb +58 -0
  332. data/spec/models/posting_times_spec.rb +78 -0
  333. data/spec/models/public_workspace_pivot_spec.rb +52 -0
  334. data/spec/models/public_workspace_spec.rb +54 -0
  335. data/spec/models/publish_progress_spec.rb +48 -0
  336. data/spec/models/receipt_input_spec.rb +2 -2
  337. data/spec/models/receipt_spec.rb +2 -2
  338. data/spec/models/receipt_update_input_spec.rb +2 -2
  339. data/spec/models/remove_generic_subscription422_response_spec.rb +36 -0
  340. data/spec/models/remove_user_from_workspace_request_spec.rb +2 -2
  341. data/spec/models/retry_post_account_result_spec.rb +48 -0
  342. data/spec/models/schedule_post_request_spec.rb +26 -2
  343. data/spec/models/schedule_result_spec.rb +8 -2
  344. data/spec/models/subscription_input_spec.rb +2 -2
  345. data/spec/models/subscription_spec.rb +2 -2
  346. data/spec/models/subscription_status_spec.rb +2 -2
  347. data/spec/models/subscription_update_input_spec.rb +2 -2
  348. data/spec/models/tag_input_spec.rb +2 -2
  349. data/spec/models/tag_spec.rb +2 -2
  350. data/spec/models/update_media_request_spec.rb +14 -2
  351. data/spec/models/upload_chunk201_response_spec.rb +36 -0
  352. data/spec/models/user_input_spec.rb +2 -2
  353. data/spec/models/user_spec.rb +8 -2
  354. data/spec/models/user_update_input_spec.rb +2 -2
  355. data/spec/models/workspace_input_spec.rb +2 -2
  356. data/spec/models/workspace_spec.rb +8 -2
  357. data/spec/models/workspace_user_input_spec.rb +2 -2
  358. data/spec/spec_helper.rb +2 -2
  359. metadata +331 -75
  360. data/git_push.sh +0 -57
  361. data/spec/models/initiate_chunked_upload200_response_spec.rb +0 -48
  362. data/spec/models/initiate_remote_upload200_response_one_of_spec.rb +0 -36
  363. data/spec/models/initiate_remote_upload200_response_spec.rb +0 -32
  364. data/spec/models/upload_chunk200_response_spec.rb +0 -36
@@ -22,6 +22,8 @@ All URIs are relative to *https://postboost.co/app/api*
22
22
 
23
23
  Add generic subscription
24
24
 
25
+ Assigns a non-Stripe (generic) subscription plan to the workspace, optionally granting a trial period. Used for AppSumo-style lifetime deals. Admin only.
26
+
25
27
  ### Examples
26
28
 
27
29
  ```ruby
@@ -87,10 +89,12 @@ end
87
89
 
88
90
  ## cancel_subscription
89
91
 
90
- > Object cancel_subscription(workspace_uuid)
92
+ > Object cancel_subscription(workspace_uuid, opts)
91
93
 
92
94
  Cancel subscription
93
95
 
96
+ Cancels the workspace's Stripe subscription at the end of the current billing period, or right away with `immediately: true`. Works for active and past-due subscriptions. Admin only.
97
+
94
98
  ### Examples
95
99
 
96
100
  ```ruby
@@ -104,10 +108,13 @@ end
104
108
 
105
109
  api_instance = PostBoost::SubscriptionsApi.new
106
110
  workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
111
+ opts = {
112
+ cancel_subscription_request: PostBoost::CancelSubscriptionRequest.new # CancelSubscriptionRequest |
113
+ }
107
114
 
108
115
  begin
109
116
  # Cancel subscription
110
- result = api_instance.cancel_subscription(workspace_uuid)
117
+ result = api_instance.cancel_subscription(workspace_uuid, opts)
111
118
  p result
112
119
  rescue PostBoost::ApiError => e
113
120
  puts "Error when calling SubscriptionsApi->cancel_subscription: #{e}"
@@ -118,12 +125,12 @@ end
118
125
 
119
126
  This returns an Array which contains the response data, status code and headers.
120
127
 
121
- > <Array(Object, Integer, Hash)> cancel_subscription_with_http_info(workspace_uuid)
128
+ > <Array(Object, Integer, Hash)> cancel_subscription_with_http_info(workspace_uuid, opts)
122
129
 
123
130
  ```ruby
124
131
  begin
125
132
  # Cancel subscription
126
- data, status_code, headers = api_instance.cancel_subscription_with_http_info(workspace_uuid)
133
+ data, status_code, headers = api_instance.cancel_subscription_with_http_info(workspace_uuid, opts)
127
134
  p status_code # => 2xx
128
135
  p headers # => { ... }
129
136
  p data # => Object
@@ -137,6 +144,7 @@ end
137
144
  | Name | Type | Description | Notes |
138
145
  | ---- | ---- | ----------- | ----- |
139
146
  | **workspace_uuid** | **String** | UUID of the workspace. | |
147
+ | **cancel_subscription_request** | [**CancelSubscriptionRequest**](CancelSubscriptionRequest.md) | | [optional] |
140
148
 
141
149
  ### Return type
142
150
 
@@ -148,7 +156,7 @@ end
148
156
 
149
157
  ### HTTP request headers
150
158
 
151
- - **Content-Type**: Not defined
159
+ - **Content-Type**: application/json
152
160
  - **Accept**: application/json
153
161
 
154
162
 
@@ -158,6 +166,8 @@ end
158
166
 
159
167
  Change subscription plan
160
168
 
169
+ Switches the workspace to a different Stripe plan. Optionally prorates the change and bills immediately. Admin only.
170
+
161
171
  ### Examples
162
172
 
163
173
  ```ruby
@@ -298,6 +308,8 @@ end
298
308
 
299
309
  Create subscription
300
310
 
311
+ Manually creates a subscription record for the workspace (for external billing integrations). Admin only.
312
+
301
313
  ### Examples
302
314
 
303
315
  ```ruby
@@ -367,6 +379,8 @@ end
367
379
 
368
380
  Delete subscription
369
381
 
382
+ Removes the subscription record from the workspace. Admin only.
383
+
370
384
  ### Examples
371
385
 
372
386
  ```ruby
@@ -434,6 +448,8 @@ end
434
448
 
435
449
  Get subscription
436
450
 
451
+ Returns the active subscription for the workspace, or `null` if none exists. Admin only.
452
+
437
453
  ### Examples
438
454
 
439
455
  ```ruby
@@ -501,6 +517,8 @@ end
501
517
 
502
518
  Remove generic subscription
503
519
 
520
+ Removes the generic (non-Stripe) subscription from the workspace. Returns `422` when the workspace has no generic subscription. Admin only.
521
+
504
522
  ### Examples
505
523
 
506
524
  ```ruby
@@ -568,6 +586,8 @@ end
568
586
 
569
587
  Resume subscription
570
588
 
589
+ Resumes a previously canceled subscription before it expires. Admin only.
590
+
571
591
  ### Examples
572
592
 
573
593
  ```ruby
@@ -635,6 +655,8 @@ end
635
655
 
636
656
  Update subscription
637
657
 
658
+ Updates the plan ID, status, or trial/pause dates of an existing subscription. Admin only.
659
+
638
660
  ### Examples
639
661
 
640
662
  ```ruby
data/docs/Tag.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **Integer** | | [optional] |
8
- | **uuid** | **String** | | [optional] |
9
- | **name** | **String** | | [optional] |
10
- | **hex_color** | **String** | | [optional] |
7
+ | **id** | **Integer** | | |
8
+ | **uuid** | **String** | | |
9
+ | **name** | **String** | | |
10
+ | **hex_color** | **String** | | |
11
11
 
12
12
  ## Example
13
13
 
data/docs/TagsApi.md CHANGED
@@ -17,6 +17,8 @@ All URIs are relative to *https://postboost.co/app/api*
17
17
 
18
18
  Create tag
19
19
 
20
+ Creates a new color-coded tag in the workspace for organizing posts.
21
+
20
22
  ### Examples
21
23
 
22
24
  ```ruby
@@ -86,6 +88,8 @@ end
86
88
 
87
89
  Delete tag
88
90
 
91
+ Permanently deletes a tag. Posts that had this tag attached are unaffected.
92
+
89
93
  ### Examples
90
94
 
91
95
  ```ruby
@@ -155,6 +159,8 @@ end
155
159
 
156
160
  Get tag
157
161
 
162
+ Returns a single tag by UUID.
163
+
158
164
  ### Examples
159
165
 
160
166
  ```ruby
@@ -224,6 +230,8 @@ end
224
230
 
225
231
  List tags
226
232
 
233
+ Returns all tags defined in the workspace.
234
+
227
235
  ### Examples
228
236
 
229
237
  ```ruby
@@ -291,6 +299,8 @@ end
291
299
 
292
300
  Update tag
293
301
 
302
+ Updates a tag's name or color.
303
+
294
304
  ### Examples
295
305
 
296
306
  ```ruby
@@ -4,7 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **alt_text** | **String** | Alternative text for accessibility. | |
7
+ | **name** | **String** | | [optional] |
8
+ | **alt_text** | **String** | Alternative text for accessibility. | [optional] |
9
+ | **folder** | **String** | UUID of the media folder to move the item to, or null for the library root. | [optional] |
8
10
 
9
11
  ## Example
10
12
 
@@ -12,7 +14,9 @@
12
14
  require 'postboost'
13
15
 
14
16
  instance = PostBoost::UpdateMediaRequest.new(
15
- alt_text: null
17
+ name: null,
18
+ alt_text: null,
19
+ folder: null
16
20
  )
17
21
  ```
18
22
 
@@ -1,4 +1,4 @@
1
- # PostBoost::UploadChunk200Response
1
+ # PostBoost::UploadChunk201Response
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'postboost'
13
13
 
14
- instance = PostBoost::UploadChunk200Response.new(
14
+ instance = PostBoost::UploadChunk201Response.new(
15
15
  received: null
16
16
  )
17
17
  ```
data/docs/User.md CHANGED
@@ -4,12 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **Integer** | | [optional] |
8
- | **name** | **String** | | [optional] |
9
- | **email** | **String** | | [optional] |
10
- | **is_admin** | **Boolean** | | [optional] |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | |
9
+ | **email** | **String** | | |
10
+ | **avatar** | **String** | URL of the user&#39;s avatar, or null when none is set. | [optional] |
11
+ | **is_admin** | **Boolean** | | |
11
12
  | **email_verified_at** | **Time** | | [optional] |
12
- | **created_at** | **Time** | | [optional] |
13
+ | **created_at** | **Time** | | |
13
14
 
14
15
  ## Example
15
16
 
@@ -20,6 +21,7 @@ instance = PostBoost::User.new(
20
21
  id: null,
21
22
  name: null,
22
23
  email: null,
24
+ avatar: null,
23
25
  is_admin: null,
24
26
  email_verified_at: null,
25
27
  created_at: null
data/docs/UsersApi.md CHANGED
@@ -18,6 +18,8 @@ All URIs are relative to *https://postboost.co/app/api*
18
18
 
19
19
  Create user
20
20
 
21
+ Creates a new user account on the platform. Admin only.
22
+
21
23
  ### Examples
22
24
 
23
25
  ```ruby
@@ -85,6 +87,8 @@ end
85
87
 
86
88
  Delete user
87
89
 
90
+ Permanently deletes a user account. Returns 400 if you attempt to delete your own account. Admin only.
91
+
88
92
  ### Examples
89
93
 
90
94
  ```ruby
@@ -152,6 +156,8 @@ end
152
156
 
153
157
  Delete users (bulk)
154
158
 
159
+ Permanently deletes one or more user accounts. You cannot delete your own account. Admin only.
160
+
155
161
  ### Examples
156
162
 
157
163
  ```ruby
@@ -219,6 +225,8 @@ end
219
225
 
220
226
  Get user
221
227
 
228
+ Returns a single user account by ID. Admin only.
229
+
222
230
  ### Examples
223
231
 
224
232
  ```ruby
@@ -286,6 +294,8 @@ end
286
294
 
287
295
  List users
288
296
 
297
+ Returns a paginated list of all users on the platform. Optionally filter by name or email. Admin only.
298
+
289
299
  ### Examples
290
300
 
291
301
  ```ruby
@@ -299,7 +309,8 @@ end
299
309
 
300
310
  api_instance = PostBoost::UsersApi.new
301
311
  opts = {
302
- keyword: 'keyword_example' # String | Search by name or email.
312
+ keyword: 'keyword_example', # String | Search by name or email.
313
+ page: 56 # Integer | Page number (15 items per page).
303
314
  }
304
315
 
305
316
  begin
@@ -334,6 +345,7 @@ end
334
345
  | Name | Type | Description | Notes |
335
346
  | ---- | ---- | ----------- | ----- |
336
347
  | **keyword** | **String** | Search by name or email. | [optional] |
348
+ | **page** | **Integer** | Page number (15 items per page). | [optional][default to 1] |
337
349
 
338
350
  ### Return type
339
351
 
@@ -355,6 +367,8 @@ end
355
367
 
356
368
  Update user
357
369
 
370
+ Updates a user's name, email, admin status, or password. Admin only.
371
+
358
372
  ### Examples
359
373
 
360
374
  ```ruby
data/docs/Workspace.md CHANGED
@@ -4,12 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **uuid** | **String** | | [optional] |
8
- | **name** | **String** | | [optional] |
9
- | **hex_color** | **String** | | [optional] |
7
+ | **uuid** | **String** | | |
8
+ | **name** | **String** | | |
9
+ | **hex_color** | **String** | Deprecated. Workspaces no longer have a colour (workspaces now use &#x60;avatar&#x60;); the API returns the constant &#x60;4f46e5&#x60; so existing clients keep working. Will be removed in API v2. | [optional] |
10
+ | **avatar** | **String** | URL of the workspace avatar, or null when none is set. Supersedes &#x60;hex_color&#x60;. | [optional] |
10
11
  | **owner** | [**User**](User.md) | | [optional] |
11
- | **access_status** | **String** | | [optional] |
12
- | **created_at** | **Time** | | [optional] |
12
+ | **access_status** | **String** | | |
13
+ | **created_at** | **Time** | | |
13
14
 
14
15
  ## Example
15
16
 
@@ -19,7 +20,8 @@ require 'postboost'
19
20
  instance = PostBoost::Workspace.new(
20
21
  uuid: null,
21
22
  name: null,
22
- hex_color: null,
23
+ hex_color: 4f46e5,
24
+ avatar: null,
23
25
  owner: null,
24
26
  access_status: null,
25
27
  created_at: null
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | | |
8
- | **hex_color** | **String** | | |
8
+ | **hex_color** | **String** | Ignored since v2.0; kept for backward compatibility | [optional] |
9
9
  | **owner_id** | **Integer** | | [optional] |
10
10
  | **access_status** | **String** | | |
11
11
 
@@ -9,6 +9,8 @@ All URIs are relative to *https://postboost.co/app/api*
9
9
  | [**delete_workspace**](WorkspacesApi.md#delete_workspace) | **DELETE** /panel/workspaces/{workspaceUuid} | Delete workspace |
10
10
  | [**delete_workspaces_bulk**](WorkspacesApi.md#delete_workspaces_bulk) | **DELETE** /panel/workspaces | Delete workspaces (bulk) |
11
11
  | [**get_workspace**](WorkspacesApi.md#get_workspace) | **GET** /panel/workspaces/{workspaceUuid} | Get workspace |
12
+ | [**get_workspace_ai_credits**](WorkspacesApi.md#get_workspace_ai_credits) | **GET** /panel/workspaces/{workspaceUuid}/ai-credits | Get workspace AI credits |
13
+ | [**list_my_workspaces**](WorkspacesApi.md#list_my_workspaces) | **GET** /workspaces | List my workspaces |
12
14
  | [**list_workspaces**](WorkspacesApi.md#list_workspaces) | **GET** /panel/workspaces | List workspaces |
13
15
  | [**remove_user_from_workspace**](WorkspacesApi.md#remove_user_from_workspace) | **DELETE** /panel/workspaces/{workspaceUuid}/users | Remove user from workspace |
14
16
  | [**update_workspace**](WorkspacesApi.md#update_workspace) | **PUT** /panel/workspaces/{workspaceUuid} | Update workspace |
@@ -21,6 +23,8 @@ All URIs are relative to *https://postboost.co/app/api*
21
23
 
22
24
  Add user to workspace
23
25
 
26
+ Adds an existing user to the workspace with a specified role. Admin only.
27
+
24
28
  ### Examples
25
29
 
26
30
  ```ruby
@@ -104,7 +108,7 @@ PostBoost.configure do |config|
104
108
  end
105
109
 
106
110
  api_instance = PostBoost::WorkspacesApi.new
107
- workspace_input = PostBoost::WorkspaceInput.new({name: 'name_example', hex_color: '#1d4ed8', access_status: 'subscription'}) # WorkspaceInput |
111
+ workspace_input = PostBoost::WorkspaceInput.new({name: 'name_example', access_status: 'subscription'}) # WorkspaceInput |
108
112
 
109
113
  begin
110
114
  # Create workspace
@@ -159,6 +163,8 @@ end
159
163
 
160
164
  Delete workspace
161
165
 
166
+ Permanently deletes a single workspace and all its associated data. Admin only.
167
+
162
168
  ### Examples
163
169
 
164
170
  ```ruby
@@ -226,6 +232,8 @@ end
226
232
 
227
233
  Delete workspaces (bulk)
228
234
 
235
+ Permanently deletes one or more workspaces and all their associated data. Admin only.
236
+
229
237
  ### Examples
230
238
 
231
239
  ```ruby
@@ -293,6 +301,8 @@ end
293
301
 
294
302
  Get workspace
295
303
 
304
+ Returns a single workspace by UUID including its subscription status. Admin only.
305
+
296
306
  ### Examples
297
307
 
298
308
  ```ruby
@@ -354,6 +364,141 @@ end
354
364
  - **Accept**: application/json
355
365
 
356
366
 
367
+ ## get_workspace_ai_credits
368
+
369
+ > <AICredits> get_workspace_ai_credits(workspace_uuid)
370
+
371
+ Get workspace AI credits
372
+
373
+ Returns whether the workspace can use AI credits, its remaining balance, and whether the balance is low. Admin only.
374
+
375
+ ### Examples
376
+
377
+ ```ruby
378
+ require 'time'
379
+ require 'postboost'
380
+ # setup authorization
381
+ PostBoost.configure do |config|
382
+ # Configure Bearer authorization: bearerAuth
383
+ config.access_token = 'YOUR_BEARER_TOKEN'
384
+ end
385
+
386
+ api_instance = PostBoost::WorkspacesApi.new
387
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
388
+
389
+ begin
390
+ # Get workspace AI credits
391
+ result = api_instance.get_workspace_ai_credits(workspace_uuid)
392
+ p result
393
+ rescue PostBoost::ApiError => e
394
+ puts "Error when calling WorkspacesApi->get_workspace_ai_credits: #{e}"
395
+ end
396
+ ```
397
+
398
+ #### Using the get_workspace_ai_credits_with_http_info variant
399
+
400
+ This returns an Array which contains the response data, status code and headers.
401
+
402
+ > <Array(<AICredits>, Integer, Hash)> get_workspace_ai_credits_with_http_info(workspace_uuid)
403
+
404
+ ```ruby
405
+ begin
406
+ # Get workspace AI credits
407
+ data, status_code, headers = api_instance.get_workspace_ai_credits_with_http_info(workspace_uuid)
408
+ p status_code # => 2xx
409
+ p headers # => { ... }
410
+ p data # => <AICredits>
411
+ rescue PostBoost::ApiError => e
412
+ puts "Error when calling WorkspacesApi->get_workspace_ai_credits_with_http_info: #{e}"
413
+ end
414
+ ```
415
+
416
+ ### Parameters
417
+
418
+ | Name | Type | Description | Notes |
419
+ | ---- | ---- | ----------- | ----- |
420
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
421
+
422
+ ### Return type
423
+
424
+ [**AICredits**](AICredits.md)
425
+
426
+ ### Authorization
427
+
428
+ [bearerAuth](../README.md#bearerAuth)
429
+
430
+ ### HTTP request headers
431
+
432
+ - **Content-Type**: Not defined
433
+ - **Accept**: application/json
434
+
435
+
436
+ ## list_my_workspaces
437
+
438
+ > <ListMyWorkspaces200Response> list_my_workspaces
439
+
440
+ List my workspaces
441
+
442
+ Returns the workspaces the authenticated user belongs to, most recently updated first, with the caller's role in each. Use a returned `uuid` as `workspaceUuid`.
443
+
444
+ ### Examples
445
+
446
+ ```ruby
447
+ require 'time'
448
+ require 'postboost'
449
+ # setup authorization
450
+ PostBoost.configure do |config|
451
+ # Configure Bearer authorization: bearerAuth
452
+ config.access_token = 'YOUR_BEARER_TOKEN'
453
+ end
454
+
455
+ api_instance = PostBoost::WorkspacesApi.new
456
+
457
+ begin
458
+ # List my workspaces
459
+ result = api_instance.list_my_workspaces
460
+ p result
461
+ rescue PostBoost::ApiError => e
462
+ puts "Error when calling WorkspacesApi->list_my_workspaces: #{e}"
463
+ end
464
+ ```
465
+
466
+ #### Using the list_my_workspaces_with_http_info variant
467
+
468
+ This returns an Array which contains the response data, status code and headers.
469
+
470
+ > <Array(<ListMyWorkspaces200Response>, Integer, Hash)> list_my_workspaces_with_http_info
471
+
472
+ ```ruby
473
+ begin
474
+ # List my workspaces
475
+ data, status_code, headers = api_instance.list_my_workspaces_with_http_info
476
+ p status_code # => 2xx
477
+ p headers # => { ... }
478
+ p data # => <ListMyWorkspaces200Response>
479
+ rescue PostBoost::ApiError => e
480
+ puts "Error when calling WorkspacesApi->list_my_workspaces_with_http_info: #{e}"
481
+ end
482
+ ```
483
+
484
+ ### Parameters
485
+
486
+ This endpoint does not need any parameter.
487
+
488
+ ### Return type
489
+
490
+ [**ListMyWorkspaces200Response**](ListMyWorkspaces200Response.md)
491
+
492
+ ### Authorization
493
+
494
+ [bearerAuth](../README.md#bearerAuth)
495
+
496
+ ### HTTP request headers
497
+
498
+ - **Content-Type**: Not defined
499
+ - **Accept**: application/json
500
+
501
+
357
502
  ## list_workspaces
358
503
 
359
504
  > <ListWorkspaces200Response> list_workspaces(opts)
@@ -377,7 +522,8 @@ api_instance = PostBoost::WorkspacesApi.new
377
522
  opts = {
378
523
  keyword: 'keyword_example', # String |
379
524
  subscription_status: 'active', # String |
380
- access_status: 'subscription' # String |
525
+ access_status: 'subscription', # String |
526
+ page: 56 # Integer | Page number (15 items per page).
381
527
  }
382
528
 
383
529
  begin
@@ -414,6 +560,7 @@ end
414
560
  | **keyword** | **String** | | [optional] |
415
561
  | **subscription_status** | **String** | | [optional] |
416
562
  | **access_status** | **String** | | [optional] |
563
+ | **page** | **Integer** | Page number (15 items per page). | [optional][default to 1] |
417
564
 
418
565
  ### Return type
419
566
 
@@ -435,6 +582,8 @@ end
435
582
 
436
583
  Remove user from workspace
437
584
 
585
+ Removes a user's access to the workspace. The user account is not deleted. Admin only.
586
+
438
587
  ### Examples
439
588
 
440
589
  ```ruby
@@ -504,6 +653,8 @@ end
504
653
 
505
654
  Update workspace
506
655
 
656
+ Updates a workspace's name, owner, or access status. Admin only. `hex_color` is accepted but ignored.
657
+
507
658
  ### Examples
508
659
 
509
660
  ```ruby
@@ -517,7 +668,7 @@ end
517
668
 
518
669
  api_instance = PostBoost::WorkspacesApi.new
519
670
  workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
520
- workspace_input = PostBoost::WorkspaceInput.new({name: 'name_example', hex_color: '#1d4ed8', access_status: 'subscription'}) # WorkspaceInput |
671
+ workspace_input = PostBoost::WorkspaceInput.new({name: 'name_example', access_status: 'subscription'}) # WorkspaceInput |
521
672
 
522
673
  begin
523
674
  # Update workspace
@@ -573,6 +724,8 @@ end
573
724
 
574
725
  Update user role in workspace
575
726
 
727
+ Changes a user's role or permissions within the workspace. Admin only.
728
+
576
729
  ### Examples
577
730
 
578
731
  ```ruby
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #PostBoost API
3
3
 
4
- #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace's plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request's `timezone` when one is given, otherwise in the workspace timezone. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.8.0
7
7
  Contact: hi@postboost.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.9.0
@@ -89,9 +89,13 @@ module PostBoost
89
89
  end
90
90
 
91
91
  # List accounts
92
- # Returns all social media accounts connected to the workspace.
92
+ # Returns all social media accounts connected to the workspace, newest first. Optional filters narrow the list.
93
93
  # @param workspace_uuid [String] UUID of the workspace.
94
94
  # @param [Hash] opts the optional parameters
95
+ # @option opts [String] :keyword Match the account name or username.
96
+ # @option opts [String] :group Only accounts in this account group.
97
+ # @option opts [Array<String>] :providers Only accounts of these providers (for example &#x60;instagram&#x60;, &#x60;linkedin&#x60;).
98
+ # @option opts [Boolean] :unauthorized When &#x60;true&#x60;, only accounts that need to be reconnected.
95
99
  # @return [ListAccounts200Response]
96
100
  def list_accounts(workspace_uuid, opts = {})
97
101
  data, _status_code, _headers = list_accounts_with_http_info(workspace_uuid, opts)
@@ -99,9 +103,13 @@ module PostBoost
99
103
  end
100
104
 
101
105
  # List accounts
102
- # Returns all social media accounts connected to the workspace.
106
+ # Returns all social media accounts connected to the workspace, newest first. Optional filters narrow the list.
103
107
  # @param workspace_uuid [String] UUID of the workspace.
104
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :keyword Match the account name or username.
110
+ # @option opts [String] :group Only accounts in this account group.
111
+ # @option opts [Array<String>] :providers Only accounts of these providers (for example &#x60;instagram&#x60;, &#x60;linkedin&#x60;).
112
+ # @option opts [Boolean] :unauthorized When &#x60;true&#x60;, only accounts that need to be reconnected.
105
113
  # @return [Array<(ListAccounts200Response, Integer, Hash)>] ListAccounts200Response data, response status code and response headers
106
114
  def list_accounts_with_http_info(workspace_uuid, opts = {})
107
115
  if @api_client.config.debugging
@@ -116,6 +124,10 @@ module PostBoost
116
124
 
117
125
  # query parameters
118
126
  query_params = opts[:query_params] || {}
127
+ query_params[:'keyword'] = opts[:'keyword'] if !opts[:'keyword'].nil?
128
+ query_params[:'group'] = opts[:'group'] if !opts[:'group'].nil?
129
+ query_params[:'providers[]'] = @api_client.build_collection_param(opts[:'providers'], :multi) if !opts[:'providers'].nil?
130
+ query_params[:'unauthorized'] = opts[:'unauthorized'] if !opts[:'unauthorized'].nil?
119
131
 
120
132
  # header parameters
121
133
  header_params = opts[:header_params] || {}