|
1 | | -import { type HttpMetaParams } from "../../../interfaces/index.js"; |
| 1 | +import { |
| 2 | + type HttpMetaParams, |
| 3 | + type HttpResponse, |
| 4 | +} from "../../../interfaces/index.js"; |
2 | 5 | import { |
3 | 6 | type Account, |
4 | 7 | type Context, |
@@ -288,14 +291,26 @@ export interface StatusesResource { |
288 | 291 | * @return Status. When scheduled_at is present, ScheduledStatus is returned instead. |
289 | 292 | * @see https://docs.joinmastodon.org/api/rest/statuses/#post-api-v1-statuses |
290 | 293 | */ |
291 | | - create( |
292 | | - params: CreateStatusParams, |
293 | | - meta?: HttpMetaParams<"json">, |
294 | | - ): Promise<Status>; |
295 | | - create( |
296 | | - params: CreateScheduledStatusParams, |
297 | | - meta?: HttpMetaParams<"json">, |
298 | | - ): Promise<ScheduledStatus>; |
| 294 | + create: { |
| 295 | + ( |
| 296 | + params: CreateStatusParams, |
| 297 | + meta?: HttpMetaParams<"json">, |
| 298 | + ): Promise<Status>; |
| 299 | + ( |
| 300 | + params: CreateScheduledStatusParams, |
| 301 | + meta?: HttpMetaParams<"json">, |
| 302 | + ): Promise<ScheduledStatus>; |
| 303 | + /** @experimental */ |
| 304 | + $raw( |
| 305 | + params: CreateStatusParams, |
| 306 | + meta?: HttpMetaParams<"json">, |
| 307 | + ): Promise<HttpResponse<Status>>; |
| 308 | + /** @experimental */ |
| 309 | + $raw( |
| 310 | + params: CreateScheduledStatusParams, |
| 311 | + meta?: HttpMetaParams<"json">, |
| 312 | + ): Promise<HttpResponse<ScheduledStatus>>; |
| 313 | + }; |
299 | 314 | } |
300 | 315 |
|
301 | 316 | /** @deprecated Use `StatusesResource` instead. */ |
|
0 commit comments