@viamrobotics/sdk 0.56.0 → 0.58.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 (76) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +21 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/events.d.ts +2 -1
  6. package/dist/gen/app/data/v1/data_connect.d.ts +12 -1
  7. package/dist/gen/app/data/v1/data_pb.d.ts +67 -0
  8. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +12 -1
  9. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +107 -0
  10. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  11. package/dist/gen/app/v1/billing_pb.d.ts +10 -0
  12. package/dist/gen/app/v1/robot_pb.d.ts +7 -0
  13. package/dist/gen/common/v1/common_pb.d.ts +1 -1
  14. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  15. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +10 -1
  16. package/dist/gen/google/api/routing_pb.d.ts +508 -0
  17. package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +102 -0
  18. package/dist/gen/google/iam/v1/iam_policy_pb.d.ts +179 -0
  19. package/dist/gen/google/iam/v1/options_pb.d.ts +67 -0
  20. package/dist/gen/google/iam/v1/policy_pb.d.ts +668 -0
  21. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  22. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  23. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  24. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  25. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  26. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  27. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  28. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  29. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  30. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  31. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  32. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  33. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  34. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  35. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  36. package/dist/gen/robot/v1/robot_pb.d.ts +83 -0
  37. package/dist/main.es.js +13572 -12946
  38. package/dist/main.umd.js +7 -7
  39. package/dist/robot/client.d.ts +33 -16
  40. package/dist/robot/robot.d.ts +19 -10
  41. package/dist/robot.d.ts +1 -1
  42. package/dist/services/motion/client.d.ts +1 -0
  43. package/dist/services/motion/motion.d.ts +1 -0
  44. package/package.json +11 -7
  45. package/dist/__fixtures__/credentials.d.ts +0 -5
  46. package/dist/__fixtures__/test-constants.d.ts +0 -4
  47. package/dist/__mocks__/transports.d.ts +0 -2
  48. package/dist/__mocks__/webrtc.d.ts +0 -2
  49. package/dist/app/app-client.spec.d.ts +0 -1
  50. package/dist/app/billing-client.spec.d.ts +0 -1
  51. package/dist/app/data-client.spec.d.ts +0 -1
  52. package/dist/app/ml-training-client.spec.d.ts +0 -1
  53. package/dist/app/provisioning-client.spec.d.ts +0 -1
  54. package/dist/app/viam-client.spec.d.ts +0 -1
  55. package/dist/components/audio-in/client.spec.d.ts +0 -1
  56. package/dist/components/audio-out/client.spec.d.ts +0 -1
  57. package/dist/components/board/client.spec.d.ts +0 -1
  58. package/dist/components/input-controller/client.spec.d.ts +0 -1
  59. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  60. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  61. package/dist/extra/stream/client.spec.d.ts +0 -1
  62. package/dist/robot/__fixtures__/dial-configs.d.ts +0 -4
  63. package/dist/robot/__mocks__/robot-service.d.ts +0 -5
  64. package/dist/robot/__tests__/client.spec.d.ts +0 -1
  65. package/dist/robot/__tests__/grpc-connection-manager.spec.d.ts +0 -1
  66. package/dist/robot/__tests__/session-manager.spec.d.ts +0 -1
  67. package/dist/rpc/__fixtures__/dial-options.d.ts +0 -6
  68. package/dist/rpc/__fixtures__/dial-webrtc-options.d.ts +0 -8
  69. package/dist/rpc/__mocks__/signaling-exchanges.d.ts +0 -3
  70. package/dist/rpc/__tests__/dial.spec.d.ts +0 -1
  71. package/dist/services/discovery/client.spec.d.ts +0 -1
  72. package/dist/services/motion/client.spec.d.ts +0 -1
  73. package/dist/services/navigation/client.spec.d.ts +0 -1
  74. package/dist/services/slam/client.spec.d.ts +0 -1
  75. package/dist/services/vision/client.spec.d.ts +0 -1
  76. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -3,7 +3,7 @@ import { type Client } from '@connectrpc/connect';
3
3
  import { type Credentials } from '../app/viam-transport';
4
4
  import { EventDispatcher } from '../events';
5
5
  import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
