@bitmovin/api-sdk 1.265.0 → 1.267.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/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +376 -2
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/AzureInput.d.ts +7 -1
- package/dist/models/AzureInput.js +2 -0
- package/dist/models/AzureOutput.d.ts +7 -1
- package/dist/models/AzureOutput.js +2 -0
- package/dist/models/AzureServicePrincipal.d.ts +33 -0
- package/dist/models/AzureServicePrincipal.js +23 -0
- package/dist/models/PTSAlignMode.d.ts +1 -1
- package/dist/models/PTSAlignMode.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/notifications/webhooks/encoding/encodings/EncodingsApi.d.ts +2 -0
- package/dist/notifications/webhooks/encoding/encodings/EncodingsApi.js +2 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/LiveManifestReadyApi.d.ts +78 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/LiveManifestReadyApi.js +167 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListByEncodingIdQueryParams.d.ts +28 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListByEncodingIdQueryParams.js +29 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListQueryParams.d.ts +28 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListQueryParams.js +29 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/customdata/CustomdataApi.d.ts +27 -0
- package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/customdata/CustomdataApi.js +64 -0
- package/package.json +1 -1
|
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
240
240
|
var headers = {
|
|
241
241
|
'X-Api-Key': apiKey,
|
|
242
242
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
243
|
-
'X-Api-Client-Version': '1.
|
|
243
|
+
'X-Api-Client-Version': '1.267.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import AzureServicePrincipal from './AzureServicePrincipal';
|
|
1
2
|
import Input from './Input';
|
|
2
3
|
import InputType from './InputType';
|
|
3
4
|
/**
|
|
@@ -18,11 +19,16 @@ export declare class AzureInput extends Input {
|
|
|
18
19
|
*/
|
|
19
20
|
accountName?: string;
|
|
20
21
|
/**
|
|
21
|
-
* Azure Account Key
|
|
22
|
+
* Azure Account Key
|
|
22
23
|
* @type {string}
|
|
23
24
|
* @memberof AzureInput
|
|
24
25
|
*/
|
|
25
26
|
accountKey?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @type {AzureServicePrincipal}
|
|
29
|
+
* @memberof AzureInput
|
|
30
|
+
*/
|
|
31
|
+
servicePrincipal?: AzureServicePrincipal;
|
|
26
32
|
/**
|
|
27
33
|
* Name of the bucket (required)
|
|
28
34
|
* @type {string}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.AzureInput = void 0;
|
|
19
19
|
var Mapper_1 = require("../common/Mapper");
|
|
20
|
+
var AzureServicePrincipal_1 = require("./AzureServicePrincipal");
|
|
20
21
|
var Input_1 = require("./Input");
|
|
21
22
|
var InputType_1 = require("./InputType");
|
|
22
23
|
/**
|
|
@@ -38,6 +39,7 @@ var AzureInput = /** @class */ (function (_super) {
|
|
|
38
39
|
}
|
|
39
40
|
_this.accountName = (0, Mapper_1.map)(obj.accountName);
|
|
40
41
|
_this.accountKey = (0, Mapper_1.map)(obj.accountKey);
|
|
42
|
+
_this.servicePrincipal = (0, Mapper_1.map)(obj.servicePrincipal, AzureServicePrincipal_1.default);
|
|
41
43
|
_this.container = (0, Mapper_1.map)(obj.container);
|
|
42
44
|
return _this;
|
|
43
45
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import AzureServicePrincipal from './AzureServicePrincipal';
|
|
1
2
|
import Output from './Output';
|
|
2
3
|
import OutputType from './OutputType';
|
|
3
4
|
/**
|
|
@@ -18,11 +19,16 @@ export declare class AzureOutput extends Output {
|
|
|
18
19
|
*/
|
|
19
20
|
accountName?: string;
|
|
20
21
|
/**
|
|
21
|
-
* Azure Account Key
|
|
22
|
+
* Azure Account Key
|
|
22
23
|
* @type {string}
|
|
23
24
|
* @memberof AzureOutput
|
|
24
25
|
*/
|
|
25
26
|
accountKey?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @type {AzureServicePrincipal}
|
|
29
|
+
* @memberof AzureOutput
|
|
30
|
+
*/
|
|
31
|
+
servicePrincipal?: AzureServicePrincipal;
|
|
26
32
|
/**
|
|
27
33
|
* Name of the bucket (required)
|
|
28
34
|
* @type {string}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.AzureOutput = void 0;
|
|
19
19
|
var Mapper_1 = require("../common/Mapper");
|
|
20
|
+
var AzureServicePrincipal_1 = require("./AzureServicePrincipal");
|
|
20
21
|
var Output_1 = require("./Output");
|
|
21
22
|
var OutputType_1 = require("./OutputType");
|
|
22
23
|
/**
|
|
@@ -38,6 +39,7 @@ var AzureOutput = /** @class */ (function (_super) {
|
|
|
38
39
|
}
|
|
39
40
|
_this.accountName = (0, Mapper_1.map)(obj.accountName);
|
|
40
41
|
_this.accountKey = (0, Mapper_1.map)(obj.accountKey);
|
|
42
|
+
_this.servicePrincipal = (0, Mapper_1.map)(obj.servicePrincipal, AzureServicePrincipal_1.default);
|
|
41
43
|
_this.container = (0, Mapper_1.map)(obj.container);
|
|
42
44
|
return _this;
|
|
43
45
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure service principal credentials for Microsoft Entra ID authentication
|
|
3
|
+
* @export
|
|
4
|
+
* @class AzureServicePrincipal
|
|
5
|
+
*/
|
|
6
|
+
export declare class AzureServicePrincipal {
|
|
7
|
+
/**
|
|
8
|
+
* Tenant ID (Directory ID) of the Azure service principal (required)
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof AzureServicePrincipal
|
|
11
|
+
*/
|
|
12
|
+
tenantId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Client ID of the Azure service principal (required)
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AzureServicePrincipal
|
|
17
|
+
*/
|
|
18
|
+
clientId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Client secret of the Azure service principal
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AzureServicePrincipal
|
|
23
|
+
*/
|
|
24
|
+
clientSecret?: string;
|
|
25
|
+
/**
|
|
26
|
+
* PEM-encoded client certificate and private key of the Azure service principal. Newline symbols must be preserved.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AzureServicePrincipal
|
|
29
|
+
*/
|
|
30
|
+
clientCertificate?: string;
|
|
31
|
+
constructor(obj?: Partial<AzureServicePrincipal>);
|
|
32
|
+
}
|
|
33
|
+
export default AzureServicePrincipal;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AzureServicePrincipal = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* Azure service principal credentials for Microsoft Entra ID authentication
|
|
7
|
+
* @export
|
|
8
|
+
* @class AzureServicePrincipal
|
|
9
|
+
*/
|
|
10
|
+
var AzureServicePrincipal = /** @class */ (function () {
|
|
11
|
+
function AzureServicePrincipal(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.tenantId = (0, Mapper_1.map)(obj.tenantId);
|
|
16
|
+
this.clientId = (0, Mapper_1.map)(obj.clientId);
|
|
17
|
+
this.clientSecret = (0, Mapper_1.map)(obj.clientSecret);
|
|
18
|
+
this.clientCertificate = (0, Mapper_1.map)(obj.clientCertificate);
|
|
19
|
+
}
|
|
20
|
+
return AzureServicePrincipal;
|
|
21
|
+
}());
|
|
22
|
+
exports.AzureServicePrincipal = AzureServicePrincipal;
|
|
23
|
+
exports.default = AzureServicePrincipal;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ export * from './AzureAccountRegionSettings';
|
|
|
173
173
|
export * from './AzureCloudRegion';
|
|
174
174
|
export * from './AzureInput';
|
|
175
175
|
export * from './AzureOutput';
|
|
176
|
+
export * from './AzureServicePrincipal';
|
|
176
177
|
export * from './AzureSpeechServicesCredentials';
|
|
177
178
|
export * from './AzureSpeechToCaptionsFilter';
|
|
178
179
|
export * from './AzureSpeechToCaptionsProfanity';
|
package/dist/models/index.js
CHANGED
|
@@ -189,6 +189,7 @@ __exportStar(require("./AzureAccountRegionSettings"), exports);
|
|
|
189
189
|
__exportStar(require("./AzureCloudRegion"), exports);
|
|
190
190
|
__exportStar(require("./AzureInput"), exports);
|
|
191
191
|
__exportStar(require("./AzureOutput"), exports);
|
|
192
|
+
__exportStar(require("./AzureServicePrincipal"), exports);
|
|
192
193
|
__exportStar(require("./AzureSpeechServicesCredentials"), exports);
|
|
193
194
|
__exportStar(require("./AzureSpeechToCaptionsFilter"), exports);
|
|
194
195
|
__exportStar(require("./AzureSpeechToCaptionsProfanity"), exports);
|
|
@@ -3,6 +3,7 @@ import Configuration from '../../../../common/Configuration';
|
|
|
3
3
|
import FinishedApi from './finished/FinishedApi';
|
|
4
4
|
import ErrorApi from './error/ErrorApi';
|
|
5
5
|
import LiveEncodingHeartbeatApi from './liveEncodingHeartbeat/LiveEncodingHeartbeatApi';
|
|
6
|
+
import LiveManifestReadyApi from './liveManifestReady/LiveManifestReadyApi';
|
|
6
7
|
import TransferErrorApi from './transferError/TransferErrorApi';
|
|
7
8
|
import LiveInputStreamChangedApi from './liveInputStreamChanged/LiveInputStreamChangedApi';
|
|
8
9
|
import EncodingStatusChangedApi from './encodingStatusChanged/EncodingStatusChangedApi';
|
|
@@ -16,6 +17,7 @@ export default class EncodingsApi extends BaseAPI {
|
|
|
16
17
|
finished: FinishedApi;
|
|
17
18
|
error: ErrorApi;
|
|
18
19
|
liveEncodingHeartbeat: LiveEncodingHeartbeatApi;
|
|
20
|
+
liveManifestReady: LiveManifestReadyApi;
|
|
19
21
|
transferError: TransferErrorApi;
|
|
20
22
|
liveInputStreamChanged: LiveInputStreamChangedApi;
|
|
21
23
|
encodingStatusChanged: EncodingStatusChangedApi;
|
|
@@ -19,6 +19,7 @@ var BaseAPI_1 = require("../../../../common/BaseAPI");
|
|
|
19
19
|
var FinishedApi_1 = require("./finished/FinishedApi");
|
|
20
20
|
var ErrorApi_1 = require("./error/ErrorApi");
|
|
21
21
|
var LiveEncodingHeartbeatApi_1 = require("./liveEncodingHeartbeat/LiveEncodingHeartbeatApi");
|
|
22
|
+
var LiveManifestReadyApi_1 = require("./liveManifestReady/LiveManifestReadyApi");
|
|
22
23
|
var TransferErrorApi_1 = require("./transferError/TransferErrorApi");
|
|
23
24
|
var LiveInputStreamChangedApi_1 = require("./liveInputStreamChanged/LiveInputStreamChangedApi");
|
|
24
25
|
var EncodingStatusChangedApi_1 = require("./encodingStatusChanged/EncodingStatusChangedApi");
|
|
@@ -35,6 +36,7 @@ var EncodingsApi = /** @class */ (function (_super) {
|
|
|
35
36
|
_this.finished = new FinishedApi_1.default(configuration);
|
|
36
37
|
_this.error = new ErrorApi_1.default(configuration);
|
|
37
38
|
_this.liveEncodingHeartbeat = new LiveEncodingHeartbeatApi_1.default(configuration);
|
|
39
|
+
_this.liveManifestReady = new LiveManifestReadyApi_1.default(configuration);
|
|
38
40
|
_this.transferError = new TransferErrorApi_1.default(configuration);
|
|
39
41
|
_this.liveInputStreamChanged = new LiveInputStreamChangedApi_1.default(configuration);
|
|
40
42
|
_this.encodingStatusChanged = new EncodingStatusChangedApi_1.default(configuration);
|
package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/LiveManifestReadyApi.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../../common/Configuration';
|
|
3
|
+
import CustomdataApi from './customdata/CustomdataApi';
|
|
4
|
+
import BitmovinResponse from '../../../../../models/BitmovinResponse';
|
|
5
|
+
import Webhook from '../../../../../models/Webhook';
|
|
6
|
+
import PaginationResponse from '../../../../../models/PaginationResponse';
|
|
7
|
+
import { WebhookListQueryParams, WebhookListQueryParamsBuilder } from './WebhookListQueryParams';
|
|
8
|
+
import { WebhookListByEncodingIdQueryParams, WebhookListByEncodingIdQueryParamsBuilder } from './WebhookListByEncodingIdQueryParams';
|
|
9
|
+
/**
|
|
10
|
+
* LiveManifestReadyApi - object-oriented interface
|
|
11
|
+
* @export
|
|
12
|
+
* @class LiveManifestReadyApi
|
|
13
|
+
* @extends {BaseAPI}
|
|
14
|
+
*/
|
|
15
|
+
export default class LiveManifestReadyApi extends BaseAPI {
|
|
16
|
+
customdata: CustomdataApi;
|
|
17
|
+
constructor(configuration: Configuration);
|
|
18
|
+
/**
|
|
19
|
+
* @summary Add 'Live Manifest Ready' Webhook
|
|
20
|
+
* @param {Webhook} webhook The 'Live Manifest Ready' Webhook to be added.
|
|
21
|
+
* @throws {BitmovinError}
|
|
22
|
+
* @memberof LiveManifestReadyApi
|
|
23
|
+
*/
|
|
24
|
+
create(webhook?: Webhook): Promise<Webhook>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Add 'Live Manifest Ready' Webhook for a specific Encoding
|
|
27
|
+
* @param {string} encodingId Id of the encoding
|
|
28
|
+
* @param {Webhook} webhook The 'Live Manifest Ready' Webhook to be added.
|
|
29
|
+
* @throws {BitmovinError}
|
|
30
|
+
* @memberof LiveManifestReadyApi
|
|
31
|
+
*/
|
|
32
|
+
createByEncodingId(encodingId: string, webhook?: Webhook): Promise<Webhook>;
|
|
33
|
+
/**
|
|
34
|
+
* @summary Delete 'Live Manifest Ready' Webhook for a specific Encoding
|
|
35
|
+
* @param {string} encodingId Id of the encoding
|
|
36
|
+
* @param {string} webhookId Id of the webhook
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof LiveManifestReadyApi
|
|
39
|
+
*/
|
|
40
|
+
deleteByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<BitmovinResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* @summary Delete 'Live Manifest Ready' Webhook
|
|
43
|
+
* @param {string} webhookId Id of the webhook
|
|
44
|
+
* @throws {BitmovinError}
|
|
45
|
+
* @memberof LiveManifestReadyApi
|
|
46
|
+
*/
|
|
47
|
+
deleteByWebhookId(webhookId: string): Promise<BitmovinResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary 'Live Manifest Ready' Webhook Details for a specific Encoding
|
|
50
|
+
* @param {string} encodingId Id of the encoding
|
|
51
|
+
* @param {string} webhookId Id of the webhook
|
|
52
|
+
* @throws {BitmovinError}
|
|
53
|
+
* @memberof LiveManifestReadyApi
|
|
54
|
+
*/
|
|
55
|
+
getByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<Webhook>;
|
|
56
|
+
/**
|
|
57
|
+
* @summary 'Live Manifest Ready' Webhook Details
|
|
58
|
+
* @param {string} webhookId Id of the webhook
|
|
59
|
+
* @throws {BitmovinError}
|
|
60
|
+
* @memberof LiveManifestReadyApi
|
|
61
|
+
*/
|
|
62
|
+
getByWebhookId(webhookId: string): Promise<Webhook>;
|
|
63
|
+
/**
|
|
64
|
+
* @summary List 'Live Manifest Ready' Webhooks
|
|
65
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
66
|
+
* @throws {BitmovinError}
|
|
67
|
+
* @memberof LiveManifestReadyApi
|
|
68
|
+
*/
|
|
69
|
+
list(queryParameters?: WebhookListQueryParams | ((q: WebhookListQueryParamsBuilder) => WebhookListQueryParamsBuilder)): Promise<PaginationResponse<Webhook>>;
|
|
70
|
+
/**
|
|
71
|
+
* @summary List 'Live Manifest Ready' Webhooks for a specific Encoding
|
|
72
|
+
* @param {string} encodingId Id of the encoding
|
|
73
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
74
|
+
* @throws {BitmovinError}
|
|
75
|
+
* @memberof LiveManifestReadyApi
|
|
76
|
+
*/
|
|
77
|
+
listByEncodingId(encodingId: string, queryParameters?: WebhookListByEncodingIdQueryParams | ((q: WebhookListByEncodingIdQueryParamsBuilder) => WebhookListByEncodingIdQueryParamsBuilder)): Promise<PaginationResponse<Webhook>>;
|
|
78
|
+
}
|
package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/LiveManifestReadyApi.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../../../common/BaseAPI");
|
|
19
|
+
var Mapper_1 = require("../../../../../common/Mapper");
|
|
20
|
+
var CustomdataApi_1 = require("./customdata/CustomdataApi");
|
|
21
|
+
var BitmovinResponse_1 = require("../../../../../models/BitmovinResponse");
|
|
22
|
+
var Webhook_1 = require("../../../../../models/Webhook");
|
|
23
|
+
var PaginationResponse_1 = require("../../../../../models/PaginationResponse");
|
|
24
|
+
var WebhookListQueryParams_1 = require("./WebhookListQueryParams");
|
|
25
|
+
var WebhookListByEncodingIdQueryParams_1 = require("./WebhookListByEncodingIdQueryParams");
|
|
26
|
+
/**
|
|
27
|
+
* LiveManifestReadyApi - object-oriented interface
|
|
28
|
+
* @export
|
|
29
|
+
* @class LiveManifestReadyApi
|
|
30
|
+
* @extends {BaseAPI}
|
|
31
|
+
*/
|
|
32
|
+
var LiveManifestReadyApi = /** @class */ (function (_super) {
|
|
33
|
+
__extends(LiveManifestReadyApi, _super);
|
|
34
|
+
function LiveManifestReadyApi(configuration) {
|
|
35
|
+
var _this = _super.call(this, configuration) || this;
|
|
36
|
+
_this.customdata = new CustomdataApi_1.default(configuration);
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @summary Add 'Live Manifest Ready' Webhook
|
|
41
|
+
* @param {Webhook} webhook The 'Live Manifest Ready' Webhook to be added.
|
|
42
|
+
* @throws {BitmovinError}
|
|
43
|
+
* @memberof LiveManifestReadyApi
|
|
44
|
+
*/
|
|
45
|
+
LiveManifestReadyApi.prototype.create = function (webhook) {
|
|
46
|
+
return this.restClient.post('/notifications/webhooks/encoding/encodings/live-manifest-ready', {}, webhook).then(function (response) {
|
|
47
|
+
return (0, Mapper_1.map)(response, Webhook_1.default);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @summary Add 'Live Manifest Ready' Webhook for a specific Encoding
|
|
52
|
+
* @param {string} encodingId Id of the encoding
|
|
53
|
+
* @param {Webhook} webhook The 'Live Manifest Ready' Webhook to be added.
|
|
54
|
+
* @throws {BitmovinError}
|
|
55
|
+
* @memberof LiveManifestReadyApi
|
|
56
|
+
*/
|
|
57
|
+
LiveManifestReadyApi.prototype.createByEncodingId = function (encodingId, webhook) {
|
|
58
|
+
var pathParamMap = {
|
|
59
|
+
encoding_id: encodingId
|
|
60
|
+
};
|
|
61
|
+
return this.restClient.post('/notifications/webhooks/encoding/encodings/{encoding_id}/live-manifest-ready', pathParamMap, webhook).then(function (response) {
|
|
62
|
+
return (0, Mapper_1.map)(response, Webhook_1.default);
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @summary Delete 'Live Manifest Ready' Webhook for a specific Encoding
|
|
67
|
+
* @param {string} encodingId Id of the encoding
|
|
68
|
+
* @param {string} webhookId Id of the webhook
|
|
69
|
+
* @throws {BitmovinError}
|
|
70
|
+
* @memberof LiveManifestReadyApi
|
|
71
|
+
*/
|
|
72
|
+
LiveManifestReadyApi.prototype.deleteByEncodingIdAndWebhookId = function (encodingId, webhookId) {
|
|
73
|
+
var pathParamMap = {
|
|
74
|
+
encoding_id: encodingId,
|
|
75
|
+
webhook_id: webhookId
|
|
76
|
+
};
|
|
77
|
+
return this.restClient.delete('/notifications/webhooks/encoding/encodings/{encoding_id}/live-manifest-ready/{webhook_id}', pathParamMap).then(function (response) {
|
|
78
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @summary Delete 'Live Manifest Ready' Webhook
|
|
83
|
+
* @param {string} webhookId Id of the webhook
|
|
84
|
+
* @throws {BitmovinError}
|
|
85
|
+
* @memberof LiveManifestReadyApi
|
|
86
|
+
*/
|
|
87
|
+
LiveManifestReadyApi.prototype.deleteByWebhookId = function (webhookId) {
|
|
88
|
+
var pathParamMap = {
|
|
89
|
+
webhook_id: webhookId
|
|
90
|
+
};
|
|
91
|
+
return this.restClient.delete('/notifications/webhooks/encoding/encodings/live-manifest-ready/{webhook_id}', pathParamMap).then(function (response) {
|
|
92
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @summary 'Live Manifest Ready' Webhook Details for a specific Encoding
|
|
97
|
+
* @param {string} encodingId Id of the encoding
|
|
98
|
+
* @param {string} webhookId Id of the webhook
|
|
99
|
+
* @throws {BitmovinError}
|
|
100
|
+
* @memberof LiveManifestReadyApi
|
|
101
|
+
*/
|
|
102
|
+
LiveManifestReadyApi.prototype.getByEncodingIdAndWebhookId = function (encodingId, webhookId) {
|
|
103
|
+
var pathParamMap = {
|
|
104
|
+
encoding_id: encodingId,
|
|
105
|
+
webhook_id: webhookId
|
|
106
|
+
};
|
|
107
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/{encoding_id}/live-manifest-ready/{webhook_id}', pathParamMap).then(function (response) {
|
|
108
|
+
return (0, Mapper_1.map)(response, Webhook_1.default);
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @summary 'Live Manifest Ready' Webhook Details
|
|
113
|
+
* @param {string} webhookId Id of the webhook
|
|
114
|
+
* @throws {BitmovinError}
|
|
115
|
+
* @memberof LiveManifestReadyApi
|
|
116
|
+
*/
|
|
117
|
+
LiveManifestReadyApi.prototype.getByWebhookId = function (webhookId) {
|
|
118
|
+
var pathParamMap = {
|
|
119
|
+
webhook_id: webhookId
|
|
120
|
+
};
|
|
121
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/live-manifest-ready/{webhook_id}', pathParamMap).then(function (response) {
|
|
122
|
+
return (0, Mapper_1.map)(response, Webhook_1.default);
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* @summary List 'Live Manifest Ready' Webhooks
|
|
127
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
128
|
+
* @throws {BitmovinError}
|
|
129
|
+
* @memberof LiveManifestReadyApi
|
|
130
|
+
*/
|
|
131
|
+
LiveManifestReadyApi.prototype.list = function (queryParameters) {
|
|
132
|
+
var queryParams = {};
|
|
133
|
+
if (typeof queryParameters === 'function') {
|
|
134
|
+
queryParams = queryParameters(new WebhookListQueryParams_1.WebhookListQueryParamsBuilder()).buildQueryParams();
|
|
135
|
+
}
|
|
136
|
+
else if (queryParameters) {
|
|
137
|
+
queryParams = queryParameters;
|
|
138
|
+
}
|
|
139
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/live-manifest-ready', {}, queryParams).then(function (response) {
|
|
140
|
+
return new PaginationResponse_1.default(response, Webhook_1.default);
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* @summary List 'Live Manifest Ready' Webhooks for a specific Encoding
|
|
145
|
+
* @param {string} encodingId Id of the encoding
|
|
146
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
147
|
+
* @throws {BitmovinError}
|
|
148
|
+
* @memberof LiveManifestReadyApi
|
|
149
|
+
*/
|
|
150
|
+
LiveManifestReadyApi.prototype.listByEncodingId = function (encodingId, queryParameters) {
|
|
151
|
+
var pathParamMap = {
|
|
152
|
+
encoding_id: encodingId
|
|
153
|
+
};
|
|
154
|
+
var queryParams = {};
|
|
155
|
+
if (typeof queryParameters === 'function') {
|
|
156
|
+
queryParams = queryParameters(new WebhookListByEncodingIdQueryParams_1.WebhookListByEncodingIdQueryParamsBuilder()).buildQueryParams();
|
|
157
|
+
}
|
|
158
|
+
else if (queryParameters) {
|
|
159
|
+
queryParams = queryParameters;
|
|
160
|
+
}
|
|
161
|
+
return this.restClient.get('/notifications/webhooks/encoding/encodings/{encoding_id}/live-manifest-ready', pathParamMap, queryParams).then(function (response) {
|
|
162
|
+
return new PaginationResponse_1.default(response, Webhook_1.default);
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
return LiveManifestReadyApi;
|
|
166
|
+
}(BaseAPI_1.BaseAPI));
|
|
167
|
+
exports.default = LiveManifestReadyApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface WebhookListByEncodingIdQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof WebhookListByEncodingIdQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof WebhookListByEncodingIdQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class WebhookListByEncodingIdQueryParamsBuilder {
|
|
16
|
+
private internalParams;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
20
|
+
*/
|
|
21
|
+
offset(offset: number): this;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
25
|
+
*/
|
|
26
|
+
limit(limit: number): this;
|
|
27
|
+
buildQueryParams(): WebhookListByEncodingIdQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookListByEncodingIdQueryParamsBuilder = void 0;
|
|
4
|
+
var WebhookListByEncodingIdQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function WebhookListByEncodingIdQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
WebhookListByEncodingIdQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
|
+
this.internalParams.offset = offset;
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
|
+
*/
|
|
20
|
+
WebhookListByEncodingIdQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
WebhookListByEncodingIdQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return WebhookListByEncodingIdQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.WebhookListByEncodingIdQueryParamsBuilder = WebhookListByEncodingIdQueryParamsBuilder;
|
package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListQueryParams.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface WebhookListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof WebhookListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof WebhookListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class WebhookListQueryParamsBuilder {
|
|
16
|
+
private internalParams;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
20
|
+
*/
|
|
21
|
+
offset(offset: number): this;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
25
|
+
*/
|
|
26
|
+
limit(limit: number): this;
|
|
27
|
+
buildQueryParams(): WebhookListQueryParams;
|
|
28
|
+
}
|
package/dist/notifications/webhooks/encoding/encodings/liveManifestReady/WebhookListQueryParams.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookListQueryParamsBuilder = void 0;
|
|
4
|
+
var WebhookListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function WebhookListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
WebhookListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
|
+
this.internalParams.offset = offset;
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
|
+
*/
|
|
20
|
+
WebhookListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
WebhookListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return WebhookListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.WebhookListQueryParamsBuilder = WebhookListQueryParamsBuilder;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../../../common/Configuration';
|
|
3
|
+
import CustomData from '../../../../../../models/CustomData';
|
|
4
|
+
/**
|
|
5
|
+
* CustomdataApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class CustomdataApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class CustomdataApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary 'Live Manifest Ready' Webhook Custom Data for a specific Encoding
|
|
14
|
+
* @param {string} encodingId Id of the encoding
|
|
15
|
+
* @param {string} webhookId Id of the webhook
|
|
16
|
+
* @throws {BitmovinError}
|
|
17
|
+
* @memberof CustomdataApi
|
|
18
|
+
*/
|
|
19
|
+
getCustomDataByEncodingIdAndWebhookId(encodingId: string, webhookId: string): Promise<CustomData>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary 'Live Manifest Ready' Webhook Custom Data
|
|
22
|
+
* @param {string} webhookId Id of the webhook
|
|
23
|
+
* @throws {BitmovinError}
|
|
24
|
+
* @memberof CustomdataApi
|
|
25
|
+
*/
|
|
26
|
+
getCustomDataByWebhookId(webhookId: string): Promise<CustomData>;
|
|
27
|
+
}
|