@dolbyio/dolbyio-rest-apis-client 3.4.4 → 3.5.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.
Files changed (40) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +41 -2
  3. package/dist/communications/remix.js +8 -6
  4. package/dist/communications/streaming.d.ts +4 -2
  5. package/dist/communications/streaming.js +14 -10
  6. package/dist/index.d.ts +2 -1
  7. package/dist/index.js +4 -2
  8. package/dist/internal/httpHelpers.d.ts +8 -0
  9. package/dist/internal/httpHelpers.js +36 -2
  10. package/dist/streaming/cluster.d.ts +3 -0
  11. package/dist/streaming/cluster.js +78 -0
  12. package/dist/streaming/director.d.ts +24 -0
  13. package/dist/streaming/director.js +107 -0
  14. package/dist/streaming/geo.d.ts +27 -0
  15. package/dist/streaming/geo.js +110 -0
  16. package/dist/streaming/index.d.ts +7 -0
  17. package/dist/streaming/index.js +21 -0
  18. package/dist/streaming/internal/httpHelpers.d.ts +41 -0
  19. package/dist/streaming/internal/httpHelpers.js +172 -0
  20. package/dist/streaming/internal/urls.d.ts +2 -0
  21. package/dist/streaming/internal/urls.js +10 -0
  22. package/dist/streaming/publishToken.d.ts +9 -0
  23. package/dist/streaming/publishToken.js +284 -0
  24. package/dist/streaming/stream.d.ts +2 -0
  25. package/dist/streaming/stream.js +76 -0
  26. package/dist/streaming/subscribeToken.d.ts +6 -0
  27. package/dist/streaming/subscribeToken.js +182 -0
  28. package/dist/streaming/types/cluster.d.ts +14 -0
  29. package/dist/streaming/types/cluster.js +5 -0
  30. package/dist/streaming/types/core.d.ts +4 -0
  31. package/dist/streaming/types/core.js +5 -0
  32. package/dist/streaming/types/director.d.ts +14 -0
  33. package/dist/streaming/types/director.js +5 -0
  34. package/dist/streaming/types/geo.d.ts +4 -0
  35. package/dist/streaming/types/geo.js +5 -0
  36. package/dist/streaming/types/publishToken.d.ts +63 -0
  37. package/dist/streaming/types/publishToken.js +5 -0
  38. package/dist/streaming/types/subscribeToken.d.ts +43 -0
  39. package/dist/streaming/types/subscribeToken.js +5 -0
  40. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,14 @@
1
+ export interface IceServer {
2
+ urls: string[];
3
+ userName: string;
4
+ credential: string;
5
+ }
6
+ export interface SubscribeResponse {
7
+ urls: string[];
8
+ jwt: string;
9
+ iceServers: IceServer[];
10
+ streamAccountId: string;
11
+ }
12
+ export interface PublishResponse extends SubscribeResponse {
13
+ subscribeRequiresAuth: boolean;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,4 @@
1
+ export interface GeoRestrictions {
2
+ allowedCountries: string[];
3
+ deniedCountries: string[];
4
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,63 @@
1
+ export interface PublishTokenStream {
2
+ streamName: string;
3
+ isRegex: boolean;
4
+ }
5
+ export interface PublishToken {
6
+ id: string;
7
+ label: string;
8
+ token: string;
9
+ addedOn: Date;
10
+ expiresOn: Date;
11
+ isActive: boolean;
12
+ streams: PublishTokenStream[];
13
+ allowedOrigins: string[];
14
+ allowedIpAddresses: string[];
15
+ bindIpsOnUsage: number;
16
+ allowedCountries: string[];
17
+ deniedCountries: string[];
18
+ originCluster: string;
19
+ subscribeRequiresAuth: boolean;
20
+ record: boolean;
21
+ multisource: boolean;
22
+ }
23
+ export interface UpdatePublishToken {
24
+ label?: string;
25
+ refreshToken?: string;
26
+ isActive?: boolean;
27
+ addTokenStreams?: PublishTokenStream[];
28
+ removeTokenStreams?: PublishTokenStream[];
29
+ updateAllowedOrigins?: string[];
30
+ updateAllowedIpAddresses?: string[];
31
+ updateBindIpsOnUsage?: number;
32
+ updateAllowedCountries?: string[];
33
+ updateDeniedCountries?: string[];
34
+ updateOriginCluster?: string;
35
+ subscribeRequiresAuth?: boolean;
36
+ record?: boolean;
37
+ multisource?: boolean;
38
+ }
39
+ export interface CreatePublishToken {
40
+ label: string;
41
+ expiresOn?: Date;
42
+ streams: PublishTokenStream[];
43
+ allowedOrigins?: string[];
44
+ allowedIpAddresses?: string[];
45
+ bindIpsOnUsage?: number;
46
+ allowedCountries?: string[];
47
+ deniedCountries?: string[];
48
+ originCluster?: string;
49
+ subscribeRequiresAuth?: boolean;
50
+ record?: boolean;
51
+ multisource?: boolean;
52
+ }
53
+ export interface ActivePublishToken {
54
+ tokenIds: number[];
55
+ }
56
+ export interface FailedToken {
57
+ tokenId: number;
58
+ errorMessage: string;
59
+ }
60
+ export interface DisablePublishTokenResponse {
61
+ successfulTokens: number[];
62
+ failedTokens: FailedToken[];
63
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,43 @@
1
+ export interface SubscribeTokenStream {
2
+ streamName: string;
3
+ isRegex: boolean;
4
+ }
5
+ export interface SubscribeToken {
6
+ id: string;
7
+ label: string;
8
+ token: string;
9
+ addedOn: Date;
10
+ expiresOn: Date;
11
+ isActive: boolean;
12
+ streams: SubscribeTokenStream[];
13
+ allowedOrigins: string[];
14
+ allowedIpAddresses: string[];
15
+ bindIpsOnUsage: number;
16
+ allowedCountries: string[];
17
+ deniedCountries: string[];
18
+ originCluster: string;
19
+ }
20
+ export interface UpdateSubscribeToken {
21
+ label?: string;
22
+ refreshToken?: string;
23
+ isActive?: boolean;
24
+ addTokenStreams?: SubscribeTokenStream[];
25
+ removeTokenStreams?: SubscribeTokenStream[];
26
+ updateAllowedOrigins?: string[];
27
+ updateAllowedIpAddresses?: string[];
28
+ updateBindIpsOnUsage?: number;
29
+ updateAllowedCountries?: string[];
30
+ updateDeniedCountries?: string[];
31
+ updateOriginCluster?: string;
32
+ }
33
+ export interface CreateSubscribeToken {
34
+ label: string;
35
+ expiresOn?: Date;
36
+ streams: SubscribeTokenStream[];
37
+ allowedOrigins?: string[];
38
+ allowedIpAddresses?: string[];
39
+ bindIpsOnUsage?: number;
40
+ allowedCountries?: string[];
41
+ deniedCountries?: string[];
42
+ originCluster?: string;
43
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolbyio/dolbyio-rest-apis-client",
3
- "version": "3.4.4",
3
+ "version": "3.5.0",
4
4
  "description": "Node.JS wrapper for the dolby.io REST APIs",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {