@viamrobotics/sdk 0.23.1 → 0.25.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.338";
1
+ export declare const apiVersion = "v0.1.342";
@@ -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, tags?: string[], dataRequestTimes?: [Date, Date][]): Promise<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, tags?: string[], dataRequestTimes?: [Date, Date]): Promise<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 {};
@@ -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: Credential | AccessToken) => object is Credential;
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.
@@ -7,6 +7,8 @@ export interface Properties {
7
7
  intrinsicParameters?: IntrinsicParameters.AsObject;
8
8
  /** Camera distortion parameters, if available. */
9
9
  distortionParameters?: DistortionParameters.AsObject;
10
+ /** Camera frame rate parameters, if available. */
11
+ frameRate?: number;
10
12
  }
11
13
  export type MimeType = '' | 'image/vnd.viam.rgba' | 'image/jpeg' | 'image/png' | 'pointcloud/pcd' | 'unsupported';
12
14
  /** Represents any physical hardware that can capture frames. */
@@ -4695,6 +4695,7 @@ export interface VisibilityMap {
4695
4695
  VISIBILITY_UNSPECIFIED: 0;
4696
4696
  VISIBILITY_PRIVATE: 1;
4697
4697
  VISIBILITY_PUBLIC: 2;
4698
+ VISIBILITY_PUBLIC_UNLISTED: 3;
4698
4699
  }
4699
4700
 
4700
4701
  export const Visibility: VisibilityMap;
@@ -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
 
@@ -79,6 +79,11 @@ export class RobotConfig extends jspb.Message {
79
79
  getRevision(): string;
80
80
  setRevision(value: string): void;
81
81
 
82
+ hasMaintenance(): boolean;
83
+ clearMaintenance(): void;
84
+ getMaintenance(): MaintenanceConfig | undefined;
85
+ setMaintenance(value?: MaintenanceConfig): void;
86
+
82
87
  serializeBinary(): Uint8Array;
83
88
  toObject(includeInstance?: boolean): RobotConfig.AsObject;
84
89
  static toObject(includeInstance: boolean, msg: RobotConfig): RobotConfig.AsObject;
@@ -106,6 +111,7 @@ export namespace RobotConfig {
106
111
  enableWebProfile: boolean,
107
112
  logList: Array<LogPatternConfig.AsObject>,
108
113
  revision: string,
114
+ maintenance?: MaintenanceConfig.AsObject,
109
115
  }
110
116
  }
111
117
 
@@ -1366,6 +1372,32 @@ export namespace PackageConfig {
1366
1372
  }
1367
1373
  }
1368
1374
 
1375
+ export class MaintenanceConfig extends jspb.Message {
1376
+ hasSensorName(): boolean;
1377
+ clearSensorName(): void;
1378
+ getSensorName(): common_v1_common_pb.ResourceName | undefined;
1379
+ setSensorName(value?: common_v1_common_pb.ResourceName): void;
1380
+
1381
+ getMaintenanceAllowedKey(): string;
1382
+ setMaintenanceAllowedKey(value: string): void;
1383
+
1384
+ serializeBinary(): Uint8Array;
1385
+ toObject(includeInstance?: boolean): MaintenanceConfig.AsObject;
1386
+ static toObject(includeInstance: boolean, msg: MaintenanceConfig): MaintenanceConfig.AsObject;
1387
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1388
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1389
+ static serializeBinaryToWriter(message: MaintenanceConfig, writer: jspb.BinaryWriter): void;
1390
+ static deserializeBinary(bytes: Uint8Array): MaintenanceConfig;
1391
+ static deserializeBinaryFromReader(message: MaintenanceConfig, reader: jspb.BinaryReader): MaintenanceConfig;
1392
+ }
1393
+
1394
+ export namespace MaintenanceConfig {
1395
+ export type AsObject = {
1396
+ sensorName?: common_v1_common_pb.ResourceName.AsObject,
1397
+ maintenanceAllowedKey: string,
1398
+ }
1399
+ }
1400
+
1369
1401
  export interface CredentialsTypeMap {
1370
1402
  CREDENTIALS_TYPE_UNSPECIFIED: 0;
1371
1403
  CREDENTIALS_TYPE_INTERNAL: 1;
@@ -266,6 +266,11 @@ export class GetPropertiesResponse extends jspb.Message {
266
266
  setMimeTypesList(value: Array<string>): void;
267
267
  addMimeTypes(value: string, index?: number): string;
268
268
 
269
+ hasFrameRate(): boolean;
270
+ clearFrameRate(): void;
271
+ getFrameRate(): number;
272
+ setFrameRate(value: number): void;
273
+
269
274
  serializeBinary(): Uint8Array;
270
275
  toObject(includeInstance?: boolean): GetPropertiesResponse.AsObject;
271
276
  static toObject(includeInstance: boolean, msg: GetPropertiesResponse): GetPropertiesResponse.AsObject;
@@ -282,6 +287,7 @@ export namespace GetPropertiesResponse {
282
287
  intrinsicParameters?: IntrinsicParameters.AsObject,
283
288
  distortionParameters?: DistortionParameters.AsObject,
284
289
  mimeTypesList: Array<string>,
290
+ frameRate: number,
285
291
  }
286
292
  }
287
293
 
@@ -8,7 +8,7 @@ type FileUploadServiceUploadFile = {
8
8
  readonly methodName: string;
9
9
  readonly service: typeof FileUploadService;
10
10
  readonly requestStream: true;
11
- readonly responseStream: true;
11
+ readonly responseStream: false;
12
12
  readonly requestType: typeof proto_rpc_examples_fileupload_v1_fileupload_pb.UploadFileRequest;
13
13
  readonly responseType: typeof proto_rpc_examples_fileupload_v1_fileupload_pb.UploadFileResponse;
14
14
  };
@@ -50,6 +50,6 @@ export class FileUploadServiceClient {
50
50
  readonly serviceHost: string;
51
51
 
52
52
  constructor(serviceHost: string, options?: grpc.RpcOptions);
53
- uploadFile(metadata?: grpc.Metadata): BidirectionalStream<proto_rpc_examples_fileupload_v1_fileupload_pb.UploadFileRequest, proto_rpc_examples_fileupload_v1_fileupload_pb.UploadFileResponse>;
53
+ uploadFile(metadata?: grpc.Metadata): RequestStream<proto_rpc_examples_fileupload_v1_fileupload_pb.UploadFileRequest>;
54
54
  }
55
55