@schedulin/sdk 0.1.1 → 0.2.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 (304) hide show
  1. package/README.md +45 -0
  2. package/cjs/BaseClient.d.ts +12 -0
  3. package/cjs/Client.d.ts +9 -0
  4. package/cjs/Client.js +23 -8
  5. package/cjs/api/errors/InternalServerError.d.ts +1 -0
  6. package/cjs/api/errors/UnauthorizedError.d.ts +1 -0
  7. package/cjs/api/resources/ai/client/Client.d.ts +49 -0
  8. package/cjs/api/resources/ai/client/Client.js +181 -0
  9. package/cjs/api/resources/ai/client/index.d.ts +1 -0
  10. package/cjs/api/resources/ai/client/index.js +17 -0
  11. package/cjs/api/resources/ai/client/requests/GenerateImageAiRequest.d.ts +20 -0
  12. package/cjs/api/resources/ai/client/requests/GenerateImageAiRequest.js +12 -0
  13. package/cjs/api/resources/{posts/client/requests/GetJobStatusPostsRequest.d.ts → ai/client/requests/GetGenerationAiRequest.d.ts} +1 -1
  14. package/cjs/api/resources/ai/client/requests/index.d.ts +2 -0
  15. package/cjs/api/resources/ai/client/requests/index.js +5 -0
  16. package/cjs/api/resources/ai/exports.d.ts +2 -0
  17. package/cjs/api/resources/ai/exports.js +21 -0
  18. package/cjs/api/resources/ai/index.d.ts +1 -0
  19. package/cjs/api/resources/ai/index.js +17 -0
  20. package/cjs/api/resources/index.d.ts +6 -0
  21. package/cjs/api/resources/index.js +7 -1
  22. package/cjs/api/resources/media/client/Client.d.ts +85 -2
  23. package/cjs/api/resources/media/client/Client.js +263 -6
  24. package/cjs/api/resources/media/client/requests/CreateFromUrlMediaRequest.d.ts +12 -0
  25. package/cjs/api/resources/media/client/requests/CreateUploadLinkMediaRequest.d.ts +7 -0
  26. package/cjs/api/resources/media/client/requests/CreateUploadLinkMediaRequest.js +3 -0
  27. package/{esm/api/resources/posts/client/requests/GetJobStatusPostsRequest.d.mts → cjs/api/resources/media/client/requests/DeleteMediaRequest.d.ts} +1 -1
  28. package/cjs/api/resources/media/client/requests/DeleteMediaRequest.js +3 -0
  29. package/cjs/api/resources/media/client/requests/ListMediaRequest.d.ts +1 -1
  30. package/cjs/api/resources/media/client/requests/UploadMediaRequest.d.ts +13 -0
  31. package/cjs/api/resources/media/client/requests/UploadMediaRequest.js +3 -0
  32. package/cjs/api/resources/media/client/requests/index.d.ts +4 -0
  33. package/cjs/api/resources/media/types/ListMediaResponse.d.ts +7 -0
  34. package/cjs/api/resources/media/types/ListMediaResponse.js +3 -0
  35. package/cjs/api/resources/media/types/index.d.ts +1 -1
  36. package/cjs/api/resources/media/types/index.js +1 -1
  37. package/cjs/api/resources/platforms/client/Client.d.ts +28 -0
  38. package/cjs/api/resources/platforms/client/Client.js +111 -0
  39. package/cjs/api/resources/platforms/client/index.d.ts +1 -0
  40. package/cjs/api/resources/platforms/client/index.js +2 -0
  41. package/cjs/api/resources/platforms/exports.d.ts +2 -0
  42. package/cjs/api/resources/platforms/exports.js +21 -0
  43. package/cjs/api/resources/platforms/index.d.ts +2 -0
  44. package/cjs/api/resources/platforms/index.js +18 -0
  45. package/cjs/api/resources/platforms/types/ListPlatformsResponse.d.ts +56 -0
  46. package/cjs/api/resources/platforms/types/ListPlatformsResponse.js +24 -0
  47. package/cjs/api/resources/platforms/types/index.d.ts +1 -0
  48. package/cjs/api/resources/platforms/types/index.js +17 -0
  49. package/cjs/api/resources/posts/client/Client.d.ts +21 -17
  50. package/cjs/api/resources/posts/client/Client.js +29 -61
  51. package/cjs/api/resources/posts/client/requests/ListPostsRequest.d.ts +1 -0
  52. package/cjs/api/resources/posts/client/requests/PostCreate.d.ts +64 -0
  53. package/cjs/api/resources/posts/client/requests/PostCreate.js +63 -0
  54. package/cjs/api/resources/posts/client/requests/index.d.ts +0 -1
  55. package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +21 -0
  56. package/cjs/api/resources/posts/types/CreatePostsResponse.js +21 -0
  57. package/cjs/api/resources/posts/types/ListPostsRequestStatusesItem.d.ts +8 -0
  58. package/cjs/api/resources/posts/types/ListPostsRequestStatusesItem.js +11 -0
  59. package/cjs/api/resources/posts/types/index.d.ts +1 -0
  60. package/cjs/api/resources/posts/types/index.js +1 -0
  61. package/cjs/api/resources/socialAccounts/client/Client.d.ts +67 -0
  62. package/cjs/api/resources/socialAccounts/client/Client.js +209 -3
  63. package/cjs/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.d.ts +9 -0
  64. package/cjs/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.js +3 -0
  65. package/cjs/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.d.ts +11 -0
  66. package/cjs/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.js +3 -0
  67. package/cjs/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.d.ts +11 -0
  68. package/cjs/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.js +3 -0
  69. package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +3 -0
  70. package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.ts +22 -0
  71. package/cjs/api/resources/socialAccounts/types/ListSocialAccountsResponse.js +21 -0
  72. package/cjs/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.d.ts +12 -0
  73. package/cjs/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.js +3 -0
  74. package/cjs/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.d.ts +12 -0
  75. package/cjs/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.js +3 -0
  76. package/cjs/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.d.ts +3 -0
  77. package/cjs/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.js +3 -0
  78. package/cjs/api/resources/socialAccounts/types/index.d.ts +3 -0
  79. package/cjs/api/resources/socialAccounts/types/index.js +3 -0
  80. package/cjs/api/resources/tags/client/Client.d.ts +8 -0
  81. package/cjs/api/resources/tags/client/Client.js +12 -3
  82. package/cjs/api/resources/webhooks/client/Client.d.ts +155 -0
  83. package/cjs/api/resources/webhooks/client/Client.js +538 -0
  84. package/cjs/api/resources/webhooks/client/index.d.ts +1 -0
  85. package/cjs/api/resources/webhooks/client/index.js +17 -0
  86. package/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +24 -0
  87. package/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.js +16 -0
  88. package/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.ts +9 -0
  89. package/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.js +3 -0
  90. package/cjs/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.ts +11 -0
  91. package/cjs/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.js +3 -0
  92. package/cjs/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.d.ts +9 -0
  93. package/cjs/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.js +3 -0
  94. package/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.ts +9 -0
  95. package/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.js +3 -0
  96. package/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.d.ts +9 -0
  97. package/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.js +3 -0
  98. package/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +25 -0
  99. package/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +16 -0
  100. package/cjs/api/resources/webhooks/client/requests/index.d.ts +7 -0
  101. package/cjs/api/resources/webhooks/client/requests/index.js +7 -0
  102. package/cjs/api/resources/webhooks/exports.d.ts +2 -0
  103. package/cjs/api/resources/webhooks/exports.js +21 -0
  104. package/cjs/api/resources/webhooks/index.d.ts +1 -0
  105. package/cjs/api/resources/webhooks/index.js +17 -0
  106. package/cjs/api/types/MediaSearch.d.ts +1 -5
  107. package/cjs/api/types/OauthScope.d.ts +12 -0
  108. package/cjs/api/types/OauthScope.js +12 -0
  109. package/cjs/api/types/PostSearch.d.ts +12 -0
  110. package/cjs/api/types/PostSearch.js +10 -0
  111. package/cjs/api/types/PostWithRelations.d.ts +21 -0
  112. package/cjs/api/types/PostWithRelations.js +21 -0
  113. package/cjs/api/types/SocialAccountDisconnectedReason.d.ts +1 -0
  114. package/cjs/api/types/SocialAccountDisconnectedReason.js +1 -0
  115. package/cjs/api/types/SocialPlatform.d.ts +21 -0
  116. package/cjs/api/types/SocialPlatform.js +21 -0
  117. package/cjs/core/exports.d.ts +1 -0
  118. package/cjs/core/exports.js +1 -0
  119. package/cjs/core/fetcher/Fetcher.js +9 -92
  120. package/cjs/core/fetcher/makePassthroughRequest.js +26 -4
  121. package/cjs/core/fetcher/redactUrl.d.ts +2 -0
  122. package/cjs/core/fetcher/redactUrl.js +88 -0
  123. package/cjs/core/file/exports.d.ts +1 -0
  124. package/cjs/core/file/exports.js +2 -0
  125. package/cjs/core/file/file.d.ts +10 -0
  126. package/cjs/core/file/file.js +225 -0
  127. package/cjs/core/file/index.d.ts +2 -0
  128. package/cjs/core/file/index.js +18 -0
  129. package/cjs/core/file/types.d.ts +66 -0
  130. package/cjs/core/file/types.js +2 -0
  131. package/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  132. package/cjs/core/form-data-utils/FormDataWrapper.js +188 -0
  133. package/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  134. package/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  135. package/cjs/core/form-data-utils/index.d.ts +2 -0
  136. package/cjs/core/form-data-utils/index.js +20 -0
  137. package/cjs/core/index.d.ts +2 -0
  138. package/cjs/core/index.js +3 -1
  139. package/cjs/core/requestBody.d.ts +12 -0
  140. package/cjs/core/requestBody.js +26 -0
  141. package/cjs/core/runtime/index.d.ts +1 -1
  142. package/cjs/core/runtime/index.js +2 -1
  143. package/cjs/core/runtime/runtime.d.ts +19 -0
  144. package/cjs/core/runtime/runtime.js +74 -2
  145. package/cjs/core/url/qs.js +2 -2
  146. package/cjs/errors/SchedulinError.d.ts +1 -0
  147. package/cjs/errors/SchedulinError.js +4 -0
  148. package/cjs/errors/SchedulinTimeoutError.d.ts +2 -2
  149. package/cjs/errors/SchedulinTimeoutError.js +39 -5
  150. package/esm/BaseClient.d.mts +12 -0
  151. package/esm/Client.d.mts +9 -0
  152. package/esm/Client.mjs +15 -0
  153. package/esm/api/errors/InternalServerError.d.mts +1 -0
  154. package/esm/api/errors/UnauthorizedError.d.mts +1 -0
  155. package/esm/api/resources/ai/client/Client.d.mts +49 -0
  156. package/esm/api/resources/ai/client/Client.mjs +144 -0
  157. package/esm/api/resources/ai/client/index.d.mts +1 -0
  158. package/esm/api/resources/ai/client/index.mjs +1 -0
  159. package/esm/api/resources/ai/client/requests/GenerateImageAiRequest.d.mts +20 -0
  160. package/esm/api/resources/ai/client/requests/GenerateImageAiRequest.mjs +9 -0
  161. package/esm/api/resources/ai/client/requests/GetGenerationAiRequest.d.mts +9 -0
  162. package/esm/api/resources/ai/client/requests/index.d.mts +2 -0
  163. package/esm/api/resources/ai/client/requests/index.mjs +1 -0
  164. package/esm/api/resources/ai/exports.d.mts +2 -0
  165. package/esm/api/resources/ai/exports.mjs +3 -0
  166. package/esm/api/resources/ai/index.d.mts +1 -0
  167. package/esm/api/resources/ai/index.mjs +1 -0
  168. package/esm/api/resources/index.d.mts +6 -0
  169. package/esm/api/resources/index.mjs +6 -0
  170. package/esm/api/resources/media/client/Client.d.mts +85 -2
  171. package/esm/api/resources/media/client/Client.mjs +264 -7
  172. package/esm/api/resources/media/client/requests/CreateFromUrlMediaRequest.d.mts +12 -0
  173. package/esm/api/resources/media/client/requests/CreateUploadLinkMediaRequest.d.mts +7 -0
  174. package/esm/api/resources/media/client/requests/CreateUploadLinkMediaRequest.mjs +2 -0
  175. package/esm/api/resources/media/client/requests/DeleteMediaRequest.d.mts +9 -0
  176. package/esm/api/resources/media/client/requests/DeleteMediaRequest.mjs +2 -0
  177. package/esm/api/resources/media/client/requests/ListMediaRequest.d.mts +1 -1
  178. package/esm/api/resources/media/client/requests/UploadMediaRequest.d.mts +13 -0
  179. package/esm/api/resources/media/client/requests/UploadMediaRequest.mjs +2 -0
  180. package/esm/api/resources/media/client/requests/index.d.mts +4 -0
  181. package/esm/api/resources/media/types/ListMediaResponse.d.mts +7 -0
  182. package/esm/api/resources/media/types/ListMediaResponse.mjs +2 -0
  183. package/esm/api/resources/media/types/index.d.mts +1 -1
  184. package/esm/api/resources/media/types/index.mjs +1 -1
  185. package/esm/api/resources/platforms/client/Client.d.mts +28 -0
  186. package/esm/api/resources/platforms/client/Client.mjs +74 -0
  187. package/esm/api/resources/platforms/client/index.d.mts +1 -0
  188. package/esm/api/resources/platforms/client/index.mjs +1 -0
  189. package/esm/api/resources/platforms/exports.d.mts +2 -0
  190. package/esm/api/resources/platforms/exports.mjs +3 -0
  191. package/esm/api/resources/platforms/index.d.mts +2 -0
  192. package/esm/api/resources/platforms/index.mjs +2 -0
  193. package/esm/api/resources/platforms/types/ListPlatformsResponse.d.mts +56 -0
  194. package/esm/api/resources/platforms/types/ListPlatformsResponse.mjs +21 -0
  195. package/esm/api/resources/platforms/types/index.d.mts +1 -0
  196. package/esm/api/resources/platforms/types/index.mjs +1 -0
  197. package/esm/api/resources/posts/client/Client.d.mts +21 -17
  198. package/esm/api/resources/posts/client/Client.mjs +29 -61
  199. package/esm/api/resources/posts/client/requests/ListPostsRequest.d.mts +1 -0
  200. package/esm/api/resources/posts/client/requests/PostCreate.d.mts +64 -0
  201. package/esm/api/resources/posts/client/requests/PostCreate.mjs +63 -0
  202. package/esm/api/resources/posts/client/requests/index.d.mts +0 -1
  203. package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +21 -0
  204. package/esm/api/resources/posts/types/CreatePostsResponse.mjs +21 -0
  205. package/esm/api/resources/posts/types/ListPostsRequestStatusesItem.d.mts +8 -0
  206. package/esm/api/resources/posts/types/ListPostsRequestStatusesItem.mjs +8 -0
  207. package/esm/api/resources/posts/types/index.d.mts +1 -0
  208. package/esm/api/resources/posts/types/index.mjs +1 -0
  209. package/esm/api/resources/socialAccounts/client/Client.d.mts +67 -0
  210. package/esm/api/resources/socialAccounts/client/Client.mjs +209 -3
  211. package/esm/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.d.mts +9 -0
  212. package/esm/api/resources/socialAccounts/client/requests/ListWhopCompaniesSocialAccountsRequest.mjs +2 -0
  213. package/esm/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.d.mts +11 -0
  214. package/esm/api/resources/socialAccounts/client/requests/ListWhopForumsSocialAccountsRequest.mjs +2 -0
  215. package/esm/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.d.mts +11 -0
  216. package/esm/api/resources/socialAccounts/client/requests/NextSlotsSocialAccountsRequest.mjs +2 -0
  217. package/esm/api/resources/socialAccounts/client/requests/index.d.mts +3 -0
  218. package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.d.mts +22 -0
  219. package/esm/api/resources/socialAccounts/types/ListSocialAccountsResponse.mjs +21 -0
  220. package/esm/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.d.mts +12 -0
  221. package/esm/api/resources/socialAccounts/types/ListWhopCompaniesSocialAccountsResponse.mjs +2 -0
  222. package/esm/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.d.mts +12 -0
  223. package/esm/api/resources/socialAccounts/types/ListWhopForumsSocialAccountsResponse.mjs +2 -0
  224. package/esm/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.d.mts +3 -0
  225. package/esm/api/resources/socialAccounts/types/NextSlotsSocialAccountsResponse.mjs +2 -0
  226. package/esm/api/resources/socialAccounts/types/index.d.mts +3 -0
  227. package/esm/api/resources/socialAccounts/types/index.mjs +3 -0
  228. package/esm/api/resources/tags/client/Client.d.mts +8 -0
  229. package/esm/api/resources/tags/client/Client.mjs +12 -3
  230. package/esm/api/resources/webhooks/client/Client.d.mts +155 -0
  231. package/esm/api/resources/webhooks/client/Client.mjs +501 -0
  232. package/esm/api/resources/webhooks/client/index.d.mts +1 -0
  233. package/esm/api/resources/webhooks/client/index.mjs +1 -0
  234. package/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +24 -0
  235. package/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.mjs +13 -0
  236. package/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.mts +9 -0
  237. package/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.mjs +2 -0
  238. package/esm/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.mts +11 -0
  239. package/esm/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.mjs +2 -0
  240. package/esm/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.d.mts +9 -0
  241. package/esm/api/resources/webhooks/client/requests/RetrieveWebhooksRequest.mjs +2 -0
  242. package/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.mts +9 -0
  243. package/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.mjs +2 -0
  244. package/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.d.mts +9 -0
  245. package/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.mjs +2 -0
  246. package/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +25 -0
  247. package/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +13 -0
  248. package/esm/api/resources/webhooks/client/requests/index.d.mts +7 -0
  249. package/esm/api/resources/webhooks/client/requests/index.mjs +2 -0
  250. package/esm/api/resources/webhooks/exports.d.mts +2 -0
  251. package/esm/api/resources/webhooks/exports.mjs +3 -0
  252. package/esm/api/resources/webhooks/index.d.mts +1 -0
  253. package/esm/api/resources/webhooks/index.mjs +1 -0
  254. package/esm/api/types/MediaSearch.d.mts +1 -5
  255. package/esm/api/types/OauthScope.d.mts +12 -0
  256. package/esm/api/types/OauthScope.mjs +12 -0
  257. package/esm/api/types/PostSearch.d.mts +12 -0
  258. package/esm/api/types/PostSearch.mjs +10 -0
  259. package/esm/api/types/PostWithRelations.d.mts +21 -0
  260. package/esm/api/types/PostWithRelations.mjs +21 -0
  261. package/esm/api/types/SocialAccountDisconnectedReason.d.mts +1 -0
  262. package/esm/api/types/SocialAccountDisconnectedReason.mjs +1 -0
  263. package/esm/api/types/SocialPlatform.d.mts +21 -0
  264. package/esm/api/types/SocialPlatform.mjs +21 -0
  265. package/esm/core/exports.d.mts +1 -0
  266. package/esm/core/exports.mjs +1 -0
  267. package/esm/core/fetcher/Fetcher.mjs +1 -84
  268. package/esm/core/fetcher/makePassthroughRequest.mjs +26 -4
  269. package/esm/core/fetcher/redactUrl.d.mts +2 -0
  270. package/esm/core/fetcher/redactUrl.mjs +84 -0
  271. package/esm/core/file/exports.d.mts +1 -0
  272. package/esm/core/file/exports.mjs +1 -0
  273. package/esm/core/file/file.d.mts +10 -0
  274. package/esm/core/file/file.mjs +188 -0
  275. package/esm/core/file/index.d.mts +2 -0
  276. package/esm/core/file/index.mjs +2 -0
  277. package/esm/core/file/types.d.mts +66 -0
  278. package/esm/core/file/types.mjs +1 -0
  279. package/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  280. package/esm/core/form-data-utils/FormDataWrapper.mjs +150 -0
  281. package/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  282. package/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  283. package/esm/core/form-data-utils/index.d.mts +2 -0
  284. package/esm/core/form-data-utils/index.mjs +2 -0
  285. package/esm/core/index.d.mts +2 -0
  286. package/esm/core/index.mjs +2 -0
  287. package/esm/core/requestBody.d.mts +12 -0
  288. package/esm/core/requestBody.mjs +23 -0
  289. package/esm/core/runtime/index.d.mts +1 -1
  290. package/esm/core/runtime/index.mjs +1 -1
  291. package/esm/core/runtime/runtime.d.mts +19 -0
  292. package/esm/core/runtime/runtime.mjs +73 -2
  293. package/esm/core/url/qs.mjs +2 -2
  294. package/esm/errors/SchedulinError.d.mts +1 -0
  295. package/esm/errors/SchedulinError.mjs +4 -0
  296. package/esm/errors/SchedulinTimeoutError.d.mts +2 -2
  297. package/esm/errors/SchedulinTimeoutError.mjs +6 -5
  298. package/package.json +1 -1
  299. package/cjs/api/resources/media/types/ListMediaRequestCursor.d.ts +0 -4
  300. package/esm/api/resources/media/types/ListMediaRequestCursor.d.mts +0 -4
  301. /package/cjs/api/resources/{media/types/ListMediaRequestCursor.js → ai/client/requests/GetGenerationAiRequest.js} +0 -0
  302. /package/cjs/api/resources/{posts/client/requests/GetJobStatusPostsRequest.js → media/client/requests/CreateFromUrlMediaRequest.js} +0 -0
  303. /package/esm/api/resources/{media/types/ListMediaRequestCursor.mjs → ai/client/requests/GetGenerationAiRequest.mjs} +0 -0
  304. /package/esm/api/resources/{posts/client/requests/GetJobStatusPostsRequest.mjs → media/client/requests/CreateFromUrlMediaRequest.mjs} +0 -0
