|
| 1 | +# SummariesApi |
| 2 | + |
| 3 | +All URIs are relative to *https://ws.api.video* |
| 4 | + |
| 5 | +| Method | Description | HTTP request | |
| 6 | +| ------------- | ------------- | ------------- | |
| 7 | +| [**create()**](SummariesApi.md#create) | Generate video summary | **POST** /summaries | |
| 8 | +| [**update()**](SummariesApi.md#update) | Update summary details | **PATCH** /summaries/{summaryId}/source | |
| 9 | +| [**delete()**](SummariesApi.md#delete) | Delete video summary | **DELETE** /summaries/{summaryId} | |
| 10 | +| [**list()**](SummariesApi.md#list) | List summaries | **GET** /summaries | |
| 11 | +| [**getSummarySource()**](SummariesApi.md#getSummarySource) | Get summary details | **GET** /summaries/{summaryId}/source | |
| 12 | + |
| 13 | + |
| 14 | +<a name="create"></a> |
| 15 | +## **`create()` - Generate video summary** |
| 16 | + |
| 17 | + |
| 18 | +Generate a title, abstract, and key takeaways for a video. |
| 19 | + |
| 20 | +### Parameters |
| 21 | + |
| 22 | +| Name | Type | Required | Description | |
| 23 | +| ------------- | ------------- | ------------- | ------------- | |
| 24 | + | **summaryCreationPayload** | [**SummaryCreationPayload**](../model/SummaryCreationPayload.md)| **yes**| | |
| 25 | + |
| 26 | + |
| 27 | +### Return type |
| 28 | + |
| 29 | +Promise<[**Summary**](../model/Summary.md)>. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +<a name="update"></a> |
| 37 | +## **`update()` - Update summary details** |
| 38 | + |
| 39 | + |
| 40 | +Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`. |
| 41 | + |
| 42 | +### Parameters |
| 43 | + |
| 44 | +| Name | Type | Required | Description | |
| 45 | +| ------------- | ------------- | ------------- | ------------- | |
| 46 | + | **summaryId** | **string**| **yes**| The unique identifier of the summary source you want to update. | |
| 47 | + | **summaryUpdatePayload** | [**SummaryUpdatePayload**](../model/SummaryUpdatePayload.md)| **yes**| | |
| 48 | + |
| 49 | + |
| 50 | +### Return type |
| 51 | + |
| 52 | +Promise<[**SummarySource**](../model/SummarySource.md)>. |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +<a name="delete"></a> |
| 60 | +## **`delete()` - Delete video summary** |
| 61 | + |
| 62 | + |
| 63 | +Delete a summary tied to a video. |
| 64 | + |
| 65 | +### Parameters |
| 66 | + |
| 67 | +| Name | Type | Required | Description | |
| 68 | +| ------------- | ------------- | ------------- | ------------- | |
| 69 | + | **summaryId** | **string**| **yes**| The unique identifier of the summary you want to delete. | |
| 70 | + |
| 71 | + |
| 72 | +### Return type |
| 73 | + |
| 74 | +Promise<[**void**](../model/.md)>. |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +<a name="list"></a> |
| 82 | +## **`list()` - List summaries** |
| 83 | + |
| 84 | + |
| 85 | +List all summarries for your videos in a project. |
| 86 | + |
| 87 | +### Parameters |
| 88 | + |
| 89 | +| Name | Type | Required | Description | |
| 90 | +| ------------- | ------------- | ------------- | ------------- | |
| 91 | + | **videoId** | **string**| no| Use this parameter to filter for a summary that belongs to a specific video. | |
| 92 | + | **origin** | **'auto' \| 'api'**| no| Use this parameter to filter for summaries based on the way they were created: automatically or manually via the API. | |
| 93 | + | **sourceStatus** | **'missing' \| 'waiting' \| 'failed' \| 'completed' \| 'unprocessable'**| no| Use this parameter to filter for summaries based on the current status of the summary source. These are the available statuses: `missing`: the input for a summary is not present. `waiting` : the input video is being processed and a summary will be generated. `failed`: a technical issue prevented summary generation. `completed`: the summary is generated. `unprocessable`: the API rules the source video to be unsuitable for summary generation. An example for this is an input video that has no audio. | |
| 94 | + | **sortBy** | **'createdAt' \| 'updatedAt' \| 'videoId'**| no| Use this parameter to choose which field the API will use to sort the response data. The default is `value`. These are the available fields to sort by: - `createdAt`: Sorts the results based on date and timestamps when summaries were created. - `updatedAt`: Sorts the results based on date and timestamps when summaries were last updated. - `videoId`: Sorts the results based on video IDs. | |
| 95 | + | **sortOrder** | **'asc' \| 'desc'**| no| Use this parameter to sort results. `asc` is ascending and sorts from A to Z. `desc` is descending and sorts from Z to A. | |
| 96 | + | **currentPage** | **number**| no| Choose the number of search results to return per page. Minimum value: 1 | |
| 97 | + | **pageSize** | **number**| no| Results per page. Allowed values 1-100, default is 25. | |
| 98 | + |
| 99 | + |
| 100 | +### Return type |
| 101 | + |
| 102 | +Promise<[**SummariesListResponse**](../model/SummariesListResponse.md)>. |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | +--- |
| 108 | + |
| 109 | +<a name="getSummarySource"></a> |
| 110 | +## **`getSummarySource()` - Get summary details** |
| 111 | + |
| 112 | + |
| 113 | +Get all details for a summary. |
| 114 | + |
| 115 | +### Parameters |
| 116 | + |
| 117 | +| Name | Type | Required | Description | |
| 118 | +| ------------- | ------------- | ------------- | ------------- | |
| 119 | + | **summaryId** | **string**| **yes**| The unique identifier of the summary source you want to retrieve. | |
| 120 | + |
| 121 | + |
| 122 | +### Return type |
| 123 | + |
| 124 | +Promise<[**SummarySource**](../model/SummarySource.md)>. |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | +--- |
| 130 | + |
0 commit comments