@viamrobotics/sdk 0.42.0 → 0.43.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.436";
1
+ export declare const apiVersion = "v0.1.441";
@@ -2,7 +2,7 @@ import type { JsonValue } from '@bufbuild/protobuf';
2
2
  import { Struct } from '@bufbuild/protobuf';
3
3
  import { type Transport } from '@connectrpc/connect';
4
4
  import { PackageType } from '../gen/app/packages/v1/packages_pb';
5
- import { APIKeyWithAuthorizations, Authorization, AuthorizedPermissions, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyResponse, CreateModuleResponse, Fragment, FragmentVisibility, GetAppContentResponse, GetRobotPartLogsResponse, GetRobotPartResponse, ListOrganizationMembersResponse, Location, LocationAuth, Model, Module, Organization, OrganizationIdentity, OrganizationInvite, OrgDetails, RegistryItem, RegistryItemStatus, Robot, RobotPart, RobotPartHistoryEntry, RotateKeyResponse, RoverRentalRobot, Visibility } from '../gen/app/v1/app_pb';
5
+ import { APIKeyWithAuthorizations, Authorization, AuthorizedPermissions, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyResponse, CreateModuleResponse, Fragment, FragmentVisibility, GetAppContentResponse, GetRobotPartLogsResponse, GetRobotPartResponse, GetRobotPartByNameAndLocationResponse, ListOrganizationMembersResponse, Location, LocationAuth, Model, Module, Organization, OrganizationIdentity, OrganizationInvite, OrgDetails, RegistryItem, RegistryItemStatus, Robot, RobotPart, RobotPartHistoryEntry, RotateKeyResponse, RoverRentalRobot, Visibility } from '../gen/app/v1/app_pb';
6
6
  import type { LogEntry } from '../gen/common/v1/common_pb';
7
7
  /**
8
8
  * Creates an Authorization object from auth details.
@@ -592,6 +592,26 @@ export declare class AppClient {
592
592
  * @returns The robot part and a its json config
593
593
  */
594
594
  getRobotPart(id: string): Promise<GetRobotPartResponse>;
595
+ /**
596
+ * Queries a specific robot part by name and location id.
597
+ *
598
+ * @example
599
+ *
600
+ * ```ts
601
+ * const robotPart = await appClient.getRobotPartByNameAndLocation(
602
+ * '<YOUR-ROBOT-PART-NAME>',
603
+ * '<YOUR-LOCATION-ID>'
604
+ * );
605
+ * ```
606
+ *
607
+ * For more information, see [App
608
+ * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartbynameandlocation).
609
+ *
610
+ * @param name The name of the requested robot part
611
+ * @param locationId The ID of the location of the requested robot part
612
+ * @returns The robot part
613
+ */
614
+ getRobotPartByNameAndLocation(name: string, locationId: string): Promise<GetRobotPartByNameAndLocationResponse>;
595
615
  /**
596
616
  * Get a page of log entries for a specific robot part. Logs are sorted by
597
617
  * descending time (newest first).
@@ -245,6 +245,13 @@ export declare class CreateDataPipelineRequest extends Message<CreateDataPipelin
245
245
  */
246
246
  schedule: string;
247
247
 
248
+ /**
249
+ * When true, pipeline runs will be scheduled for the organization's past data.
250
+ *
251
+ * @generated from field: optional bool enable_backfill = 5;
252
+ */
253
+ enableBackfill?: boolean;
254
+
248
255
  constructor(data?: PartialMessage<CreateDataPipelineRequest>);
249
256
 
250
257
  static readonly runtime: typeof proto3;
