Skip to content

Commit

Permalink
[DO NOT MERGE] Add Watch Data endpoints to OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Jun 4, 2024
1 parent d530d2f commit 57a94bf
Show file tree
Hide file tree
Showing 45 changed files with 621 additions and 828 deletions.
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ const ApiVideoClient = require('@api.video/nodejs-client');

Method | Description | HTTP request
------------- | ------------- | -------------
[**getLiveStreamsPlays()**](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/api/AnalyticsApi.md#getLiveStreamsPlays) | Get play events for live stream | **GET** /analytics/live-streams/plays
[**getVideosPlays()**](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/api/AnalyticsApi.md#getVideosPlays) | Get play events for video | **GET** /analytics/videos/plays
**(deprecated)** [**getLiveStreamsPlays()**](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/api/AnalyticsApi.md#getLiveStreamsPlays) | Get play events for live stream | **GET** /analytics/live-streams/plays
**(deprecated)** [**getVideosPlays()**](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/api/AnalyticsApi.md#getVideosPlays) | Get play events for video | **GET** /analytics/videos/plays


#### CaptionsApi
Expand Down Expand Up @@ -209,7 +209,16 @@ Method | Description | HTTP request

- [AccessToken](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AccessToken.md)
- [AdditionalBadRequestErrors](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AdditionalBadRequestErrors.md)
- [AnalyticsAggregatedMetricsResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsAggregatedMetricsResponse.md)
- [AnalyticsAggregatedMetricsResponseContext](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsAggregatedMetricsResponseContext.md)
- [AnalyticsAggregatedMetricsResponseContextTimeframe](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsAggregatedMetricsResponseContextTimeframe.md)
- [AnalyticsData](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsData.md)
- [AnalyticsMetricsBreakdownResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsBreakdownResponse.md)
- [AnalyticsMetricsBreakdownResponseContext](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsBreakdownResponseContext.md)
- [AnalyticsMetricsBreakdownResponseData](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsBreakdownResponseData.md)
- [AnalyticsMetricsOverTimeResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsOverTimeResponse.md)
- [AnalyticsMetricsOverTimeResponseContext](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsOverTimeResponseContext.md)
- [AnalyticsMetricsOverTimeResponseData](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsMetricsOverTimeResponseData.md)
- [AnalyticsPlays400Error](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsPlays400Error.md)
- [AnalyticsPlaysResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AnalyticsPlaysResponse.md)
- [AuthenticatePayload](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/AuthenticatePayload.md)
Expand All @@ -225,12 +234,6 @@ Method | Description | HTTP request
- [LiveStreamAssets](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamAssets.md)
- [LiveStreamCreationPayload](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamCreationPayload.md)
- [LiveStreamListResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamListResponse.md)
- [LiveStreamSession](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSession.md)
- [LiveStreamSessionClient](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSessionClient.md)
- [LiveStreamSessionDevice](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSessionDevice.md)
- [LiveStreamSessionLocation](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSessionLocation.md)
- [LiveStreamSessionReferrer](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSessionReferrer.md)
- [LiveStreamSessionSession](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamSessionSession.md)
- [LiveStreamUpdatePayload](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/LiveStreamUpdatePayload.md)
- [Metadata](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/Metadata.md)
- [Model403ErrorSchema](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/Model403ErrorSchema.md)
Expand All @@ -250,18 +253,12 @@ Method | Description | HTTP request
- [TokenCreationPayload](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/TokenCreationPayload.md)
- [TokenListResponse](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/TokenListResponse.md)
- [TooManyRequests](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/TooManyRequests.md)
- [UnrecognizedRequestUrl](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/UnrecognizedRequestUrl.md)
- [UploadToken](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/UploadToken.md)
- [Video](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/Video.md)
- [VideoAssets](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoAssets.md)
- [VideoClip](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoClip.md)
- [VideoCreationPayload](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoCreationPayload.md)
- [VideoSession](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSession.md)
- [VideoSessionClient](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionClient.md)
- [VideoSessionDevice](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionDevice.md)
- [VideoSessionLocation](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionLocation.md)
- [VideoSessionOs](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionOs.md)
- [VideoSessionReferrer](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionReferrer.md)
- [VideoSessionSession](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSessionSession.md)
- [VideoSource](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSource.md)
- [VideoSourceLiveStream](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSourceLiveStream.md)
- [VideoSourceLiveStreamLink](https://github.com/apivideo/api.video-nodejs-client/blob/main/docs/model/VideoSourceLiveStreamLink.md)
Expand Down
12 changes: 12 additions & 0 deletions docs/api/AnalyticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ All URIs are relative to *https://ws.api.video*

Retrieve filtered analytics about the number of plays for your live streams in a project.



This endpoint will be deprecated with the release of Analytics v2.0.



### Parameters

| Name | Type | Required | Description |
Expand Down Expand Up @@ -41,6 +47,12 @@ Promise<[**AnalyticsPlaysResponse**](../model/AnalyticsPlaysResponse.md)>.

Retrieve filtered analytics about the number of plays for your videos in a project.



This endpoint will be deprecated with the release of Analytics v2.0.



### Parameters

| Name | Type | Required | Description |
Expand Down
13 changes: 13 additions & 0 deletions docs/model/AnalyticsAggregatedMetricsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# AnalyticsAggregatedMetricsResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | [**AnalyticsAggregatedMetricsResponseContext**](AnalyticsAggregatedMetricsResponseContext.md) | |
**data** | **Array&lt;number&gt;** | |
**pagination** | [**Pagination**](Pagination.md) | |



38 changes: 38 additions & 0 deletions docs/model/AnalyticsAggregatedMetricsResponseContext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

# AnalyticsAggregatedMetricsResponseContext

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**AnalyticsAggregatedMetricsResponseContextMetricEnum**](#AnalyticsAggregatedMetricsResponseContextMetricEnum) | Returns the metric you selected. | [optional]
**aggregation** | [**AnalyticsAggregatedMetricsResponseContextAggregationEnum**](#AnalyticsAggregatedMetricsResponseContextAggregationEnum) | Returns the aggregation you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]



## Enum: AnalyticsAggregatedMetricsResponseContextMetricEnum

Name | Value
---- | -----
Play | &#39;play&#39;
Start | &#39;start&#39;
End | &#39;end&#39;
Impression | &#39;impression&#39;
ImpressionTime | &#39;impression-time&#39;
WatchTime | &#39;watch-time&#39;



## Enum: AnalyticsAggregatedMetricsResponseContextAggregationEnum

Name | Value
---- | -----
Count | &#39;count&#39;
Rate | &#39;rate&#39;
Total | &#39;total&#39;
Average | &#39;average&#39;
Sum | &#39;sum&#39;



13 changes: 13 additions & 0 deletions docs/model/AnalyticsAggregatedMetricsResponseContextTimeframe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# AnalyticsAggregatedMetricsResponseContextTimeframe

Returns the starting and ending date-times of the period you want analytics for.
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**from** | **Date** | Returns the starting date-time of the period you want analytics for in ATOM date-time format. | [optional]
**to** | **Date** | Returns the starting date-time of the period you want analytics for in ATOM date-time format. | [optional]



13 changes: 13 additions & 0 deletions docs/model/AnalyticsMetricsBreakdownResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# AnalyticsMetricsBreakdownResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | [**AnalyticsMetricsBreakdownResponseContext**](AnalyticsMetricsBreakdownResponseContext.md) | |
**data** | [**Array&lt;AnalyticsMetricsBreakdownResponseData&gt;**](AnalyticsMetricsBreakdownResponseData.md) | Returns an array of dimensions and their respective metrics. |
**pagination** | [**Pagination**](Pagination.md) | |



39 changes: 39 additions & 0 deletions docs/model/AnalyticsMetricsBreakdownResponseContext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

# AnalyticsMetricsBreakdownResponseContext

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**AnalyticsMetricsBreakdownResponseContextMetricEnum**](#AnalyticsMetricsBreakdownResponseContextMetricEnum) | Returns the metric you selected. | [optional]
**breakdown** | [**AnalyticsMetricsBreakdownResponseContextBreakdownEnum**](#AnalyticsMetricsBreakdownResponseContextBreakdownEnum) | Returns the dimension you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]



## Enum: AnalyticsMetricsBreakdownResponseContextMetricEnum

Name | Value
---- | -----
Play | &#39;play&#39;
PlayRate | &#39;play-rate&#39;
Start | &#39;start&#39;
End | &#39;end&#39;
Impression | &#39;impression&#39;



## Enum: AnalyticsMetricsBreakdownResponseContextBreakdownEnum

Name | Value
---- | -----
MediaId | &#39;media-id&#39;
MediaType | &#39;media-type&#39;
Continent | &#39;continent&#39;
Country | &#39;country&#39;
DeviceType | &#39;device-type&#39;
OperatingSystem | &#39;operating-system&#39;
Browser | &#39;browser&#39;



12 changes: 12 additions & 0 deletions docs/model/AnalyticsMetricsBreakdownResponseData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# AnalyticsMetricsBreakdownResponseData

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dimensionValue** | **string** | Returns a specific value for the dimension you selected, based on the data. For example if you select &#x60;continent&#x60; as a dimension, then &#x60;dimensionValue&#x60; returns values like &#x60;EU&#x60; or \&quot;AZ\&quot;. | [optional]
**metricValue** | **number** | Returns the data for a specific dimension value. | [optional]



13 changes: 13 additions & 0 deletions docs/model/AnalyticsMetricsOverTimeResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# AnalyticsMetricsOverTimeResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | [**AnalyticsMetricsOverTimeResponseContext**](AnalyticsMetricsOverTimeResponseContext.md) | |
**data** | [**Array&lt;AnalyticsMetricsOverTimeResponseData&gt;**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps . |
**pagination** | [**Pagination**](Pagination.md) | |



34 changes: 34 additions & 0 deletions docs/model/AnalyticsMetricsOverTimeResponseContext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# AnalyticsMetricsOverTimeResponseContext

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**AnalyticsMetricsOverTimeResponseContextMetricEnum**](#AnalyticsMetricsOverTimeResponseContextMetricEnum) | Returns the metric you selected. | [optional]
**interval** | [**AnalyticsMetricsOverTimeResponseContextIntervalEnum**](#AnalyticsMetricsOverTimeResponseContextIntervalEnum) | Returns the interval you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]



## Enum: AnalyticsMetricsOverTimeResponseContextMetricEnum

Name | Value
---- | -----
Play | &#39;play&#39;
PlayRate | &#39;play-rate&#39;
Start | &#39;start&#39;
End | &#39;end&#39;
Impression | &#39;impression&#39;



## Enum: AnalyticsMetricsOverTimeResponseContextIntervalEnum

Name | Value
---- | -----
Hour | &#39;hour&#39;
Day | &#39;day&#39;



12 changes: 12 additions & 0 deletions docs/model/AnalyticsMetricsOverTimeResponseData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# AnalyticsMetricsOverTimeResponseData

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emittedAt** | **string** | Returns the timestamp of the event that belongs to a specific metric in ATOM date-time format. For example, if you set &#x60;play&#x60; with an &#x60;hour&#x60; interval in your request, then &#x60;emittedAt&#x60; returns the hourly timestamps of every play event within the timeframe you defined. | [optional]
**metricValue** | **number** | Returns the data for a specific metric value. | [optional]



16 changes: 0 additions & 16 deletions docs/model/LiveStreamSession.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/model/LiveStreamSessionClient.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/model/LiveStreamSessionDevice.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/model/LiveStreamSessionLocation.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/model/LiveStreamSessionReferrer.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/model/LiveStreamSessionSession.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/model/UnrecognizedRequestUrl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# UnrecognizedRequestUrl

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **string** | A link to the error documentation. | [optional]
**title** | **string** | A description of the error that occurred. | [optional]
**status** | **number** | The HTTP status code. | [optional]



Loading

0 comments on commit 57a94bf

Please sign in to comment.