@schedulin/sdk 0.3.1 → 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 (169) 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 +58 -8
  28. package/cjs/api/resources/media/client/Client.js +158 -3
  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 +57 -0
  48. package/cjs/api/resources/socialAccounts/client/Client.js +171 -0
  49. package/cjs/api/resources/tags/client/Client.d.ts +21 -0
  50. package/cjs/api/resources/tags/client/Client.js +63 -0
  51. package/cjs/api/resources/webhooks/client/Client.d.ts +51 -8
  52. package/cjs/api/resources/webhooks/client/Client.js +133 -1
  53. package/cjs/api/resources/webhooks/index.d.ts +1 -0
  54. package/cjs/api/resources/webhooks/index.js +1 -0
  55. package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.d.ts +3 -0
  56. package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.js +3 -0
  57. package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.ts +4 -0
  58. package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.js +3 -0
  59. package/cjs/api/resources/webhooks/types/ListWebhooksResponse.d.ts +4 -0
  60. package/cjs/api/resources/webhooks/types/ListWebhooksResponse.js +3 -0
  61. package/cjs/api/resources/webhooks/types/TestWebhooksResponse.d.ts +3 -0
  62. package/cjs/api/resources/webhooks/types/TestWebhooksResponse.js +3 -0
  63. package/cjs/api/resources/webhooks/types/index.d.ts +4 -0
  64. package/cjs/api/resources/webhooks/types/index.js +20 -0
  65. package/cjs/api/types/AiGeneration.d.ts +27 -0
  66. package/cjs/api/types/AiGeneration.js +14 -0
  67. package/cjs/api/types/ErrorResponse.d.ts +14 -2
  68. package/cjs/api/types/Media.d.ts +4 -0
  69. package/cjs/api/types/MediaUpdate.d.ts +1 -1
  70. package/cjs/api/types/Post.d.ts +3 -0
  71. package/cjs/api/types/PostMedia.d.ts +14 -0
  72. package/cjs/api/types/PostMedia.js +3 -0
  73. package/cjs/api/types/PostWithRelations.d.ts +5 -68
  74. package/cjs/api/types/PostWithRelations.js +0 -54
  75. package/cjs/api/types/RateLimitErrorResponse.d.ts +17 -0
  76. package/cjs/api/types/RateLimitErrorResponse.js +3 -0
  77. package/cjs/api/types/ValidationErrorResponse.d.ts +17 -0
  78. package/cjs/api/types/ValidationErrorResponse.js +3 -0
  79. package/cjs/api/types/WebhookDelivery.d.ts +20 -0
  80. package/cjs/api/types/WebhookDelivery.js +12 -0
  81. package/cjs/api/types/WebhookEndpoint.d.ts +26 -0
  82. package/cjs/api/types/WebhookEndpoint.js +16 -0
  83. package/cjs/api/types/index.d.ts +6 -0
  84. package/cjs/api/types/index.js +6 -0
  85. package/esm/api/errors/BadRequestError.d.mts +7 -0
  86. package/esm/api/errors/BadRequestError.mjs +17 -0
  87. package/esm/api/errors/ConflictError.d.mts +7 -0
  88. package/esm/api/errors/ConflictError.mjs +17 -0
  89. package/esm/api/errors/ForbiddenError.d.mts +7 -0
  90. package/esm/api/errors/ForbiddenError.mjs +17 -0
  91. package/esm/api/errors/NotFoundError.d.mts +7 -0
  92. package/esm/api/errors/NotFoundError.mjs +17 -0
  93. package/esm/api/errors/PaymentRequiredError.d.mts +7 -0
  94. package/esm/api/errors/PaymentRequiredError.mjs +17 -0
  95. package/esm/api/errors/TooManyRequestsError.d.mts +7 -0
  96. package/esm/api/errors/TooManyRequestsError.mjs +17 -0
  97. package/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
  98. package/esm/api/errors/UnprocessableEntityError.mjs +17 -0
  99. package/esm/api/errors/index.d.mts +7 -0
  100. package/esm/api/errors/index.mjs +7 -0
  101. package/esm/api/resources/ai/client/Client.d.mts +11 -2
  102. package/esm/api/resources/ai/client/Client.mjs +27 -0
  103. package/esm/api/resources/ai/index.d.mts +1 -0
  104. package/esm/api/resources/ai/index.mjs +1 -0
  105. package/esm/api/resources/ai/types/GenerateImageAiResponse.d.mts +3 -0
  106. package/esm/api/resources/ai/types/GenerateImageAiResponse.mjs +2 -0
  107. package/esm/api/resources/ai/types/index.d.mts +1 -0
  108. package/esm/api/resources/ai/types/index.mjs +1 -0
  109. package/esm/api/resources/index.d.mts +2 -0
  110. package/esm/api/resources/index.mjs +2 -0
  111. package/esm/api/resources/media/client/Client.d.mts +58 -8
  112. package/esm/api/resources/media/client/Client.mjs +158 -3
  113. package/esm/api/resources/media/client/requests/UpdateMediaRequest.d.mts +2 -3
  114. package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.d.mts +4 -0
  115. package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.mjs +2 -0
  116. package/esm/api/resources/media/types/DeleteMediaResponse.d.mts +4 -0
  117. package/esm/api/resources/media/types/DeleteMediaResponse.mjs +2 -0
  118. package/esm/api/resources/media/types/SetTagsMediaResponse.d.mts +4 -0
  119. package/esm/api/resources/media/types/SetTagsMediaResponse.mjs +2 -0
  120. package/esm/api/resources/media/types/index.d.mts +3 -0
  121. package/esm/api/resources/media/types/index.mjs +3 -0
  122. package/esm/api/resources/platforms/client/Client.d.mts +4 -0
  123. package/esm/api/resources/platforms/client/Client.mjs +12 -0
  124. package/esm/api/resources/posts/client/Client.d.mts +56 -1
  125. package/esm/api/resources/posts/client/Client.mjs +165 -0
  126. package/esm/api/resources/posts/types/CountByTabPostsResponse.d.mts +7 -0
  127. package/esm/api/resources/posts/types/CountByTabPostsResponse.mjs +2 -0
  128. package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +1 -0
  129. package/esm/api/resources/posts/types/index.d.mts +1 -0
  130. package/esm/api/resources/posts/types/index.mjs +1 -0
  131. package/esm/api/resources/socialAccounts/client/Client.d.mts +57 -0
  132. package/esm/api/resources/socialAccounts/client/Client.mjs +171 -0
  133. package/esm/api/resources/tags/client/Client.d.mts +21 -0
  134. package/esm/api/resources/tags/client/Client.mjs +63 -0
  135. package/esm/api/resources/webhooks/client/Client.d.mts +51 -8
  136. package/esm/api/resources/webhooks/client/Client.mjs +133 -1
  137. package/esm/api/resources/webhooks/index.d.mts +1 -0
  138. package/esm/api/resources/webhooks/index.mjs +1 -0
  139. package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.d.mts +3 -0
  140. package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.mjs +2 -0
  141. package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.mts +4 -0
  142. package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.mjs +2 -0
  143. package/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +4 -0
  144. package/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +2 -0
  145. package/esm/api/resources/webhooks/types/TestWebhooksResponse.d.mts +3 -0
  146. package/esm/api/resources/webhooks/types/TestWebhooksResponse.mjs +2 -0
  147. package/esm/api/resources/webhooks/types/index.d.mts +4 -0
  148. package/esm/api/resources/webhooks/types/index.mjs +4 -0
  149. package/esm/api/types/AiGeneration.d.mts +27 -0
  150. package/esm/api/types/AiGeneration.mjs +11 -0
  151. package/esm/api/types/ErrorResponse.d.mts +14 -2
  152. package/esm/api/types/Media.d.mts +4 -0
  153. package/esm/api/types/MediaUpdate.d.mts +1 -1
  154. package/esm/api/types/Post.d.mts +3 -0
  155. package/esm/api/types/PostMedia.d.mts +14 -0
  156. package/esm/api/types/PostMedia.mjs +2 -0
  157. package/esm/api/types/PostWithRelations.d.mts +5 -68
  158. package/esm/api/types/PostWithRelations.mjs +1 -53
  159. package/esm/api/types/RateLimitErrorResponse.d.mts +17 -0
  160. package/esm/api/types/RateLimitErrorResponse.mjs +2 -0
  161. package/esm/api/types/ValidationErrorResponse.d.mts +17 -0
  162. package/esm/api/types/ValidationErrorResponse.mjs +2 -0
  163. package/esm/api/types/WebhookDelivery.d.mts +20 -0
  164. package/esm/api/types/WebhookDelivery.mjs +9 -0
  165. package/esm/api/types/WebhookEndpoint.d.mts +26 -0
  166. package/esm/api/types/WebhookEndpoint.mjs +13 -0
  167. package/esm/api/types/index.d.mts +6 -0
  168. package/esm/api/types/index.mjs +6 -0
  169. package/package.json +1 -1