@@ -453,6 +453,11 @@ export declare class TrainingJobMetadata extends Message<TrainingJobMetadata> {
453
453
  */
454
454
  tags: string[];
455
455
 
456
+ /**
457
+ * @generated from field: map<string, string> arguments = 21;
458
+ */
459
+ arguments: { [key: string]: string };
460
+
456
461
  constructor(data?: PartialMessage<TrainingJobMetadata>);
457
462
 
458
463
  static readonly runtime: typeof proto3;
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { AddRoleRequest, AddRoleResponse, ChangeRoleRequest, ChangeRoleResponse, CheckPermissionsRequest, CheckPermissionsResponse, CreateFragmentRequest, CreateFragmentResponse, CreateKeyFromExistingKeyAuthorizationsRequest, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyRequest, CreateKeyResponse, CreateLocationRequest, CreateLocationResponse, CreateLocationSecretRequest, CreateLocationSecretResponse, CreateModuleRequest, CreateModuleResponse, CreateOAuthAppRequest, CreateOAuthAppResponse, CreateOrganizationInviteRequest, CreateOrganizationInviteResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateRegistryItemRequest, CreateRegistryItemResponse, CreateRobotPartSecretRequest, CreateRobotPartSecretResponse, DeleteFragmentRequest, DeleteFragmentResponse, DeleteFragmentTagRequest, DeleteFragmentTagResponse, DeleteKeyRequest, DeleteKeyResponse, DeleteLocationRequest, DeleteLocationResponse, DeleteLocationSecretRequest, DeleteLocationSecretResponse, DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteOrganizationInviteRequest, DeleteOrganizationInviteResponse, DeleteOrganizationMemberRequest, DeleteOrganizationMemberResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteRegistryItemRequest, DeleteRegistryItemResponse, DeleteRobotPartRequest, DeleteRobotPartResponse, DeleteRobotPartSecretRequest, DeleteRobotPartSecretResponse, DeleteRobotRequest, DeleteRobotResponse, DisableAuthServiceRequest, DisableAuthServiceResponse, DisableBillingServiceRequest, DisableBillingServiceResponse, EnableAuthServiceRequest, EnableAuthServiceResponse, EnableBillingServiceRequest, EnableBillingServiceResponse, GetAppContentRequest, GetAppContentResponse, GetBillingServiceConfigRequest, GetBillingServiceConfigResponse, GetFragmentHistoryRequest, GetFragmentHistoryResponse, GetFragmentRequest, GetFragmentResponse, GetFragmentUsageRequest, GetFragmentUsageResponse, GetLocationMetadataRequest, GetLocationMetadataResponse, GetLocationRequest, GetLocationResponse, GetModuleRequest, GetModuleResponse, GetOrganizationMetadataRequest, GetOrganizationMetadataResponse, GetOrganizationNamespaceAvailabilityRequest, GetOrganizationNamespaceAvailabilityResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationsWithAccessToLocationRequest, GetOrganizationsWithAccessToLocationResponse, GetRegistryItemRequest, GetRegistryItemResponse, GetRobotAPIKeysRequest, GetRobotAPIKeysResponse, GetRobotMetadataRequest, GetRobotMetadataResponse, GetRobotPartHistoryRequest, GetRobotPartHistoryResponse, GetRobotPartLogsRequest, GetRobotPartLogsResponse, GetRobotPartMetadataRequest, GetRobotPartMetadataResponse, GetRobotPartRequest, GetRobotPartResponse, GetRobotPartsRequest, GetRobotPartsResponse, GetRobotRequest, GetRobotResponse, GetRoverRentalRobotsRequest, GetRoverRentalRobotsResponse, GetUserIDByEmailRequest, GetUserIDByEmailResponse, ListAuthorizationsRequest, ListAuthorizationsResponse, ListFragmentsRequest, ListFragmentsResponse, ListKeysRequest, ListKeysResponse, ListLocationsRequest, ListLocationsResponse, ListMachineFragmentsRequest, ListMachineFragmentsResponse, ListMachineSummariesRequest, ListMachineSummariesResponse, ListModulesRequest, ListModulesResponse, ListNestedFragmentsRequest, ListNestedFragmentsResponse, ListOAuthAppsRequest, ListOAuthAppsResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationsByUserRequest, ListOrganizationsByUserResponse, ListOrganizationsRequest, ListOrganizationsResponse, ListRegistryItemsRequest, ListRegistryItemsResponse, ListRobotsRequest, ListRobotsResponse, LocationAuthRequest, LocationAuthResponse, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, NewRobotPartRequest, NewRobotPartResponse, NewRobotRequest, NewRobotResponse, OrganizationGetLogoRequest, OrganizationGetLogoResponse, OrganizationGetSupportEmailRequest, OrganizationGetSupportEmailResponse, OrganizationSetLogoRequest, OrganizationSetLogoResponse, OrganizationSetSupportEmailRequest, OrganizationSetSupportEmailResponse, ReadOAuthAppRequest, ReadOAuthAppResponse, RemoveRoleRequest, RemoveRoleResponse, RenameKeyRequest, RenameKeyResponse, RenameRegistryItemRequest, RenameRegistryItemResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RotateKeyRequest, RotateKeyResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SetFragmentTagRequest, SetFragmentTagResponse, ShareLocationRequest, ShareLocationResponse, TailRobotPartLogsRequest, TailRobotPartLogsResponse, TransferRegistryItemRequest, TransferRegistryItemResponse, UnshareLocationRequest, UnshareLocationResponse, UpdateBillingServiceRequest, UpdateBillingServiceResponse, UpdateFragmentRequest, UpdateFragmentResponse, UpdateLocationMetadataRequest, UpdateLocationMetadataResponse, UpdateLocationRequest, UpdateLocationResponse, UpdateModuleRequest, UpdateModuleResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, UpdateOrganizationInviteAuthorizationsRequest, UpdateOrganizationInviteAuthorizationsResponse, UpdateOrganizationMetadataRequest, UpdateOrganizationMetadataResponse, UpdateOrganizationNamespaceRequest, UpdateOrganizationNamespaceResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateRegistryItemRequest, UpdateRegistryItemResponse, UpdateRobotMetadataRequest, UpdateRobotMetadataResponse, UpdateRobotPartMetadataRequest, UpdateRobotPartMetadataResponse, UpdateRobotPartRequest, UpdateRobotPartResponse, UpdateRobotRequest, UpdateRobotResponse, UploadModuleFileRequest, UploadModuleFileResponse } from "./app_pb.js";
6
+ import { AddRoleRequest, AddRoleResponse, ChangeRoleRequest, ChangeRoleResponse, CheckPermissionsRequest, CheckPermissionsResponse, CreateFragmentRequest, CreateFragmentResponse, CreateKeyFromExistingKeyAuthorizationsRequest, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyRequest, CreateKeyResponse, CreateLocationRequest, CreateLocationResponse, CreateLocationSecretRequest, CreateLocationSecretResponse, CreateModuleRequest, CreateModuleResponse, CreateOAuthAppRequest, CreateOAuthAppResponse, CreateOrganizationInviteRequest, CreateOrganizationInviteResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateRegistryItemRequest, CreateRegistryItemResponse, CreateRobotPartSecretRequest, CreateRobotPartSecretResponse, DeleteFragmentRequest, DeleteFragmentResponse, DeleteFragmentTagRequest, DeleteFragmentTagResponse, DeleteKeyRequest, DeleteKeyResponse, DeleteLocationRequest, DeleteLocationResponse, DeleteLocationSecretRequest, DeleteLocationSecretResponse, DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteOrganizationInviteRequest, DeleteOrganizationInviteResponse, DeleteOrganizationMemberRequest, DeleteOrganizationMemberResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteRegistryItemRequest, DeleteRegistryItemResponse, DeleteRobotPartRequest, DeleteRobotPartResponse, DeleteRobotPartSecretRequest, DeleteRobotPartSecretResponse, DeleteRobotRequest, DeleteRobotResponse, DisableAuthServiceRequest, DisableAuthServiceResponse, DisableBillingServiceRequest, DisableBillingServiceResponse, EnableAuthServiceRequest, EnableAuthServiceResponse, EnableBillingServiceRequest, EnableBillingServiceResponse, GetAppContentRequest, GetAppContentResponse, GetBillingServiceConfigRequest, GetBillingServiceConfigResponse, GetFragmentHistoryRequest, GetFragmentHistoryResponse, GetFragmentRequest, GetFragmentResponse, GetFragmentUsageRequest, GetFragmentUsageResponse, GetLocationMetadataRequest, GetLocationMetadataResponse, GetLocationRequest, GetLocationResponse, GetModuleRequest, GetModuleResponse, GetOrganizationMetadataRequest, GetOrganizationMetadataResponse, GetOrganizationNamespaceAvailabilityRequest, GetOrganizationNamespaceAvailabilityResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationsWithAccessToLocationRequest, GetOrganizationsWithAccessToLocationResponse, GetRegistryItemRequest, GetRegistryItemResponse, GetRobotAPIKeysRequest, GetRobotAPIKeysResponse, GetRobotMetadataRequest, GetRobotMetadataResponse, GetRobotPartByNameAndLocationRequest, GetRobotPartByNameAndLocationResponse, GetRobotPartHistoryRequest, GetRobotPartHistoryResponse, GetRobotPartLogsRequest, GetRobotPartLogsResponse, GetRobotPartMetadataRequest, GetRobotPartMetadataResponse, GetRobotPartRequest, GetRobotPartResponse, GetRobotPartsRequest, GetRobotPartsResponse, GetRobotRequest, GetRobotResponse, GetRoverRentalRobotsRequest, GetRoverRentalRobotsResponse, GetUserIDByEmailRequest, GetUserIDByEmailResponse, ListAuthorizationsRequest, ListAuthorizationsResponse, ListFragmentsRequest, ListFragmentsResponse, ListKeysRequest, ListKeysResponse, ListLocationsRequest, ListLocationsResponse, ListMachineFragmentsRequest, ListMachineFragmentsResponse, ListMachineSummariesRequest, ListMachineSummariesResponse, ListModulesRequest, ListModulesResponse, ListNestedFragmentsRequest, ListNestedFragmentsResponse, ListOAuthAppsRequest, ListOAuthAppsResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationsByUserRequest, ListOrganizationsByUserResponse, ListOrganizationsRequest, ListOrganizationsResponse, ListRegistryItemsRequest, ListRegistryItemsResponse, ListRobotsRequest, ListRobotsResponse, LocationAuthRequest, LocationAuthResponse, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, NewRobotPartRequest, NewRobotPartResponse, NewRobotRequest, NewRobotResponse, OrganizationGetLogoRequest, OrganizationGetLogoResponse, OrganizationGetSupportEmailRequest, OrganizationGetSupportEmailResponse, OrganizationSetLogoRequest, OrganizationSetLogoResponse, OrganizationSetSupportEmailRequest, OrganizationSetSupportEmailResponse, ReadOAuthAppRequest, ReadOAuthAppResponse, RemoveRoleRequest, RemoveRoleResponse, RenameKeyRequest, RenameKeyResponse, RenameRegistryItemRequest, RenameRegistryItemResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RotateKeyRequest, RotateKeyResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SetFragmentTagRequest, SetFragmentTagResponse, ShareLocationRequest, ShareLocationResponse, TailRobotPartLogsRequest, TailRobotPartLogsResponse, TransferRegistryItemRequest, TransferRegistryItemResponse, UnshareLocationRequest, UnshareLocationResponse, UpdateBillingServiceRequest, UpdateBillingServiceResponse, UpdateFragmentRequest, UpdateFragmentResponse, UpdateLocationMetadataRequest, UpdateLocationMetadataResponse, UpdateLocationRequest, UpdateLocationResponse, UpdateModuleRequest, UpdateModuleResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, UpdateOrganizationInviteAuthorizationsRequest, UpdateOrganizationInviteAuthorizationsResponse, UpdateOrganizationMetadataRequest, UpdateOrganizationMetadataResponse, UpdateOrganizationNamespaceRequest, UpdateOrganizationNamespaceResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateRegistryItemRequest, UpdateRegistryItemResponse, UpdateRobotMetadataRequest, UpdateRobotMetadataResponse, UpdateRobotPartMetadataRequest, UpdateRobotPartMetadataResponse, UpdateRobotPartRequest, UpdateRobotPartResponse, UpdateRobotRequest, UpdateRobotResponse, UploadModuleFileRequest, UploadModuleFileResponse } from "./app_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -555,6 +555,17 @@ export declare const AppService: {
555
555
  readonly O: typeof GetRobotPartResponse,
556
556
  readonly kind: MethodKind.Unary,
557
557
  },
