@formant/realtime-sdk 1.4.2 → 1.4.4
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/dist/common/BaseClient.d.ts +3 -1
- package/dist/common/config/index.d.ts +1 -0
- package/dist/common/errorConstants.d.ts +7 -0
- package/dist/common/isValidTagString.d.ts +3 -1
- package/dist/common/redact.d.ts +1 -0
- package/dist/common/setPromiseInterval.d.ts +3 -2
- package/dist/common/truncate.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/model/IAuditLog.d.ts +1 -0
- package/dist/model/IBitset.d.ts +5 -0
- package/dist/model/IListResponse.d.ts +6 -0
- package/dist/model/ILoginRequest.d.ts +0 -2
- package/dist/model/IPath.d.ts +3 -1
- package/dist/model/IRequestToken.d.ts +4 -0
- package/dist/model/IUser.d.ts +5 -1
- package/dist/model/auditLogActionTypes.d.ts +1 -1
- package/dist/model/features.d.ts +1 -1
- package/dist/model/healthStatuses.d.ts +3 -3
- package/dist/model/reservedTagValues.d.ts +3 -0
- package/dist/model/rtcConnectionStatuses.d.ts +1 -1
- package/dist/model/rtcStreamTypes.d.ts +5 -1
- package/dist/model/userResources.d.ts +1 -0
- package/dist/protos/api/signaling/v1/BUILD.bazel +25 -0
- package/dist/realtime-sdk/src/index.d.ts +3 -3
- package/dist/rtc-client/RtcConnection.d.ts +5 -1
- package/dist/rtc-client/models/IBinaryH264Message.d.ts +13 -0
- package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +1 -2
- package/dist/rtc-client/models/IRtcConnectionBaseConfiguration.d.ts +1 -1
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +12 -0
- package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -1
- package/dist/rtc-client/utils/binaryMessageParser.d.ts +19 -0
- package/dist/rtc-client/utils/peerToRtcPeer.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { IDictionary } from "../model/IDictionary";
|
|
2
|
+
import { IRequestToken } from "../model/IRequestToken";
|
|
2
3
|
import { IValidation } from "../model/IValidation";
|
|
3
4
|
import { ResponseError } from "./ResponseError";
|
|
4
5
|
export interface IRequestInit {
|
|
5
6
|
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
6
7
|
headers?: IDictionary;
|
|
7
8
|
body?: any;
|
|
8
|
-
token?: string;
|
|
9
|
+
token?: string | IRequestToken;
|
|
9
10
|
allowUnsafeRetries?: boolean;
|
|
10
11
|
json?: boolean;
|
|
11
12
|
}
|
|
@@ -40,4 +41,5 @@ export declare abstract class BaseClient {
|
|
|
40
41
|
protected fetchVerbose<T>(path: string, extendedInit?: IRequestInit): Promise<IResponse<T>>;
|
|
41
42
|
private doFetch;
|
|
42
43
|
private getConstructor;
|
|
44
|
+
static isNetworkError(error: any): boolean;
|
|
43
45
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const temporaryPasswordExpired = "temporary password expired";
|
|
2
|
+
export declare const peerDoesNotExist = "peer does not exist";
|
|
3
|
+
export declare const deviceDisabled = "device disabled";
|
|
4
|
+
export declare const tagRestricted = "missing tag(s) to access this resource";
|
|
5
|
+
export declare const groupNameConflict = "group name already exists";
|
|
6
|
+
export declare const groupTagConflict = "group tag key and value already exists";
|
|
7
|
+
export declare const tooManyEventsToUpdate = "too many events to update";
|
package/dist/common/redact.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ export interface IPromiseIntervalOptions {
|
|
|
3
3
|
delay: number;
|
|
4
4
|
immediate?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface IPromiseIntervalHandle {
|
|
7
7
|
stop(): Promise<void>;
|
|
8
|
+
pending(): Promise<void>;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Runs callback function f periodically.
|
|
@@ -13,4 +14,4 @@ export interface IShutdownPromiseInterval {
|
|
|
13
14
|
*
|
|
14
15
|
* Returns a function that stops execution if invoked.
|
|
15
16
|
*/
|
|
16
|
-
export declare function setPromiseInterval({ func, delay, immediate, }: IPromiseIntervalOptions):
|
|
17
|
+
export declare function setPromiseInterval({ func, delay, immediate, }: IPromiseIntervalOptions): IPromiseIntervalHandle;
|