@viamrobotics/sdk 0.14.0-rc.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/README.md
CHANGED
|
@@ -28,7 +28,12 @@ npm install @viamrobotics/sdk
|
|
|
28
28
|
|
|
29
29
|
[https://ts.viam.dev](https://ts.viam.dev/)
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## React Native
|
|
32
|
+
|
|
33
|
+
To use this SDK with React Native, read the [documentation](/ReactNative.md) or view the [example](/examples/react-native/)
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
32
37
|
Copyright 2022-2023 Viam Inc.
|
|
33
38
|
|
|
34
39
|
Apache 2.0 - See [LICENSE](https://github.com/viamrobotics/viam-typescript-sdk/blob/main/LICENSE) file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
|
|
2
|
+
import pb from '../gen/app/v1/billing_pb';
|
|
3
|
+
type GetCurrentMonthUsageResponse = Partial<pb.GetCurrentMonthUsageResponse.AsObject> & {
|
|
4
|
+
start?: Date;
|
|
5
|
+
end?: Date;
|
|
6
|
+
};
|
|
7
|
+
export declare class BillingClient {
|
|
8
|
+
private service;
|
|
9
|
+
constructor(serviceHost: string, grpcOptions: RpcOptions);
|
|
10
|
+
getCurrentMonthUsage(orgId: string): Promise<GetCurrentMonthUsageResponse>;
|
|
11
|
+
getOrgBillingInformation(orgId: string): Promise<pb.GetOrgBillingInformationResponse.AsObject>;
|
|
12
|
+
getInvoicesSummary(orgId: string): Promise<pb.GetInvoicesSummaryResponse.AsObject>;
|
|
13
|
+
getInvoicePdf(id: string, orgId: string): Promise<Uint8Array>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
|
|
2
|
+
import pb from '../gen/app/mltraining/v1/ml_training_pb';
|
|
3
|
+
type ValueOf<T> = T[keyof T];
|
|
4
|
+
export declare const ModelType: pb.ModelTypeMap;
|
|
5
|
+
export type ModelType = ValueOf<typeof pb.ModelType>;
|
|
6
|
+
export declare const TrainingStatus: pb.TrainingStatusMap;
|
|
7
|
+
export type TrainingStatus = ValueOf<typeof pb.TrainingStatus>;
|
|
8
|
+
export declare class MlTrainingClient {
|
|
9
|
+
private service;
|
|
10
|
+
constructor(serviceHost: string, grpcOptions: RpcOptions);
|
|
11
|
+
submitTrainingJob(orgId: string, datasetId: string, modelName: string, modelVersion: string, modelType: ModelType, tagsList: string[]): Promise<string>;
|
|
12
|
+
getTrainingJob(id: string): Promise<pb.TrainingJobMetadata | undefined>;
|
|
13
|
+
listTrainingJobs(orgId: string, status: TrainingStatus): Promise<pb.TrainingJobMetadata.AsObject[]>;
|
|
14
|
+
cancelTrainingJob(id: string): Promise<null>;
|
|
15
|
+
deleteCompletedTrainingJob(id: string): Promise<null>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
|
|
2
|
+
import pb from '../gen/provisioning/v1/provisioning_pb';
|
|
3
|
+
export type CloudConfig = pb.CloudConfig.AsObject;
|
|
4
|
+
export declare class ProvisioningClient {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(serviceHost: string, grpcOptions?: RpcOptions);
|
|
7
|
+
/**
|
|
8
|
+
* Get the status of the Smart Machine.
|
|
9
|
+
*
|
|
10
|
+
* @returns The Smart Machine status
|
|
11
|
+
*/
|
|
12
|
+
getSmartMachineStatus(): Promise<pb.GetSmartMachineStatusResponse.AsObject>;
|
|
13
|
+
/**
|
|
14
|
+
* Set the network credentials of the Smart Machine, so it can connect to the
|
|
15
|
+
* internet.
|
|
16
|
+
*
|
|
17
|
+
* @param type - The type of network
|
|
18
|
+
* @param ssid - The SSID of the network
|
|
19
|
+
* @param psk - The network's passkey
|
|
20
|
+
*/
|
|
21
|
+
setNetworkCredentials(type: string, ssid: string, psk: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Set the Viam credentials of the smart machine credentials, so it connect to
|
|
24
|
+
* the Cloud.
|
|
25
|
+
*
|
|
26
|
+
* @param cloud - The configuration of the Cloud
|
|
27
|
+
*/
|
|
28
|
+
setSmartMachineCredentials(cloud?: CloudConfig): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the networks that are visible to the Smart Machine.
|
|
31
|
+
*
|
|
32
|
+
* @returns A list of networks
|
|
33
|
+
*/
|
|
34
|
+
getNetworkList(): Promise<pb.NetworkInfo.AsObject[]>;
|
|
35
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { grpc } from '@improbable-eng/grpc-web';
|
|
2
2
|
import { type Credential, type AccessToken } from './viam-transport';
|
|
3
3
|
import { DataClient } from './data-client';
|
|
4
|
+
import { BillingClient } from './billing-client';
|
|
5
|
+
import { MlTrainingClient } from './ml-training-client';
|
|
6
|
+
import { ProvisioningClient } from './provisioning-client';
|
|
4
7
|
export interface ViamClientOptions {
|
|
5
8
|
serviceHost?: string;
|
|
6
9
|
credential: Credential | AccessToken;
|
|
@@ -12,6 +15,9 @@ export declare class ViamClient {
|
|
|
12
15
|
private transportFactory;
|
|
13
16
|
private serviceHost;
|
|
14
17
|
dataClient: DataClient | undefined;
|
|
18
|
+
mlTrainingClient: MlTrainingClient | undefined;
|
|
19
|
+
provisioningClient: ProvisioningClient | undefined;
|
|
20
|
+
billingClient: BillingClient | undefined;
|
|
15
21
|
constructor(transportFactory: grpc.TransportFactory, serviceHost: string);
|
|
16
22
|
connect(): void;
|
|
17
23
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { type Duration as PBDuration } from 'google-protobuf/google/protobuf/duration_pb';
|
|
2
2
|
import pb from '../../gen/component/board/v1/board_pb';
|
|
3
3
|
import type { Resource, StructType } from '../../types';
|
|
4
|
-
interface Status {
|
|
5
|
-
analogs: Record<string, number>;
|
|
6
|
-
digitalInterrupts: Record<string, number>;
|
|
7
|
-
}
|
|
8
4
|
type ValueOf<T> = T[keyof T];
|
|
9
5
|
export declare const PowerMode: pb.PowerModeMap;
|
|
10
6
|
export type PowerMode = ValueOf<typeof pb.PowerMode>;
|
|
@@ -19,13 +15,6 @@ export type Duration = PBDuration.AsObject;
|
|
|
19
15
|
* components such as analog readers, and digital interrupts.
|
|
20
16
|
*/
|
|
21
17
|
export interface Board extends Resource {
|
|
22
|
-
/** Get the status of the board. */
|
|
23
|
-
getStatus(extra?: StructType): Promise<Status>;
|
|
24
|
-
/**
|
|
25
|
-
* Get the high/low state of the given pin of a board.
|
|
26
|
-
*
|
|
27
|
-
* @param pin - The pin.
|
|
28
|
-
*/
|
|
29
18
|
getGPIO(pin: string, extra?: StructType): Promise<boolean>;
|
|
30
19
|
/**
|
|
31
20
|
* Set the high/low state of the given pin of a board.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import type { Options, StructType } from '../../types';
|
|
3
|
-
import pb from '../../gen/component/board/v1/board_pb';
|
|
4
3
|
import type { Board, Duration, PowerMode, Tick } from './board';
|
|
5
4
|
/**
|
|
6
5
|
* A gRPC-web client for the Board component.
|
|
@@ -13,17 +12,6 @@ export declare class BoardClient implements Board {
|
|
|
13
12
|
private readonly options;
|
|
14
13
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
14
|
private get boardService();
|
|
16
|
-
private getRawStatusResponse;
|
|
17
|
-
/**
|
|
18
|
-
* Get the status of the board as a raw protobuf response.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated Use {@link BoardClient#getStatus} instead.
|
|
21
|
-
*/
|
|
22
|
-
status(extra?: {}): Promise<pb.StatusResponse>;
|
|
23
|
-
getStatus(extra?: {}): Promise<{
|
|
24
|
-
analogs: Record<string, number>;
|
|
25
|
-
digitalInterrupts: Record<string, number>;
|
|
26
|
-
}>;
|
|
27
15
|
setGPIO(pin: string, high: boolean, extra?: {}): Promise<void>;
|
|
28
16
|
getGPIO(pin: string, extra?: {}): Promise<boolean>;
|
|
29
17
|
getPWM(pin: string, extra?: {}): Promise<number>;
|
|
@@ -68,6 +68,62 @@ export namespace SubmitTrainingJobResponse {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
export class SubmitCustomTrainingJobRequest extends jspb.Message {
|
|
72
|
+
getDatasetId(): string;
|
|
73
|
+
setDatasetId(value: string): void;
|
|
74
|
+
|
|
75
|
+
getRegistryItemId(): string;
|
|
76
|
+
setRegistryItemId(value: string): void;
|
|
77
|
+
|
|
78
|
+
getOrganizationId(): string;
|
|
79
|
+
setOrganizationId(value: string): void;
|
|
80
|
+
|
|
81
|
+
getModelName(): string;
|
|
82
|
+
setModelName(value: string): void;
|
|
83
|
+
|
|
84
|
+
getModelVersion(): string;
|
|
85
|
+
setModelVersion(value: string): void;
|
|
86
|
+
|
|
87
|
+
serializeBinary(): Uint8Array;
|
|
88
|
+
toObject(includeInstance?: boolean): SubmitCustomTrainingJobRequest.AsObject;
|
|
89
|
+
static toObject(includeInstance: boolean, msg: SubmitCustomTrainingJobRequest): SubmitCustomTrainingJobRequest.AsObject;
|
|
90
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
+
static serializeBinaryToWriter(message: SubmitCustomTrainingJobRequest, writer: jspb.BinaryWriter): void;
|
|
93
|
+
static deserializeBinary(bytes: Uint8Array): SubmitCustomTrainingJobRequest;
|
|
94
|
+
static deserializeBinaryFromReader(message: SubmitCustomTrainingJobRequest, reader: jspb.BinaryReader): SubmitCustomTrainingJobRequest;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace SubmitCustomTrainingJobRequest {
|
|
98
|
+
export type AsObject = {
|
|
99
|
+
datasetId: string,
|
|
100
|
+
registryItemId: string,
|
|
101
|
+
organizationId: string,
|
|
102
|
+
modelName: string,
|
|
103
|
+
modelVersion: string,
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class SubmitCustomTrainingJobResponse extends jspb.Message {
|
|
108
|
+
getId(): string;
|
|
109
|
+
setId(value: string): void;
|
|
110
|
+
|
|
111
|
+
serializeBinary(): Uint8Array;
|
|
112
|
+
toObject(includeInstance?: boolean): SubmitCustomTrainingJobResponse.AsObject;
|
|
113
|
+
static toObject(includeInstance: boolean, msg: SubmitCustomTrainingJobResponse): SubmitCustomTrainingJobResponse.AsObject;
|
|
114
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
115
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
116
|
+
static serializeBinaryToWriter(message: SubmitCustomTrainingJobResponse, writer: jspb.BinaryWriter): void;
|
|
117
|
+
static deserializeBinary(bytes: Uint8Array): SubmitCustomTrainingJobResponse;
|
|
118
|
+
static deserializeBinaryFromReader(message: SubmitCustomTrainingJobResponse, reader: jspb.BinaryReader): SubmitCustomTrainingJobResponse;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export namespace SubmitCustomTrainingJobResponse {
|
|
122
|
+
export type AsObject = {
|
|
123
|
+
id: string,
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
71
127
|
export class GetTrainingJobRequest extends jspb.Message {
|
|
72
128
|
getId(): string;
|
|
73
129
|
setId(value: string): void;
|
|
@@ -180,6 +236,15 @@ export class TrainingJobMetadata extends jspb.Message {
|
|
|
180
236
|
getModelType(): ModelTypeMap[keyof ModelTypeMap];
|
|
181
237
|
setModelType(value: ModelTypeMap[keyof ModelTypeMap]): void;
|
|
182
238
|
|
|
239
|
+
getModelFramework(): ModelFrameworkMap[keyof ModelFrameworkMap];
|
|
240
|
+
setModelFramework(value: ModelFrameworkMap[keyof ModelFrameworkMap]): void;
|
|
241
|
+
|
|
242
|
+
getIsCustomJob(): boolean;
|
|
243
|
+
setIsCustomJob(value: boolean): void;
|
|
244
|
+
|
|
245
|
+
getRegistryItemId(): string;
|
|
246
|
+
setRegistryItemId(value: string): void;
|
|
247
|
+
|
|
183
248
|
getStatus(): TrainingStatusMap[keyof TrainingStatusMap];
|
|
184
249
|
setStatus(value: TrainingStatusMap[keyof TrainingStatusMap]): void;
|
|
185
250
|
|
|
@@ -235,6 +300,9 @@ export namespace TrainingJobMetadata {
|
|
|
235
300
|
modelName: string,
|
|
236
301
|
modelVersion: string,
|
|
237
302
|
modelType: ModelTypeMap[keyof ModelTypeMap],
|
|
303
|
+
modelFramework: ModelFrameworkMap[keyof ModelFrameworkMap],
|
|
304
|
+
isCustomJob: boolean,
|
|
305
|
+
registryItemId: string,
|
|
238
306
|
status: TrainingStatusMap[keyof TrainingStatusMap],
|
|
239
307
|
errorStatus?: google_rpc_status_pb.Status.AsObject,
|
|
240
308
|
createdOn?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
@@ -327,6 +395,16 @@ export interface ModelTypeMap {
|
|
|
327
395
|
|
|
328
396
|
export const ModelType: ModelTypeMap;
|
|
329
397
|
|
|
398
|
+
export interface ModelFrameworkMap {
|
|
399
|
+
MODEL_FRAMEWORK_UNSPECIFIED: 0;
|
|
400
|
+
MODEL_FRAMEWORK_TFLITE: 1;
|
|
401
|
+
MODEL_FRAMEWORK_TENSORFLOW: 2;
|
|
402
|
+
MODEL_FRAMEWORK_PYTORCH: 3;
|
|
403
|
+
MODEL_FRAMEWORK_ONNX: 4;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export const ModelFramework: ModelFrameworkMap;
|
|
407
|
+
|
|
330
408
|
export interface TrainingStatusMap {
|
|
331
409
|
TRAINING_STATUS_UNSPECIFIED: 0;
|
|
332
410
|
TRAINING_STATUS_PENDING: 1;
|
|
@@ -13,6 +13,15 @@ type MLTrainingServiceSubmitTrainingJob = {
|
|
|
13
13
|
readonly responseType: typeof app_mltraining_v1_ml_training_pb.SubmitTrainingJobResponse;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
type MLTrainingServiceSubmitCustomTrainingJob = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof MLTrainingService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobRequest;
|
|
22
|
+
readonly responseType: typeof app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
16
25
|
type MLTrainingServiceGetTrainingJob = {
|
|
17
26
|
readonly methodName: string;
|
|
18
27
|
readonly service: typeof MLTrainingService;
|
|
@@ -52,6 +61,7 @@ type MLTrainingServiceDeleteCompletedTrainingJob = {
|
|
|
52
61
|
export class MLTrainingService {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly SubmitTrainingJob: MLTrainingServiceSubmitTrainingJob;
|
|
64
|
+
static readonly SubmitCustomTrainingJob: MLTrainingServiceSubmitCustomTrainingJob;
|
|
55
65
|
static readonly GetTrainingJob: MLTrainingServiceGetTrainingJob;
|
|
56
66
|
static readonly ListTrainingJobs: MLTrainingServiceListTrainingJobs;
|
|
57
67
|
static readonly CancelTrainingJob: MLTrainingServiceCancelTrainingJob;
|
|
@@ -99,6 +109,15 @@ export class MLTrainingServiceClient {
|
|
|
99
109
|
requestMessage: app_mltraining_v1_ml_training_pb.SubmitTrainingJobRequest,
|
|
100
110
|
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.SubmitTrainingJobResponse|null) => void
|
|
101
111
|
): UnaryResponse;
|
|
112
|
+
submitCustomTrainingJob(
|
|
113
|
+
requestMessage: app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobRequest,
|
|
114
|
+
metadata: grpc.Metadata,
|
|
115
|
+
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobResponse|null) => void
|
|
116
|
+
): UnaryResponse;
|
|
117
|
+
submitCustomTrainingJob(
|
|
118
|
+
requestMessage: app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobRequest,
|
|
119
|
+
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.SubmitCustomTrainingJobResponse|null) => void
|
|
120
|
+
): UnaryResponse;
|
|
102
121
|
getTrainingJob(
|
|
103
122
|
requestMessage: app_mltraining_v1_ml_training_pb.GetTrainingJobRequest,
|
|
104
123
|
metadata: grpc.Metadata,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// file: app/v1/app.proto
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as app_mltraining_v1_ml_training_pb from "../../app/mltraining/v1/ml_training_pb";
|
|
5
6
|
import * as app_packages_v1_packages_pb from "../../app/packages/v1/packages_pb";
|
|
6
7
|
import * as common_v1_common_pb from "../../common/v1/common_pb";
|
|
7
8
|
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
@@ -3086,6 +3087,40 @@ export namespace MLModelMetadata {
|
|
|
3086
3087
|
}
|
|
3087
3088
|
}
|
|
3088
3089
|
|
|
3090
|
+
export class MLTrainingMetadata extends jspb.Message {
|
|
3091
|
+
clearVersionsList(): void;
|
|
3092
|
+
getVersionsList(): Array<string>;
|
|
3093
|
+
setVersionsList(value: Array<string>): void;
|
|
3094
|
+
addVersions(value: string, index?: number): string;
|
|
3095
|
+
|
|
3096
|
+
getModelType(): app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap];
|
|
3097
|
+
setModelType(value: app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap]): void;
|
|
3098
|
+
|
|
3099
|
+
getModelFramework(): app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap];
|
|
3100
|
+
setModelFramework(value: app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap]): void;
|
|
3101
|
+
|
|
3102
|
+
getDraft(): boolean;
|
|
3103
|
+
setDraft(value: boolean): void;
|
|
3104
|
+
|
|
3105
|
+
serializeBinary(): Uint8Array;
|
|
3106
|
+
toObject(includeInstance?: boolean): MLTrainingMetadata.AsObject;
|
|
3107
|
+
static toObject(includeInstance: boolean, msg: MLTrainingMetadata): MLTrainingMetadata.AsObject;
|
|
3108
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
3109
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
3110
|
+
static serializeBinaryToWriter(message: MLTrainingMetadata, writer: jspb.BinaryWriter): void;
|
|
3111
|
+
static deserializeBinary(bytes: Uint8Array): MLTrainingMetadata;
|
|
3112
|
+
static deserializeBinaryFromReader(message: MLTrainingMetadata, reader: jspb.BinaryReader): MLTrainingMetadata;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
export namespace MLTrainingMetadata {
|
|
3116
|
+
export type AsObject = {
|
|
3117
|
+
versionsList: Array<string>,
|
|
3118
|
+
modelType: app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap],
|
|
3119
|
+
modelFramework: app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap],
|
|
3120
|
+
draft: boolean,
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3089
3124
|
export class RegistryItem extends jspb.Message {
|
|
3090
3125
|
getItemId(): string;
|
|
3091
3126
|
setItemId(value: string): void;
|
|
@@ -3133,6 +3168,11 @@ export class RegistryItem extends jspb.Message {
|
|
|
3133
3168
|
getMlModelMetadata(): MLModelMetadata | undefined;
|
|
3134
3169
|
setMlModelMetadata(value?: MLModelMetadata): void;
|
|
3135
3170
|
|
|
3171
|
+
hasMlTrainingMetadata(): boolean;
|
|
3172
|
+
clearMlTrainingMetadata(): void;
|
|
3173
|
+
getMlTrainingMetadata(): MLTrainingMetadata | undefined;
|
|
3174
|
+
setMlTrainingMetadata(value?: MLTrainingMetadata): void;
|
|
3175
|
+
|
|
3136
3176
|
hasCreatedAt(): boolean;
|
|
3137
3177
|
clearCreatedAt(): void;
|
|
3138
3178
|
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
@@ -3170,6 +3210,7 @@ export namespace RegistryItem {
|
|
|
3170
3210
|
totalExternalOrganizationUsage: number,
|
|
3171
3211
|
moduleMetadata?: ModuleMetadata.AsObject,
|
|
3172
3212
|
mlModelMetadata?: MLModelMetadata.AsObject,
|
|
3213
|
+
mlTrainingMetadata?: MLTrainingMetadata.AsObject,
|
|
3173
3214
|
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
3174
3215
|
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
3175
3216
|
}
|
|
@@ -3178,6 +3219,7 @@ export namespace RegistryItem {
|
|
|
3178
3219
|
METADATA_NOT_SET = 0,
|
|
3179
3220
|
MODULE_METADATA = 11,
|
|
3180
3221
|
ML_MODEL_METADATA = 12,
|
|
3222
|
+
ML_TRAINING_METADATA = 18,
|
|
3181
3223
|
}
|
|
3182
3224
|
}
|
|
3183
3225
|
|
|
@@ -88,6 +88,9 @@ export class RegisterAuthApplicationRequest extends jspb.Message {
|
|
|
88
88
|
setRedirectUrisList(value: Array<string>): void;
|
|
89
89
|
addRedirectUris(value: string, index?: number): string;
|
|
90
90
|
|
|
91
|
+
getLogoutUri(): string;
|
|
92
|
+
setLogoutUri(value: string): void;
|
|
93
|
+
|
|
91
94
|
serializeBinary(): Uint8Array;
|
|
92
95
|
toObject(includeInstance?: boolean): RegisterAuthApplicationRequest.AsObject;
|
|
93
96
|
static toObject(includeInstance: boolean, msg: RegisterAuthApplicationRequest): RegisterAuthApplicationRequest.AsObject;
|
|
@@ -104,10 +107,20 @@ export namespace RegisterAuthApplicationRequest {
|
|
|
104
107
|
orgId: string,
|
|
105
108
|
originUrisList: Array<string>,
|
|
106
109
|
redirectUrisList: Array<string>,
|
|
110
|
+
logoutUri: string,
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
export class RegisterAuthApplicationResponse extends jspb.Message {
|
|
115
|
+
getApplicationId(): string;
|
|
116
|
+
setApplicationId(value: string): void;
|
|
117
|
+
|
|
118
|
+
getApplicationName(): string;
|
|
119
|
+
setApplicationName(value: string): void;
|
|
120
|
+
|
|
121
|
+
getSecret(): string;
|
|
122
|
+
setSecret(value: string): void;
|
|
123
|
+
|
|
111
124
|
serializeBinary(): Uint8Array;
|
|
112
125
|
toObject(includeInstance?: boolean): RegisterAuthApplicationResponse.AsObject;
|
|
113
126
|
static toObject(includeInstance: boolean, msg: RegisterAuthApplicationResponse): RegisterAuthApplicationResponse.AsObject;
|
|
@@ -120,6 +133,77 @@ export class RegisterAuthApplicationResponse extends jspb.Message {
|
|
|
120
133
|
|
|
121
134
|
export namespace RegisterAuthApplicationResponse {
|
|
122
135
|
export type AsObject = {
|
|
136
|
+
applicationId: string,
|
|
137
|
+
applicationName: string,
|
|
138
|
+
secret: string,
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export class UpdateAuthApplicationRequest extends jspb.Message {
|
|
143
|
+
getOrgId(): string;
|
|
144
|
+
setOrgId(value: string): void;
|
|
145
|
+
|
|
146
|
+
getApplicationId(): string;
|
|
147
|
+
setApplicationId(value: string): void;
|
|
148
|
+
|
|
149
|
+
getApplicationName(): string;
|
|
150
|
+
setApplicationName(value: string): void;
|
|
151
|
+
|
|
152
|
+
clearOriginUrisList(): void;
|
|
153
|
+
getOriginUrisList(): Array<string>;
|
|
154
|
+
setOriginUrisList(value: Array<string>): void;
|
|
155
|
+
addOriginUris(value: string, index?: number): string;
|
|
156
|
+
|
|
157
|
+
clearRedirectUrisList(): void;
|
|
158
|
+
getRedirectUrisList(): Array<string>;
|
|
159
|
+
setRedirectUrisList(value: Array<string>): void;
|
|
160
|
+
addRedirectUris(value: string, index?: number): string;
|
|
161
|
+
|
|
162
|
+
getLogoutUri(): string;
|
|
163
|
+
setLogoutUri(value: string): void;
|
|
164
|
+
|
|
165
|
+
serializeBinary(): Uint8Array;
|
|
166
|
+
toObject(includeInstance?: boolean): UpdateAuthApplicationRequest.AsObject;
|
|
167
|
+
static toObject(includeInstance: boolean, msg: UpdateAuthApplicationRequest): UpdateAuthApplicationRequest.AsObject;
|
|
168
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
169
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
170
|
+
static serializeBinaryToWriter(message: UpdateAuthApplicationRequest, writer: jspb.BinaryWriter): void;
|
|
171
|
+
static deserializeBinary(bytes: Uint8Array): UpdateAuthApplicationRequest;
|
|
172
|
+
static deserializeBinaryFromReader(message: UpdateAuthApplicationRequest, reader: jspb.BinaryReader): UpdateAuthApplicationRequest;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export namespace UpdateAuthApplicationRequest {
|
|
176
|
+
export type AsObject = {
|
|
177
|
+
orgId: string,
|
|
178
|
+
applicationId: string,
|
|
179
|
+
applicationName: string,
|
|
180
|
+
originUrisList: Array<string>,
|
|
181
|
+
redirectUrisList: Array<string>,
|
|
182
|
+
logoutUri: string,
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export class UpdateAuthApplicationResponse extends jspb.Message {
|
|
187
|
+
getApplicationId(): string;
|
|
188
|
+
setApplicationId(value: string): void;
|
|
189
|
+
|
|
190
|
+
getApplicationName(): string;
|
|
191
|
+
setApplicationName(value: string): void;
|
|
192
|
+
|
|
193
|
+
serializeBinary(): Uint8Array;
|
|
194
|
+
toObject(includeInstance?: boolean): UpdateAuthApplicationResponse.AsObject;
|
|
195
|
+
static toObject(includeInstance: boolean, msg: UpdateAuthApplicationResponse): UpdateAuthApplicationResponse.AsObject;
|
|
196
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
197
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
198
|
+
static serializeBinaryToWriter(message: UpdateAuthApplicationResponse, writer: jspb.BinaryWriter): void;
|
|
199
|
+
static deserializeBinary(bytes: Uint8Array): UpdateAuthApplicationResponse;
|
|
200
|
+
static deserializeBinaryFromReader(message: UpdateAuthApplicationResponse, reader: jspb.BinaryReader): UpdateAuthApplicationResponse;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export namespace UpdateAuthApplicationResponse {
|
|
204
|
+
export type AsObject = {
|
|
205
|
+
applicationId: string,
|
|
206
|
+
applicationName: string,
|
|
123
207
|
}
|
|
124
208
|
}
|
|
125
209
|
|
|
@@ -31,11 +31,21 @@ type EndUserServiceRegisterAuthApplication = {
|
|
|
31
31
|
readonly responseType: typeof app_v1_end_user_pb.RegisterAuthApplicationResponse;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
type EndUserServiceUpdateAuthApplication = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof EndUserService;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof app_v1_end_user_pb.UpdateAuthApplicationRequest;
|
|
40
|
+
readonly responseType: typeof app_v1_end_user_pb.UpdateAuthApplicationResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
34
43
|
export class EndUserService {
|
|
35
44
|
static readonly serviceName: string;
|
|
36
45
|
static readonly IsLegalAccepted: EndUserServiceIsLegalAccepted;
|
|
37
46
|
static readonly AcceptLegal: EndUserServiceAcceptLegal;
|
|
38
47
|
static readonly RegisterAuthApplication: EndUserServiceRegisterAuthApplication;
|
|
48
|
+
static readonly UpdateAuthApplication: EndUserServiceUpdateAuthApplication;
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -97,5 +107,14 @@ export class EndUserServiceClient {
|
|
|
97
107
|
requestMessage: app_v1_end_user_pb.RegisterAuthApplicationRequest,
|
|
98
108
|
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.RegisterAuthApplicationResponse|null) => void
|
|
99
109
|
): UnaryResponse;
|
|
110
|
+
updateAuthApplication(
|
|
111
|
+
requestMessage: app_v1_end_user_pb.UpdateAuthApplicationRequest,
|
|
112
|
+
metadata: grpc.Metadata,
|
|
113
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.UpdateAuthApplicationResponse|null) => void
|
|
114
|
+
): UnaryResponse;
|
|
115
|
+
updateAuthApplication(
|
|
116
|
+
requestMessage: app_v1_end_user_pb.UpdateAuthApplicationRequest,
|
|
117
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.UpdateAuthApplicationResponse|null) => void
|
|
118
|
+
): UnaryResponse;
|
|
100
119
|
}
|
|
101
120
|
|
|
@@ -19,11 +19,6 @@ export class ResourceName extends jspb.Message {
|
|
|
19
19
|
getName(): string;
|
|
20
20
|
setName(value: string): void;
|
|
21
21
|
|
|
22
|
-
hasMachinePartId(): boolean;
|
|
23
|
-
clearMachinePartId(): void;
|
|
24
|
-
getMachinePartId(): string;
|
|
25
|
-
setMachinePartId(value: string): void;
|
|
26
|
-
|
|
27
22
|
serializeBinary(): Uint8Array;
|
|
28
23
|
toObject(includeInstance?: boolean): ResourceName.AsObject;
|
|
29
24
|
static toObject(includeInstance: boolean, msg: ResourceName): ResourceName.AsObject;
|
|
@@ -40,7 +35,6 @@ export namespace ResourceName {
|
|
|
40
35
|
type: string,
|
|
41
36
|
subtype: string,
|
|
42
37
|
name: string,
|
|
43
|
-
machinePartId: string,
|
|
44
38
|
}
|
|
45
39
|
}
|
|
46
40
|
|
|
@@ -998,6 +998,57 @@ export namespace GetCloudMetadataResponse {
|
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
+
export class RestartModuleRequest extends jspb.Message {
|
|
1002
|
+
hasModuleId(): boolean;
|
|
1003
|
+
clearModuleId(): void;
|
|
1004
|
+
getModuleId(): string;
|
|
1005
|
+
setModuleId(value: string): void;
|
|
1006
|
+
|
|
1007
|
+
hasModuleName(): boolean;
|
|
1008
|
+
clearModuleName(): void;
|
|
1009
|
+
getModuleName(): string;
|
|
1010
|
+
setModuleName(value: string): void;
|
|
1011
|
+
|
|
1012
|
+
getIdOrNameCase(): RestartModuleRequest.IdOrNameCase;
|
|
1013
|
+
serializeBinary(): Uint8Array;
|
|
1014
|
+
toObject(includeInstance?: boolean): RestartModuleRequest.AsObject;
|
|
1015
|
+
static toObject(includeInstance: boolean, msg: RestartModuleRequest): RestartModuleRequest.AsObject;
|
|
1016
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1017
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1018
|
+
static serializeBinaryToWriter(message: RestartModuleRequest, writer: jspb.BinaryWriter): void;
|
|
1019
|
+
static deserializeBinary(bytes: Uint8Array): RestartModuleRequest;
|
|
1020
|
+
static deserializeBinaryFromReader(message: RestartModuleRequest, reader: jspb.BinaryReader): RestartModuleRequest;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export namespace RestartModuleRequest {
|
|
1024
|
+
export type AsObject = {
|
|
1025
|
+
moduleId: string,
|
|
1026
|
+
moduleName: string,
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export enum IdOrNameCase {
|
|
1030
|
+
ID_OR_NAME_NOT_SET = 0,
|
|
1031
|
+
MODULE_ID = 1,
|
|
1032
|
+
MODULE_NAME = 2,
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export class RestartModuleResponse extends jspb.Message {
|
|
1037
|
+
serializeBinary(): Uint8Array;
|
|
1038
|
+
toObject(includeInstance?: boolean): RestartModuleResponse.AsObject;
|
|
1039
|
+
static toObject(includeInstance: boolean, msg: RestartModuleResponse): RestartModuleResponse.AsObject;
|
|
1040
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1041
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1042
|
+
static serializeBinaryToWriter(message: RestartModuleResponse, writer: jspb.BinaryWriter): void;
|
|
1043
|
+
static deserializeBinary(bytes: Uint8Array): RestartModuleResponse;
|
|
1044
|
+
static deserializeBinaryFromReader(message: RestartModuleResponse, reader: jspb.BinaryReader): RestartModuleResponse;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export namespace RestartModuleResponse {
|
|
1048
|
+
export type AsObject = {
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1001
1052
|
export interface PeerConnectionTypeMap {
|
|
1002
1053
|
PEER_CONNECTION_TYPE_UNSPECIFIED: 0;
|
|
1003
1054
|
PEER_CONNECTION_TYPE_GRPC: 1;
|
|
@@ -157,6 +157,15 @@ type RobotServiceGetCloudMetadata = {
|
|
|
157
157
|
readonly responseType: typeof robot_v1_robot_pb.GetCloudMetadataResponse;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
+
type RobotServiceRestartModule = {
|
|
161
|
+
readonly methodName: string;
|
|
162
|
+
readonly service: typeof RobotService;
|
|
163
|
+
readonly requestStream: false;
|
|
164
|
+
readonly responseStream: false;
|
|
165
|
+
readonly requestType: typeof robot_v1_robot_pb.RestartModuleRequest;
|
|
166
|
+
readonly responseType: typeof robot_v1_robot_pb.RestartModuleResponse;
|
|
167
|
+
};
|
|
168
|
+
|
|
160
169
|
export class RobotService {
|
|
161
170
|
static readonly serviceName: string;
|
|
162
171
|
static readonly GetOperations: RobotServiceGetOperations;
|
|
@@ -176,6 +185,7 @@ export class RobotService {
|
|
|
176
185
|
static readonly SendSessionHeartbeat: RobotServiceSendSessionHeartbeat;
|
|
177
186
|
static readonly Log: RobotServiceLog;
|
|
178
187
|
static readonly GetCloudMetadata: RobotServiceGetCloudMetadata;
|
|
188
|
+
static readonly RestartModule: RobotServiceRestartModule;
|
|
179
189
|
}
|
|
180
190
|
|
|
181
191
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -355,5 +365,14 @@ export class RobotServiceClient {
|
|
|
355
365
|
requestMessage: robot_v1_robot_pb.GetCloudMetadataRequest,
|
|
356
366
|
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.GetCloudMetadataResponse|null) => void
|
|
357
367
|
): UnaryResponse;
|
|
368
|
+
restartModule(
|
|
369
|
+
requestMessage: robot_v1_robot_pb.RestartModuleRequest,
|
|
370
|
+
metadata: grpc.Metadata,
|
|
371
|
+
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.RestartModuleResponse|null) => void
|
|
372
|
+
): UnaryResponse;
|
|
373
|
+
restartModule(
|
|
374
|
+
requestMessage: robot_v1_robot_pb.RestartModuleRequest,
|
|
375
|
+
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.RestartModuleResponse|null) => void
|
|
376
|
+
): UnaryResponse;
|
|
358
377
|
}
|
|
359
378
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// package: tagger.v1
|
|
2
|
+
// file: tagger/v1/tagger.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
|
|
6
|
+
|
|
7
|
+
export const tags: jspb.ExtensionFieldInfo<string>;
|
|
8
|
+
|
|
9
|
+
export const oneofTags: jspb.ExtensionFieldInfo<string>;
|
|
10
|
+
|