@viamrobotics/sdk 0.35.2-b.0 → 0.35.2

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.387";
1
+ export declare const apiVersion = "v0.1.389";
@@ -1,3 +1,4 @@
1
+ import type { Struct } from '@bufbuild/protobuf';
1
2
  import type { DistortionParameters, IntrinsicParameters } from '../../gen/component/camera/v1/camera_pb';
2
3
  import type { Resource } from '../../types';
3
4
  export interface Properties {
@@ -19,16 +20,16 @@ export interface Camera extends Resource {
19
20
  * @param mimeType - A specific MIME type to request. This is not necessarily
20
21
  * the same type that will be returned.
21
22
  */
22
- getImage: (mimeType?: MimeType) => Promise<Uint8Array>;
23
+ getImage: (mimeType?: MimeType, extra?: Struct) => Promise<Uint8Array>;
23
24
  /**
24
25
  * Render a frame from a camera to an HTTP response.
25
26
  *
26
27
  * @param mimeType - A specific MIME type to request. This is not necessarily
27
28
  * the same type that will be returned.
28
29
  */
29
- renderFrame: (mimeType?: MimeType) => Promise<Blob>;
30
+ renderFrame: (mimeType?: MimeType, extra?: Struct) => Promise<Blob>;
30
31
  /** Return a point cloud from a camera. */
31
- getPointCloud: () => Promise<Uint8Array>;
32
+ getPointCloud: (extra?: Struct) => Promise<Uint8Array>;
32
33
  /** Return the camera properties. */
33
34
  getProperties: () => Promise<Properties>;
34
35
  }
@@ -1,4 +1,4 @@
1
- import type { JsonValue, Struct } from '@bufbuild/protobuf';
1
+ import { type JsonValue, Struct } from '@bufbuild/protobuf';
2
2
  import type { CallOptions } from '@connectrpc/connect';
3
3
  import type { RobotClient } from '../../robot';
4
4
  import type { Options } from '../../types';
@@ -14,9 +14,9 @@ export declare class CameraClient implements Camera {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
- getImage(mimeType?: MimeType, callOptions?: CallOptions): Promise<Uint8Array>;
18
- renderFrame(mimeType?: MimeType, callOptions?: CallOptions): Promise<Blob>;
19
- getPointCloud(callOptions?: CallOptions): Promise<Uint8Array>;
17
+ getImage(mimeType?: MimeType, extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
18
+ renderFrame(mimeType?: MimeType, extra?: {}, callOptions?: CallOptions): Promise<Blob>;
19
+ getPointCloud(extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
20
20
  getProperties(callOptions?: CallOptions): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
21
21
  doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
22
22
  }
@@ -1270,6 +1270,11 @@ export declare class BillingAddress extends Message<BillingAddress> {
1270
1270
  */
1271
1271
  zipcode: string;
1272
1272
 
1273
+ /**
1274
+ * @generated from field: string country = 6;
1275
+ */
1276
+ country: string;
1277
+
1273
1278
  constructor(data?: PartialMessage<BillingAddress>);
1274
1279
 
1275
1280
  static readonly runtime: typeof proto3;
@@ -3205,6 +3210,11 @@ export declare class Fragment extends Message<Fragment> {
3205
3210
  */
3206
3211
  lastUpdated?: Timestamp;
3207
3212
 
3213
+ /**
3214
+ * @generated from field: string revision = 14;
3215
+ */
3216
+ revision: string;
3217
+
3208
3218
  constructor(data?: PartialMessage<Fragment>);
3209
3219
 
3210
3220
  static readonly runtime: typeof proto3;
@@ -3269,6 +3279,64 @@ export declare class FragmentHistoryEntry extends Message<FragmentHistoryEntry>
3269
3279
  static equals(a: FragmentHistoryEntry | PlainMessage<FragmentHistoryEntry> | undefined, b: FragmentHistoryEntry | PlainMessage<FragmentHistoryEntry> | undefined): boolean;
3270
3280
  }
3271
3281
 
3282
+ /**
3283
+ * @generated from message viam.app.v1.FragmentRevision
3284
+ */
3285
+ export declare class FragmentRevision extends Message<FragmentRevision> {
3286
+ /**
3287
+ * @generated from field: string revision = 1;
3288
+ */
3289
+ revision: string;
3290
+
3291
+ /**
3292
+ * @generated from field: google.protobuf.Timestamp created_at = 2;
3293
+ */
3294
+ createdAt?: Timestamp;
3295
+
3296
+ constructor(data?: PartialMessage<FragmentRevision>);
3297
+
3298
+ static readonly runtime: typeof proto3;
3299
+ static readonly typeName = "viam.app.v1.FragmentRevision";
3300
+ static readonly fields: FieldList;
3301
+
3302
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentRevision;
3303
+
3304
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentRevision;
3305
+
3306
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentRevision;
3307
+
3308
+ static equals(a: FragmentRevision | PlainMessage<FragmentRevision> | undefined, b: FragmentRevision | PlainMessage<FragmentRevision> | undefined): boolean;
3309
+ }
3310
+
3311
+ /**
3312
+ * @generated from message viam.app.v1.FragmentTag
3313
+ */
3314
+ export declare class FragmentTag extends Message<FragmentTag> {
3315
+ /**
3316
+ * @generated from field: string tag = 1;
3317
+ */
3318
+ tag: string;
3319
+
3320
+ /**
3321
+ * @generated from field: string revision = 2;
3322
+ */
3323
+ revision: string;
3324
+
3325
+ constructor(data?: PartialMessage<FragmentTag>);
3326
+
3327
+ static readonly runtime: typeof proto3;
3328
+ static readonly typeName = "viam.app.v1.FragmentTag";
3329
+ static readonly fields: FieldList;
3330
+
3331
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentTag;
3332
+
3333
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentTag;
3334
+
3335
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentTag;
3336
+
3337
+ static equals(a: FragmentTag | PlainMessage<FragmentTag> | undefined, b: FragmentTag | PlainMessage<FragmentTag> | undefined): boolean;
3338
+ }
3339
+
3272
3340
  /**
3273
3341
  * @generated from message viam.app.v1.FragmentError
3274
3342
  */
@@ -3304,6 +3372,8 @@ export declare class FragmentError extends Message<FragmentError> {
3304
3372
  }
3305
3373
 
3306
3374
  /**
3375
+ * Cached fragment usage statistics
3376
+ *
3307
3377
  * @generated from message viam.app.v1.FragmentUsage
3308
3378
  */
3309
3379
  export declare class FragmentUsage extends Message<FragmentUsage> {
@@ -3327,6 +3397,13 @@ export declare class FragmentUsage extends Message<FragmentUsage> {
3327
3397
  */
3328
3398
  machinesInCurrentOrg: number;
3329
3399
 
3400
+ /**
3401
+ * revision or tag
3402
+ *
3403
+ * @generated from field: optional string version = 5;
3404
+ */
3405
+ version?: string;
3406
+
3330
3407
  constructor(data?: PartialMessage<FragmentUsage>);
3331
3408
 
3332
3409
  static readonly runtime: typeof proto3;
@@ -3453,6 +3530,13 @@ export declare class GetFragmentRequest extends Message<GetFragmentRequest> {
3453
3530
  */
3454
3531
  currentOrganizationId: string;
3455
3532
 
3533
+ /**
3534
+ * revision or tag
3535
+ *
3536
+ * @generated from field: optional string version = 3;
3537
+ */
3538
+ version?: string;
3539
+
3456
3540
  constructor(data?: PartialMessage<GetFragmentRequest>);
3457
3541
 
3458
3542
  static readonly runtime: typeof proto3;
@@ -3482,6 +3566,16 @@ export declare class GetFragmentResponse extends Message<GetFragmentResponse> {
3482
3566
  */
3483
3567
  fragmentUsage?: FragmentUsage;
3484
3568
 
3569
+ /**
3570
+ * @generated from field: repeated viam.app.v1.FragmentRevision revisions = 3;
3571
+ */
3572
+ revisions: FragmentRevision[];
3573
+
3574
+ /**
3575
+ * @generated from field: repeated viam.app.v1.FragmentTag tags = 4;
3576
+ */
3577
+ tags: FragmentTag[];
3578
+
3485
3579
  constructor(data?: PartialMessage<GetFragmentResponse>);
3486
3580
 
3487
3581
  static readonly runtime: typeof proto3;