@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.
Files changed (33) hide show
  1. package/dist/common/BaseClient.d.ts +3 -1
  2. package/dist/common/config/index.d.ts +1 -0
  3. package/dist/common/errorConstants.d.ts +7 -0
  4. package/dist/common/isValidTagString.d.ts +3 -1
  5. package/dist/common/redact.d.ts +1 -0
  6. package/dist/common/setPromiseInterval.d.ts +3 -2
  7. package/dist/common/truncate.d.ts +4 -0
  8. package/dist/index.js +1 -1
  9. package/dist/model/IAuditLog.d.ts +1 -0
  10. package/dist/model/IBitset.d.ts +5 -0
  11. package/dist/model/IListResponse.d.ts +6 -0
  12. package/dist/model/ILoginRequest.d.ts +0 -2
  13. package/dist/model/IPath.d.ts +3 -1
  14. package/dist/model/IRequestToken.d.ts +4 -0
  15. package/dist/model/IUser.d.ts +5 -1
  16. package/dist/model/auditLogActionTypes.d.ts +1 -1
  17. package/dist/model/features.d.ts +1 -1
  18. package/dist/model/healthStatuses.d.ts +3 -3
  19. package/dist/model/reservedTagValues.d.ts +3 -0
  20. package/dist/model/rtcConnectionStatuses.d.ts +1 -1
  21. package/dist/model/rtcStreamTypes.d.ts +5 -1
  22. package/dist/model/userResources.d.ts +1 -0
  23. package/dist/protos/api/signaling/v1/BUILD.bazel +25 -0
  24. package/dist/realtime-sdk/src/index.d.ts +3 -3
  25. package/dist/rtc-client/RtcConnection.d.ts +5 -1
  26. package/dist/rtc-client/models/IBinaryH264Message.d.ts +13 -0
  27. package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +1 -2
  28. package/dist/rtc-client/models/IRtcConnectionBaseConfiguration.d.ts +1 -1
  29. package/dist/rtc-client/models/IRtcStreamPayload.d.ts +12 -0
  30. package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -1
  31. package/dist/rtc-client/utils/binaryMessageParser.d.ts +19 -0
  32. package/dist/rtc-client/utils/peerToRtcPeer.d.ts +1 -1
  33. 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
  }
@@ -1,3 +1,4 @@
1
+ export declare const workflowGoogleDriveClientId: string;
1
2
  export declare const environment: string;
2
3
  export declare const app: string;
3
4
  export declare const appPath: string;
@@ -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";
@@ -1 +1,3 @@
1
- export declare function isValidTagString(keyOrValue: string, allowStar?: boolean): boolean;
1
+ export declare function isValidTagString(keyOrValue: string, config?: {
2
+ allowStar?: boolean;
3
+ }): boolean;
@@ -1,3 +1,4 @@
1
+ export declare const redactKeys: string[];
1
2
  /**
2
3
  * Returns a copy of an object with sensitive information redacted.
3
4
  */
@@ -3,8 +3,9 @@ export interface IPromiseIntervalOptions {
3
3
  delay: number;
4
4
  immediate?: boolean;
5
5
  }
6
- export interface IShutdownPromiseInterval {
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): IShutdownPromiseInterval;
17
+ export declare function setPromiseInterval({ func, delay, immediate, }: IPromiseIntervalOptions): IPromiseIntervalHandle;
@@ -0,0 +1,4 @@
1
+ export declare function truncate(message: string, options?: {
2
+ maxMessageLength?: number;
3
+ truncatedMessageEndLength?: number;
4
+ }): string;