6
- import { GetModelsFromModulesRequest, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
6
+ import { GetModelsFromModulesRequest, GetPoseRequest, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
7
7
  import type { Robot } from './robot';
8
8
  import type { AccessToken, Credential } from '../main';
9
9
  interface ICEServer {
@@ -94,6 +94,8 @@ export declare class RobotClient extends EventDispatcher implements Robot {
94
94
  private transport;
95
95
  private connecting;
96
96
  private connectResolve;
97
+ private dialing;
98
+ private currentDialAbortSignal;
97
99
  private savedCreds;
98
100
  private closed;
99
101
  private robotServiceClient;
@@ -259,7 +261,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
259
261
  };
260
262
  readonly getPose: {
261
263
  readonly name: "GetPose";
262
- readonly I: typeof import("../gen/robot/v1/robot_pb").GetPoseRequest;
264
+ readonly I: typeof GetPoseRequest;
263
265
  readonly O: typeof import("../gen/robot/v1/robot_pb").GetPoseResponse;
264
266
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
265
267
  };
@@ -275,6 +277,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
275
277
  readonly O: typeof import("../gen/robot/v1/robot_pb").TransformPCDResponse;
276
278
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
277
279
  };
280
+ readonly sendTraces: {
281
+ readonly name: "SendTraces";
282
+ readonly I: typeof import("../gen/robot/v1/robot_pb").SendTracesRequest;
283
+ readonly O: typeof import("../gen/robot/v1/robot_pb").SendTracesResponse;
284
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
285
+ };
278
286
  };
279
287
  }>;
280
288
  get armService(): Client<{
@@ -437,7 +445,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
437
445
  readonly pWMFrequency: {
438
446
  readonly name: "PWMFrequency";
439
447
  readonly I: typeof import("../gen/component/board/v1/board_pb").PWMFrequencyRequest;
440
- readonly O: typeof import("../gen/component/board/v1/board_pb").PWMFrequencyResponse; /** @default 10. */
448
+ readonly O: typeof import("../gen/component/board/v1/board_pb").PWMFrequencyResponse;
441
449
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
442
450
  };
443
451
  readonly setPWMFrequency: {
@@ -568,6 +576,13 @@ export declare class RobotClient extends EventDispatcher implements Robot {
568
576
  readonly name: "DoCommand";
569
577
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
570
578
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
579
+ /** Options required to dial a robot via gRPC. */
580
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
581
+ };
582
+ readonly getKinematics: {
583
+ readonly name: "GetKinematics";
584
+ readonly I: typeof import("../gen/common/v1/common_pb").GetKinematicsRequest;
585
+ readonly O: typeof import("../gen/common/v1/common_pb").GetKinematicsResponse;
571
586
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
572
587
  };
573
588
  readonly getGeometries: {
@@ -630,7 +645,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
630
645
  };
631
646
  readonly doCommand: {
632
647
  readonly name: "DoCommand";
633
- readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest; /** @default Number.POSITIVE_INFINITY */
648
+ readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
634
649
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
635
650
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
636
651
  };
@@ -706,7 +721,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
706
721
  };
707
722
  readonly getAccuracy: {
708
723
  readonly name: "GetAccuracy";
709
- /** Options required to dial a robot via gRPC. */
710
724
  readonly I: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyRequest;
711
725
  readonly O: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyResponse;
712
726
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -835,13 +849,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
835
849
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
836
850
  };
837
851
  readonly setRPM: {
838
- readonly name: "SetRPM";
852
+ readonly name: "SetRPM"; /** @default Number.POSITIVE_INFINITY */
839
853
  readonly I: typeof import("../gen/component/motor/v1/motor_pb").SetRPMRequest;
840
854
  readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
841
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary; /**
842
- * Set timeout in milliseconds for dialing. Default is defined by
843
- * DIAL_TIMEOUT. A value of 0 disables the timeout.
844
- */
855
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
845
856
  };
846
857
  readonly resetZeroPosition: {
847
858
  readonly name: "ResetZeroPosition";
@@ -882,7 +893,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
882
893
  readonly doCommand: {
883
894
  readonly name: "DoCommand";
884
895
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
885
- readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
896
+ readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse; /**
897
+ * Validates a DialConf passed to createRobotClient. Throws an error for invalid
898
+ * configs.
899
+ */
886
900
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
887
901
  };
888
902
  readonly getGeometries: {
@@ -940,7 +954,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
940
954
  };
941
955
  readonly getPaths: {
942
956
  readonly name: "GetPaths";
943
- /** Options required to dial a robot via gRPC. */
944
957
  readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetPathsRequest;
945
958
  readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPathsResponse;
946
959
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -950,7 +963,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
950
963
  readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesRequest;
951
964
  readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse;
952
965
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
953
- };
966
+ }; /** Options required to dial a robot. */
954
967
  readonly doCommand: {
955
968
  readonly name: "DoCommand";
956
969
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
@@ -1117,7 +1130,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1117
1130
  };
1118
1131
  readonly getGeometries: {
1119
1132
  readonly name: "GetGeometries";
1120
- /** @default 10. */
1121
1133
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
1122
1134
  readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
1123
1135
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -1146,7 +1158,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1146
1158
  readonly kind: import("@bufbuild/protobuf").MethodKind.ServerStreaming;
1147
1159
  };
1148
1160
  readonly getProperties: {
1149
- /** Options required to dial a robot via WebRTC. */
1150
1161
  readonly name: "GetProperties";
1151
1162
  readonly I: typeof import("../gen/service/slam/v1/slam_pb").GetPropertiesRequest;
1152
1163
  readonly O: typeof import("../gen/service/slam/v1/slam_pb").GetPropertiesResponse;
@@ -1194,7 +1205,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1194
1205
  private get clientTransport();
1195
1206
  private dialWebRTC;
1196
1207
  private dialDirect;
1197
- dial(conf: DialConf): Promise<this>;
1208
+ private resetDialing;
1209
+ dial(conf: DialConf): Promise<RobotClient>;
1210
+ private createBackOffOpts;
1211
+ private tryWebRTCDial;
1212
+ private tryDirectDial;
1213
+ private performDial;
1198
1214
  disconnect(): Promise<void>;
1199
1215
  isConnected(): boolean;
1200
1216
  connect({ creds, priority, dialTimeout, }?: ConnectOptions): Promise<void>;
@@ -1213,5 +1229,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1213
1229
  getMachineStatus(): Promise<import("../gen/robot/v1/robot_pb").GetMachineStatusResponse>;
1214
1230
  getVersion(): Promise<import("../gen/robot/v1/robot_pb").GetVersionResponse>;
1215
1231
  restartModule(moduleId?: string, moduleName?: string): Promise<void>;
1232
+ getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
1216
1233
  }
1217
1234
  export {};
@@ -1,9 +1,18 @@
1
- import type { Struct } from '@bufbuild/protobuf';
1
+ import type { PlainMessage, Struct } from '@bufbuild/protobuf';
2
2
  import { MachineConnectionEvent } from '../events';
3
- import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
4
3
  import * as proto from '../gen/robot/v1/robot_pb';
5
- import type { ResourceName } from '../types';
6
- export type CloudMetadata = proto.GetCloudMetadataResponse;
4
+ import type { PoseInFrame, ResourceName, Transform } from '../types';
5
+ export type CloudMetadata = PlainMessage<proto.GetCloudMetadataResponse>;
6
+ export type ConfigStatus = PlainMessage<proto.ConfigStatus>;
7
+ export type FrameSystemConfig = PlainMessage<proto.FrameSystemConfig>;
8
+ export type JobStatus = PlainMessage<proto.JobStatus>;
9
+ export type MachineStatus = PlainMessage<proto.GetMachineStatusResponse>;
10
+ export type MachineStatusState = proto.GetMachineStatusResponse_State;
11
+ export type ModuleModel = PlainMessage<proto.ModuleModel>;
12
+ export type ResourceRPCSubtype = PlainMessage<proto.ResourceRPCSubtype>;
13
+ export type ResourceStatus = PlainMessage<proto.ResourceStatus>;
14
+ export type Session = PlainMessage<proto.Session>;
15
+ export type Operation = PlainMessage<proto.Operation>;
7
16
  type Callback = (args: unknown) => void;
8
17
  export interface Robot {
9
18
  /**
@@ -18,7 +27,7 @@ export interface Robot {
18
27
  * @group Sessions
19
28
  * @alpha
20
29
  */
21
- getSessions(): Promise<proto.Session[]>;
30
+ getSessions(): Promise<Session[]>;
22
31
  /**
23
32
  * Get the list of operations currently running on the machine.
24
33
  *
@@ -31,7 +40,7 @@ export interface Robot {
31
40
  * @group Operations
32
41
  * @alpha
33
42
  */
34
- getOperations(): Promise<proto.Operation[]>;
43
+ getOperations(): Promise<Operation[]>;
35
44
  /**
36
45
  * Cancels the specified operation on the machine.
37
46
  *
@@ -89,7 +98,7 @@ export interface Robot {
89
98
  * @group Frame System
90
99
  * @alpha
91
100
  */
92
- frameSystemConfig(transform: Transform[]): Promise<proto.FrameSystemConfig[]>;
101
+ frameSystemConfig(transform: Transform[]): Promise<FrameSystemConfig[]>;
93
102
  /**
94
103
  * Transform a given source Pose from the reference frame to a new specified
95
104
  * destination which is a reference frame.
@@ -130,7 +139,7 @@ export interface Robot {
130
139
  * @group Resources
131
140
  * @alpha
132
141
  */
133
- getModelsFromModules(): Promise<proto.ModuleModel[]>;
142
+ getModelsFromModules(): Promise<ModuleModel[]>;
134
143
  /**
135
144
  * Get a list of all resources on the machine.
136
145
  *
@@ -156,7 +165,7 @@ export interface Robot {
156
165
  * @group Resources
157
166
  * @alpha
158
167
  */
159
- resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
168
+ resourceRPCSubtypes(): Promise<ResourceRPCSubtype[]>;
160
169
  /**
161
170
  * Call a function when a connection event occurs.
162
171
  *
@@ -195,7 +204,7 @@ export interface Robot {
195
204
  *
196
205
  * @alpha
197
206
  */
198
- getMachineStatus(): Promise<proto.GetMachineStatusResponse>;
207
+ getMachineStatus(): Promise<MachineStatus>;
199
208
  /**
200
209
  * Restarts a module running on the machine with the given id or name.
201
210
  *
package/dist/robot.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { RobotClient, type DialConf, type DialDirectConf, type DialWebRTCConf, } from './robot/client';
2
2
  export { createRobotClient } from './robot/dial';
3
- export type { CloudMetadata, Robot } from './robot/robot';
3
+ export * from './robot/robot';
@@ -21,6 +21,7 @@ export declare class MotionClient implements Motion {
21
21
  stopPlan(componentName: string, extra?: {}, callOptions?: CallOptions): Promise<null>;
22
22
  getPlan(componentName: string, lastPlanOnly?: boolean, executionId?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").GetPlanResponse>;
23
23
  listPlanStatuses(onlyActivePlans?: boolean, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
24
+ /** @deprecated Use `RobotClient.getPose` instead. */
24
25
  getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
25
26
  doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
26
27
  }
@@ -229,6 +229,7 @@ export interface Motion extends Resource {
229
229
  /**
230
230
  * Get the current location and orientation of a component.
231
231
  *
232
+ * @deprecated Use `RobotClient.getPose` instead.
232
233
  * @example
233
234
  *
234
235
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.56.0",
3
+ "version": "0.58.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",
@@ -29,15 +29,17 @@
29
29
  "lint": "concurrently -g npm:lint:*",
30
30
  "lint:prettier": "npm run _prettier -- --check",
31
31
  "lint:eslint": "npm run _eslint",
32
- "test": "vitest run",
33
- "test:watch": "vitest",
32
+ "test": "vitest run --config vite.config.ts",
33
+ "test:watch": "vitest --config vite.config.ts",
34
34
  "typecheck": "concurrently -g npm:typecheck:*",
35
35
  "typecheck:src": "tsc",
36
36
  "typecheck:node": "tsc --project tsconfig.node.json",
37
- "e2e:playwright": "playwright test",
38
- "e2e:playwright-ui": "playwright test --ui",
39
- "e2e:playwright-debug": "playwright test --debug",
40
- "e2e:playwright-install": "playwright install",
37
+ "e2e:browser": "playwright test",
38
+ "e2e:browser-ui": "playwright test --ui",
39
+ "e2e:browser-debug": "playwright test --debug",
40
+ "e2e:browser-install": "playwright install --with-deps",
41
+ "e2e:node": "vitest run --config e2e/vite.config.ts",
42
+ "e2e:node-watch": "vitest --config e2e/vite.config.ts",
41
43
  "e2e:test-harness": "vite e2e",
42
44
  "_eslint": "eslint '.*.cjs' '**/*.{ts,js,cjs}'",
43
45
  "_prettier": "prettier '.*.cjs' '**/*.{ts,js,cjs}'"
@@ -60,6 +62,7 @@
60
62
  },
61
63
  "devDependencies": {
62
64
  "@bufbuild/buf": "^1.15.0-1",
65
+ "@connectrpc/connect-node": "1.6.1",
63
66
  "@playwright/test": "1.56.1",
64
67
  "@types/node": "^20.11.10",
65
68
  "@typescript-eslint/eslint-plugin": "^6.17.0",
@@ -67,6 +70,7 @@
67
70
  "@viamrobotics/eslint-config": "^0.4.0",
68
71
  "@viamrobotics/prettier-config": "^0.3.4",
69
72
  "@viamrobotics/typescript-config": "^0.1.0",
73
+ "@vitest/ui": "^1.6.1",
70
74
  "concurrently": "^8.0.1",
71
75
  "copyfiles": "^2.4.1",
72
76
  "eslint": "^8.56.0",
@@ -1,5 +0,0 @@
1
- import type { Credential, AccessToken } from '../main';
2
- export declare const testCredential: Credential;
3
- export declare const differentCredential: Credential;
4
- export declare const testAccessToken: AccessToken;
5
- export declare const differentAccessToken: AccessToken;
@@ -1,4 +0,0 @@
1
- export declare const TEST_URL = "http://base.test";
2
- export declare const TEST_HOST = "test-host";
3
- export declare const TEST_AUTH_ENTITY = "test-entity";
4
- export declare const TEST_SIGNALING_ADDRESS = "https://signaling.test";
@@ -1,2 +0,0 @@
1
- import type { Transport } from '@connectrpc/connect';
2
- export declare const createMockTransport: () => Transport;
@@ -1,2 +0,0 @@
1
- export declare const createMockPeerConnection: (closeFn?: import("vitest").Mock<any, any>, addEventListenerFn?: import("vitest").Mock<any, any>, removeEventListenerFn?: import("vitest").Mock<any, any>, iceConnectionState?: RTCIceConnectionState) => RTCPeerConnection;
2
- export declare const createMockDataChannel: (closeFn?: import("vitest").Mock<any, any>, addEventListenerFn?: import("vitest").Mock<any, any>, removeEventListenerFn?: import("vitest").Mock<any, any>, readyState?: RTCDataChannelState) => RTCDataChannel;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import type { DialConf } from '../../main';
2
- export declare const baseDialConfig: DialConf;
3
- export declare const withDisableSessions: DialConf;
4
- export declare const withNoReconnect: DialConf;
@@ -1,5 +0,0 @@
1
- import { type Transport } from '@connectrpc/connect';
2
- import type { PartialMessage } from '@bufbuild/protobuf';
3
- import type { Operation } from '../../gen/robot/v1/robot_pb';
4
- import type { ResourceName } from '../../gen/common/v1/common_pb';
5
- export declare const createMockRobotServiceTransport: (resources?: PartialMessage<ResourceName>[], operations?: PartialMessage<Operation>[]) => Transport;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import type { DialOptions } from '../dial';
2
- export { TEST_URL, TEST_HOST } from '../../__fixtures__/test-constants';
3
- export declare const withAccessToken: DialOptions;
4
- export declare const withCredentials: DialOptions;
5
- export declare const withSignalingAccessToken: DialOptions;
6
- export declare const withSignalingCredentials: DialOptions;
@@ -1,8 +0,0 @@
1
- export declare const withICEServers: {
2
- disableTrickleICE: false;
3
- rtcConfig: RTCConfiguration;
4
- additionalSdpFields: {
5
- 'custom-field': string;
6
- 'another-field': number;
7
- };
8
- };
@@ -1,3 +0,0 @@
1
- import { SignalingExchange } from '../signaling-exchange';
2
- import type { DialWebRTCOptions } from '../dial';
3
- export declare const createMockSignalingExchange: (transport?: import("@connectrpc/connect").Transport, peerConnection?: RTCPeerConnection, dataChannel?: RTCDataChannel, webrtcOptions?: DialWebRTCOptions) => SignalingExchange;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};