558
+ /**
559
+ * Get a specific robot part by name and location
560
+ *
561
+ * @generated from rpc viam.app.v1.AppService.GetRobotPartByNameAndLocation
562
+ */
563
+ readonly getRobotPartByNameAndLocation: {
564
+ readonly name: "GetRobotPartByNameAndLocation",
565
+ readonly I: typeof GetRobotPartByNameAndLocationRequest,
566
+ readonly O: typeof GetRobotPartByNameAndLocationResponse,
567
+ readonly kind: MethodKind.Unary,
568
+ },
558
569
  /**
559
570
  * @generated from rpc viam.app.v1.AppService.GetRobotPartLogs
560
571
  */
@@ -1303,6 +1303,14 @@ export declare class ResendOrganizationInviteRequest extends Message<ResendOrgan
1303
1303
  */
1304
1304
  email: string;
1305
1305
 
1306
+ /**
1307
+ * Set to true (the default) to send an email to the recipient of an invite. The user must accept the email to be added to the associated authorizations.
1308
+ * When set to false, the user automatically receives the associated authorization on the next login of the user with the associated email address.
1309
+ *
1310
+ * @generated from field: optional bool send_email_invite = 3;
1311
+ */
1312
+ sendEmailInvite?: boolean;
1313
+
1306
1314
  constructor(data?: PartialMessage<ResendOrganizationInviteRequest>);
