@schedulin/sdk 0.3.0 → 0.4.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 (191) hide show
  1. package/cjs/api/errors/BadRequestError.d.ts +7 -0
  2. package/cjs/api/errors/BadRequestError.js +54 -0
  3. package/cjs/api/errors/ConflictError.d.ts +7 -0
  4. package/cjs/api/errors/ConflictError.js +54 -0
  5. package/cjs/api/errors/ForbiddenError.d.ts +7 -0
  6. package/cjs/api/errors/ForbiddenError.js +54 -0
  7. package/cjs/api/errors/NotFoundError.d.ts +7 -0
  8. package/cjs/api/errors/NotFoundError.js +54 -0
  9. package/cjs/api/errors/PaymentRequiredError.d.ts +7 -0
  10. package/cjs/api/errors/PaymentRequiredError.js +54 -0
  11. package/cjs/api/errors/TooManyRequestsError.d.ts +7 -0
  12. package/cjs/api/errors/TooManyRequestsError.js +54 -0
  13. package/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
  14. package/cjs/api/errors/UnprocessableEntityError.js +54 -0
  15. package/cjs/api/errors/index.d.ts +7 -0
  16. package/cjs/api/errors/index.js +7 -0
  17. package/cjs/api/resources/ai/client/Client.d.ts +11 -2
  18. package/cjs/api/resources/ai/client/Client.js +27 -0
  19. package/cjs/api/resources/ai/index.d.ts +1 -0
  20. package/cjs/api/resources/ai/index.js +1 -0
  21. package/cjs/api/resources/ai/types/GenerateImageAiResponse.d.ts +3 -0
  22. package/cjs/api/resources/ai/types/GenerateImageAiResponse.js +3 -0
  23. package/cjs/api/resources/ai/types/index.d.ts +1 -0
  24. package/cjs/api/resources/ai/types/index.js +17 -0
  25. package/cjs/api/resources/index.d.ts +2 -0
  26. package/cjs/api/resources/index.js +2 -0
  27. package/cjs/api/resources/media/client/Client.d.ts +59 -9
  28. package/cjs/api/resources/media/client/Client.js +159 -4
  29. package/cjs/api/resources/media/client/requests/UpdateMediaRequest.d.ts +2 -3
  30. package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.d.ts +4 -0
  31. package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.js +3 -0
  32. package/cjs/api/resources/media/types/DeleteMediaResponse.d.ts +4 -0
  33. package/cjs/api/resources/media/types/DeleteMediaResponse.js +3 -0
  34. package/cjs/api/resources/media/types/SetTagsMediaResponse.d.ts +4 -0
  35. package/cjs/api/resources/media/types/SetTagsMediaResponse.js +3 -0
  36. package/cjs/api/resources/media/types/index.d.ts +3 -0
  37. package/cjs/api/resources/media/types/index.js +3 -0
  38. package/cjs/api/resources/platforms/client/Client.d.ts +4 -0
  39. package/cjs/api/resources/platforms/client/Client.js +12 -0
  40. package/cjs/api/resources/posts/client/Client.d.ts +56 -1
  41. package/cjs/api/resources/posts/client/Client.js +165 -0
  42. package/cjs/api/resources/posts/types/CountByTabPostsResponse.d.ts +7 -0
  43. package/cjs/api/resources/posts/types/CountByTabPostsResponse.js +3 -0
  44. package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +1 -0
  45. package/cjs/api/resources/posts/types/index.d.ts +1 -0
  46. package/cjs/api/resources/posts/types/index.js +1 -0
  47. package/cjs/api/resources/socialAccounts/client/Client.d.ts +93 -0
  48. package/cjs/api/resources/socialAccounts/client/Client.js +289 -0
  49. package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.ts +9 -0
  50. package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.js +3 -0
  51. package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.ts +9 -0
  52. package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.js +3 -0
  53. package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +2 -0
  54. package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.ts +12 -0
  55. package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.js +3 -0
  56. package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.ts +12 -0
  57. package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.js +3 -0
  58. package/cjs/api/resources/socialAccounts/types/index.d.ts +2 -0
  59. package/cjs/api/resources/socialAccounts/types/index.js +2 -0
  60. package/cjs/api/resources/tags/client/Client.d.ts +21 -0
  61. package/cjs/api/resources/tags/client/Client.js +63 -0
  62. package/cjs/api/resources/webhooks/client/Client.d.ts +51 -8
  63. package/cjs/api/resources/webhooks/client/Client.js +133 -1
  64. package/cjs/api/resources/webhooks/index.d.ts +1 -0
  65. package/cjs/api/resources/webhooks/index.js +1 -0
  66. package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.d.ts +3 -0
  67. package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.js +3 -0
  68. package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.ts +4 -0
  69. package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.js +3 -0
  70. package/cjs/api/resources/webhooks/types/ListWebhooksResponse.d.ts +4 -0
  71. package/cjs/api/resources/webhooks/types/ListWebhooksResponse.js +3 -0
  72. package/cjs/api/resources/webhooks/types/TestWebhooksResponse.d.ts +3 -0
  73. package/cjs/api/resources/webhooks/types/TestWebhooksResponse.js +3 -0
  74. package/cjs/api/resources/webhooks/types/index.d.ts +4 -0
  75. package/cjs/api/resources/webhooks/types/index.js +20 -0
  76. package/cjs/api/types/AiGeneration.d.ts +27 -0
  77. package/cjs/api/types/AiGeneration.js +14 -0
  78. package/cjs/api/types/ErrorResponse.d.ts +14 -2
  79. package/cjs/api/types/Media.d.ts +4 -0
  80. package/cjs/api/types/MediaUpdate.d.ts +1 -1
  81. package/cjs/api/types/Post.d.ts +3 -0
  82. package/cjs/api/types/PostMedia.d.ts +14 -0
  83. package/cjs/api/types/PostMedia.js +3 -0
  84. package/cjs/api/types/PostWithRelations.d.ts +5 -68
  85. package/cjs/api/types/PostWithRelations.js +0 -54
  86. package/cjs/api/types/RateLimitErrorResponse.d.ts +17 -0
  87. package/cjs/api/types/RateLimitErrorResponse.js +3 -0
  88. package/cjs/api/types/ValidationErrorResponse.d.ts +17 -0
  89. package/cjs/api/types/ValidationErrorResponse.js +3 -0
  90. package/cjs/api/types/WebhookDelivery.d.ts +20 -0
  91. package/cjs/api/types/WebhookDelivery.js +12 -0
  92. package/cjs/api/types/WebhookEndpoint.d.ts +26 -0
  93. package/cjs/api/types/WebhookEndpoint.js +16 -0
  94. package/cjs/api/types/index.d.ts +6 -0
  95. package/cjs/api/types/index.js +6 -0
  96. package/esm/api/errors/BadRequestError.d.mts +7 -0
  97. package/esm/api/errors/BadRequestError.mjs +17 -0
  98. package/esm/api/errors/ConflictError.d.mts +7 -0
  99. package/esm/api/errors/ConflictError.mjs +17 -0
  100. package/esm/api/errors/ForbiddenError.d.mts +7 -0
  101. package/esm/api/errors/ForbiddenError.mjs +17 -0
  102. package/esm/api/errors/NotFoundError.d.mts +7 -0
  103. package/esm/api/errors/NotFoundError.mjs +17 -0
  104. package/esm/api/errors/PaymentRequiredError.d.mts +7 -0
  105. package/esm/api/errors/PaymentRequiredError.mjs +17 -0
  106. package/esm/api/errors/TooManyRequestsError.d.mts +7 -0
  107. package/esm/api/errors/TooManyRequestsError.mjs +17 -0
  108. package/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
  109. package/esm/api/errors/UnprocessableEntityError.mjs +17 -0
  110. package/esm/api/errors/index.d.mts +7 -0
  111. package/esm/api/errors/index.mjs +7 -0
  112. package/esm/api/resources/ai/client/Client.d.mts +11 -2
  113. package/esm/api/resources/ai/client/Client.mjs +27 -0
  114. package/esm/api/resources/ai/index.d.mts +1 -0
  115. package/esm/api/resources/ai/index.mjs +1 -0
  116. package/esm/api/resources/ai/types/GenerateImageAiResponse.d.mts +3 -0
  117. package/esm/api/resources/ai/types/GenerateImageAiResponse.mjs +2 -0
  118. package/esm/api/resources/ai/types/index.d.mts +1 -0
  119. package/esm/api/resources/ai/types/index.mjs +1 -0
  120. package/esm/api/resources/index.d.mts +2 -0
  121. package/esm/api/resources/index.mjs +2 -0
  122. package/esm/api/resources/media/client/Client.d.mts +59 -9
  123. package/esm/api/resources/media/client/Client.mjs +159 -4
  124. package/esm/api/resources/media/client/requests/UpdateMediaRequest.d.mts +2 -3
  125. package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.d.mts +4 -0
  126. package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.mjs +2 -0
  127. package/esm/api/resources/media/types/DeleteMediaResponse.d.mts +4 -0
  128. package/esm/api/resources/media/types/DeleteMediaResponse.mjs +2 -0
  129. package/esm/api/resources/media/types/SetTagsMediaResponse.d.mts +4 -0
  130. package/esm/api/resources/media/types/SetTagsMediaResponse.mjs +2 -0
  131. package/esm/api/resources/media/types/index.d.mts +3 -0
  132. package/esm/api/resources/media/types/index.mjs +3 -0
  133. package/esm/api/resources/platforms/client/Client.d.mts +4 -0
  134. package/esm/api/resources/platforms/client/Client.mjs +12 -0
  135. package/esm/api/resources/posts/client/Client.d.mts +56 -1
  136. package/esm/api/resources/posts/client/Client.mjs +165 -0
  137. package/esm/api/resources/posts/types/CountByTabPostsResponse.d.mts +7 -0
  138. package/esm/api/resources/posts/types/CountByTabPostsResponse.mjs +2 -0
  139. package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +1 -0
  140. package/esm/api/resources/posts/types/index.d.mts +1 -0
  141. package/esm/api/resources/posts/types/index.mjs +1 -0
  142. package/esm/api/resources/socialAccounts/client/Client.d.mts +93 -0
  143. package/esm/api/resources/socialAccounts/client/Client.mjs +289 -0
  144. package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.mts +9 -0
  145. package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.mjs +2 -0
  146. package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.mts +9 -0
  147. package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.mjs +2 -0
  148. package/esm/api/resources/socialAccounts/client/requests/index.d.mts +2 -0
  149. package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.mts +12 -0
  150. package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.mjs +2 -0
  151. package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.mts +12 -0
  152. package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.mjs +2 -0
  153. package/esm/api/resources/socialAccounts/types/index.d.mts +2 -0
  154. package/esm/api/resources/socialAccounts/types/index.mjs +2 -0
  155. package/esm/api/resources/tags/client/Client.d.mts +21 -0
  156. package/esm/api/resources/tags/client/Client.mjs +63 -0
  157. package/esm/api/resources/webhooks/client/Client.d.mts +51 -8
  158. package/esm/api/resources/webhooks/client/Client.mjs +133 -1
  159. package/esm/api/resources/webhooks/index.d.mts +1 -0
  160. package/esm/api/resources/webhooks/index.mjs +1 -0
  161. package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.d.mts +3 -0
  162. package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.mjs +2 -0
  163. package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.mts +4 -0
  164. package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.mjs +2 -0
  165. package/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +4 -0
  166. package/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +2 -0
  167. package/esm/api/resources/webhooks/types/TestWebhooksResponse.d.mts +3 -0
  168. package/esm/api/resources/webhooks/types/TestWebhooksResponse.mjs +2 -0
  169. package/esm/api/resources/webhooks/types/index.d.mts +4 -0
  170. package/esm/api/resources/webhooks/types/index.mjs +4 -0
  171. package/esm/api/types/AiGeneration.d.mts +27 -0
  172. package/esm/api/types/AiGeneration.mjs +11 -0
  173. package/esm/api/types/ErrorResponse.d.mts +14 -2
  174. package/esm/api/types/Media.d.mts +4 -0
  175. package/esm/api/types/MediaUpdate.d.mts +1 -1
  176. package/esm/api/types/Post.d.mts +3 -0
  177. package/esm/api/types/PostMedia.d.mts +14 -0
  178. package/esm/api/types/PostMedia.mjs +2 -0
  179. package/esm/api/types/PostWithRelations.d.mts +5 -68
  180. package/esm/api/types/PostWithRelations.mjs +1 -53
  181. package/esm/api/types/RateLimitErrorResponse.d.mts +17 -0
  182. package/esm/api/types/RateLimitErrorResponse.mjs +2 -0
  183. package/esm/api/types/ValidationErrorResponse.d.mts +17 -0
  184. package/esm/api/types/ValidationErrorResponse.mjs +2 -0
  185. package/esm/api/types/WebhookDelivery.d.mts +20 -0
  186. package/esm/api/types/WebhookDelivery.mjs +9 -0
  187. package/esm/api/types/WebhookEndpoint.d.mts +26 -0
  188. package/esm/api/types/WebhookEndpoint.mjs +13 -0
  189. package/esm/api/types/index.d.mts +6 -0
  190. package/esm/api/types/index.mjs +6 -0
  191. package/package.json +1 -1