@@ -58,6 +58,7 @@ exports.SocialAccountsClient = void 0;
58
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
61
62
  const environments = __importStar(require("../../../../environments.js"));
62
63
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
64
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -73,6 +74,8 @@ class SocialAccountsClient {
73
74
  *
74
75
  * @throws {@link Schedulin.UnauthorizedError}
75
76
  * @throws {@link Schedulin.InternalServerError}
77
+ * @throws {@link errors.SchedulinError}
78
+ * @throws {@link errors.SchedulinTimeoutError}
76
79
  *
77
80
  * @example
78
81
  * await client.socialAccounts.list()
@@ -116,6 +119,132 @@ class SocialAccountsClient {
116
119
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts");
117
120
  });
118
121
  }
122
+ /**
123
+ * List companies available to a connected Whop account. Select one before requesting its forum experiences.
124
+ *
125
+ * @param {Schedulin.ListWhopCompaniesSocialAccountsRequest} request
126
+ * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link Schedulin.UnauthorizedError}
129
+ * @throws {@link Schedulin.InternalServerError}
130
+ * @throws {@link errors.SchedulinError}
131
+ * @throws {@link errors.SchedulinTimeoutError}
132
+ *
133
+ * @example
134
+ * await client.socialAccounts.listWhopCompanies({
135
+ * id: "id"
136
+ * })
137
+ */
138
+ listWhopCompanies(request, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__listWhopCompanies(request, requestOptions));
140
+ }
141
+ __listWhopCompanies(request, requestOptions) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
144
+ const { id } = request;
145
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
146
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
+ const _response = yield core.fetcher({
148
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/whop-companies`),
149
+ method: "GET",
150
+ headers: _headers,
151
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
152
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
153
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
156
+ logging: this._options.logging,
157
+ });
158
+ if (_response.ok) {
159
+ return {
160
+ data: _response.body,
161
+ rawResponse: _response.rawResponse,
162
+ };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ switch (_response.error.statusCode) {
166
+ case 401:
167
+ throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
168
+ case 500:
169
+ throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
170
+ default:
171
+ throw new errors.SchedulinError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ rawResponse: _response.rawResponse,
175
+ });
176
+ }
177
+ }
178
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-companies");
179
+ });
180
+ }
181
+ /**
182
+ * List forum experiences for a Whop company. Use an item id as platformConfiguration.experience.
183
+ *
184
+ * @param {Schedulin.ListWhopForumsSocialAccountsRequest} request
185
+ * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
186
+ *
187
+ * @throws {@link Schedulin.UnauthorizedError}
188
+ * @throws {@link Schedulin.InternalServerError}
189
+ * @throws {@link errors.SchedulinError}
190
+ * @throws {@link errors.SchedulinTimeoutError}
191
+ *
192
+ * @example
193
+ * await client.socialAccounts.listWhopForums({
194
+ * id: "id",
195
+ * companyId: "companyId"
196
+ * })
197
+ */
198
+ listWhopForums(request, requestOptions) {
199
+ return core.HttpResponsePromise.fromPromise(this.__listWhopForums(request, requestOptions));
200
+ }
201
+ __listWhopForums(request, requestOptions) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
204
+ const { id, companyId } = request;
205
+ const _queryParams = {
206
+ companyId,
207
+ };
208
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
209
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
210
+ const _response = yield core.fetcher({
211
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/whop-forums`),
212
+ method: "GET",
213
+ headers: _headers,
214
+ queryString: core.url
215
+ .queryBuilder()
216
+ .addMany(_queryParams)
217
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
218
+ .build(),
219
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
220
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
221
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
222
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
223
+ logging: this._options.logging,
224
+ });
225
+ if (_response.ok) {
226
+ return {
227
+ data: _response.body,
228
+ rawResponse: _response.rawResponse,
229
+ };
230
+ }
231
+ if (_response.error.reason === "status-code") {
232
+ switch (_response.error.statusCode) {
233
+ case 401:
234
+ throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
235
+ case 500:
236
+ throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
237
+ default:
238
+ throw new errors.SchedulinError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
244
+ }
245
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-forums");
246
+ });
247
+ }
119
248
  /**
120
249
  * Update social media account settings and information
121
250
  *
@@ -124,6 +253,8 @@ class SocialAccountsClient {
124
253
  *
125
254
  * @throws {@link Schedulin.UnauthorizedError}
126
255
  * @throws {@link Schedulin.InternalServerError}
256
+ * @throws {@link errors.SchedulinError}
257
+ * @throws {@link errors.SchedulinTimeoutError}
127
258
  *
128
259
  * @example
129
260
  * await client.socialAccounts.update({
@@ -146,7 +277,7 @@ class SocialAccountsClient {
146
277
  contentType: "application/json",
147
278
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
148
279
  requestType: "json",
149
- body: _body,
280
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
150
281
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
151
282
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
152
283
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -184,6 +315,8 @@ class SocialAccountsClient {
184
315
  *
185
316
  * @throws {@link Schedulin.UnauthorizedError}
186
317
  * @throws {@link Schedulin.InternalServerError}
318
+ * @throws {@link errors.SchedulinError}
319
+ * @throws {@link errors.SchedulinTimeoutError}
187
320
  *
188
321
  * @example
189
322
  * await client.socialAccounts.delete({
@@ -206,7 +339,7 @@ class SocialAccountsClient {
206
339
  contentType: "application/json",
207
340
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
208
341
  requestType: "json",
209
- body: _body,
342
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
210
343
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
211
344
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
212
345
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -244,6 +377,8 @@ class SocialAccountsClient {
244
377
  *
245
378
  * @throws {@link Schedulin.UnauthorizedError}
246
379
  * @throws {@link Schedulin.InternalServerError}
380
+ * @throws {@link errors.SchedulinError}
381
+ * @throws {@link errors.SchedulinTimeoutError}
247
382
  *
248
383
  * @example
249
384
  * await client.socialAccounts.updateTimezone({
@@ -267,7 +402,7 @@ class SocialAccountsClient {
267
402
  contentType: "application/json",
268
403
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
269
404
  requestType: "json",
270
- body: _body,
405
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
271
406
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
272
407
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
273
408
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -297,6 +432,73 @@ class SocialAccountsClient {
297
432
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v0/social-accounts/{id}/timezone");
298
433
  });
299
434
  }
435
+ /**
436
+ * Return the next available queue slot times (UTC) for a social account, computed from its queue schedule, per-slot capacity, and timezone. Empty when the account has no queue times configured. Use a slot as `scheduledAt`, or pass `action: "queue"` when creating a post to take the next slot automatically.
437
+ *
438
+ * @param {Schedulin.NextSlotsSocialAccountsRequest} request
439
+ * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
440
+ *
441
+ * @throws {@link Schedulin.UnauthorizedError}
442
+ * @throws {@link Schedulin.InternalServerError}
443
+ * @throws {@link errors.SchedulinError}
444
+ * @throws {@link errors.SchedulinTimeoutError}
445
+ *
446
+ * @example
447
+ * await client.socialAccounts.nextSlots({
448
+ * id: "id"
449
+ * })
450
+ */
451
+ nextSlots(request, requestOptions) {
452
+ return core.HttpResponsePromise.fromPromise(this.__nextSlots(request, requestOptions));
453
+ }
454
+ __nextSlots(request, requestOptions) {
455
+ return __awaiter(this, void 0, void 0, function* () {
456
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
457
+ const { id, limit, after } = request;
458
+ const _queryParams = {
459
+ limit,
460
+ after,
461
+ };
462
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
463
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
464
+ const _response = yield core.fetcher({
465
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/next-slots`),
466
+ method: "GET",
467
+ headers: _headers,
468
+ queryString: core.url
469
+ .queryBuilder()
470
+ .addMany(_queryParams)
471
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
472
+ .build(),
473
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
474
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
475
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
476
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
477
+ logging: this._options.logging,
478
+ });
479
+ if (_response.ok) {
480
+ return {
481
+ data: _response.body,
482
+ rawResponse: _response.rawResponse,
483
+ };
484
+ }
485
+ if (_response.error.reason === "status-code") {
486
+ switch (_response.error.statusCode) {
487
+ case 401:
488
+ throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
489
+ case 500:
490
+ throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
491
+ default:
492
+ throw new errors.SchedulinError({
493
+ statusCode: _response.error.statusCode,
494
+ body: _response.error.body,
495
+ rawResponse: _response.rawResponse,
496
+ });
497
+ }
498
+ }
499
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/next-slots");
500
+ });
501
+ }
300
502
  /**
301
503
  * List the boards for a connected Pinterest account. Use a board id in `platformConfiguration.board_ids` when creating a Pinterest post.
302
504
  *
@@ -305,6 +507,8 @@ class SocialAccountsClient {
305
507
  *
306
508
  * @throws {@link Schedulin.UnauthorizedError}
307
509
  * @throws {@link Schedulin.InternalServerError}
510
+ * @throws {@link errors.SchedulinError}
511
+ * @throws {@link errors.SchedulinTimeoutError}
308
512
  *
309
513
  * @example
310
514
  * await client.socialAccounts.pinterestBoards({
@@ -362,6 +566,8 @@ class SocialAccountsClient {
362
566
  *
363
567
  * @throws {@link Schedulin.UnauthorizedError}
364
568
  * @throws {@link Schedulin.InternalServerError}
569
+ * @throws {@link errors.SchedulinError}
570
+ * @throws {@link errors.SchedulinTimeoutError}
365
571
  *
366
572
  * @example
367
573
  * await client.socialAccounts.tiktokCreatorInfo({
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface ListWhopCompaniesSocialAccountsRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id",
5
+ * companyId: "companyId"
6
+ * }
7
+ */
8
+ export interface ListWhopForumsSocialAccountsRequest {
9
+ id: string;
10
+ companyId: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface NextSlotsSocialAccountsRequest {
8
+ id: string;
9
+ limit?: number;
10
+ after?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  export type { DeleteSocialAccountsRequest } from "./DeleteSocialAccountsRequest.js";
2
+ export type { ListWhopCompaniesSocialAccountsRequest } from "./ListWhopCompaniesSocialAccountsRequest.js";
3
+ export type { ListWhopForumsSocialAccountsRequest } from "./ListWhopForumsSocialAccountsRequest.js";
4
+ export type { NextSlotsSocialAccountsRequest } from "./NextSlotsSocialAccountsRequest.js";
2
5
  export type { PinterestBoardsSocialAccountsRequest } from "./PinterestBoardsSocialAccountsRequest.js";
3
6
  export type { TiktokCreatorInfoSocialAccountsRequest } from "./TiktokCreatorInfoSocialAccountsRequest.js";
4
7
  export { UpdateSocialAccountsRequest } from "./UpdateSocialAccountsRequest.js";
@@ -13,6 +13,7 @@ export declare namespace ListSocialAccountsResponse {
13
13
  profileImageUrl: string | null;
14
14
  refreshTokenValid: boolean;
15
15
  analyticsDisabledAt: string | null;
16
+ webhookSubscriptionFailedAt: string | null;
16
17
  createdAt: string;
17
18
  updatedAt: string;
18
19
  }
@@ -25,10 +26,31 @@ export declare namespace ListSocialAccountsResponse {
25
26
  readonly Linkedin: "linkedin";
26
27
  readonly Pinterest: "pinterest";
27
28
  readonly Reddit: "reddit";
29
+ readonly Snapchat: "snapchat";
28
30
  readonly Threads: "threads";
29
31
  readonly Tiktok: "tiktok";
30
32
  readonly Twitter: "twitter";
31
33
  readonly Youtube: "youtube";
34
+ readonly Mastodon: "mastodon";
35
+ readonly Telegram: "telegram";
36
+ readonly Devto: "devto";
37
+ readonly Hashnode: "hashnode";
38
+ readonly Medium: "medium";
39
+ readonly Wordpress: "wordpress";
40
+ readonly Lemmy: "lemmy";
41
+ readonly Nostr: "nostr";
42
+ readonly Discord: "discord";
43
+ readonly Dribbble: "dribbble";
44
+ readonly Farcaster: "farcaster";
45
+ readonly Kick: "kick";
46
+ readonly Listmonk: "listmonk";
47
+ readonly Mewe: "mewe";
48
+ readonly Moltbook: "moltbook";
49
+ readonly Skool: "skool";
50
+ readonly Slack: "slack";
51
+ readonly Twitch: "twitch";
52
+ readonly Vk: "vk";
53
+ readonly Whop: "whop";
32
54
  };
33
55
  type Platform = (typeof Platform)[keyof typeof Platform];
34
56
  const Status: {
@@ -16,10 +16,31 @@ var ListSocialAccountsResponse;
16
16
  Linkedin: "linkedin",
17
17
  Pinterest: "pinterest",
18
18
  Reddit: "reddit",
19
+ Snapchat: "snapchat",
19
20
  Threads: "threads",
20
21
  Tiktok: "tiktok",
21
22
  Twitter: "twitter",
22
23
  Youtube: "youtube",
24
+ Mastodon: "mastodon",
25
+ Telegram: "telegram",
26
+ Devto: "devto",
27
+ Hashnode: "hashnode",
28
+ Medium: "medium",
29
+ Wordpress: "wordpress",
30
+ Lemmy: "lemmy",
31
+ Nostr: "nostr",
32
+ Discord: "discord",
33
+ Dribbble: "dribbble",
34
+ Farcaster: "farcaster",
35
+ Kick: "kick",
36
+ Listmonk: "listmonk",
37
+ Mewe: "mewe",
38
+ Moltbook: "moltbook",
39
+ Skool: "skool",
40
+ Slack: "slack",
41
+ Twitch: "twitch",
42
+ Vk: "vk",
43
+ Whop: "whop",
23
44
  };
24
45
  Item.Status = {
25
46
  Connected: "connected",
@@ -0,0 +1,12 @@
1
+ export interface ListWhopCompaniesSocialAccountsResponse {
2
+ items: ListWhopCompaniesSocialAccountsResponse.Items.Item[];
3
+ }
4
+ export declare namespace ListWhopCompaniesSocialAccountsResponse {
5
+ type Items = Items.Item[];
6
+ namespace Items {
7
+ interface Item {
8
+ id: string;
9
+ name: string;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface ListWhopForumsSocialAccountsResponse {
2
+ items: ListWhopForumsSocialAccountsResponse.Items.Item[];
3
+ }
4
+ export declare namespace ListWhopForumsSocialAccountsResponse {
5
+ type Items = Items.Item[];
6
+ namespace Items {
7
+ interface Item {
8
+ id: string;
9
+ name: string;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface NextSlotsSocialAccountsResponse {
2
+ slots: string[];
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,8 @@
1
1
  export * from "./DeleteSocialAccountsResponse.js";
2
2
  export * from "./ListSocialAccountsResponse.js";
3
+ export * from "./ListWhopCompaniesSocialAccountsResponse.js";
4
+ export * from "./ListWhopForumsSocialAccountsResponse.js";
5
+ export * from "./NextSlotsSocialAccountsResponse.js";
3
6
  export * from "./PinterestBoardsSocialAccountsResponse.js";
4
7
  export * from "./TiktokCreatorInfoSocialAccountsResponse.js";
5
8
  export * from "./UpdateSocialAccountsResponse.js";
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DeleteSocialAccountsResponse.js"), exports);
18
18
  __exportStar(require("./ListSocialAccountsResponse.js"), exports);
19
+ __exportStar(require("./ListWhopCompaniesSocialAccountsResponse.js"), exports);
20
+ __exportStar(require("./ListWhopForumsSocialAccountsResponse.js"), exports);
21
+ __exportStar(require("./NextSlotsSocialAccountsResponse.js"), exports);
19
22
  __exportStar(require("./PinterestBoardsSocialAccountsResponse.js"), exports);
20
23
  __exportStar(require("./TiktokCreatorInfoSocialAccountsResponse.js"), exports);
21
24
  __exportStar(require("./UpdateSocialAccountsResponse.js"), exports);
@@ -18,6 +18,8 @@ export declare class TagsClient {
18
18
  *
19
19
  * @throws {@link Schedulin.UnauthorizedError}
20
20
  * @throws {@link Schedulin.InternalServerError}
21
+ * @throws {@link errors.SchedulinError}
22
+ * @throws {@link errors.SchedulinTimeoutError}
21
23
  *
22
24
  * @example
23
25
  * await client.tags.list()
@@ -32,6 +34,8 @@ export declare class TagsClient {
32
34
  *
33
35
  * @throws {@link Schedulin.UnauthorizedError}
34
36
  * @throws {@link Schedulin.InternalServerError}
37
+ * @throws {@link errors.SchedulinError}
38
+ * @throws {@link errors.SchedulinTimeoutError}
35
39
  *
36
40
  * @example
37
41
  * await client.tags.create({
@@ -49,6 +53,8 @@ export declare class TagsClient {
49
53
  *
50
54
  * @throws {@link Schedulin.UnauthorizedError}
51
55
  * @throws {@link Schedulin.InternalServerError}
56
+ * @throws {@link errors.SchedulinError}
57
+ * @throws {@link errors.SchedulinTimeoutError}
52
58
  *
53
59
  * @example
54
60
  * await client.tags.update({
@@ -65,6 +71,8 @@ export declare class TagsClient {
65
71
  *
66
72
  * @throws {@link Schedulin.UnauthorizedError}
67
73
  * @throws {@link Schedulin.InternalServerError}
74
+ * @throws {@link errors.SchedulinError}
75
+ * @throws {@link errors.SchedulinTimeoutError}
68
76
  *
69
77
  * @example
70
78
  * await client.tags.delete({
@@ -58,6 +58,7 @@ exports.TagsClient = void 0;
58
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
61
62
  const environments = __importStar(require("../../../../environments.js"));
62
63
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
64
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -74,6 +75,8 @@ class TagsClient {
74
75
  *
75
76
  * @throws {@link Schedulin.UnauthorizedError}
76
77
  * @throws {@link Schedulin.InternalServerError}
78
+ * @throws {@link errors.SchedulinError}
79
+ * @throws {@link errors.SchedulinTimeoutError}
77
80
  *
78
81
  * @example
79
82
  * await client.tags.list()
@@ -134,6 +137,8 @@ class TagsClient {
134
137
  *
135
138
  * @throws {@link Schedulin.UnauthorizedError}
136
139
  * @throws {@link Schedulin.InternalServerError}
140
+ * @throws {@link errors.SchedulinError}
141
+ * @throws {@link errors.SchedulinTimeoutError}
137
142
  *
138
143
  * @example
139
144
  * await client.tags.create({
@@ -156,7 +161,7 @@ class TagsClient {
156
161
  contentType: "application/json",
157
162
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
158
163
  requestType: "json",
159
- body: request,
164
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
160
165
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
161
166
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
162
167
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -191,6 +196,8 @@ class TagsClient {
191
196
  *
192
197
  * @throws {@link Schedulin.UnauthorizedError}
193
198
  * @throws {@link Schedulin.InternalServerError}
199
+ * @throws {@link errors.SchedulinError}
200
+ * @throws {@link errors.SchedulinTimeoutError}
194
201
  *
195
202
  * @example
196
203
  * await client.tags.update({
@@ -213,7 +220,7 @@ class TagsClient {
213
220
  contentType: "application/json",
214
221
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
215
222
  requestType: "json",
216
- body: _body,
223
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
217
224
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
218
225
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
219
226
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -248,6 +255,8 @@ class TagsClient {
248
255
  *
249
256
  * @throws {@link Schedulin.UnauthorizedError}
250
257
  * @throws {@link Schedulin.InternalServerError}
258
+ * @throws {@link errors.SchedulinError}
259
+ * @throws {@link errors.SchedulinTimeoutError}
251
260
  *
252
261
  * @example
253
262
  * await client.tags.delete({
@@ -270,7 +279,7 @@ class TagsClient {
270
279
  contentType: "application/json",
271
280
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
272
281
  requestType: "json",
273
- body: _body,
282
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
274
283
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
275
284
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
276
285
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,