@connectedxm/admin-sdk 13.5.0 → 13.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api.ts +146 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +81 -1
- package/dist/api.js +116 -22
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +81 -1
- package/dist/esm/api.js +95 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/GetStreamSessionViewers200Response.md +26 -0
- package/docs/StreamSessionViewer.md +26 -0
- package/docs/StreamsSessionsApi.md +64 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 13.
|
|
7
|
+
* The version of the OpenAPI document: 13.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2010,6 +2010,10 @@ export var GetStreamSessionByIdSubscriptions200ResponseStatusEnum;
|
|
|
2010
2010
|
(function (GetStreamSessionByIdSubscriptions200ResponseStatusEnum) {
|
|
2011
2011
|
GetStreamSessionByIdSubscriptions200ResponseStatusEnum["Ok"] = "ok";
|
|
2012
2012
|
})(GetStreamSessionByIdSubscriptions200ResponseStatusEnum || (GetStreamSessionByIdSubscriptions200ResponseStatusEnum = {}));
|
|
2013
|
+
export var GetStreamSessionViewers200ResponseStatusEnum;
|
|
2014
|
+
(function (GetStreamSessionViewers200ResponseStatusEnum) {
|
|
2015
|
+
GetStreamSessionViewers200ResponseStatusEnum["Ok"] = "ok";
|
|
2016
|
+
})(GetStreamSessionViewers200ResponseStatusEnum || (GetStreamSessionViewers200ResponseStatusEnum = {}));
|
|
2013
2017
|
export var GetStreamVideos200ResponseStatusEnum;
|
|
2014
2018
|
(function (GetStreamVideos200ResponseStatusEnum) {
|
|
2015
2019
|
GetStreamVideos200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -107181,6 +107185,56 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration) {
|
|
|
107181
107185
|
options: localVarRequestOptions,
|
|
107182
107186
|
};
|
|
107183
107187
|
}),
|
|
107188
|
+
/**
|
|
107189
|
+
* Returns a paginated list of the accounts currently watching the given stream session, one row per account with how many active connections it holds and when its earliest one connected; the count is the number of people watching, where the subscriptions list counts connections. Requires read permission on streams.
|
|
107190
|
+
* @summary List the people watching a stream session
|
|
107191
|
+
* @param {string} sessionId The session identifier
|
|
107192
|
+
* @param {number} [page] Page number
|
|
107193
|
+
* @param {number} [pageSize] Number of items per page
|
|
107194
|
+
* @param {string} [orderBy] Field to order by
|
|
107195
|
+
* @param {string} [search] Search query
|
|
107196
|
+
* @param {*} [options] Override http request option.
|
|
107197
|
+
* @throws {RequiredError}
|
|
107198
|
+
*/
|
|
107199
|
+
getStreamSessionViewers: (sessionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [sessionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (sessionId, page, pageSize, orderBy, search, options = {}) {
|
|
107200
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
107201
|
+
assertParamExists('getStreamSessionViewers', 'sessionId', sessionId);
|
|
107202
|
+
const localVarPath = `/streams/sessions/{sessionId}/viewers`
|
|
107203
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
107204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107205
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107206
|
+
let baseOptions;
|
|
107207
|
+
if (configuration) {
|
|
107208
|
+
baseOptions = configuration.baseOptions;
|
|
107209
|
+
}
|
|
107210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
107211
|
+
const localVarHeaderParameter = {};
|
|
107212
|
+
const localVarQueryParameter = {};
|
|
107213
|
+
// authentication ApiKeyAuth required
|
|
107214
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
107215
|
+
// authentication OrganizationId required
|
|
107216
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
107217
|
+
if (page !== undefined) {
|
|
107218
|
+
localVarQueryParameter['page'] = page;
|
|
107219
|
+
}
|
|
107220
|
+
if (pageSize !== undefined) {
|
|
107221
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
107222
|
+
}
|
|
107223
|
+
if (orderBy !== undefined) {
|
|
107224
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
107225
|
+
}
|
|
107226
|
+
if (search !== undefined) {
|
|
107227
|
+
localVarQueryParameter['search'] = search;
|
|
107228
|
+
}
|
|
107229
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
107230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
107233
|
+
return {
|
|
107234
|
+
url: toPathString(localVarUrlObj),
|
|
107235
|
+
options: localVarRequestOptions,
|
|
107236
|
+
};
|
|
107237
|
+
}),
|
|
107184
107238
|
/**
|
|
107185
107239
|
* Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
|
|
107186
107240
|
* @summary List a stream\'s broadcast sessions
|
|
@@ -107464,6 +107518,26 @@ export const StreamsSessionsApiFp = function (configuration) {
|
|
|
107464
107518
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
107465
107519
|
});
|
|
107466
107520
|
},
|
|
107521
|
+
/**
|
|
107522
|
+
* Returns a paginated list of the accounts currently watching the given stream session, one row per account with how many active connections it holds and when its earliest one connected; the count is the number of people watching, where the subscriptions list counts connections. Requires read permission on streams.
|
|
107523
|
+
* @summary List the people watching a stream session
|
|
107524
|
+
* @param {string} sessionId The session identifier
|
|
107525
|
+
* @param {number} [page] Page number
|
|
107526
|
+
* @param {number} [pageSize] Number of items per page
|
|
107527
|
+
* @param {string} [orderBy] Field to order by
|
|
107528
|
+
* @param {string} [search] Search query
|
|
107529
|
+
* @param {*} [options] Override http request option.
|
|
107530
|
+
* @throws {RequiredError}
|
|
107531
|
+
*/
|
|
107532
|
+
getStreamSessionViewers(sessionId, page, pageSize, orderBy, search, options) {
|
|
107533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107534
|
+
var _a, _b, _c;
|
|
107535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStreamSessionViewers(sessionId, page, pageSize, orderBy, search, options);
|
|
107536
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
107537
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StreamsSessionsApi.getStreamSessionViewers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
107538
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
107539
|
+
});
|
|
107540
|
+
},
|
|
107467
107541
|
/**
|
|
107468
107542
|
* Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
|
|
107469
107543
|
* @summary List a stream\'s broadcast sessions
|
|
@@ -107610,6 +107684,16 @@ export const StreamsSessionsApiFactory = function (configuration, basePath, axio
|
|
|
107610
107684
|
getStreamSessionSubscriptions(requestParameters, options) {
|
|
107611
107685
|
return localVarFp.getStreamSessionSubscriptions(requestParameters.streamId, requestParameters.sessionId, requestParameters.active, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
107612
107686
|
},
|
|
107687
|
+
/**
|
|
107688
|
+
* Returns a paginated list of the accounts currently watching the given stream session, one row per account with how many active connections it holds and when its earliest one connected; the count is the number of people watching, where the subscriptions list counts connections. Requires read permission on streams.
|
|
107689
|
+
* @summary List the people watching a stream session
|
|
107690
|
+
* @param {StreamsSessionsApiGetStreamSessionViewersRequest} requestParameters Request parameters.
|
|
107691
|
+
* @param {*} [options] Override http request option.
|
|
107692
|
+
* @throws {RequiredError}
|
|
107693
|
+
*/
|
|
107694
|
+
getStreamSessionViewers(requestParameters, options) {
|
|
107695
|
+
return localVarFp.getStreamSessionViewers(requestParameters.sessionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
107696
|
+
},
|
|
107613
107697
|
/**
|
|
107614
107698
|
* Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
|
|
107615
107699
|
* @summary List a stream\'s broadcast sessions
|
|
@@ -107736,6 +107820,16 @@ export class StreamsSessionsApi extends BaseAPI {
|
|
|
107736
107820
|
getStreamSessionSubscriptions(requestParameters, options) {
|
|
107737
107821
|
return StreamsSessionsApiFp(this.configuration).getStreamSessionSubscriptions(requestParameters.streamId, requestParameters.sessionId, requestParameters.active, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
107738
107822
|
}
|
|
107823
|
+
/**
|
|
107824
|
+
* Returns a paginated list of the accounts currently watching the given stream session, one row per account with how many active connections it holds and when its earliest one connected; the count is the number of people watching, where the subscriptions list counts connections. Requires read permission on streams.
|
|
107825
|
+
* @summary List the people watching a stream session
|
|
107826
|
+
* @param {StreamsSessionsApiGetStreamSessionViewersRequest} requestParameters Request parameters.
|
|
107827
|
+
* @param {*} [options] Override http request option.
|
|
107828
|
+
* @throws {RequiredError}
|
|
107829
|
+
*/
|
|
107830
|
+
getStreamSessionViewers(requestParameters, options) {
|
|
107831
|
+
return StreamsSessionsApiFp(this.configuration).getStreamSessionViewers(requestParameters.sessionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
107832
|
+
}
|
|
107739
107833
|
/**
|
|
107740
107834
|
* Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
|
|
107741
107835
|
* @summary List a stream\'s broadcast sessions
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 13.
|
|
5
|
+
* The version of the OpenAPI document: 13.7.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 13.
|
|
7
|
+
* The version of the OpenAPI document: 13.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 13.
|
|
5
|
+
* The version of the OpenAPI document: 13.7.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 13.
|
|
7
|
+
* The version of the OpenAPI document: 13.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 13.
|
|
5
|
+
* The version of the OpenAPI document: 13.7.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Connected Admin API
|
|
4
4
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 13.
|
|
6
|
+
* The version of the OpenAPI document: 13.7.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GetStreamSessionViewers200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
**data** | [**Array<StreamSessionViewer>**](StreamSessionViewer.md) | | [default to undefined]
|
|
11
|
+
**count** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GetStreamSessionViewers200Response } from '@connectedxm/admin-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GetStreamSessionViewers200Response = {
|
|
19
|
+
status,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
count,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# StreamSessionViewer
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**accountId** | **string** | | [default to undefined]
|
|
9
|
+
**account** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
|
|
10
|
+
**activeConnections** | **number** | | [default to undefined]
|
|
11
|
+
**connectedAt** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { StreamSessionViewer } from '@connectedxm/admin-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: StreamSessionViewer = {
|
|
19
|
+
accountId,
|
|
20
|
+
account,
|
|
21
|
+
activeConnections,
|
|
22
|
+
connectedAt,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -14,6 +14,7 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
14
14
|
|[**getStreamSessionByIdSubscriptions**](#getstreamsessionbyidsubscriptions) | **GET** /streams/sessions/{sessionId}/subscriptions | List a stream session\'s viewer connections by session id|
|
|
15
15
|
|[**getStreamSessionChat**](#getstreamsessionchat) | **GET** /streams/{streamId}/sessions/{sessionId}/chat | List a stream session\'s chat messages|
|
|
16
16
|
|[**getStreamSessionSubscriptions**](#getstreamsessionsubscriptions) | **GET** /streams/{streamId}/sessions/{sessionId}/subscriptions | List a stream session\'s viewer connections|
|
|
17
|
+
|[**getStreamSessionViewers**](#getstreamsessionviewers) | **GET** /streams/sessions/{sessionId}/viewers | List the people watching a stream session|
|
|
17
18
|
|[**getStreamSessions**](#getstreamsessions) | **GET** /streams/{streamId}/sessions | List a stream\'s broadcast sessions|
|
|
18
19
|
|[**updateStreamSession**](#updatestreamsession) | **PUT** /streams/sessions/{sessionId} | Update a stream session|
|
|
19
20
|
|
|
@@ -586,6 +587,69 @@ const { status, data } = await apiInstance.getStreamSessionSubscriptions(
|
|
|
586
587
|
- **Accept**: application/json
|
|
587
588
|
|
|
588
589
|
|
|
590
|
+
### HTTP response details
|
|
591
|
+
| Status code | Description | Response headers |
|
|
592
|
+
|-------------|-------------|------------------|
|
|
593
|
+
|**200** | Successful response | - |
|
|
594
|
+
|
|
595
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
596
|
+
|
|
597
|
+
# **getStreamSessionViewers**
|
|
598
|
+
> GetStreamSessionViewers200Response getStreamSessionViewers()
|
|
599
|
+
|
|
600
|
+
Returns a paginated list of the accounts currently watching the given stream session, one row per account with how many active connections it holds and when its earliest one connected; the count is the number of people watching, where the subscriptions list counts connections. Requires read permission on streams.
|
|
601
|
+
|
|
602
|
+
### Example
|
|
603
|
+
|
|
604
|
+
```typescript
|
|
605
|
+
import {
|
|
606
|
+
StreamsSessionsApi,
|
|
607
|
+
Configuration
|
|
608
|
+
} from '@connectedxm/admin-sdk';
|
|
609
|
+
|
|
610
|
+
const configuration = new Configuration();
|
|
611
|
+
const apiInstance = new StreamsSessionsApi(configuration);
|
|
612
|
+
|
|
613
|
+
let sessionId: string; //The session identifier (default to undefined)
|
|
614
|
+
let page: number; //Page number (optional) (default to 1)
|
|
615
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
616
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
617
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
618
|
+
|
|
619
|
+
const { status, data } = await apiInstance.getStreamSessionViewers(
|
|
620
|
+
sessionId,
|
|
621
|
+
page,
|
|
622
|
+
pageSize,
|
|
623
|
+
orderBy,
|
|
624
|
+
search
|
|
625
|
+
);
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
### Parameters
|
|
629
|
+
|
|
630
|
+
|Name | Type | Description | Notes|
|
|
631
|
+
|------------- | ------------- | ------------- | -------------|
|
|
632
|
+
| **sessionId** | [**string**] | The session identifier | defaults to undefined|
|
|
633
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
634
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
635
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
636
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
### Return type
|
|
640
|
+
|
|
641
|
+
**GetStreamSessionViewers200Response**
|
|
642
|
+
|
|
643
|
+
### Authorization
|
|
644
|
+
|
|
645
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
646
|
+
|
|
647
|
+
### HTTP request headers
|
|
648
|
+
|
|
649
|
+
- **Content-Type**: Not defined
|
|
650
|
+
- **Accept**: application/json
|
|
651
|
+
|
|
652
|
+
|
|
589
653
|
### HTTP response details
|
|
590
654
|
| Status code | Description | Response headers |
|
|
591
655
|
|-------------|-------------|------------------|
|