-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathuploads.ts
More file actions
32 lines (27 loc) · 808 Bytes
/
uploads.ts
File metadata and controls
32 lines (27 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
export class Uploads extends APIResource {
/**
* Create Session Uploads
*/
create(
id: string,
body: UploadCreateParams,
options?: Core.RequestOptions,
): Core.APIPromise<UploadCreateResponse> {
return this._client.post(
`/v1/sessions/${id}/uploads`,
Core.multipartFormRequestOptions({ body, ...options }),
);
}
}
export interface UploadCreateResponse {
message: string;
}
export interface UploadCreateParams {
file: Core.Uploadable;
}
export declare namespace Uploads {
export { type UploadCreateResponse as UploadCreateResponse, type UploadCreateParams as UploadCreateParams };
}