@woopsocial/typescript-sdk 0.0.9 → 0.1.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 (335) hide show
  1. package/FUNCTIONS.md +9 -3
  2. package/README.md +71 -22
  3. package/esm/funcs/posts-create-post.d.ts +23 -0
  4. package/esm/funcs/posts-create-post.d.ts.map +1 -0
  5. package/esm/funcs/posts-create-post.js +88 -0
  6. package/esm/funcs/posts-create-post.js.map +1 -0
  7. package/esm/funcs/posts-delete-post.d.ts +21 -0
  8. package/esm/funcs/posts-delete-post.d.ts.map +1 -0
  9. package/esm/funcs/posts-delete-post.js +91 -0
  10. package/esm/funcs/posts-delete-post.js.map +1 -0
  11. package/esm/funcs/posts-get-post.d.ts +19 -0
  12. package/esm/funcs/posts-get-post.d.ts.map +1 -0
  13. package/esm/funcs/posts-get-post.js +89 -0
  14. package/esm/funcs/posts-get-post.js.map +1 -0
  15. package/esm/funcs/social-accounts-get-social-account-platform-inputs.d.ts +2 -1
  16. package/esm/funcs/social-accounts-get-social-account-platform-inputs.d.ts.map +1 -1
  17. package/esm/funcs/social-accounts-get-social-account-platform-inputs.js +2 -1
  18. package/esm/funcs/social-accounts-get-social-account-platform-inputs.js.map +1 -1
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/models/create-post-error-code.d.ts +16 -0
  22. package/esm/models/create-post-error-code.d.ts.map +1 -0
  23. package/esm/models/create-post-error-code.js +17 -0
  24. package/esm/models/create-post-error-code.js.map +1 -0
  25. package/esm/models/create-post-request.d.ts +35 -0
  26. package/esm/models/create-post-request.d.ts.map +1 -0
  27. package/esm/models/create-post-request.js +17 -0
  28. package/esm/models/create-post-request.js.map +1 -0
  29. package/esm/models/delete-post-error-code.d.ts +11 -0
  30. package/esm/models/delete-post-error-code.d.ts.map +1 -0
  31. package/esm/models/delete-post-error-code.js +12 -0
  32. package/esm/models/delete-post-error-code.js.map +1 -0
  33. package/esm/models/delivery-status.d.ts +0 -2
  34. package/esm/models/delivery-status.d.ts.map +1 -1
  35. package/esm/models/delivery-status.js +0 -2
  36. package/esm/models/delivery-status.js.map +1 -1
  37. package/esm/models/draft-post-schedule.d.ts +17 -0
  38. package/esm/models/draft-post-schedule.d.ts.map +1 -0
  39. package/esm/models/draft-post-schedule.js +21 -0
  40. package/esm/models/draft-post-schedule.js.map +1 -0
  41. package/esm/models/errors/create-post-error-response.d.ts +46 -0
  42. package/esm/models/errors/create-post-error-response.d.ts.map +1 -0
  43. package/esm/models/errors/create-post-error-response.js +55 -0
  44. package/esm/models/errors/create-post-error-response.js.map +1 -0
  45. package/esm/models/errors/delete-post-error-response.d.ts +20 -0
  46. package/esm/models/errors/delete-post-error-response.d.ts.map +1 -0
  47. package/esm/models/errors/delete-post-error-response.js +34 -0
  48. package/esm/models/errors/delete-post-error-response.js.map +1 -0
  49. package/esm/models/errors/get-post-error-response.d.ts +20 -0
  50. package/esm/models/errors/get-post-error-response.d.ts.map +1 -0
  51. package/esm/models/errors/get-post-error-response.js +34 -0
  52. package/esm/models/errors/get-post-error-response.js.map +1 -0
  53. package/esm/models/errors/index.d.ts +3 -0
  54. package/esm/models/errors/index.d.ts.map +1 -1
  55. package/esm/models/errors/index.js +3 -0
  56. package/esm/models/errors/index.js.map +1 -1
  57. package/esm/models/facebook-input.d.ts +33 -0
  58. package/esm/models/facebook-input.d.ts.map +1 -0
  59. package/esm/models/facebook-input.js +18 -0
  60. package/esm/models/facebook-input.js.map +1 -0
  61. package/esm/models/facebook-post.d.ts +43 -0
  62. package/esm/models/facebook-post.d.ts.map +1 -0
  63. package/esm/models/facebook-post.js +26 -0
  64. package/esm/models/facebook-post.js.map +1 -0
  65. package/esm/models/get-post-error-code.d.ts +10 -0
  66. package/esm/models/get-post-error-code.d.ts.map +1 -0
  67. package/esm/models/get-post-error-code.js +11 -0
  68. package/esm/models/get-post-error-code.js.map +1 -0
  69. package/esm/models/health-response.d.ts +1 -1
  70. package/esm/models/health-response.d.ts.map +1 -1
  71. package/esm/models/health-response.js +1 -1
  72. package/esm/models/health-response.js.map +1 -1
  73. package/esm/models/index.d.ts +37 -34
  74. package/esm/models/index.d.ts.map +1 -1
  75. package/esm/models/index.js +37 -34
  76. package/esm/models/index.js.map +1 -1
  77. package/esm/models/instagram-input.d.ts +31 -0
  78. package/esm/models/instagram-input.d.ts.map +1 -0
  79. package/esm/models/instagram-input.js +17 -0
  80. package/esm/models/instagram-input.js.map +1 -0
  81. package/esm/models/instagram-post.d.ts +42 -0
  82. package/esm/models/instagram-post.d.ts.map +1 -0
  83. package/esm/models/instagram-post.js +25 -0
  84. package/esm/models/instagram-post.js.map +1 -0
  85. package/esm/models/linked-in-input.d.ts +28 -0
  86. package/esm/models/linked-in-input.d.ts.map +1 -0
  87. package/esm/models/linked-in-input.js +15 -0
  88. package/esm/models/linked-in-input.js.map +1 -0
  89. package/esm/models/linked-in-pages-input.d.ts +28 -0
  90. package/esm/models/linked-in-pages-input.d.ts.map +1 -0
  91. package/esm/models/linked-in-pages-input.js +15 -0
  92. package/esm/models/linked-in-pages-input.js.map +1 -0
  93. package/esm/models/linked-in-pages-post.d.ts +40 -0
  94. package/esm/models/linked-in-pages-post.d.ts.map +1 -0
  95. package/esm/models/linked-in-pages-post.js +23 -0
  96. package/esm/models/linked-in-pages-post.js.map +1 -0
  97. package/esm/models/linked-in-post.d.ts +40 -0
  98. package/esm/models/linked-in-post.d.ts.map +1 -0
  99. package/esm/models/linked-in-post.js +23 -0
  100. package/esm/models/linked-in-post.js.map +1 -0
  101. package/esm/models/media-library-post-content-media-input.d.ts +17 -0
  102. package/esm/models/media-library-post-content-media-input.d.ts.map +1 -0
  103. package/esm/models/media-library-post-content-media-input.js +13 -0
  104. package/esm/models/media-library-post-content-media-input.js.map +1 -0
  105. package/esm/models/media-library-post-content-media.d.ts +31 -0
  106. package/esm/models/media-library-post-content-media.d.ts.map +1 -0
  107. package/esm/models/media-library-post-content-media.js +25 -0
  108. package/esm/models/media-library-post-content-media.js.map +1 -0
  109. package/esm/models/operations/delete-post.d.ts +15 -0
  110. package/esm/models/operations/delete-post.d.ts.map +1 -0
  111. package/esm/models/operations/delete-post.js +12 -0
  112. package/esm/models/operations/delete-post.js.map +1 -0
  113. package/esm/models/operations/get-post.d.ts +15 -0
  114. package/esm/models/operations/get-post.d.ts.map +1 -0
  115. package/esm/models/operations/get-post.js +12 -0
  116. package/esm/models/operations/get-post.js.map +1 -0
  117. package/esm/models/operations/index.d.ts +2 -0
  118. package/esm/models/operations/index.d.ts.map +1 -1
  119. package/esm/models/operations/index.js +2 -0
  120. package/esm/models/operations/index.js.map +1 -1
  121. package/esm/models/pinterest-input.d.ts +30 -0
  122. package/esm/models/pinterest-input.d.ts.map +1 -0
  123. package/esm/models/pinterest-input.js +16 -0
  124. package/esm/models/pinterest-input.js.map +1 -0
  125. package/esm/models/pinterest-post.d.ts +41 -0
  126. package/esm/models/pinterest-post.d.ts.map +1 -0
  127. package/esm/models/pinterest-post.js +24 -0
  128. package/esm/models/pinterest-post.js.map +1 -0
  129. package/esm/models/pinterest-social-account-platform-specific-inputs.d.ts +10 -2
  130. package/esm/models/pinterest-social-account-platform-specific-inputs.d.ts.map +1 -1
  131. package/esm/models/pinterest-social-account-platform-specific-inputs.js +2 -2
  132. package/esm/models/pinterest-social-account-platform-specific-inputs.js.map +1 -1
  133. package/esm/models/post-content-item-input.d.ts +18 -0
  134. package/esm/models/post-content-item-input.d.ts.map +1 -0
  135. package/esm/models/post-content-item-input.js +14 -0
  136. package/esm/models/post-content-item-input.js.map +1 -0
  137. package/esm/models/post-content-item.d.ts +15 -0
  138. package/esm/models/post-content-item.d.ts.map +1 -0
  139. package/esm/models/post-content-item.js +16 -0
  140. package/esm/models/post-content-item.js.map +1 -0
  141. package/esm/models/post-content-media-input.d.ts +14 -0
  142. package/esm/models/post-content-media-input.d.ts.map +1 -0
  143. package/esm/models/post-content-media-input.js +10 -0
  144. package/esm/models/post-content-media-input.js.map +1 -0
  145. package/esm/models/post-content-media.d.ts +14 -0
  146. package/esm/models/post-content-media.d.ts.map +1 -0
  147. package/esm/models/post-content-media.js +11 -0
  148. package/esm/models/post-content-media.js.map +1 -0
  149. package/esm/models/post-schedule.d.ts +17 -0
  150. package/esm/models/post-schedule.d.ts.map +1 -0
  151. package/esm/models/post-schedule.js +28 -0
  152. package/esm/models/post-schedule.js.map +1 -0
  153. package/esm/models/post.d.ts +14 -44
  154. package/esm/models/post.d.ts.map +1 -1
  155. package/esm/models/post.js +8 -18
  156. package/esm/models/post.js.map +1 -1
  157. package/esm/models/publish-now-post-schedule.d.ts +17 -0
  158. package/esm/models/publish-now-post-schedule.d.ts.map +1 -0
  159. package/esm/models/publish-now-post-schedule.js +21 -0
  160. package/esm/models/publish-now-post-schedule.js.map +1 -0
  161. package/esm/models/schedule-for-later-post-schedule.d.ts +22 -0
  162. package/esm/models/schedule-for-later-post-schedule.d.ts.map +1 -0
  163. package/esm/models/schedule-for-later-post-schedule.js +23 -0
  164. package/esm/models/schedule-for-later-post-schedule.js.map +1 -0
  165. package/esm/models/social-account-platform-inputs.d.ts +0 -5
  166. package/esm/models/social-account-platform-inputs.d.ts.map +1 -1
  167. package/esm/models/social-account-platform-inputs.js +0 -2
  168. package/esm/models/social-account-platform-inputs.js.map +1 -1
  169. package/esm/models/social-account-post.d.ts +17 -0
  170. package/esm/models/social-account-post.d.ts.map +1 -0
  171. package/esm/models/social-account-post.js +28 -0
  172. package/esm/models/social-account-post.js.map +1 -0
  173. package/esm/models/social-account-target-input.d.ts +16 -0
  174. package/esm/models/social-account-target-input.d.ts.map +1 -0
  175. package/esm/models/social-account-target-input.js +27 -0
  176. package/esm/models/social-account-target-input.js.map +1 -0
  177. package/esm/models/tik-tok-input.d.ts +90 -0
  178. package/esm/models/tik-tok-input.d.ts.map +1 -0
  179. package/esm/models/tik-tok-input.js +26 -0
  180. package/esm/models/tik-tok-input.js.map +1 -0
  181. package/esm/models/tik-tok-post.d.ts +93 -0
  182. package/esm/models/tik-tok-post.d.ts.map +1 -0
  183. package/esm/models/tik-tok-post.js +35 -0
  184. package/esm/models/tik-tok-post.js.map +1 -0
  185. package/esm/models/tik-tok-social-account-platform-specific-inputs.d.ts +26 -2
  186. package/esm/models/tik-tok-social-account-platform-specific-inputs.d.ts.map +1 -1
  187. package/esm/models/tik-tok-social-account-platform-specific-inputs.js +6 -2
  188. package/esm/models/tik-tok-social-account-platform-specific-inputs.js.map +1 -1
  189. package/esm/models/upload-session-aborted-status.d.ts +14 -0
  190. package/esm/models/upload-session-aborted-status.d.ts.map +1 -0
  191. package/esm/models/upload-session-aborted-status.js +15 -0
  192. package/esm/models/upload-session-aborted-status.js.map +1 -0
  193. package/esm/models/upload-session-failed-status.d.ts +22 -0
  194. package/esm/models/upload-session-failed-status.d.ts.map +1 -0
  195. package/esm/models/upload-session-failed-status.js +17 -0
  196. package/esm/models/upload-session-failed-status.js.map +1 -0
  197. package/esm/models/upload-session-initiated-status.d.ts +14 -0
  198. package/esm/models/upload-session-initiated-status.d.ts.map +1 -0
  199. package/esm/models/upload-session-initiated-status.js +15 -0
  200. package/esm/models/upload-session-initiated-status.js.map +1 -0
  201. package/esm/models/upload-session-ready-status.d.ts +18 -0
  202. package/esm/models/upload-session-ready-status.d.ts.map +1 -0
  203. package/esm/models/upload-session-ready-status.js +16 -0
  204. package/esm/models/upload-session-ready-status.js.map +1 -0
  205. package/esm/models/upload-session-status.d.ts +7 -11
  206. package/esm/models/upload-session-status.d.ts.map +1 -1
  207. package/esm/models/upload-session-status.js +12 -9
  208. package/esm/models/upload-session-status.js.map +1 -1
  209. package/esm/models/upload-session-uploaded-status.d.ts +14 -0
  210. package/esm/models/upload-session-uploaded-status.d.ts.map +1 -0
  211. package/esm/models/upload-session-uploaded-status.js +15 -0
  212. package/esm/models/upload-session-uploaded-status.js.map +1 -0
  213. package/esm/models/validation-error.d.ts +4 -2
  214. package/esm/models/validation-error.d.ts.map +1 -1
  215. package/esm/models/validation-error.js +1 -2
  216. package/esm/models/validation-error.js.map +1 -1
  217. package/esm/models/x-input.d.ts +28 -0
  218. package/esm/models/x-input.d.ts.map +1 -0
  219. package/esm/models/x-input.js +16 -0
  220. package/esm/models/x-input.js.map +1 -0
  221. package/esm/models/x-post.d.ts +40 -0
  222. package/esm/models/x-post.d.ts.map +1 -0
  223. package/esm/models/x-post.js +23 -0
  224. package/esm/models/x-post.js.map +1 -0
  225. package/esm/models/you-tube-input.d.ts +37 -0
  226. package/esm/models/you-tube-input.d.ts.map +1 -0
  227. package/esm/models/you-tube-input.js +20 -0
  228. package/esm/models/you-tube-input.js.map +1 -0
  229. package/esm/models/you-tube-post.d.ts +45 -0
  230. package/esm/models/you-tube-post.d.ts.map +1 -0
  231. package/esm/models/you-tube-post.js +29 -0
  232. package/esm/models/you-tube-post.js.map +1 -0
  233. package/esm/sdk/posts.d.ts +15 -27
  234. package/esm/sdk/posts.d.ts.map +1 -1
  235. package/esm/sdk/posts.js +20 -36
  236. package/esm/sdk/posts.js.map +1 -1
  237. package/esm/sdk/social-accounts.d.ts +2 -1
  238. package/esm/sdk/social-accounts.d.ts.map +1 -1
  239. package/esm/sdk/social-accounts.js +2 -1
  240. package/esm/sdk/social-accounts.js.map +1 -1
  241. package/jsr.json +1 -1
  242. package/package.json +1 -1
  243. package/src/funcs/{posts-delete-posts.ts → posts-create-post.ts} +27 -16
  244. package/src/funcs/{posts-create-posts.ts → posts-delete-post.ts} +36 -24
  245. package/src/funcs/{posts-list-posts.ts → posts-get-post.ts} +34 -21
  246. package/src/funcs/social-accounts-get-social-account-platform-inputs.ts +2 -1
  247. package/src/lib/config.ts +2 -2
  248. package/src/models/{create-post-failure-code.ts → create-post-error-code.ts} +8 -7
  249. package/src/models/create-post-request.ts +67 -0
  250. package/src/models/{delete-post-failure-code.ts → delete-post-error-code.ts} +5 -5
  251. package/src/models/delivery-status.ts +0 -5
  252. package/src/models/draft-post-schedule.ts +50 -0
  253. package/src/models/errors/create-post-error-response.ts +89 -0
  254. package/src/models/errors/delete-post-error-response.ts +53 -0
  255. package/src/models/errors/get-post-error-response.ts +53 -0
  256. package/src/models/errors/index.ts +3 -0
  257. package/src/models/facebook-input.ts +58 -0
  258. package/src/models/facebook-post.ts +80 -0
  259. package/src/models/get-post-error-code.ts +19 -0
  260. package/src/models/health-response.ts +2 -2
  261. package/src/models/index.ts +37 -34
  262. package/src/models/instagram-input.ts +55 -0
  263. package/src/models/instagram-post.ts +80 -0
  264. package/src/models/linked-in-input.ts +48 -0
  265. package/src/models/linked-in-pages-input.ts +52 -0
  266. package/src/models/linked-in-pages-post.ts +74 -0
  267. package/src/models/linked-in-post.ts +72 -0
  268. package/src/models/media-library-post-content-media-input.ts +38 -0
  269. package/src/models/media-library-post-content-media.ts +60 -0
  270. package/src/models/operations/delete-post.ts +33 -0
  271. package/src/models/operations/get-post.ts +29 -0
  272. package/src/models/operations/index.ts +2 -0
  273. package/src/models/pinterest-input.ts +51 -0
  274. package/src/models/pinterest-post.ts +76 -0
  275. package/src/models/pinterest-social-account-platform-specific-inputs.ts +13 -5
  276. package/src/models/post-content-item-input.ts +41 -0
  277. package/src/models/post-content-item.ts +40 -0
  278. package/src/models/post-content-media-input.ts +35 -0
  279. package/src/models/post-content-media.ts +35 -0
  280. package/src/models/post-schedule.ts +70 -0
  281. package/src/models/post.ts +23 -65
  282. package/src/models/publish-now-post-schedule.ts +50 -0
  283. package/src/models/schedule-for-later-post-schedule.ts +59 -0
  284. package/src/models/social-account-platform-inputs.ts +0 -9
  285. package/src/models/social-account-post.ts +63 -0
  286. package/src/models/social-account-target-input.ts +85 -0
  287. package/src/models/tik-tok-input.ts +125 -0
  288. package/src/models/tik-tok-post.ts +140 -0
  289. package/src/models/tik-tok-social-account-platform-specific-inputs.ts +33 -5
  290. package/src/models/upload-session-aborted-status.ts +36 -0
  291. package/src/models/upload-session-failed-status.ts +46 -0
  292. package/src/models/upload-session-initiated-status.ts +36 -0
  293. package/src/models/upload-session-ready-status.ts +41 -0
  294. package/src/models/upload-session-status.ts +34 -20
  295. package/src/models/upload-session-uploaded-status.ts +36 -0
  296. package/src/models/validation-error.ts +5 -6
  297. package/src/models/x-input.ts +46 -0
  298. package/src/models/x-post.ts +71 -0
  299. package/src/models/you-tube-input.ts +64 -0
  300. package/src/models/you-tube-post.ts +84 -0
  301. package/src/sdk/posts.ts +27 -50
  302. package/src/sdk/social-accounts.ts +2 -1
  303. package/src/funcs/posts-update-posts.ts +0 -165
  304. package/src/models/create-post-failure-result.ts +0 -68
  305. package/src/models/create-post-item.ts +0 -73
  306. package/src/models/create-post-result.ts +0 -42
  307. package/src/models/create-post-success-result.ts +0 -50
  308. package/src/models/create-posts-response.ts +0 -37
  309. package/src/models/delete-post-failure-result.ts +0 -44
  310. package/src/models/delete-post-result.ts +0 -42
  311. package/src/models/delete-post-success-result.ts +0 -36
  312. package/src/models/delete-posts-response.ts +0 -37
  313. package/src/models/facebook-specifics.ts +0 -63
  314. package/src/models/instagram-specifics.ts +0 -59
  315. package/src/models/linked-in-pages-specifics.ts +0 -50
  316. package/src/models/linked-in-specifics.ts +0 -50
  317. package/src/models/list-posts-request.ts +0 -68
  318. package/src/models/list-posts-response.ts +0 -37
  319. package/src/models/pinterest-account-platform-inputs.ts +0 -42
  320. package/src/models/pinterest-specifics.ts +0 -54
  321. package/src/models/platform-specifics.ts +0 -129
  322. package/src/models/post-media.ts +0 -56
  323. package/src/models/tik-tok-account-platform-inputs.ts +0 -63
  324. package/src/models/tik-tok-specifics.ts +0 -94
  325. package/src/models/update-post-failure-code.ts +0 -23
  326. package/src/models/update-post-failure-result.ts +0 -68
  327. package/src/models/update-post-item.ts +0 -61
  328. package/src/models/update-post-result.ts +0 -42
  329. package/src/models/update-post-success-result.ts +0 -45
  330. package/src/models/update-posts-response.ts +0 -37
  331. package/src/models/upload-session-status-value.ts +0 -24
  332. package/src/models/validation-field.ts +0 -29
  333. package/src/models/validation-warning.ts +0 -37
  334. package/src/models/x-specifics.ts +0 -44
  335. package/src/models/you-tube-specifics.ts +0 -71
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-content-media-input.d.ts","sourceRoot":"","sources":["../../src/models/post-content-media-input.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,iCAAiC,EACjC,0CAA0C,EAE3C,MAAM,6CAA6C,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,iCAAiC,CAAC;AAEtE,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GACxC,0CAA0C,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,8BAA8B,EAC9B,qBAAqB,CAC6B,CAAC;AAErD,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { MediaLibraryPostContentMediaInput$outboundSchema, } from "./media-library-post-content-media-input.js";
5
+ /** @internal */
6
+ export const PostContentMediaInput$outboundSchema = MediaLibraryPostContentMediaInput$outboundSchema;
7
+ export function postContentMediaInputToJSON(postContentMediaInput) {
8
+ return JSON.stringify(PostContentMediaInput$outboundSchema.parse(postContentMediaInput));
9
+ }
10
+ //# sourceMappingURL=post-content-media-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-content-media-input.js","sourceRoot":"","sources":["../../src/models/post-content-media-input.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAGL,gDAAgD,GACjD,MAAM,6CAA6C,CAAC;AAarD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,gDAAgD,CAAC;AAErD,MAAM,UAAU,2BAA2B,CACzC,qBAA4C,EACpC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AAAA,CACH"}
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ import { MediaLibraryPostContentMedia } from "./media-library-post-content-media.js";
5
+ /**
6
+ * Resolved content media.
7
+ *
8
+ * @remarks
9
+ */
10
+ export type PostContentMedia = MediaLibraryPostContentMedia;
11
+ /** @internal */
12
+ export declare const PostContentMedia$inboundSchema: z.ZodMiniType<PostContentMedia, unknown>;
13
+ export declare function postContentMediaFromJSON(jsonString: string): SafeParseResult<PostContentMedia, SDKValidationError>;
14
+ //# sourceMappingURL=post-content-media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-content-media.d.ts","sourceRoot":"","sources":["../../src/models/post-content-media.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,4BAA4B,EAE7B,MAAM,uCAAuC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AAE5D,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,WAAW,CACxD,gBAAgB,EAChB,OAAO,CACqC,CAAC;AAE/C,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { safeParse } from "../lib/schemas.js";
5
+ import { MediaLibraryPostContentMedia$inboundSchema, } from "./media-library-post-content-media.js";
6
+ /** @internal */
7
+ export const PostContentMedia$inboundSchema = MediaLibraryPostContentMedia$inboundSchema;
8
+ export function postContentMediaFromJSON(jsonString) {
9
+ return safeParse(jsonString, (x) => PostContentMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostContentMedia' from JSON`);
10
+ }
11
+ //# sourceMappingURL=post-content-media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-content-media.js","sourceRoot":"","sources":["../../src/models/post-content-media.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAEL,0CAA0C,GAC3C,MAAM,uCAAuC,CAAC;AAS/C,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAGvC,0CAA0C,CAAC;AAE/C,MAAM,UAAU,wBAAwB,CACtC,UAAkB,EACqC;IACvD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AAAA,CACH"}
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4-mini";
2
+ import * as discriminatedUnionTypes from "../types/discriminated-union.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { DraftPostSchedule, DraftPostSchedule$Outbound } from "./draft-post-schedule.js";
5
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
6
+ import { PublishNowPostSchedule, PublishNowPostSchedule$Outbound } from "./publish-now-post-schedule.js";
7
+ import { ScheduleForLaterPostSchedule, ScheduleForLaterPostSchedule$Outbound } from "./schedule-for-later-post-schedule.js";
8
+ export type PostSchedule = DraftPostSchedule | PublishNowPostSchedule | ScheduleForLaterPostSchedule | discriminatedUnionTypes.Unknown<"type">;
9
+ /** @internal */
10
+ export declare const PostSchedule$inboundSchema: z.ZodMiniType<PostSchedule, unknown>;
11
+ /** @internal */
12
+ export type PostSchedule$Outbound = DraftPostSchedule$Outbound | PublishNowPostSchedule$Outbound | ScheduleForLaterPostSchedule$Outbound;
13
+ /** @internal */
14
+ export declare const PostSchedule$outboundSchema: z.ZodMiniType<PostSchedule$Outbound, PostSchedule>;
15
+ export declare function postScheduleToJSON(postSchedule: PostSchedule): string;
16
+ export declare function postScheduleFromJSON(jsonString: string): SafeParseResult<PostSchedule, SDKValidationError>;
17
+ //# sourceMappingURL=post-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-schedule.d.ts","sourceRoot":"","sources":["../../src/models/post-schedule.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,sBAAsB,GACtB,4BAA4B,GAC5B,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,EAAE,OAAO,CAKxE,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAC7B,0BAA0B,GAC1B,+BAA+B,GAC/B,qCAAqC,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,qBAAqB,EACrB,YAAY,CAKZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AACD,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { discriminatedUnion } from "../types/discriminated-union.js";
7
+ import { DraftPostSchedule$inboundSchema, DraftPostSchedule$outboundSchema, } from "./draft-post-schedule.js";
8
+ import { PublishNowPostSchedule$inboundSchema, PublishNowPostSchedule$outboundSchema, } from "./publish-now-post-schedule.js";
9
+ import { ScheduleForLaterPostSchedule$inboundSchema, ScheduleForLaterPostSchedule$outboundSchema, } from "./schedule-for-later-post-schedule.js";
10
+ /** @internal */
11
+ export const PostSchedule$inboundSchema = discriminatedUnion("type", {
12
+ DRAFT: DraftPostSchedule$inboundSchema,
13
+ PUBLISH_NOW: PublishNowPostSchedule$inboundSchema,
14
+ SCHEDULE_FOR_LATER: ScheduleForLaterPostSchedule$inboundSchema,
15
+ });
16
+ /** @internal */
17
+ export const PostSchedule$outboundSchema = z.union([
18
+ DraftPostSchedule$outboundSchema,
19
+ PublishNowPostSchedule$outboundSchema,
20
+ ScheduleForLaterPostSchedule$outboundSchema,
21
+ ]);
22
+ export function postScheduleToJSON(postSchedule) {
23
+ return JSON.stringify(PostSchedule$outboundSchema.parse(postSchedule));
24
+ }
25
+ export function postScheduleFromJSON(jsonString) {
26
+ return safeParse(jsonString, (x) => PostSchedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostSchedule' from JSON`);
27
+ }
28
+ //# sourceMappingURL=post-schedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-schedule.js","sourceRoot":"","sources":["../../src/models/post-schedule.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,0CAA0C,EAE1C,2CAA2C,GAC5C,MAAM,uCAAuC,CAAC;AAQ/C,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GACrC,kBAAkB,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,+BAA+B;IACtC,WAAW,EAAE,oCAAoC;IACjD,kBAAkB,EAAE,0CAA0C;CAC/D,CAAC,CAAC;AAOL,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAGpC,CAAC,CAAC,KAAK,CAAC;IACV,gCAAgC;IAChC,qCAAqC;IACrC,2CAA2C;CAC5C,CAAC,CAAC;AAEH,MAAM,UAAU,kBAAkB,CAAC,YAA0B,EAAU;IACrE,OAAO,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AAAA,CACxE;AACD,MAAM,UAAU,oBAAoB,CAClC,UAAkB,EACiC;IACnD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AAAA,CACH"}
@@ -1,67 +1,37 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { DeliveryStatus } from "./delivery-status.js";
4
3
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
- import { PlatformSpecifics } from "./platform-specifics.js";
6
- import { PostMedia } from "./post-media.js";
7
- import { SocialPlatform } from "./social-platform.js";
4
+ import { PostContentItem } from "./post-content-item.js";
5
+ import { PostSchedule } from "./post-schedule.js";
6
+ import { SocialAccountPost } from "./social-account-post.js";
8
7
  export type Post = {
9
8
  /**
10
9
  * Post identifier.
11
10
  */
12
11
  id: string;
13
12
  /**
14
- * Project identifier.
13
+ * Project identifier derived from the selected social accounts.
15
14
  */
16
15
  projectId: string;
17
16
  /**
18
- * Connected social account identifier.
19
- */
20
- socialAccountId: string;
21
- /**
22
- * Social platform supported by WoopSocial.
23
- */
24
- platform: SocialPlatform;
25
- /**
26
- * Display name or username for the connected account.
27
- */
28
- username: string;
29
- /**
30
- * Delivery lifecycle status for a post.
17
+ * Post content expressed as thread items.
31
18
  *
32
19
  * @remarks
33
20
  *
34
- * `NOT_STARTED`: The post exists and is scheduled, but delivery has not started yet.
35
- * `SENDING`: Delivery is currently in progress.
36
- * `SENT`: Delivery completed successfully.
37
- * `FAILED`: Delivery completed unsuccessfully.
38
- */
39
- deliveryStatus: DeliveryStatus;
40
- /**
41
- * Effective UTC time when the post is or was scheduled to publish.
42
- */
43
- scheduledForUTC: Date;
44
- /**
45
- * UTC time when delivery completed successfully or failed.
46
- */
47
- sentAt?: Date | undefined;
48
- title?: string | undefined;
49
- description?: string | undefined;
50
- firstComment?: string | undefined;
51
- media?: Array<PostMedia> | undefined;
52
- /**
53
- * Platform-specific publishing options. The `platform` value must match the publishing account's platform.
21
+ * The array exists for future thread support. Currently exactly one item
22
+ * is returned.
54
23
  */
55
- platformSpecifics: PlatformSpecifics;
24
+ content: Array<PostContentItem>;
25
+ schedule: PostSchedule;
26
+ socialAccounts: Array<SocialAccountPost>;
56
27
  /**
57
- * ID of the published post on the external social media platform.
28
+ * UTC time when the post was created.
58
29
  */
59
- externalPostId?: string | undefined;
30
+ createdAt: Date;
60
31
  /**
61
- * URL of the published post on the external social media platform.
32
+ * UTC time when the post was last updated.
62
33
  */
63
- externalPostUrl?: string | undefined;
64
- errorMessage?: string | undefined;
34
+ updatedAt: Date;
65
35
  };
66
36
  /** @internal */
67
37
  export declare const Post$inboundSchema: z.ZodMiniType<Post, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAA2B,MAAM,iBAAiB,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;OASG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,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3C"}
@@ -4,28 +4,18 @@
4
4
  import * as z from "zod/v4-mini";
5
5
  import { safeParse } from "../lib/schemas.js";
6
6
  import * as types from "../types/primitives.js";
7
- import { DeliveryStatus$inboundSchema, } from "./delivery-status.js";
8
- import { PlatformSpecifics$inboundSchema, } from "./platform-specifics.js";
9
- import { PostMedia$inboundSchema } from "./post-media.js";
10
- import { SocialPlatform$inboundSchema, } from "./social-platform.js";
7
+ import { PostContentItem$inboundSchema, } from "./post-content-item.js";
8
+ import { PostSchedule$inboundSchema } from "./post-schedule.js";
9
+ import { SocialAccountPost$inboundSchema, } from "./social-account-post.js";
11
10
  /** @internal */
12
11
  export const Post$inboundSchema = z.object({
13
12
  id: types.string(),
14
13
  projectId: types.string(),
15
- socialAccountId: types.string(),
16
- platform: SocialPlatform$inboundSchema,
17
- username: types.string(),
18
- deliveryStatus: DeliveryStatus$inboundSchema,
19
- scheduledForUTC: types.date(),
20
- sentAt: types.optional(types.date()),
21
- title: types.optional(types.string()),
22
- description: types.optional(types.string()),
23
- firstComment: types.optional(types.string()),
24
- media: types.optional(z.array(PostMedia$inboundSchema)),
25
- platformSpecifics: PlatformSpecifics$inboundSchema,
26
- externalPostId: types.optional(types.string()),
27
- externalPostUrl: types.optional(types.string()),
28
- errorMessage: types.optional(types.string()),
14
+ content: z.array(PostContentItem$inboundSchema),
15
+ schedule: PostSchedule$inboundSchema,
16
+ socialAccounts: z.array(SocialAccountPost$inboundSchema),
17
+ createdAt: types.date(),
18
+ updatedAt: types.date(),
29
19
  });
30
20
  export function postFromJSON(jsonString) {
31
21
  return safeParse(jsonString, (x) => Post$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Post' from JSON`);
@@ -1 +1 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C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C,CAAC;AAAA,CACH"}
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ export type PublishNowPostSchedule = {
5
+ type: "PUBLISH_NOW";
6
+ };
7
+ /** @internal */
8
+ export declare const PublishNowPostSchedule$inboundSchema: z.ZodMiniType<PublishNowPostSchedule, unknown>;
9
+ /** @internal */
10
+ export type PublishNowPostSchedule$Outbound = {
11
+ type: "PUBLISH_NOW";
12
+ };
13
+ /** @internal */
14
+ export declare const PublishNowPostSchedule$outboundSchema: z.ZodMiniType<PublishNowPostSchedule$Outbound, PublishNowPostSchedule>;
15
+ export declare function publishNowPostScheduleToJSON(publishNowPostSchedule: PublishNowPostSchedule): string;
16
+ export declare function publishNowPostScheduleFromJSON(jsonString: string): SafeParseResult<PublishNowPostSchedule, SDKValidationError>;
17
+ //# sourceMappingURL=publish-now-post-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-now-post-schedule.d.ts","sourceRoot":"","sources":["../../src/models/publish-now-post-schedule.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,sBAAsB,EACtB,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,+BAA+B,EAC/B,sBAAsB,CAGtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as types from "../types/primitives.js";
7
+ /** @internal */
8
+ export const PublishNowPostSchedule$inboundSchema = z.object({
9
+ type: types.literal("PUBLISH_NOW"),
10
+ });
11
+ /** @internal */
12
+ export const PublishNowPostSchedule$outboundSchema = z.object({
13
+ type: z.literal("PUBLISH_NOW"),
14
+ });
15
+ export function publishNowPostScheduleToJSON(publishNowPostSchedule) {
16
+ return JSON.stringify(PublishNowPostSchedule$outboundSchema.parse(publishNowPostSchedule));
17
+ }
18
+ export function publishNowPostScheduleFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => PublishNowPostSchedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublishNowPostSchedule' from JSON`);
20
+ }
21
+ //# sourceMappingURL=publish-now-post-schedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-now-post-schedule.js","sourceRoot":"","sources":["../../src/models/publish-now-post-schedule.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAOhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;CACnC,CAAC,CAAC;AAMH,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C,EACtC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AAAA,CACH;AACD,MAAM,UAAU,8BAA8B,CAC5C,UAAkB,EAC2C;IAC7D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AAAA,CACH"}
@@ -0,0 +1,22 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ export type ScheduleForLaterPostSchedule = {
5
+ type: "SCHEDULE_FOR_LATER";
6
+ /**
7
+ * UTC time when the post should be published.
8
+ */
9
+ scheduledForUTC: Date;
10
+ };
11
+ /** @internal */
12
+ export declare const ScheduleForLaterPostSchedule$inboundSchema: z.ZodMiniType<ScheduleForLaterPostSchedule, unknown>;
13
+ /** @internal */
14
+ export type ScheduleForLaterPostSchedule$Outbound = {
15
+ type: "SCHEDULE_FOR_LATER";
16
+ scheduledForUTC: string;
17
+ };
18
+ /** @internal */
19
+ export declare const ScheduleForLaterPostSchedule$outboundSchema: z.ZodMiniType<ScheduleForLaterPostSchedule$Outbound, ScheduleForLaterPostSchedule>;
20
+ export declare function scheduleForLaterPostScheduleToJSON(scheduleForLaterPostSchedule: ScheduleForLaterPostSchedule): string;
21
+ export declare function scheduleForLaterPostScheduleFromJSON(jsonString: string): SafeParseResult<ScheduleForLaterPostSchedule, SDKValidationError>;
22
+ //# sourceMappingURL=schedule-for-later-post-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule-for-later-post-schedule.d.ts","sourceRoot":"","sources":["../../src/models/schedule-for-later-post-schedule.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,WAAW,CACrE,qCAAqC,EACrC,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AACD,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as types from "../types/primitives.js";
7
+ /** @internal */
8
+ export const ScheduleForLaterPostSchedule$inboundSchema = z.object({
9
+ type: types.literal("SCHEDULE_FOR_LATER"),
10
+ scheduledForUTC: types.date(),
11
+ });
12
+ /** @internal */
13
+ export const ScheduleForLaterPostSchedule$outboundSchema = z.object({
14
+ type: z.literal("SCHEDULE_FOR_LATER"),
15
+ scheduledForUTC: z.pipe(z.date(), z.transform(v => v.toISOString())),
16
+ });
17
+ export function scheduleForLaterPostScheduleToJSON(scheduleForLaterPostSchedule) {
18
+ return JSON.stringify(ScheduleForLaterPostSchedule$outboundSchema.parse(scheduleForLaterPostSchedule));
19
+ }
20
+ export function scheduleForLaterPostScheduleFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => ScheduleForLaterPostSchedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScheduleForLaterPostSchedule' from JSON`);
22
+ }
23
+ //# sourceMappingURL=schedule-for-later-post-schedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule-for-later-post-schedule.js","sourceRoot":"","sources":["../../src/models/schedule-for-later-post-schedule.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAWhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACzC,eAAe,EAAE,KAAK,CAAC,IAAI,EAAE;CAC9B,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAGpD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;CACrE,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D,EAClD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AAAA,CACH;AACD,MAAM,UAAU,oCAAoC,CAClD,UAAkB,EACiD;IACnE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AAAA,CACH"}
@@ -2,16 +2,11 @@ import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
4
  import { SocialAccountPlatformSpecificInputs } from "./social-account-platform-specific-inputs.js";
5
- import { SocialPlatform } from "./social-platform.js";
6
5
  export type SocialAccountPlatformInputs = {
7
6
  /**
8
7
  * Connected social account identifier.
9
8
  */
10
9
  socialAccountId: string;
11
- /**
12
- * Social platform supported by WoopSocial.
13
- */
14
- platform: SocialPlatform;
15
10
  platformSpecificInputs: SocialAccountPlatformSpecificInputs;
16
11
  };
17
12
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"social-account-platform-inputs.d.ts","sourceRoot":"","sources":["../../src/models/social-account-platform-inputs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,mCAAmC,EAEpC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;IACzB,sBAAsB,EAAE,mCAAmC,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,2BAA2B,EAC3B,OAAO,CAKP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"social-account-platform-inputs.d.ts","sourceRoot":"","sources":["../../src/models/social-account-platform-inputs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,mCAAmC,EAEpC,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,mCAAmC,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,2BAA2B,EAC3B,OAAO,CAIP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -5,11 +5,9 @@ import * as z from "zod/v4-mini";
5
5
  import { safeParse } from "../lib/schemas.js";
6
6
  import * as types from "../types/primitives.js";
7
7
  import { SocialAccountPlatformSpecificInputs$inboundSchema, } from "./social-account-platform-specific-inputs.js";
8
- import { SocialPlatform$inboundSchema, } from "./social-platform.js";
9
8
  /** @internal */
10
9
  export const SocialAccountPlatformInputs$inboundSchema = z.object({
11
10
  socialAccountId: types.string(),
12
- platform: SocialPlatform$inboundSchema,
13
11
  platformSpecificInputs: SocialAccountPlatformSpecificInputs$inboundSchema,
14
12
  });
15
13
  export function socialAccountPlatformInputsFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"social-account-platform-inputs.js","sourceRoot":"","sources":["../../src/models/social-account-platform-inputs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,iDAAiD,GAClD,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAc9B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,KAAK,CAAC,MAAM,EAAE;IAC/B,QAAQ,EAAE,4BAA4B;IACtC,sBAAsB,EAAE,iDAAiD;CAC1E,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC,CACjD,UAAkB,EACgD;IAClE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AAAA,CACH"}
1
+ {"version":3,"file":"social-account-platform-inputs.js","sourceRoot":"","sources":["../../src/models/social-account-platform-inputs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,iDAAiD,GAClD,MAAM,8CAA8C,CAAC;AAUtD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,KAAK,CAAC,MAAM,EAAE;IAC/B,sBAAsB,EAAE,iDAAiD;CAC1E,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC,CACjD,UAAkB,EACgD;IAClE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AAAA,CACH"}
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4-mini";
2
+ import * as discriminatedUnionTypes from "../types/discriminated-union.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ import { FacebookPost } from "./facebook-post.js";
6
+ import { InstagramPost } from "./instagram-post.js";
7
+ import { LinkedInPagesPost } from "./linked-in-pages-post.js";
8
+ import { LinkedInPost } from "./linked-in-post.js";
9
+ import { PinterestPost } from "./pinterest-post.js";
10
+ import { TikTokPost } from "./tik-tok-post.js";
11
+ import { XPost } from "./x-post.js";
12
+ import { YouTubePost } from "./you-tube-post.js";
13
+ export type SocialAccountPost = PinterestPost | InstagramPost | FacebookPost | TikTokPost | YouTubePost | XPost | LinkedInPost | LinkedInPagesPost | discriminatedUnionTypes.Unknown<"platform">;
14
+ /** @internal */
15
+ export declare const SocialAccountPost$inboundSchema: z.ZodMiniType<SocialAccountPost, unknown>;
16
+ export declare function socialAccountPostFromJSON(jsonString: string): SafeParseResult<SocialAccountPost, SDKValidationError>;
17
+ //# sourceMappingURL=social-account-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-account-post.d.ts","sourceRoot":"","sources":["../../src/models/social-account-post.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EACL,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAA4B,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,KAAK,EAAuB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,WAAW,EAA6B,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,aAAa,GACb,YAAY,GACZ,UAAU,GACV,WAAW,GACX,KAAK,GACL,YAAY,GACZ,iBAAiB,GACjB,uBAAuB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAUP,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { safeParse } from "../lib/schemas.js";
5
+ import { discriminatedUnion } from "../types/discriminated-union.js";
6
+ import { FacebookPost$inboundSchema } from "./facebook-post.js";
7
+ import { InstagramPost$inboundSchema, } from "./instagram-post.js";
8
+ import { LinkedInPagesPost$inboundSchema, } from "./linked-in-pages-post.js";
9
+ import { LinkedInPost$inboundSchema } from "./linked-in-post.js";
10
+ import { PinterestPost$inboundSchema, } from "./pinterest-post.js";
11
+ import { TikTokPost$inboundSchema } from "./tik-tok-post.js";
12
+ import { XPost$inboundSchema } from "./x-post.js";
13
+ import { YouTubePost$inboundSchema } from "./you-tube-post.js";
14
+ /** @internal */
15
+ export const SocialAccountPost$inboundSchema = discriminatedUnion("platform", {
16
+ PINTEREST: PinterestPost$inboundSchema,
17
+ INSTAGRAM: InstagramPost$inboundSchema,
18
+ FACEBOOK: FacebookPost$inboundSchema,
19
+ TIKTOK: TikTokPost$inboundSchema,
20
+ YOUTUBE: YouTubePost$inboundSchema,
21
+ X: XPost$inboundSchema,
22
+ LINKEDIN: LinkedInPost$inboundSchema,
23
+ LINKEDIN_PAGES: LinkedInPagesPost$inboundSchema,
24
+ });
25
+ export function socialAccountPostFromJSON(jsonString) {
26
+ return safeParse(jsonString, (x) => SocialAccountPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SocialAccountPost' from JSON`);
27
+ }
28
+ //# sourceMappingURL=social-account-post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-account-post.js","sourceRoot":"","sources":["../../src/models/social-account-post.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,EAAgB,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAgB,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAc,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAS,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAe,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAa5E,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,kBAAkB,CAAC,UAAU,EAAE;IACjC,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,2BAA2B;IACtC,QAAQ,EAAE,0BAA0B;IACpC,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,yBAAyB;IAClC,CAAC,EAAE,mBAAmB;IACtB,QAAQ,EAAE,0BAA0B;IACpC,cAAc,EAAE,+BAA+B;CAChD,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,UAAkB,EACsC;IACxD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AAAA,CACH"}
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { FacebookInput, FacebookInput$Outbound } from "./facebook-input.js";
3
+ import { InstagramInput, InstagramInput$Outbound } from "./instagram-input.js";
4
+ import { LinkedInInput, LinkedInInput$Outbound } from "./linked-in-input.js";
5
+ import { LinkedInPagesInput, LinkedInPagesInput$Outbound } from "./linked-in-pages-input.js";
6
+ import { PinterestInput, PinterestInput$Outbound } from "./pinterest-input.js";
7
+ import { TikTokInput, TikTokInput$Outbound } from "./tik-tok-input.js";
8
+ import { XInput, XInput$Outbound } from "./x-input.js";
9
+ import { YouTubeInput, YouTubeInput$Outbound } from "./you-tube-input.js";
10
+ export type SocialAccountTargetInput = PinterestInput | InstagramInput | FacebookInput | TikTokInput | YouTubeInput | XInput | LinkedInInput | LinkedInPagesInput;
11
+ /** @internal */
12
+ export type SocialAccountTargetInput$Outbound = PinterestInput$Outbound | InstagramInput$Outbound | FacebookInput$Outbound | TikTokInput$Outbound | YouTubeInput$Outbound | XInput$Outbound | LinkedInInput$Outbound | LinkedInPagesInput$Outbound;
13
+ /** @internal */
14
+ export declare const SocialAccountTargetInput$outboundSchema: z.ZodMiniType<SocialAccountTargetInput$Outbound, SocialAccountTargetInput>;
15
+ export declare function socialAccountTargetInputToJSON(socialAccountTargetInput: SocialAccountTargetInput): string;
16
+ //# sourceMappingURL=social-account-target-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-account-target-input.d.ts","sourceRoot":"","sources":["../../src/models/social-account-target-input.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,eAAe,EAAyB,MAAM,cAAc,CAAC;AAC9E,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,wBAAwB,GAChC,cAAc,GACd,cAAc,GACd,aAAa,GACb,WAAW,GACX,YAAY,GACZ,MAAM,GACN,aAAa,GACb,kBAAkB,CAAC;AAEvB,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GACzC,uBAAuB,GACvB,uBAAuB,GACvB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,eAAe,GACf,sBAAsB,GACtB,2BAA2B,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,WAAW,CACjE,iCAAiC,EACjC,wBAAwB,CAUxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { FacebookInput$outboundSchema, } from "./facebook-input.js";
6
+ import { InstagramInput$outboundSchema, } from "./instagram-input.js";
7
+ import { LinkedInInput$outboundSchema, } from "./linked-in-input.js";
8
+ import { LinkedInPagesInput$outboundSchema, } from "./linked-in-pages-input.js";
9
+ import { PinterestInput$outboundSchema, } from "./pinterest-input.js";
10
+ import { TikTokInput$outboundSchema, } from "./tik-tok-input.js";
11
+ import { XInput$outboundSchema } from "./x-input.js";
12
+ import { YouTubeInput$outboundSchema, } from "./you-tube-input.js";
13
+ /** @internal */
14
+ export const SocialAccountTargetInput$outboundSchema = z.union([
15
+ PinterestInput$outboundSchema,
16
+ InstagramInput$outboundSchema,
17
+ FacebookInput$outboundSchema,
18
+ TikTokInput$outboundSchema,
19
+ YouTubeInput$outboundSchema,
20
+ XInput$outboundSchema,
21
+ LinkedInInput$outboundSchema,
22
+ LinkedInPagesInput$outboundSchema,
23
+ ]);
24
+ export function socialAccountTargetInputToJSON(socialAccountTargetInput) {
25
+ return JSON.stringify(SocialAccountTargetInput$outboundSchema.parse(socialAccountTargetInput));
26
+ }
27
+ //# sourceMappingURL=social-account-target-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-account-target-input.js","sourceRoot":"","sources":["../../src/models/social-account-target-input.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,iCAAiC,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAA2B,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAGL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAuB7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAGhD,CAAC,CAAC,KAAK,CAAC;IACV,6BAA6B;IAC7B,6BAA6B;IAC7B,4BAA4B;IAC5B,0BAA0B;IAC1B,2BAA2B;IAC3B,qBAAqB;IACrB,4BAA4B;IAC5B,iCAAiC;CAClC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD,EAC1C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AAAA,CACH"}
@@ -0,0 +1,90 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { PostContentItemInput, PostContentItemInput$Outbound } from "./post-content-item-input.js";
3
+ import { TikTokPostType } from "./tik-tok-post-type.js";
4
+ import { TikTokPrivacyLevel } from "./tik-tok-privacy-level.js";
5
+ export type TikTokInput = {
6
+ platform: "TIKTOK";
7
+ /**
8
+ * Connected social account identifier.
9
+ */
10
+ socialAccountId: string;
11
+ /**
12
+ * Post content expressed as thread items.
13
+ *
14
+ * @remarks
15
+ *
16
+ * The array exists for future thread support. Currently exactly one item
17
+ * is supported.
18
+ */
19
+ contentOverride?: Array<PostContentItemInput> | undefined;
20
+ postType: TikTokPostType;
21
+ privacyLevel: TikTokPrivacyLevel;
22
+ /**
23
+ * Whether comments should be allowed for this TikTok post.
24
+ */
25
+ allowComment: boolean;
26
+ /**
27
+ * Whether duets should be allowed for this TikTok post.
28
+ *
29
+ * @remarks
30
+ *
31
+ * This field applies to `postType=VIDEO`.
32
+ *
33
+ * When `postType=PHOTO`, this field is required by the API contract
34
+ * but is not used by TikTok.
35
+ */
36
+ allowDuet: boolean;
37
+ /**
38
+ * Whether stitches should be allowed for this TikTok post.
39
+ *
40
+ * @remarks
41
+ *
42
+ * This field applies to `postType=VIDEO`.
43
+ *
44
+ * When `postType=PHOTO`, this field is required by the API contract
45
+ * but is not used by TikTok.
46
+ */
47
+ allowStitch: boolean;
48
+ /**
49
+ * Whether TikTok content disclosure should be enabled for this post.
50
+ */
51
+ contentDisclosureEnabled: boolean;
52
+ /**
53
+ * Whether the post should be disclosed as "Your brand" content on TikTok.
54
+ */
55
+ isYourBrand: boolean;
56
+ /**
57
+ * Whether the post should be disclosed as branded content on TikTok.
58
+ */
59
+ isBrandedContent: boolean;
60
+ /**
61
+ * Whether TikTok should automatically add music to this post.
62
+ *
63
+ * @remarks
64
+ *
65
+ * This field applies to `postType=PHOTO`.
66
+ *
67
+ * When `postType=VIDEO`, this field is required by the API contract
68
+ * but is not used by TikTok.
69
+ */
70
+ autoAddMusic: boolean;
71
+ };
72
+ /** @internal */
73
+ export type TikTokInput$Outbound = {
74
+ platform: "TIKTOK";
75
+ socialAccountId: string;
76
+ contentOverride?: Array<PostContentItemInput$Outbound> | undefined;
77
+ postType: string;
78
+ privacyLevel: string;
79
+ allowComment: boolean;
80
+ allowDuet: boolean;
81
+ allowStitch: boolean;
82
+ contentDisclosureEnabled: boolean;
83
+ isYourBrand: boolean;
84
+ isBrandedContent: boolean;
85
+ autoAddMusic: boolean;
86
+ };
87
+ /** @internal */
88
+ export declare const TikTokInput$outboundSchema: z.ZodMiniType<TikTokInput$Outbound, TikTokInput>;
89
+ export declare function tikTokInputToJSON(tikTokInput: TikTokInput): string;
90
+ //# sourceMappingURL=tik-tok-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tik-tok-input.d.ts","sourceRoot":"","sources":["../../src/models/tik-tok-input.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,cAAc,EAEf,MAAM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