@@ -16,7 +16,11 @@ export declare class PostsClient {
16
16
  * @param {Schedulin.ListPostsRequest} request
17
17
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
+ * @throws {@link Schedulin.BadRequestError}
19
20
  * @throws {@link Schedulin.UnauthorizedError}
21
+ * @throws {@link Schedulin.ForbiddenError}
22
+ * @throws {@link Schedulin.UnprocessableEntityError}
23
+ * @throws {@link Schedulin.TooManyRequestsError}
20
24
  * @throws {@link Schedulin.InternalServerError}
21
25
  * @throws {@link errors.SchedulinError}
22
26
  * @throws {@link errors.SchedulinTimeoutError}
@@ -32,7 +36,13 @@ export declare class PostsClient {
32
36
  * @param {Schedulin.PostCreate} request
33
37
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
34
38
  *
39
+ * @throws {@link Schedulin.BadRequestError}
35
40
  * @throws {@link Schedulin.UnauthorizedError}
41
+ * @throws {@link Schedulin.PaymentRequiredError}
42
+ * @throws {@link Schedulin.ForbiddenError}
43
+ * @throws {@link Schedulin.ConflictError}
44
+ * @throws {@link Schedulin.UnprocessableEntityError}
45
+ * @throws {@link Schedulin.TooManyRequestsError}
36
46
  * @throws {@link Schedulin.InternalServerError}
37
47
  * @throws {@link errors.SchedulinError}
38
48
  * @throws {@link errors.SchedulinTimeoutError}
@@ -51,7 +61,11 @@ export declare class PostsClient {
51
61
  * @param {Schedulin.CountByTabPostsRequest} request
52
62
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
53
63
  *
64
+ * @throws {@link Schedulin.BadRequestError}
54
65
  * @throws {@link Schedulin.UnauthorizedError}
66
+ * @throws {@link Schedulin.ForbiddenError}
67
+ * @throws {@link Schedulin.UnprocessableEntityError}
68
+ * @throws {@link Schedulin.TooManyRequestsError}
55
69
  * @throws {@link Schedulin.InternalServerError}
56
70
  * @throws {@link errors.SchedulinError}
57
71
  * @throws {@link errors.SchedulinTimeoutError}
@@ -59,7 +73,7 @@ export declare class PostsClient {
59
73
  * @example
60
74
  * await client.posts.countByTab()
61
75
  */
62
- countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<unknown>;
76
+ countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Schedulin.CountByTabPostsResponse>;
63
77
  private __countByTab;
64
78
  /**
65
79
  * Retrieve a single post by its ID with all relations
@@ -67,7 +81,12 @@ export declare class PostsClient {
67
81
  * @param {Schedulin.RetrievePostsRequest} request
68
82
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
69
83
  *
84
+ * @throws {@link Schedulin.BadRequestError}
70
85
  * @throws {@link Schedulin.UnauthorizedError}
86
+ * @throws {@link Schedulin.ForbiddenError}
87
+ * @throws {@link Schedulin.NotFoundError}
88
+ * @throws {@link Schedulin.UnprocessableEntityError}
89
+ * @throws {@link Schedulin.TooManyRequestsError}
71
90
  * @throws {@link Schedulin.InternalServerError}
72
91
  * @throws {@link errors.SchedulinError}
73
92
  * @throws {@link errors.SchedulinTimeoutError}
@@ -85,7 +104,14 @@ export declare class PostsClient {
85
104
  * @param {Schedulin.UpdatePostsRequest} request
86
105
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
87
106
  *
107
+ * @throws {@link Schedulin.BadRequestError}
88
108
  * @throws {@link Schedulin.UnauthorizedError}
109
+ * @throws {@link Schedulin.PaymentRequiredError}
110
+ * @throws {@link Schedulin.ForbiddenError}
111
+ * @throws {@link Schedulin.NotFoundError}
112
+ * @throws {@link Schedulin.ConflictError}
113
+ * @throws {@link Schedulin.UnprocessableEntityError}
114
+ * @throws {@link Schedulin.TooManyRequestsError}
89
115
  * @throws {@link Schedulin.InternalServerError}
90
116
  * @throws {@link errors.SchedulinError}
91
117
  * @throws {@link errors.SchedulinTimeoutError}
@@ -103,7 +129,13 @@ export declare class PostsClient {
103
129
  * @param {Schedulin.DeletePostsRequest} request
104
130
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
105
131
  *
132
+ * @throws {@link Schedulin.BadRequestError}
106
133
  * @throws {@link Schedulin.UnauthorizedError}
134
+ * @throws {@link Schedulin.ForbiddenError}
135
+ * @throws {@link Schedulin.NotFoundError}
136
+ * @throws {@link Schedulin.ConflictError}
137
+ * @throws {@link Schedulin.UnprocessableEntityError}
138
+ * @throws {@link Schedulin.TooManyRequestsError}
107
139
  * @throws {@link Schedulin.InternalServerError}
108
140
  * @throws {@link errors.SchedulinError}
109
141
  * @throws {@link errors.SchedulinTimeoutError}
@@ -121,7 +153,12 @@ export declare class PostsClient {
121
153
  * @param {Schedulin.AnalyticsSummaryPostsRequest} request
122
154
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
123
155
  *
156
+ * @throws {@link Schedulin.BadRequestError}
124
157
  * @throws {@link Schedulin.UnauthorizedError}
158
+ * @throws {@link Schedulin.ForbiddenError}
159
+ * @throws {@link Schedulin.NotFoundError}
160
+ * @throws {@link Schedulin.UnprocessableEntityError}
161
+ * @throws {@link Schedulin.TooManyRequestsError}
125
162
  * @throws {@link Schedulin.InternalServerError}
126
163
  * @throws {@link errors.SchedulinError}
127
164
  * @throws {@link errors.SchedulinTimeoutError}
@@ -139,7 +176,12 @@ export declare class PostsClient {
139
176
  * @param {Schedulin.AnalyticsSeriesPostsRequest} request
140
177
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
141
178
  *
179
+ * @throws {@link Schedulin.BadRequestError}
142
180
  * @throws {@link Schedulin.UnauthorizedError}
181
+ * @throws {@link Schedulin.ForbiddenError}
182
+ * @throws {@link Schedulin.NotFoundError}
183
+ * @throws {@link Schedulin.UnprocessableEntityError}
184
+ * @throws {@link Schedulin.TooManyRequestsError}
143
185
  * @throws {@link Schedulin.InternalServerError}
144
186
  * @throws {@link errors.SchedulinError}
145
187
  * @throws {@link errors.SchedulinTimeoutError}
@@ -157,7 +199,14 @@ export declare class PostsClient {
157
199
  * @param {Schedulin.PublishDraftPostsRequest} request
158
200
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
159
201
  *
202
+ * @throws {@link Schedulin.BadRequestError}
160
203
  * @throws {@link Schedulin.UnauthorizedError}
204
+ * @throws {@link Schedulin.PaymentRequiredError}
205
+ * @throws {@link Schedulin.ForbiddenError}
206
+ * @throws {@link Schedulin.NotFoundError}
207
+ * @throws {@link Schedulin.ConflictError}
208
+ * @throws {@link Schedulin.UnprocessableEntityError}
209
+ * @throws {@link Schedulin.TooManyRequestsError}
161
210
  * @throws {@link Schedulin.InternalServerError}
162
211
  * @throws {@link errors.SchedulinError}
163
212
  * @throws {@link errors.SchedulinTimeoutError}
@@ -175,7 +224,13 @@ export declare class PostsClient {
175
224
  * @param {Schedulin.UpdateTagsPostsRequest} request
176
225
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
177
226
  *
227
+ * @throws {@link Schedulin.BadRequestError}
178
228
  * @throws {@link Schedulin.UnauthorizedError}
229
+ * @throws {@link Schedulin.ForbiddenError}
230
+ * @throws {@link Schedulin.NotFoundError}
231
+ * @throws {@link Schedulin.ConflictError}
232
+ * @throws {@link Schedulin.UnprocessableEntityError}
233
+ * @throws {@link Schedulin.TooManyRequestsError}
179
234
  * @throws {@link Schedulin.InternalServerError}
180
235
  * @throws {@link errors.SchedulinError}
181
236
  * @throws {@link errors.SchedulinTimeoutError}
@@ -73,7 +73,11 @@ class PostsClient {
73
73
  * @param {Schedulin.ListPostsRequest} request
74
74
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
75
75
  *
76
+ * @throws {@link Schedulin.BadRequestError}
76
77
  * @throws {@link Schedulin.UnauthorizedError}
78
+ * @throws {@link Schedulin.ForbiddenError}
79
+ * @throws {@link Schedulin.UnprocessableEntityError}
80
+ * @throws {@link Schedulin.TooManyRequestsError}
77
81
  * @throws {@link Schedulin.InternalServerError}
78
82
  * @throws {@link errors.SchedulinError}
79
83
  * @throws {@link errors.SchedulinTimeoutError}
@@ -121,8 +125,16 @@ class PostsClient {
121
125
  }
122
126
  if (_response.error.reason === "status-code") {
123
127
  switch (_response.error.statusCode) {
128
+ case 400:
129
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
124
130
  case 401:
125
131
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
132
+ case 403:
133
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
134
+ case 422:
135
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
136
+ case 429:
137
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
126
138
  case 500:
127
139
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
128
140
  default:
@@ -142,7 +154,13 @@ class PostsClient {
142
154
  * @param {Schedulin.PostCreate} request
143
155
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
144
156
  *
157
+ * @throws {@link Schedulin.BadRequestError}
145
158
  * @throws {@link Schedulin.UnauthorizedError}
159
+ * @throws {@link Schedulin.PaymentRequiredError}
160
+ * @throws {@link Schedulin.ForbiddenError}
161
+ * @throws {@link Schedulin.ConflictError}
162
+ * @throws {@link Schedulin.UnprocessableEntityError}
163
+ * @throws {@link Schedulin.TooManyRequestsError}
146
164
  * @throws {@link Schedulin.InternalServerError}
147
165
  * @throws {@link errors.SchedulinError}
148
166
  * @throws {@link errors.SchedulinTimeoutError}
@@ -180,8 +198,20 @@ class PostsClient {
180
198
  }
181
199
  if (_response.error.reason === "status-code") {
182
200
  switch (_response.error.statusCode) {
201
+ case 400:
202
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
183
203
  case 401:
184
204
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
205
+ case 402:
206
+ throw new Schedulin.PaymentRequiredError(_response.error.body, _response.rawResponse);
207
+ case 403:
208
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
209
+ case 409:
210
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
211
+ case 422:
212
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
213
+ case 429:
214
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
185
215
  case 500:
186
216
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
187
217
  default:
@@ -201,7 +231,11 @@ class PostsClient {
201
231
  * @param {Schedulin.CountByTabPostsRequest} request
202
232
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
203
233
  *
234
+ * @throws {@link Schedulin.BadRequestError}
204
235
  * @throws {@link Schedulin.UnauthorizedError}
236
+ * @throws {@link Schedulin.ForbiddenError}
237
+ * @throws {@link Schedulin.UnprocessableEntityError}
238
+ * @throws {@link Schedulin.TooManyRequestsError}
205
239
  * @throws {@link Schedulin.InternalServerError}
206
240
  * @throws {@link errors.SchedulinError}
207
241
  * @throws {@link errors.SchedulinTimeoutError}
@@ -241,8 +275,16 @@ class PostsClient {
241
275
  }
242
276
  if (_response.error.reason === "status-code") {
243
277
  switch (_response.error.statusCode) {
278
+ case 400:
279
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
244
280
  case 401:
245
281
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
282
+ case 403:
283
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
284
+ case 422:
285
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
286
+ case 429:
287
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
246
288
  case 500:
247
289
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
248
290
  default:
@@ -262,7 +304,12 @@ class PostsClient {
262
304
  * @param {Schedulin.RetrievePostsRequest} request
263
305
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
264
306
  *
307
+ * @throws {@link Schedulin.BadRequestError}
265
308
  * @throws {@link Schedulin.UnauthorizedError}
309
+ * @throws {@link Schedulin.ForbiddenError}
310
+ * @throws {@link Schedulin.NotFoundError}
311
+ * @throws {@link Schedulin.UnprocessableEntityError}
312
+ * @throws {@link Schedulin.TooManyRequestsError}
266
313
  * @throws {@link Schedulin.InternalServerError}
267
314
  * @throws {@link errors.SchedulinError}
268
315
  * @throws {@link errors.SchedulinTimeoutError}
@@ -297,8 +344,18 @@ class PostsClient {
297
344
  }
298
345
  if (_response.error.reason === "status-code") {
299
346
  switch (_response.error.statusCode) {
347
+ case 400:
348
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
300
349
  case 401:
301
350
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
351
+ case 403:
352
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
353
+ case 404:
354
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
355
+ case 422:
356
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
357
+ case 429:
358
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
302
359
  case 500:
303
360
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
304
361
  default:
@@ -318,7 +375,14 @@ class PostsClient {
318
375
  * @param {Schedulin.UpdatePostsRequest} request
319
376
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
320
377
  *
378
+ * @throws {@link Schedulin.BadRequestError}
321
379
  * @throws {@link Schedulin.UnauthorizedError}
380
+ * @throws {@link Schedulin.PaymentRequiredError}
381
+ * @throws {@link Schedulin.ForbiddenError}
382
+ * @throws {@link Schedulin.NotFoundError}
383
+ * @throws {@link Schedulin.ConflictError}
384
+ * @throws {@link Schedulin.UnprocessableEntityError}
385
+ * @throws {@link Schedulin.TooManyRequestsError}
322
386
  * @throws {@link Schedulin.InternalServerError}
323
387
  * @throws {@link errors.SchedulinError}
324
388
  * @throws {@link errors.SchedulinTimeoutError}
@@ -356,8 +420,22 @@ class PostsClient {
356
420
  }
357
421
  if (_response.error.reason === "status-code") {
358
422
  switch (_response.error.statusCode) {
423
+ case 400:
424
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
359
425
  case 401:
360
426
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
427
+ case 402:
428
+ throw new Schedulin.PaymentRequiredError(_response.error.body, _response.rawResponse);
429
+ case 403:
430
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
431
+ case 404:
432
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
433
+ case 409:
434
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
435
+ case 422:
436
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
437
+ case 429:
438
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
361
439
  case 500:
362
440
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
363
441
  default:
@@ -377,7 +455,13 @@ class PostsClient {
377
455
  * @param {Schedulin.DeletePostsRequest} request
378
456
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
379
457
  *
458
+ * @throws {@link Schedulin.BadRequestError}
380
459
  * @throws {@link Schedulin.UnauthorizedError}
460
+ * @throws {@link Schedulin.ForbiddenError}
461
+ * @throws {@link Schedulin.NotFoundError}
462
+ * @throws {@link Schedulin.ConflictError}
463
+ * @throws {@link Schedulin.UnprocessableEntityError}
464
+ * @throws {@link Schedulin.TooManyRequestsError}
381
465
  * @throws {@link Schedulin.InternalServerError}
382
466
  * @throws {@link errors.SchedulinError}
383
467
  * @throws {@link errors.SchedulinTimeoutError}
@@ -415,8 +499,20 @@ class PostsClient {
415
499
  }
416
500
  if (_response.error.reason === "status-code") {
417
501
  switch (_response.error.statusCode) {
502
+ case 400:
503
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
418
504
  case 401:
419
505
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
506
+ case 403:
507
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
508
+ case 404:
509
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
510
+ case 409:
511
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
512
+ case 422:
513
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
514
+ case 429:
515
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
420
516
  case 500:
421
517
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
422
518
  default:
@@ -436,7 +532,12 @@ class PostsClient {
436
532
  * @param {Schedulin.AnalyticsSummaryPostsRequest} request
437
533
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
438
534
  *
535
+ * @throws {@link Schedulin.BadRequestError}
439
536
  * @throws {@link Schedulin.UnauthorizedError}
537
+ * @throws {@link Schedulin.ForbiddenError}
538
+ * @throws {@link Schedulin.NotFoundError}
539
+ * @throws {@link Schedulin.UnprocessableEntityError}
540
+ * @throws {@link Schedulin.TooManyRequestsError}
440
541
  * @throws {@link Schedulin.InternalServerError}
441
542
  * @throws {@link errors.SchedulinError}
442
543
  * @throws {@link errors.SchedulinTimeoutError}
@@ -474,8 +575,18 @@ class PostsClient {
474
575
  }
475
576
  if (_response.error.reason === "status-code") {
476
577
  switch (_response.error.statusCode) {
578
+ case 400:
579
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
477
580
  case 401:
478
581
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
582
+ case 403:
583
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
584
+ case 404:
585
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
586
+ case 422:
587
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
588
+ case 429:
589
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
479
590
  case 500:
480
591
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
481
592
  default:
@@ -495,7 +606,12 @@ class PostsClient {
495
606
  * @param {Schedulin.AnalyticsSeriesPostsRequest} request
496
607
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
497
608
  *
609
+ * @throws {@link Schedulin.BadRequestError}
498
610
  * @throws {@link Schedulin.UnauthorizedError}
611
+ * @throws {@link Schedulin.ForbiddenError}
612
+ * @throws {@link Schedulin.NotFoundError}
613
+ * @throws {@link Schedulin.UnprocessableEntityError}
614
+ * @throws {@link Schedulin.TooManyRequestsError}
499
615
  * @throws {@link Schedulin.InternalServerError}
500
616
  * @throws {@link errors.SchedulinError}
501
617
  * @throws {@link errors.SchedulinTimeoutError}
@@ -540,8 +656,18 @@ class PostsClient {
540
656
  }
541
657
  if (_response.error.reason === "status-code") {
542
658
  switch (_response.error.statusCode) {
659
+ case 400:
660
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
543
661
  case 401:
544
662
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
663
+ case 403:
664
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
665
+ case 404:
666
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
667
+ case 422:
668
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
669
+ case 429:
670
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
545
671
  case 500:
546
672
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
547
673
  default:
@@ -561,7 +687,14 @@ class PostsClient {
561
687
  * @param {Schedulin.PublishDraftPostsRequest} request
562
688
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
563
689
  *
690
+ * @throws {@link Schedulin.BadRequestError}
564
691
  * @throws {@link Schedulin.UnauthorizedError}
692
+ * @throws {@link Schedulin.PaymentRequiredError}
693
+ * @throws {@link Schedulin.ForbiddenError}
694
+ * @throws {@link Schedulin.NotFoundError}
695
+ * @throws {@link Schedulin.ConflictError}
696
+ * @throws {@link Schedulin.UnprocessableEntityError}
697
+ * @throws {@link Schedulin.TooManyRequestsError}
565
698
  * @throws {@link Schedulin.InternalServerError}
566
699
  * @throws {@link errors.SchedulinError}
567
700
  * @throws {@link errors.SchedulinTimeoutError}
@@ -599,8 +732,22 @@ class PostsClient {
599
732
  }
600
733
  if (_response.error.reason === "status-code") {
601
734
  switch (_response.error.statusCode) {
735
+ case 400:
736
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
602
737
  case 401:
603
738
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
739
+ case 402:
740
+ throw new Schedulin.PaymentRequiredError(_response.error.body, _response.rawResponse);
741
+ case 403:
742
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
743
+ case 404:
744
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
745
+ case 409:
746
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
747
+ case 422:
748
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
749
+ case 429:
750
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
604
751
  case 500:
605
752
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
606
753
  default:
@@ -620,7 +767,13 @@ class PostsClient {
620
767
  * @param {Schedulin.UpdateTagsPostsRequest} request
621
768
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
622
769
  *
770
+ * @throws {@link Schedulin.BadRequestError}
623
771
  * @throws {@link Schedulin.UnauthorizedError}
772
+ * @throws {@link Schedulin.ForbiddenError}
773
+ * @throws {@link Schedulin.NotFoundError}
774
+ * @throws {@link Schedulin.ConflictError}
775
+ * @throws {@link Schedulin.UnprocessableEntityError}
776
+ * @throws {@link Schedulin.TooManyRequestsError}
624
777
  * @throws {@link Schedulin.InternalServerError}
625
778
  * @throws {@link errors.SchedulinError}
626
779
  * @throws {@link errors.SchedulinTimeoutError}
@@ -659,8 +812,20 @@ class PostsClient {
659
812
  }
660
813
  if (_response.error.reason === "status-code") {
661
814
  switch (_response.error.statusCode) {
815
+ case 400:
816
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
662
817
  case 401:
663
818
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
819
+ case 403:
820
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
821
+ case 404:
822
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
823
+ case 409:
824
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
825
+ case 422:
826
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
827
+ case 429:
828
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
664
829
  case 500:
665
830
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
666
831
  default:
@@ -0,0 +1,7 @@
1
+ export interface CountByTabPostsResponse {
2
+ queue: number;
3
+ drafts: number;
4
+ approvals: number;
5
+ sent: number;
6
+ failed: number;
7
+ }
@@ -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 });
@@ -7,6 +7,7 @@ export interface CreatePostsResponse {
7
7
  scheduledAt: string | null;
8
8
  platformConfiguration: Record<string, unknown> | null;
9
9
  media: CreatePostsResponse.Media.Item[];
10
+ socialAccountId: string;
10
11
  socialAccounts: Schedulin.SocialAccountPublic[];
11
12
  createdAt: string;
12
13
  updatedAt: string;
@@ -1,5 +1,6 @@
1
1
  export * from "./AnalyticsSeriesPostsResponse.js";
2
2
  export * from "./AnalyticsSummaryPostsResponse.js";
3
+ export * from "./CountByTabPostsResponse.js";
3
4
  export * from "./CreatePostsResponse.js";
4
5
  export * from "./ListPostsRequestApprovalStatus.js";
5
6
  export * from "./ListPostsRequestStatus.js";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AnalyticsSeriesPostsResponse.js"), exports);
18
18
  __exportStar(require("./AnalyticsSummaryPostsResponse.js"), exports);
19
+ __exportStar(require("./CountByTabPostsResponse.js"), exports);
19
20
  __exportStar(require("./CreatePostsResponse.js"), exports);
20
21
  __exportStar(require("./ListPostsRequestApprovalStatus.js"), exports);
21
22
  __exportStar(require("./ListPostsRequestStatus.js"), exports);