mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-09 12:27:49 +00:00
ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.378.0
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Uploads
|
||||
(*uploads*)
|
||||
|
||||
## Overview
|
||||
|
||||
### Available Operations
|
||||
|
||||
* [abortMultipart](#abortmultipart) - Abort multipart upload
|
||||
@@ -46,7 +48,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -86,16 +87,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.AbortMultipartResponseBody](../../sdk/models/operations/abortmultipartresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## batchPresignMultipartParts
|
||||
|
||||
Multipart uploads are uploaded in chunks or parts to individual presigned
|
||||
@@ -145,7 +147,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -190,16 +191,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.BatchPresignMultipartPartsResponseBody](../../sdk/models/operations/batchpresignmultipartpartsresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## completeExternalUpload
|
||||
|
||||
Completes an external upload initialized with /get-presigned-put. The
|
||||
@@ -243,7 +245,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -286,16 +287,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.CompleteExternalUploadResponseBody](../../sdk/models/operations/completeexternaluploadresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## completeMultipart
|
||||
|
||||
Completes the multipart upload in the external store, and copies the
|
||||
@@ -343,7 +345,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -393,16 +394,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.CompleteMultipartResponseBody](../../sdk/models/operations/completemultipartresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## createMultipartUpload
|
||||
|
||||
Creates a multipart upload in the external storage provider, storing
|
||||
@@ -439,7 +441,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -481,16 +482,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.CreateMultipartUploadResponseBody](../../sdk/models/operations/createmultipartuploadresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## createUpload
|
||||
|
||||
Creates an upload
|
||||
@@ -512,7 +514,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -550,16 +551,17 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.CreateUploadResponseBody](../../sdk/models/operations/createuploadresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
|
||||
## generatePresignedPut
|
||||
|
||||
Direct external uploads bypass the usual method of creating uploads
|
||||
@@ -605,7 +607,6 @@ async function run() {
|
||||
run();
|
||||
```
|
||||
|
||||
|
||||
### Standalone function
|
||||
|
||||
The standalone function version of this method:
|
||||
@@ -647,10 +648,10 @@ run();
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise\<[operations.GeneratePresignedPutResponseBody](../../sdk/models/operations/generatepresignedputresponsebody.md)\>**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
|
||||
Reference in New Issue
Block a user