1307
1315
 
1308
1316
  static readonly runtime: typeof proto3;
@@ -2943,6 +2951,59 @@ export declare class GetRobotPartResponse extends Message<GetRobotPartResponse>
2943
2951
  static equals(a: GetRobotPartResponse | PlainMessage<GetRobotPartResponse> | undefined, b: GetRobotPartResponse | PlainMessage<GetRobotPartResponse> | undefined): boolean;
2944
2952
  }
2945
2953
 
2954
+ /**
2955
+ * @generated from message viam.app.v1.GetRobotPartByNameAndLocationRequest
2956
+ */
2957
+ export declare class GetRobotPartByNameAndLocationRequest extends Message<GetRobotPartByNameAndLocationRequest> {
2958
+ /**
2959
+ * @generated from field: string name = 1;
2960
+ */
2961
+ name: string;
2962
+
2963
+ /**
2964
+ * @generated from field: string location_id = 2;
2965
+ */
2966
+ locationId: string;
2967
+
2968
+ constructor(data?: PartialMessage<GetRobotPartByNameAndLocationRequest>);
2969
+
2970
+ static readonly runtime: typeof proto3;
2971
+ static readonly typeName = "viam.app.v1.GetRobotPartByNameAndLocationRequest";
2972
+ static readonly fields: FieldList;
2973
+
2974
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRobotPartByNameAndLocationRequest;
2975
+
2976
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRobotPartByNameAndLocationRequest;
2977
+
2978
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRobotPartByNameAndLocationRequest;
2979
+
2980
+ static equals(a: GetRobotPartByNameAndLocationRequest | PlainMessage<GetRobotPartByNameAndLocationRequest> | undefined, b: GetRobotPartByNameAndLocationRequest | PlainMessage<GetRobotPartByNameAndLocationRequest> | undefined): boolean;
2981
+ }
2982
+
2983
+ /**
2984
+ * @generated from message viam.app.v1.GetRobotPartByNameAndLocationResponse
2985
+ */
2986
+ export declare class GetRobotPartByNameAndLocationResponse extends Message<GetRobotPartByNameAndLocationResponse> {
2987
+ /**
2988
+ * @generated from field: viam.app.v1.RobotPart part = 1;
2989
+ */
2990
+ part?: RobotPart;
2991
+
2992
+ constructor(data?: PartialMessage<GetRobotPartByNameAndLocationResponse>);
2993
+
2994
+ static readonly runtime: typeof proto3;
2995
+ static readonly typeName = "viam.app.v1.GetRobotPartByNameAndLocationResponse";
2996
+ static readonly fields: FieldList;
2997
+
2998
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRobotPartByNameAndLocationResponse;
2999
+
3000
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRobotPartByNameAndLocationResponse;
3001
+
3002
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRobotPartByNameAndLocationResponse;
3003
+
3004
+ static equals(a: GetRobotPartByNameAndLocationResponse | PlainMessage<GetRobotPartByNameAndLocationResponse> | undefined, b: GetRobotPartByNameAndLocationResponse | PlainMessage<GetRobotPartByNameAndLocationResponse> | undefined): boolean;
3005
+ }
3006
+
2946
3007
  /**
2947
3008
  * @generated from message viam.app.v1.GetRobotPartLogsRequest
2948
3009
  */
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { GrabRequest, GrabResponse, IsMovingRequest, IsMovingResponse, OpenRequest, OpenResponse, StopRequest, StopResponse } from "./gripper_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
- import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse } from "../../../common/v1/common_pb.js";
8
+ import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse, GetKinematicsRequest, GetKinematicsResponse } from "../../../common/v1/common_pb.js";
9
9
 
10
10
  /**
11
11
  * An GripperService services all grippers associated with a robot
@@ -81,6 +81,17 @@ export declare const GripperService: {
81
81
  readonly O: typeof GetGeometriesResponse,
82
82
  readonly kind: MethodKind.Unary,
83
83
  },
84
+ /**
85
+ * GetKinematics returns the kinematics file for the component
86
+ *
87
+ * @generated from rpc viam.component.gripper.v1.GripperService.GetKinematics
88
+ */
89
+ readonly getKinematics: {
90
+ readonly name: "GetKinematics",
91
+ readonly I: typeof GetKinematicsRequest,
92
+ readonly O: typeof GetKinematicsResponse,
93
+ readonly kind: MethodKind.Unary,
94
+ },
84
95
  }
85
96
  };
86
97