@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.
- package/LICENSE +1 -1
- package/README.md +41 -2
- package/dist/communications/remix.js +8 -6
- package/dist/communications/streaming.d.ts +4 -2
- package/dist/communications/streaming.js +14 -10
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/internal/httpHelpers.d.ts +8 -0
- package/dist/internal/httpHelpers.js +36 -2
- package/dist/streaming/cluster.d.ts +3 -0
- package/dist/streaming/cluster.js +78 -0
- package/dist/streaming/director.d.ts +24 -0
- package/dist/streaming/director.js +107 -0
- package/dist/streaming/geo.d.ts +27 -0
- package/dist/streaming/geo.js +110 -0
- package/dist/streaming/index.d.ts +7 -0
- package/dist/streaming/index.js +21 -0
- package/dist/streaming/internal/httpHelpers.d.ts +41 -0
- package/dist/streaming/internal/httpHelpers.js +172 -0
- package/dist/streaming/internal/urls.d.ts +2 -0
- package/dist/streaming/internal/urls.js +10 -0
- package/dist/streaming/publishToken.d.ts +9 -0
- package/dist/streaming/publishToken.js +284 -0
- package/dist/streaming/stream.d.ts +2 -0
- package/dist/streaming/stream.js +76 -0
- package/dist/streaming/subscribeToken.d.ts +6 -0
- package/dist/streaming/subscribeToken.js +182 -0
- package/dist/streaming/types/cluster.d.ts +14 -0
- package/dist/streaming/types/cluster.js +5 -0
- package/dist/streaming/types/core.d.ts +4 -0
- package/dist/streaming/types/core.js +5 -0
- package/dist/streaming/types/director.d.ts +14 -0
- package/dist/streaming/types/director.js +5 -0
- package/dist/streaming/types/geo.d.ts +4 -0
- package/dist/streaming/types/geo.js +5 -0
- package/dist/streaming/types/publishToken.d.ts +63 -0
- package/dist/streaming/types/publishToken.js +5 -0
- package/dist/streaming/types/subscribeToken.d.ts +43 -0
- package/dist/streaming/types/subscribeToken.js +5 -0
- package/package.json +1 -1
|
@@ -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,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,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
|
+
}
|