@viamrobotics/sdk 0.23.1 → 0.24.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/dist/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +2 -2
- package/dist/app/viam-transport.d.ts +6 -1
- package/dist/gen/app/v1/billing_pb.d.ts +40 -0
- package/dist/gen/app/v1/billing_pb_service.d.ts +19 -0
- package/dist/main.es.js +918 -801
- package/dist/main.umd.js +2 -2
- package/dist/robot/client.d.ts +2 -1
- package/dist/robot/dial.d.ts +3 -6
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { grpc } from '@improbable-eng/grpc-web';
|
|
2
|
-
import { type Credentials } from '
|
|
2
|
+
import { type Credentials } from '../app/viam-transport';
|
|
3
3
|
import { EventDispatcher } from '../events';
|
|
4
4
|
import type { PoseInFrame, ResourceName, Transform } from '../gen/common/v1/common_pb';
|
|
5
5
|
import { ArmServiceClient } from '../gen/component/arm/v1/arm_pb_service';
|
|
@@ -68,6 +68,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
68
68
|
private connectResolve;
|
|
69
69
|
private savedAuthEntity;
|
|
70
70
|
private savedCreds;
|
|
71
|
+
private closed;
|
|
71
72
|
private robotServiceClient;
|
|
72
73
|
private armServiceClient;
|
|
73
74
|
private baseServiceClient;
|
package/dist/robot/dial.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import type { AccessToken, Credential } from '../main';
|
|
1
2
|
import { RobotClient } from './client';
|
|
2
|
-
interface Credential {
|
|
3
|
-
type: string;
|
|
4
|
-
payload: string;
|
|
5
|
-
}
|
|
6
3
|
/** Options required to dial a robot via gRPC. */
|
|
7
4
|
export interface DialDirectConf {
|
|
8
5
|
authEntity?: string;
|
|
9
6
|
host: string;
|
|
10
|
-
credential?: Credential;
|
|
7
|
+
credential?: Credential | AccessToken;
|
|
11
8
|
disableSessions?: boolean;
|
|
12
9
|
noReconnect?: boolean;
|
|
13
10
|
reconnectMaxAttempts?: number;
|
|
@@ -32,7 +29,7 @@ interface ICEServer {
|
|
|
32
29
|
export interface DialWebRTCConf {
|
|
33
30
|
authEntity?: string;
|
|
34
31
|
host: string;
|
|
35
|
-
credential?: Credential;
|
|
32
|
+
credential?: Credential | AccessToken;
|
|
36
33
|
disableSessions?: boolean;
|
|
37
34
|
noReconnect?: boolean;
|
|
38
35
|
reconnectMaxAttempts?: number;
|