@viamrobotics/sdk 0.23.0 → 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/ml-training-client.d.ts +1 -0
- package/dist/app/viam-transport.d.ts +6 -1
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +3 -0
- 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 +1058 -896
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +2 -1
- package/dist/robot/dial.d.ts +3 -6
- package/package.json +2 -2
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.339";
|
|
@@ -299,7 +299,7 @@ export declare class DataClient {
|
|
|
299
299
|
* uploaded, all tied to the same metadata.
|
|
300
300
|
* @returns The file ID of the uploaded data
|
|
301
301
|
*/
|
|
302
|
-
tabularDataCaptureUpload(tabularData: Record<string, googleStructPb.JavaScriptValue>[], partId: string, componentType: string, componentName: string, methodName: string,
|
|
302
|
+
tabularDataCaptureUpload(tabularData: Record<string, googleStructPb.JavaScriptValue>[], partId: string, componentType: string, componentName: string, methodName: string, dataRequestTimes: [Date, Date][], tags?: string[]): Promise<string>;
|
|
303
303
|
/**
|
|
304
304
|
* Uploads the content and metadata for binary data.
|
|
305
305
|
*
|
|
@@ -324,7 +324,7 @@ export declare class DataClient {
|
|
|
324
324
|
* appropriate sensor.
|
|
325
325
|
* @returns The file ID of the uploaded data
|
|
326
326
|
*/
|
|
327
|
-
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string,
|
|
327
|
+
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
|
|
328
328
|
createFilter(options: FilterOptions): dataPb.Filter;
|
|
329
329
|
}
|
|
330
330
|
export {};
|
|
@@ -9,6 +9,7 @@ export declare class MlTrainingClient {
|
|
|
9
9
|
private service;
|
|
10
10
|
constructor(serviceHost: string, grpcOptions: RpcOptions);
|
|
11
11
|
submitTrainingJob(orgId: string, datasetId: string, modelName: string, modelVersion: string, modelType: ModelType, tagsList: string[]): Promise<string>;
|
|
12
|
+
submitCustomTrainingJob(orgId: string, datasetId: string, registryItemId: string, registryItemVersion: string, modelName: string, modelVersion: string): Promise<string>;
|
|
12
13
|
getTrainingJob(id: string): Promise<pb.TrainingJobMetadata | undefined>;
|
|
13
14
|
listTrainingJobs(orgId: string, status: TrainingStatus): Promise<pb.TrainingJobMetadata.AsObject[]>;
|
|
14
15
|
cancelTrainingJob(id: string): Promise<null>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { grpc } from '@improbable-eng/grpc-web';
|
|
2
2
|
import { MetadataTransport } from '../utils';
|
|
3
|
+
/**
|
|
4
|
+
* Credentials are either used to obtain an access token or provide an existing
|
|
5
|
+
* one
|
|
6
|
+
*/
|
|
7
|
+
export type Credentials = Credential | AccessToken;
|
|
3
8
|
/** A credential that can be exchanged to obtain an access token */
|
|
4
9
|
export interface Credential {
|
|
5
10
|
authEntity: string;
|
|
@@ -12,7 +17,7 @@ export interface AccessToken {
|
|
|
12
17
|
type: 'access-token';
|
|
13
18
|
payload: string;
|
|
14
19
|
}
|
|
15
|
-
export declare const isCredential: (object:
|
|
20
|
+
export declare const isCredential: (object: Credentials) => object is Credential;
|
|
16
21
|
/**
|
|
17
22
|
* Initialize an authenticated transport factory that can access protected
|
|
18
23
|
* resources.
|
|
@@ -87,6 +87,8 @@ export class SubmitCustomTrainingJobRequest extends jspb.Message {
|
|
|
87
87
|
getModelVersion(): string;
|
|
88
88
|
setModelVersion(value: string): void;
|
|
89
89
|
|
|
90
|
+
getArgumentsMap(): jspb.Map<string, string>;
|
|
91
|
+
clearArgumentsMap(): void;
|
|
90
92
|
serializeBinary(): Uint8Array;
|
|
91
93
|
toObject(includeInstance?: boolean): SubmitCustomTrainingJobRequest.AsObject;
|
|
92
94
|
static toObject(includeInstance: boolean, msg: SubmitCustomTrainingJobRequest): SubmitCustomTrainingJobRequest.AsObject;
|
|
@@ -105,6 +107,7 @@ export namespace SubmitCustomTrainingJobRequest {
|
|
|
105
107
|
organizationId: string,
|
|
106
108
|
modelName: string,
|
|
107
109
|
modelVersion: string,
|
|
110
|
+
argumentsMap: Array<[string, string]>,
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
@@ -410,6 +410,46 @@ export namespace GetInvoicePdfResponse {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
+
export class SendPaymentRequiredEmailRequest extends jspb.Message {
|
|
414
|
+
getCustomerOrgId(): string;
|
|
415
|
+
setCustomerOrgId(value: string): void;
|
|
416
|
+
|
|
417
|
+
getBillingOwnerOrgId(): string;
|
|
418
|
+
setBillingOwnerOrgId(value: string): void;
|
|
419
|
+
|
|
420
|
+
serializeBinary(): Uint8Array;
|
|
421
|
+
toObject(includeInstance?: boolean): SendPaymentRequiredEmailRequest.AsObject;
|
|
422
|
+
static toObject(includeInstance: boolean, msg: SendPaymentRequiredEmailRequest): SendPaymentRequiredEmailRequest.AsObject;
|
|
423
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
424
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
425
|
+
static serializeBinaryToWriter(message: SendPaymentRequiredEmailRequest, writer: jspb.BinaryWriter): void;
|
|
426
|
+
static deserializeBinary(bytes: Uint8Array): SendPaymentRequiredEmailRequest;
|
|
427
|
+
static deserializeBinaryFromReader(message: SendPaymentRequiredEmailRequest, reader: jspb.BinaryReader): SendPaymentRequiredEmailRequest;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export namespace SendPaymentRequiredEmailRequest {
|
|
431
|
+
export type AsObject = {
|
|
432
|
+
customerOrgId: string,
|
|
433
|
+
billingOwnerOrgId: string,
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export class SendPaymentRequiredEmailResponse extends jspb.Message {
|
|
438
|
+
serializeBinary(): Uint8Array;
|
|
439
|
+
toObject(includeInstance?: boolean): SendPaymentRequiredEmailResponse.AsObject;
|
|
440
|
+
static toObject(includeInstance: boolean, msg: SendPaymentRequiredEmailResponse): SendPaymentRequiredEmailResponse.AsObject;
|
|
441
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
442
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
443
|
+
static serializeBinaryToWriter(message: SendPaymentRequiredEmailResponse, writer: jspb.BinaryWriter): void;
|
|
444
|
+
static deserializeBinary(bytes: Uint8Array): SendPaymentRequiredEmailResponse;
|
|
445
|
+
static deserializeBinaryFromReader(message: SendPaymentRequiredEmailResponse, reader: jspb.BinaryReader): SendPaymentRequiredEmailResponse;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export namespace SendPaymentRequiredEmailResponse {
|
|
449
|
+
export type AsObject = {
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
413
453
|
export interface PaymentMethodTypeMap {
|
|
414
454
|
PAYMENT_METHOD_TYPE_UNSPECIFIED: 0;
|
|
415
455
|
PAYMENT_METHOD_TYPE_CARD: 1;
|
|
@@ -40,12 +40,22 @@ type BillingServiceGetInvoicePdf = {
|
|
|
40
40
|
readonly responseType: typeof app_v1_billing_pb.GetInvoicePdfResponse;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
type BillingServiceSendPaymentRequiredEmail = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof BillingService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof app_v1_billing_pb.SendPaymentRequiredEmailRequest;
|
|
49
|
+
readonly responseType: typeof app_v1_billing_pb.SendPaymentRequiredEmailResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
43
52
|
export class BillingService {
|
|
44
53
|
static readonly serviceName: string;
|
|
45
54
|
static readonly GetCurrentMonthUsage: BillingServiceGetCurrentMonthUsage;
|
|
46
55
|
static readonly GetOrgBillingInformation: BillingServiceGetOrgBillingInformation;
|
|
47
56
|
static readonly GetInvoicesSummary: BillingServiceGetInvoicesSummary;
|
|
48
57
|
static readonly GetInvoicePdf: BillingServiceGetInvoicePdf;
|
|
58
|
+
static readonly SendPaymentRequiredEmail: BillingServiceSendPaymentRequiredEmail;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -108,5 +118,14 @@ export class BillingServiceClient {
|
|
|
108
118
|
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoicesSummaryResponse|null) => void
|
|
109
119
|
): UnaryResponse;
|
|
110
120
|
getInvoicePdf(requestMessage: app_v1_billing_pb.GetInvoicePdfRequest, metadata?: grpc.Metadata): ResponseStream<app_v1_billing_pb.GetInvoicePdfResponse>;
|
|
121
|
+
sendPaymentRequiredEmail(
|
|
122
|
+
requestMessage: app_v1_billing_pb.SendPaymentRequiredEmailRequest,
|
|
123
|
+
metadata: grpc.Metadata,
|
|
124
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.SendPaymentRequiredEmailResponse|null) => void
|
|
125
|
+
): UnaryResponse;
|
|
126
|
+
sendPaymentRequiredEmail(
|
|
127
|
+
requestMessage: app_v1_billing_pb.SendPaymentRequiredEmailRequest,
|
|
128
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.SendPaymentRequiredEmailResponse|null) => void
|
|
129
|
+
): UnaryResponse;
|
|
111
130
|
}
|
|
112
131
|
|