@@ -16,7 +16,12 @@ export declare class MediaClient {
16
16
  * @param {Schedulin.CreateFromUrlMediaRequest} request
17
17
  * @param {MediaClient.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.ConflictError}
23
+ * @throws {@link Schedulin.UnprocessableEntityError}
24
+ * @throws {@link Schedulin.TooManyRequestsError}
20
25
  * @throws {@link Schedulin.InternalServerError}
21
26
  * @throws {@link errors.SchedulinError}
22
27
  * @throws {@link errors.SchedulinTimeoutError}
@@ -26,7 +31,7 @@ export declare class MediaClient {
26
31
  * url: "url"
27
32
  * })
28
33
  */
29
- createFromUrl(request: Schedulin.CreateFromUrlMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
34
+ createFromUrl(request: Schedulin.CreateFromUrlMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
30
35
  private __createFromUrl;
31
36
  /**
32
37
  * Returns a short-lived URL to a page where the user uploads files from their device (or a pasted attachment) straight into the media library. Hand the URL to the user; once they've uploaded, call GET /v0/media (list media, newest first) and reference the returned `url` when creating a post. Use this whenever the file isn't already at a public URL.
@@ -34,7 +39,12 @@ export declare class MediaClient {
34
39
  * @param {Schedulin.CreateUploadLinkMediaRequest} request
35
40
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
36
41
  *
42
+ * @throws {@link Schedulin.BadRequestError}
37
43
  * @throws {@link Schedulin.UnauthorizedError}
44
+ * @throws {@link Schedulin.ForbiddenError}
45
+ * @throws {@link Schedulin.ConflictError}
46
+ * @throws {@link Schedulin.UnprocessableEntityError}
47
+ * @throws {@link Schedulin.TooManyRequestsError}
38
48
  * @throws {@link Schedulin.InternalServerError}
39
49
  * @throws {@link errors.SchedulinError}
40
50
  * @throws {@link errors.SchedulinTimeoutError}
@@ -42,7 +52,7 @@ export declare class MediaClient {
42
52
  * @example
43
53
  * await client.media.createUploadLink()
44
54
  */
45
- createUploadLink(request?: Schedulin.CreateUploadLinkMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
55
+ createUploadLink(request?: Schedulin.CreateUploadLinkMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.CreateUploadLinkMediaResponse>;
46
56
  private __createUploadLink;
47
57
  /**
48
58
  * Upload raw image, video, or audio bytes directly as multipart/form-data. The file is stored in your media library and the record is returned; use its `url` in `media[].url` when creating a post. When the file part's type is missing or generic (`application/octet-stream`, `text/plain`), the type is detected from the file's bytes, then its filename extension. Max 250 MB; SVG and other active content is rejected. For a file already hosted at a public URL, prefer POST /v0/media/from-url.
@@ -50,7 +60,12 @@ export declare class MediaClient {
50
60
  * @param {Schedulin.UploadMediaRequest} request
51
61
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
52
62
  *
63
+ * @throws {@link Schedulin.BadRequestError}
53
64
  * @throws {@link Schedulin.UnauthorizedError}
65
+ * @throws {@link Schedulin.ForbiddenError}
66
+ * @throws {@link Schedulin.ConflictError}
67
+ * @throws {@link Schedulin.UnprocessableEntityError}
68
+ * @throws {@link Schedulin.TooManyRequestsError}
54
69
  * @throws {@link Schedulin.InternalServerError}
55
70
  * @throws {@link errors.SchedulinError}
56
71
  * @throws {@link errors.SchedulinTimeoutError}
@@ -61,7 +76,7 @@ export declare class MediaClient {
61
76
  * file: fs.createReadStream("/path/to/your/file")
62
77
  * })
63
78
  */
64
- upload(request: Schedulin.UploadMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
79
+ upload(request: Schedulin.UploadMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
65
80
  private __upload;
66
81
  /**
67
82
  * Retrieve media information by its ID
@@ -69,7 +84,12 @@ export declare class MediaClient {
69
84
  * @param {Schedulin.RetrieveMediaRequest} request
70
85
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
71
86
  *
87
+ * @throws {@link Schedulin.BadRequestError}
72
88
  * @throws {@link Schedulin.UnauthorizedError}
89
+ * @throws {@link Schedulin.ForbiddenError}
90
+ * @throws {@link Schedulin.NotFoundError}
91
+ * @throws {@link Schedulin.UnprocessableEntityError}
92
+ * @throws {@link Schedulin.TooManyRequestsError}
73
93
  * @throws {@link Schedulin.InternalServerError}
74
94
  * @throws {@link errors.SchedulinError}
75
95
  * @throws {@link errors.SchedulinTimeoutError}
@@ -79,7 +99,7 @@ export declare class MediaClient {
79
99
  * id: "id"
80
100
  * })
81
101
  */
82
- retrieve(request: Schedulin.RetrieveMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media | null>;
102
+ retrieve(request: Schedulin.RetrieveMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
83
103
  private __retrieve;
84
104
  /**
85
105
  * Update media information and metadata
@@ -87,15 +107,20 @@ export declare class MediaClient {
87
107
  * @param {Schedulin.UpdateMediaRequest} request
88
108
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
89
109
  *
110
+ * @throws {@link Schedulin.BadRequestError}
90
111
  * @throws {@link Schedulin.UnauthorizedError}
112
+ * @throws {@link Schedulin.ForbiddenError}
113
+ * @throws {@link Schedulin.NotFoundError}
114
+ * @throws {@link Schedulin.ConflictError}
115
+ * @throws {@link Schedulin.UnprocessableEntityError}
116
+ * @throws {@link Schedulin.TooManyRequestsError}
91
117
  * @throws {@link Schedulin.InternalServerError}
92
118
  * @throws {@link errors.SchedulinError}
93
119
  * @throws {@link errors.SchedulinTimeoutError}
94
120
  *
95
121
  * @example
96
122
  * await client.media.update({
97
- * id: "id",
98
- * url: "url"
123
+ * id: "id"
99
124
  * })
100
125
  */
101
126
  update(request: Schedulin.UpdateMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
@@ -106,7 +131,13 @@ export declare class MediaClient {
106
131
  * @param {Schedulin.DeleteMediaRequest} request
107
132
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
108
133
  *
134
+ * @throws {@link Schedulin.BadRequestError}
109
135
  * @throws {@link Schedulin.UnauthorizedError}
136
+ * @throws {@link Schedulin.ForbiddenError}
137
+ * @throws {@link Schedulin.NotFoundError}
138
+ * @throws {@link Schedulin.ConflictError}
139
+ * @throws {@link Schedulin.UnprocessableEntityError}
140
+ * @throws {@link Schedulin.TooManyRequestsError}
110
141
  * @throws {@link Schedulin.InternalServerError}
111
142
  * @throws {@link errors.SchedulinError}
112
143
  * @throws {@link errors.SchedulinTimeoutError}
@@ -116,7 +147,7 @@ export declare class MediaClient {
116
147
  * id: "id"
117
148
  * })
118
149
  */
119
- delete(request: Schedulin.DeleteMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
150
+ delete(request: Schedulin.DeleteMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.DeleteMediaResponse>;
120
151
  private __delete;
121
152
  /**
122
153
  * List media for the organization with page pagination, search, type and tag filters
@@ -124,7 +155,11 @@ export declare class MediaClient {
124
155
  * @param {Schedulin.ListMediaRequest} request
125
156
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
126
157
  *
158
+ * @throws {@link Schedulin.BadRequestError}
127
159
  * @throws {@link Schedulin.UnauthorizedError}
160
+ * @throws {@link Schedulin.ForbiddenError}
161
+ * @throws {@link Schedulin.UnprocessableEntityError}
162
+ * @throws {@link Schedulin.TooManyRequestsError}
128
163
  * @throws {@link Schedulin.InternalServerError}
129
164
  * @throws {@link errors.SchedulinError}
130
165
  * @throws {@link errors.SchedulinTimeoutError}
@@ -140,7 +175,13 @@ export declare class MediaClient {
140
175
  * @param {Schedulin.SetTagsMediaRequest} request
141
176
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
142
177
  *
178
+ * @throws {@link Schedulin.BadRequestError}
143
179
  * @throws {@link Schedulin.UnauthorizedError}
180
+ * @throws {@link Schedulin.ForbiddenError}
181
+ * @throws {@link Schedulin.NotFoundError}
182
+ * @throws {@link Schedulin.ConflictError}
183
+ * @throws {@link Schedulin.UnprocessableEntityError}
184
+ * @throws {@link Schedulin.TooManyRequestsError}
144
185
  * @throws {@link Schedulin.InternalServerError}
145
186
  * @throws {@link errors.SchedulinError}
146
187
  * @throws {@link errors.SchedulinTimeoutError}
@@ -151,14 +192,18 @@ export declare class MediaClient {
151
192
  * tagIds: ["tagIds"]
152
193
  * })
153
194
  */
154
- setTags(request: Schedulin.SetTagsMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
195
+ setTags(request: Schedulin.SetTagsMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.SetTagsMediaResponse>;
155
196
  private __setTags;
156
197
  /**
157
198
  * Return media counts grouped by tag for the organization
158
199
  *
159
200
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
160
201
  *
202
+ * @throws {@link Schedulin.BadRequestError}
161
203
  * @throws {@link Schedulin.UnauthorizedError}
204
+ * @throws {@link Schedulin.ForbiddenError}
205
+ * @throws {@link Schedulin.UnprocessableEntityError}
206
+ * @throws {@link Schedulin.TooManyRequestsError}
162
207
  * @throws {@link Schedulin.InternalServerError}
163
208
  * @throws {@link errors.SchedulinError}
164
209
  * @throws {@link errors.SchedulinTimeoutError}
@@ -174,7 +219,12 @@ export declare class MediaClient {
174
219
  * @param {Schedulin.CreatePresignedPost} request
175
220
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
176
221
  *
222
+ * @throws {@link Schedulin.BadRequestError}
177
223
  * @throws {@link Schedulin.UnauthorizedError}
224
+ * @throws {@link Schedulin.ForbiddenError}
225
+ * @throws {@link Schedulin.ConflictError}
226
+ * @throws {@link Schedulin.UnprocessableEntityError}
227
+ * @throws {@link Schedulin.TooManyRequestsError}
178
228
  * @throws {@link Schedulin.InternalServerError}
179
229
  * @throws {@link errors.SchedulinError}
180
230
  * @throws {@link errors.SchedulinTimeoutError}
@@ -73,7 +73,12 @@ class MediaClient {
73
73
  * @param {Schedulin.CreateFromUrlMediaRequest} request
74
74
  * @param {MediaClient.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.ConflictError}
80
+ * @throws {@link Schedulin.UnprocessableEntityError}
81
+ * @throws {@link Schedulin.TooManyRequestsError}
77
82
  * @throws {@link Schedulin.InternalServerError}
78
83
  * @throws {@link errors.SchedulinError}
79
84
  * @throws {@link errors.SchedulinTimeoutError}
@@ -110,8 +115,18 @@ class MediaClient {
110
115
  }
111
116
  if (_response.error.reason === "status-code") {
112
117
  switch (_response.error.statusCode) {
118
+ case 400:
119
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
113
120
  case 401:
114
121
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
122
+ case 403:
123
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
124
+ case 409:
125
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
126
+ case 422:
127
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
128
+ case 429:
129
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
115
130
  case 500:
116
131
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
117
132
  default:
@@ -131,7 +146,12 @@ class MediaClient {
131
146
  * @param {Schedulin.CreateUploadLinkMediaRequest} request
132
147
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
133
148
  *
149
+ * @throws {@link Schedulin.BadRequestError}
134
150
  * @throws {@link Schedulin.UnauthorizedError}
151
+ * @throws {@link Schedulin.ForbiddenError}
152
+ * @throws {@link Schedulin.ConflictError}
153
+ * @throws {@link Schedulin.UnprocessableEntityError}
154
+ * @throws {@link Schedulin.TooManyRequestsError}
135
155
  * @throws {@link Schedulin.InternalServerError}
136
156
  * @throws {@link errors.SchedulinError}
137
157
  * @throws {@link errors.SchedulinTimeoutError}
@@ -162,12 +182,25 @@ class MediaClient {
162
182
  logging: this._options.logging,
163
183
  });
164
184
  if (_response.ok) {
165
- return { data: _response.body, rawResponse: _response.rawResponse };
185
+ return {
186
+ data: _response.body,
187
+ rawResponse: _response.rawResponse,
188
+ };
166
189
  }
167
190
  if (_response.error.reason === "status-code") {
168
191
  switch (_response.error.statusCode) {
192
+ case 400:
193
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
169
194
  case 401:
170
195
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
196
+ case 403:
197
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
198
+ case 409:
199
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
200
+ case 422:
201
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
202
+ case 429:
203
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
171
204
  case 500:
172
205
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
173
206
  default:
@@ -187,7 +220,12 @@ class MediaClient {
187
220
  * @param {Schedulin.UploadMediaRequest} request
188
221
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
189
222
  *
223
+ * @throws {@link Schedulin.BadRequestError}
190
224
  * @throws {@link Schedulin.UnauthorizedError}
225
+ * @throws {@link Schedulin.ForbiddenError}
226
+ * @throws {@link Schedulin.ConflictError}
227
+ * @throws {@link Schedulin.UnprocessableEntityError}
228
+ * @throws {@link Schedulin.TooManyRequestsError}
191
229
  * @throws {@link Schedulin.InternalServerError}
192
230
  * @throws {@link errors.SchedulinError}
193
231
  * @throws {@link errors.SchedulinTimeoutError}
@@ -237,8 +275,18 @@ class MediaClient {
237
275
  }
238
276
  if (_response.error.reason === "status-code") {
239
277
  switch (_response.error.statusCode) {
278
+ case 400:
279
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
240
280
  case 401:
241
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 409:
285
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
286
+ case 422:
287
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
288
+ case 429:
289
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
242
290
  case 500:
243
291
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
244
292
  default:
@@ -258,7 +306,12 @@ class MediaClient {
258
306
  * @param {Schedulin.RetrieveMediaRequest} request
259
307
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
260
308
  *
309
+ * @throws {@link Schedulin.BadRequestError}
261
310
  * @throws {@link Schedulin.UnauthorizedError}
311
+ * @throws {@link Schedulin.ForbiddenError}
312
+ * @throws {@link Schedulin.NotFoundError}
313
+ * @throws {@link Schedulin.UnprocessableEntityError}
314
+ * @throws {@link Schedulin.TooManyRequestsError}
262
315
  * @throws {@link Schedulin.InternalServerError}
263
316
  * @throws {@link errors.SchedulinError}
264
317
  * @throws {@link errors.SchedulinTimeoutError}
@@ -293,8 +346,18 @@ class MediaClient {
293
346
  }
294
347
  if (_response.error.reason === "status-code") {
295
348
  switch (_response.error.statusCode) {
349
+ case 400:
350
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
296
351
  case 401:
297
352
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
353
+ case 403:
354
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
355
+ case 404:
356
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
357
+ case 422:
358
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
359
+ case 429:
360
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
298
361
  case 500:
299
362
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
300
363
  default:
@@ -314,15 +377,20 @@ class MediaClient {
314
377
  * @param {Schedulin.UpdateMediaRequest} request
315
378
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
316
379
  *
380
+ * @throws {@link Schedulin.BadRequestError}
317
381
  * @throws {@link Schedulin.UnauthorizedError}
382
+ * @throws {@link Schedulin.ForbiddenError}
383
+ * @throws {@link Schedulin.NotFoundError}
384
+ * @throws {@link Schedulin.ConflictError}
385
+ * @throws {@link Schedulin.UnprocessableEntityError}
386
+ * @throws {@link Schedulin.TooManyRequestsError}
318
387
  * @throws {@link Schedulin.InternalServerError}
319
388
  * @throws {@link errors.SchedulinError}
320
389
  * @throws {@link errors.SchedulinTimeoutError}
321
390
  *
322
391
  * @example
323
392
  * await client.media.update({
324
- * id: "id",
325
- * url: "url"
393
+ * id: "id"
326
394
  * })
327
395
  */
328
396
  update(request, requestOptions) {
@@ -353,8 +421,20 @@ class MediaClient {
353
421
  }
354
422
  if (_response.error.reason === "status-code") {
355
423
  switch (_response.error.statusCode) {
424
+ case 400:
425
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
356
426
  case 401:
357
427
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
428
+ case 403:
429
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
430
+ case 404:
431
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
432
+ case 409:
433
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
434
+ case 422:
435
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
436
+ case 429:
437
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
358
438
  case 500:
359
439
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
360
440
  default:
@@ -374,7 +454,13 @@ class MediaClient {
374
454
  * @param {Schedulin.DeleteMediaRequest} request
375
455
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
376
456
  *
457
+ * @throws {@link Schedulin.BadRequestError}
377
458
  * @throws {@link Schedulin.UnauthorizedError}
459
+ * @throws {@link Schedulin.ForbiddenError}
460
+ * @throws {@link Schedulin.NotFoundError}
461
+ * @throws {@link Schedulin.ConflictError}
462
+ * @throws {@link Schedulin.UnprocessableEntityError}
463
+ * @throws {@link Schedulin.TooManyRequestsError}
378
464
  * @throws {@link Schedulin.InternalServerError}
379
465
  * @throws {@link errors.SchedulinError}
380
466
  * @throws {@link errors.SchedulinTimeoutError}
@@ -412,8 +498,20 @@ class MediaClient {
412
498
  }
413
499
  if (_response.error.reason === "status-code") {
414
500
  switch (_response.error.statusCode) {
501
+ case 400:
502
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
415
503
  case 401:
416
504
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
505
+ case 403:
506
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
507
+ case 404:
508
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
509
+ case 409:
510
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
511
+ case 422:
512
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
513
+ case 429:
514
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
417
515
  case 500:
418
516
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
419
517
  default:
@@ -433,7 +531,11 @@ class MediaClient {
433
531
  * @param {Schedulin.ListMediaRequest} request
434
532
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
435
533
  *
534
+ * @throws {@link Schedulin.BadRequestError}
436
535
  * @throws {@link Schedulin.UnauthorizedError}
536
+ * @throws {@link Schedulin.ForbiddenError}
537
+ * @throws {@link Schedulin.UnprocessableEntityError}
538
+ * @throws {@link Schedulin.TooManyRequestsError}
437
539
  * @throws {@link Schedulin.InternalServerError}
438
540
  * @throws {@link errors.SchedulinError}
439
541
  * @throws {@link errors.SchedulinTimeoutError}
@@ -478,8 +580,16 @@ class MediaClient {
478
580
  }
479
581
  if (_response.error.reason === "status-code") {
480
582
  switch (_response.error.statusCode) {
583
+ case 400:
584
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
481
585
  case 401:
482
586
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
587
+ case 403:
588
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
589
+ case 422:
590
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
591
+ case 429:
592
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
483
593
  case 500:
484
594
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
485
595
  default:
@@ -499,7 +609,13 @@ class MediaClient {
499
609
  * @param {Schedulin.SetTagsMediaRequest} request
500
610
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
501
611
  *
612
+ * @throws {@link Schedulin.BadRequestError}
502
613
  * @throws {@link Schedulin.UnauthorizedError}
614
+ * @throws {@link Schedulin.ForbiddenError}
615
+ * @throws {@link Schedulin.NotFoundError}
616
+ * @throws {@link Schedulin.ConflictError}
617
+ * @throws {@link Schedulin.UnprocessableEntityError}
618
+ * @throws {@link Schedulin.TooManyRequestsError}
503
619
  * @throws {@link Schedulin.InternalServerError}
504
620
  * @throws {@link errors.SchedulinError}
505
621
  * @throws {@link errors.SchedulinTimeoutError}
@@ -538,8 +654,20 @@ class MediaClient {
538
654
  }
539
655
  if (_response.error.reason === "status-code") {
540
656
  switch (_response.error.statusCode) {
657
+ case 400:
658
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
541
659
  case 401:
542
660
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
661
+ case 403:
662
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
663
+ case 404:
664
+ throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
665
+ case 409:
666
+ throw new Schedulin.ConflictError(_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);
543
671
  case 500:
544
672
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
545
673
  default:
@@ -558,7 +686,11 @@ class MediaClient {
558
686
  *
559
687
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
560
688
  *
689
+ * @throws {@link Schedulin.BadRequestError}
561
690
  * @throws {@link Schedulin.UnauthorizedError}
691
+ * @throws {@link Schedulin.ForbiddenError}
692
+ * @throws {@link Schedulin.UnprocessableEntityError}
693
+ * @throws {@link Schedulin.TooManyRequestsError}
562
694
  * @throws {@link Schedulin.InternalServerError}
563
695
  * @throws {@link errors.SchedulinError}
564
696
  * @throws {@link errors.SchedulinTimeoutError}
@@ -590,8 +722,16 @@ class MediaClient {
590
722
  }
591
723
  if (_response.error.reason === "status-code") {
592
724
  switch (_response.error.statusCode) {
725
+ case 400:
726
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
593
727
  case 401:
594
728
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
729
+ case 403:
730
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
731
+ case 422:
732
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
733
+ case 429:
734
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
595
735
  case 500:
596
736
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
597
737
  default:
@@ -611,7 +751,12 @@ class MediaClient {
611
751
  * @param {Schedulin.CreatePresignedPost} request
612
752
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
613
753
  *
754
+ * @throws {@link Schedulin.BadRequestError}
614
755
  * @throws {@link Schedulin.UnauthorizedError}
756
+ * @throws {@link Schedulin.ForbiddenError}
757
+ * @throws {@link Schedulin.ConflictError}
758
+ * @throws {@link Schedulin.UnprocessableEntityError}
759
+ * @throws {@link Schedulin.TooManyRequestsError}
615
760
  * @throws {@link Schedulin.InternalServerError}
616
761
  * @throws {@link errors.SchedulinError}
617
762
  * @throws {@link errors.SchedulinTimeoutError}
@@ -649,8 +794,18 @@ class MediaClient {
649
794
  }
650
795
  if (_response.error.reason === "status-code") {
651
796
  switch (_response.error.statusCode) {
797
+ case 400:
798
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
652
799
  case 401:
653
800
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
801
+ case 403:
802
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
803
+ case 409:
804
+ throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
805
+ case 422:
806
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
807
+ case 429:
808
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
654
809
  case 500:
655
810
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
656
811
  default:
@@ -1,13 +1,12 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * id: "id",
5
- * url: "url"
4
+ * id: "id"
6
5
  * }
7
6
  */
8
7
  export interface UpdateMediaRequest {
9
8
  id: string;
10
- url: string;
9
+ url?: string;
11
10
  mimeType?: string;
12
11
  width?: number;
13
12
  height?: number;
@@ -0,0 +1,4 @@
1
+ export interface CreateUploadLinkMediaResponse {
2
+ url: string;
3
+ expiresAt: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface DeleteMediaResponse {
2
+ id: string;
3
+ deleted: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SetTagsMediaResponse {
2
+ mediaId: string;
3
+ tagIds: string[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  export * from "./CountByTagMediaResponse.js";
2
+ export * from "./CreateUploadLinkMediaResponse.js";
3
+ export * from "./DeleteMediaResponse.js";
2
4
  export * from "./ListMediaRequestTagMode.js";
3
5
  export * from "./ListMediaRequestType.js";
4
6
  export * from "./ListMediaResponse.js";
7
+ export * from "./SetTagsMediaResponse.js";
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CountByTagMediaResponse.js"), exports);
18
+ __exportStar(require("./CreateUploadLinkMediaResponse.js"), exports);
19
+ __exportStar(require("./DeleteMediaResponse.js"), exports);
18
20
  __exportStar(require("./ListMediaRequestTagMode.js"), exports);
19
21
  __exportStar(require("./ListMediaRequestType.js"), exports);
20
22
  __exportStar(require("./ListMediaResponse.js"), exports);
23
+ __exportStar(require("./SetTagsMediaResponse.js"), exports);
@@ -15,7 +15,11 @@ export declare class PlatformsClient {
15
15
  *
16
16
  * @param {PlatformsClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
18
+ * @throws {@link Schedulin.BadRequestError}
18
19
  * @throws {@link Schedulin.UnauthorizedError}
20
+ * @throws {@link Schedulin.ForbiddenError}
21
+ * @throws {@link Schedulin.UnprocessableEntityError}
22
+ * @throws {@link Schedulin.TooManyRequestsError}
19
23
  * @throws {@link Schedulin.InternalServerError}
20
24
  * @throws {@link errors.SchedulinError}
21
25
  * @throws {@link errors.SchedulinTimeoutError}
@@ -60,7 +60,11 @@ class PlatformsClient {
60
60
  *
61
61
  * @param {PlatformsClient.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
63
+ * @throws {@link Schedulin.BadRequestError}
63
64
  * @throws {@link Schedulin.UnauthorizedError}
65
+ * @throws {@link Schedulin.ForbiddenError}
66
+ * @throws {@link Schedulin.UnprocessableEntityError}
67
+ * @throws {@link Schedulin.TooManyRequestsError}
64
68
  * @throws {@link Schedulin.InternalServerError}
65
69
  * @throws {@link errors.SchedulinError}
66
70
  * @throws {@link errors.SchedulinTimeoutError}
@@ -92,8 +96,16 @@ class PlatformsClient {
92
96
  }
93
97
  if (_response.error.reason === "status-code") {
94
98
  switch (_response.error.statusCode) {
99
+ case 400:
100
+ throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
95
101
  case 401:
96
102
  throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
103
+ case 403:
104
+ throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
105
+ case 422:
106
+ throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
107
+ case 429:
108
+ throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
97
109
  case 500:
98
110
  throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
99
111
  default: