@viamrobotics/sdk 0.14.0 → 0.15.0-rc.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/README.md +6 -1
- package/dist/app/billing-client.d.ts +15 -0
- package/dist/app/ml-training-client.d.ts +17 -0
- package/dist/app/provisioning-client.d.ts +35 -0
- package/dist/app/viam-client.d.ts +6 -0
- package/dist/components/board/board.d.ts +0 -11
- package/dist/components/board/client.d.ts +0 -12
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +78 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +19 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +1 -0
- package/dist/gen/app/v1/app_pb.d.ts +42 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +84 -0
- package/dist/gen/app/v1/end_user_pb_service.d.ts +19 -0
- package/dist/gen/common/v1/common_pb.d.ts +0 -6
- package/dist/gen/robot/v1/robot_pb.d.ts +51 -0
- package/dist/gen/robot/v1/robot_pb_service.d.ts +19 -0
- package/dist/gen/tagger/v1/tagger_pb.d.ts +10 -0
- package/dist/gen/tagger/v1/tagger_pb_service.d.ts +3 -0
- package/dist/main.d.ts +34 -1
- package/dist/main.es.js +16200 -12394
- package/dist/main.umd.js +19 -19
- package/package.json +1 -1
- package/dist/provisioning/client.d.ts +0 -15
- package/dist/provisioning/provisioning.d.ts +0 -23
- package/dist/provisioning/types.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type Options } from '../types';
|
|
2
|
-
import pb from '../gen/provisioning/v1/provisioning_pb';
|
|
3
|
-
import { RobotClient } from '../robot';
|
|
4
|
-
import type { Provisioning } from './provisioning';
|
|
5
|
-
import { type CloudConfig } from './types';
|
|
6
|
-
export declare class ProvisioningClient implements Provisioning {
|
|
7
|
-
private client;
|
|
8
|
-
private readonly options;
|
|
9
|
-
constructor(client: RobotClient, options?: Options);
|
|
10
|
-
private get service();
|
|
11
|
-
getSmartMachineStatus(): Promise<pb.GetSmartMachineStatusResponse.AsObject>;
|
|
12
|
-
setNetworkCredentials(type: string, ssid: string, psk: string): Promise<void>;
|
|
13
|
-
setSmartMachineCredentials(cloud?: CloudConfig): Promise<void>;
|
|
14
|
-
getNetworkList(): Promise<pb.NetworkInfo.AsObject[]>;
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { CloudConfig, NetworkInfo, SmartMachineStatus } from './types';
|
|
2
|
-
export interface Provisioning {
|
|
3
|
-
/** Get the status of the Smart Machine */
|
|
4
|
-
getSmartMachineStatus: () => Promise<SmartMachineStatus>;
|
|
5
|
-
/**
|
|
6
|
-
* Set the network credentials of the Smart Machine, so it can connect to the
|
|
7
|
-
* internet.
|
|
8
|
-
*
|
|
9
|
-
* @param type - The type of network.
|
|
10
|
-
* @param ssid - The SSID of the network.
|
|
11
|
-
* @param psk - The network's passkey.
|
|
12
|
-
*/
|
|
13
|
-
setNetworkCredentials: (type: string, ssid: string, psk: string) => Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Set the Viam credentials of the smart machine credentials, so it connect to
|
|
16
|
-
* the Cloud.
|
|
17
|
-
*
|
|
18
|
-
* @param cloud - The configuration of the Cloud.
|
|
19
|
-
*/
|
|
20
|
-
setSmartMachineCredentials: (cloud?: CloudConfig) => Promise<void>;
|
|
21
|
-
/** Get the networks that are visible to the Smart Machine. */
|
|
22
|
-
getNetworkList: () => Promise<NetworkInfo[]>;
|
|
23
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import pb from '../gen/provisioning/v1/provisioning_pb';
|
|
2
|
-
export type SmartMachineStatus = pb.GetSmartMachineStatusResponse.AsObject;
|
|
3
|
-
export type NetworkInfo = pb.NetworkInfo.AsObject;
|
|
4
|
-
export type CloudConfig = pb.CloudConfig.AsObject;
|
|
5
|
-
export declare const encodeCloudConfig: (obj: pb.CloudConfig.AsObject) => pb.CloudConfig;
|