@@ -29,7 +29,7 @@ await this.createFileUploadSession(
29
29
fileSize: fileSize ,
30
30
folderId: parentFolderId ,
31
31
} satisfies CreateFileUploadSessionRequestBody ,
32
- new CreateFileUploadSessionHeaders ({}) ,
32
+ {} satisfies CreateFileUploadSessionHeadersInput ,
33
33
cancellationToken
34
34
);
35
35
```
@@ -38,7 +38,7 @@ await this.createFileUploadSession(
38
38
39
39
- requestBody ` CreateFileUploadSessionRequestBody `
40
40
- Request body of createFileUploadSession method
41
- - headers ` CreateFileUploadSessionHeaders `
41
+ - headersInput ` CreateFileUploadSessionHeadersInput `
42
42
- Headers of createFileUploadSession method
43
43
- cancellationToken ` undefined | CancellationToken `
44
44
- Token used for request cancellation.
@@ -66,7 +66,7 @@ _Currently we don't have an example for calling `createFileUploadSessionForExist
66
66
- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL ` https://*.app.box.com/files/123 ` the ` file_id ` is ` 123 ` . Example: "12345"
67
67
- requestBody ` CreateFileUploadSessionForExistingFileRequestBody `
68
68
- Request body of createFileUploadSessionForExistingFile method
69
- - headers ` CreateFileUploadSessionForExistingFileHeaders `
69
+ - headersInput ` CreateFileUploadSessionForExistingFileHeadersInput `
70
70
- Headers of createFileUploadSessionForExistingFile method
71
71
- cancellationToken ` undefined | CancellationToken `
72
72
- Token used for request cancellation.
@@ -91,7 +91,7 @@ See the endpoint docs at
91
91
``` ts
92
92
await this .getFileUploadSessionById (
93
93
uploadSessionId ,
94
- new GetFileUploadSessionByIdHeaders ({}) ,
94
+ {} satisfies GetFileUploadSessionByIdHeadersInput ,
95
95
cancellationToken
96
96
);
97
97
```
@@ -100,7 +100,7 @@ await this.getFileUploadSessionById(
100
100
101
101
- uploadSessionId ` string `
102
102
- The ID of the upload session. Example: "D5E3F7A"
103
- - headers ` GetFileUploadSessionByIdHeaders `
103
+ - headersInput ` GetFileUploadSessionByIdHeadersInput `
104
104
- Headers of getFileUploadSessionById method
105
105
- cancellationToken ` undefined | CancellationToken `
106
106
- Token used for request cancellation.
@@ -126,7 +126,10 @@ See the endpoint docs at
126
126
await this .uploadFilePart (
127
127
acc .uploadSessionId ,
128
128
generateByteStreamFromBuffer (chunkBuffer ),
129
- new UploadFilePartHeaders ({ digest: digest , contentRange: contentRange })
129
+ {
130
+ digest: digest ,
131
+ contentRange: contentRange ,
132
+ } satisfies UploadFilePartHeadersInput
130
133
);
131
134
```
132
135
@@ -136,7 +139,7 @@ await this.uploadFilePart(
136
139
- The ID of the upload session. Example: "D5E3F7A"
137
140
- requestBody ` ByteStream `
138
141
- Request body of uploadFilePart method
139
- - headers ` UploadFilePartHeaders `
142
+ - headersInput ` UploadFilePartHeadersInput `
140
143
- Headers of uploadFilePart method
141
144
- cancellationToken ` undefined | CancellationToken `
142
145
- Token used for request cancellation.
@@ -164,7 +167,7 @@ _Currently we don't have an example for calling `deleteFileUploadSessionById` in
164
167
165
168
- uploadSessionId ` string `
166
169
- The ID of the upload session. Example: "D5E3F7A"
167
- - headers ` DeleteFileUploadSessionByIdHeaders `
170
+ - headersInput ` DeleteFileUploadSessionByIdHeadersInput `
168
171
- Headers of deleteFileUploadSessionById method
169
172
- cancellationToken ` undefined | CancellationToken `
170
173
- Token used for request cancellation.
@@ -192,7 +195,7 @@ See the endpoint docs at
192
195
await this .getFileUploadSessionParts (
193
196
uploadSessionId ,
194
197
{} satisfies GetFileUploadSessionPartsQueryParams ,
195
- new GetFileUploadSessionPartsHeaders ({}) ,
198
+ {} satisfies GetFileUploadSessionPartsHeadersInput ,
196
199
cancellationToken
197
200
);
198
201
```
@@ -203,7 +206,7 @@ await this.getFileUploadSessionParts(
203
206
- The ID of the upload session. Example: "D5E3F7A"
204
207
- queryParams ` GetFileUploadSessionPartsQueryParams `
205
208
- Query parameters of getFileUploadSessionParts method
206
- - headers ` GetFileUploadSessionPartsHeaders `
209
+ - headersInput ` GetFileUploadSessionPartsHeadersInput `
207
210
- Headers of getFileUploadSessionParts method
208
211
- cancellationToken ` undefined | CancellationToken `
209
212
- Token used for request cancellation.
@@ -230,7 +233,7 @@ See the endpoint docs at
230
233
await this .createFileUploadSessionCommit (
231
234
uploadSessionId ,
232
235
{ parts: parts } satisfies CreateFileUploadSessionCommitRequestBody ,
233
- new CreateFileUploadSessionCommitHeaders ( { digest: digest }) ,
236
+ { digest: digest } satisfies CreateFileUploadSessionCommitHeadersInput ,
234
237
cancellationToken
235
238
);
236
239
```
@@ -241,7 +244,7 @@ await this.createFileUploadSessionCommit(
241
244
- The ID of the upload session. Example: "D5E3F7A"
242
245
- requestBody ` CreateFileUploadSessionCommitRequestBody `
243
246
- Request body of createFileUploadSessionCommit method
244
- - headers ` CreateFileUploadSessionCommitHeaders `
247
+ - headersInput ` CreateFileUploadSessionCommitHeadersInput `
245
248
- Headers of createFileUploadSessionCommit method
246
249
- cancellationToken ` undefined | CancellationToken `
247
250
- Token used for request cancellation.
0 commit comments