@viamrobotics/sdk 0.40.2 → 0.42.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 CHANGED
@@ -35,8 +35,19 @@ To use this SDK with node, read the [documentation](https://github.com/viamrobot
35
35
 
36
36
  To use this SDK with React Native, read the [documentation](https://github.com/viamrobotics/viam-typescript-sdk/blob/main/ReactNative.md) or view the [example](https://github.com/viamrobotics/viam-typescript-sdk/tree/main/examples/react-native/)
37
37
 
38
+ ## Offline Mode
39
+
40
+ > [!WARNING]
41
+ > Using the typescript SDK in offline mode necessitates disabling TLS verification and so should be done with caution.
42
+
43
+ To use the browser on a local network with limited-or-no internet, follow these instructions:
44
+ ```
45
+ 1. start viam-server with the `-no-tls` flag
46
+ 2. set the signaling server in typescript to `http://{HOST}.local:8080`
47
+ ```
48
+
38
49
  ## License
39
50
 
40
- Copyright 2022-2024 Viam Inc.
51
+ Copyright 2022-2025 Viam Inc.
41
52
 
42
53
  Apache 2.0 - See [LICENSE](https://github.com/viamrobotics/viam-typescript-sdk/blob/main/LICENSE) file
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.430";
1
+ export declare const apiVersion = "v0.1.436";
@@ -574,6 +574,15 @@ export declare class AppClient {
574
574
  *
575
575
  * ```ts
576
576
  * const robotPart = await appClient.getRobotPart('<YOUR-ROBOT-PART-ID>');
577
+ * // Get the part's address
578
+ * const address = robotPart.part.fqdn;
579
+ * // Check if machine is live (last access time less than 10 sec ago)
580
+ * if (
581
+ * Date.now() - Number(robotPart.part.lastAccess.seconds) * 1000 <=
582
+ * 10000
583
+ * ) {
584
+ * console.log('Machine is live');
585
+ * }
577
586
  * ```
578
587
  *
579
588
  * For more information, see [App
@@ -1,7 +1,9 @@
1
1
  import { type JsonValue } from '@bufbuild/protobuf';
2
- import { type Transport } from '@connectrpc/connect';
3
- import { BinaryID, CaptureMetadata, Filter, Order } from '../gen/app/data/v1/data_pb';
2
+ import { type PromiseClient, type Transport } from '@connectrpc/connect';
3
+ import { BinaryID, CaptureMetadata, Filter, Order, TabularDataSource } from '../gen/app/data/v1/data_pb';
4
4
  import type { Dataset as PBDataset } from '../gen/app/dataset/v1/dataset_pb';
5
+ import { DataPipelinesService } from '../gen/app/datapipelines/v1/data_pipelines_connect';
6
+ import { DataPipeline, DataPipelineRun } from '../gen/app/datapipelines/v1/data_pipelines_pb';
5
7
  export type FilterOptions = Partial<Filter> & {
6
8
  endTime?: Date;
7
9
  startTime?: Date;
@@ -35,6 +37,7 @@ export declare class DataClient {
35
37
  private dataClient;
36
38
  private datasetClient;
37
39
  private dataSyncClient;
40
+ private dataPipelinesClient;
38
41
  constructor(transport: Transport);
39
42
  /**
40
43
  * Obtain unified tabular data and metadata from the specified data source.
@@ -94,13 +97,7 @@ export declare class DataClient {
94
97
  * @example
95
98
  *
96
99
  * ```ts
97
- * type JsonValue =
98
- * | string
99
- * | number
100
- * | boolean
101
- * | null
102
- * | JsonValue[]
103
- * | { [key: string]: JsonValue };
100
+ * // {@link JsonValue} is imported from @bufbuild/protobuf
104
101
  * const mqlQuery: Record<string, JsonValue>[] = [
105
102
  * {
106
103
  * $match: {
@@ -124,10 +121,12 @@ export declare class DataClient {
124
121
  * @param organizationId The ID of the organization that owns the data
125
122
  * @param query The MQL query to run as a list of BSON documents
126
123
  * @param useRecentData Whether to query blob storage or your recent data
127
- * store. Defaults to false
124
+ * store. Defaults to false. Deprecated - use dataSource instead.
125
+ * @param dataSource The data source to query. Defaults to the standard data
126
+ * source.
128
127
  * @returns An array of data objects
129
128
  */
130
- tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean): Promise<(Object | any[])[]>;
129
+ tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean, tabularDataSource?: TabularDataSource): Promise<(Object | any[])[]>;
131
130
  /**
132
131
  * Filter and get a page of tabular data. The returned metadata might be empty
133
132
  * if the metadata index of the data is out of the bounds of the returned
@@ -778,6 +777,129 @@ export declare class DataClient {
778
777
  * captured data was over a year ago
779
778
  */
780
779
  getLatestTabularData(partId: string, resourceName: string, resourceSubtype: string, methodName: string): Promise<[Date, Date, Record<string, JsonValue>] | null>;
780
+ /**
781
+ * List all data pipelines for an organization.
782
+ *
783
+ * @example
784
+ *
785
+ * ```ts
786
+ * const pipelines = await dataClient.listDataPipelines(
787
+ * '123abc45-1234-5678-90ab-cdef12345678'
788
+ * );
789
+ * ```
790
+ *
791
+ * @param organizationId The ID of the organization
792
+ * @returns The list of data pipelines
793
+ */
794
+ listDataPipelines(organizationId: string): Promise<DataPipeline[]>;
795
+ /**
796
+ * Get a data pipeline configuration by its ID.
797
+ *
798
+ * @example
799
+ *
800
+ * ```ts
801
+ * const pipeline = await dataClient.getPipeline(
802
+ * '123abc45-1234-5678-90ab-cdef12345678'
803
+ * );
804
+ * ```
805
+ *
806
+ * @param pipelineId The ID of the data pipeline
807
+ * @returns The data pipeline configuration or null if it does not exist
808
+ */
809
+ getDataPipeline(pipelineId: string): Promise<DataPipeline | null>;
810
+ /**
811
+ * Creates a new data pipeline using the given query and schedule.
812
+ *
813
+ * @example
814
+ *
815
+ * ```ts
816
+ * // {@link JsonValue} is imported from @bufbuild/protobuf
817
+ * const mqlQuery: Record<string, JsonValue>[] = [
818
+ * {
819
+ * $match: {
820
+ * component_name: 'sensor-1',
821
+ * },
822
+ * },
823
+ * {
824
+ * $limit: 5,
825
+ * },
826
+ * ];
827
+ *
828
+ * const pipelineId = await dataClient.createDataPipeline(
829
+ * '123abc45-1234-5678-90ab-cdef12345678',
830
+ * 'my-pipeline',
831
+ * mqlQuery,
832
+ * '0 0 * * *'
833
+ * );
834
+ * ```
835
+ *
836
+ * @param organizationId The ID of the organization
837
+ * @param name The name of the data pipeline
838
+ * @param query The MQL query to run as a list of BSON documents
839
+ * @param schedule The schedule to run the query on (cron expression)
840
+ * @returns The ID of the created data pipeline
841
+ */
842
+ createDataPipeline(organizationId: string, name: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], schedule: string): Promise<string>;
843
+ /**
844
+ * Deletes a data pipeline by its ID.
845
+ *
846
+ * @example
847
+ *
848
+ * ```ts
849
+ * await dataClient.deleteDataPipeline(
850
+ * '123abc45-1234-5678-90ab-cdef12345678'
851
+ * );
852
+ * ```
853
+ *
854
+ * @param pipelineId The ID of the data pipeline
855
+ */
856
+ deleteDataPipeline(pipelineId: string): Promise<void>;
857
+ /**
858
+ * List all runs of a data pipeline.
859
+ *
860
+ * @example
861
+ *
862
+ * ```ts
863
+ * const page = await dataClient.listDataPipelineRuns(
864
+ * '123abc45-1234-5678-90ab-cdef12345678'
865
+ * );
866
+ * page.runs.forEach((run) => {
867
+ * console.log(run);
868
+ * });
869
+ * page = await page.nextPage();
870
+ * page.runs.forEach((run) => {
871
+ * console.log(run);
872
+ * });
873
+ * ```
874
+ *
875
+ * @param pipelineId The ID of the data pipeline
876
+ * @param pageSize The number of runs to return per page
877
+ * @returns A page of data pipeline runs
878
+ */
879
+ listDataPipelineRuns(pipelineId: string, pageSize?: number): Promise<ListDataPipelineRunsPage>;
880
+ }
881
+ export declare class ListDataPipelineRunsPage {
882
+ private readonly dataPipelinesClient;
883
+ private readonly pipelineId;
884
+ readonly runs: DataPipelineRun[];
885
+ private readonly pageSize?;
886
+ private readonly nextPageToken?;
887
+ constructor(dataPipelinesClient: PromiseClient<typeof DataPipelinesService>, pipelineId: string, runs?: DataPipelineRun[], pageSize?: number | undefined, nextPageToken?: string | undefined);
888
+ /**
889
+ * Retrieves the next page of data pipeline runs.
890
+ *
891
+ * @example
892
+ *
893
+ * ```ts
894
+ * const page = await dataClient.listDataPipelineRuns(
895
+ * '123abc45-1234-5678-90ab-cdef12345678'
896
+ * );
897
+ * const nextPage = await page.nextPage();
898
+ * ```
899
+ *
900
+ * @returns A page of data pipeline runs
901
+ */
902
+ nextPage(): Promise<ListDataPipelineRunsPage>;
781
903
  }
782
904
  export { type BinaryID, type Order } from '../gen/app/data/v1/data_pb';
783
905
  export { type UploadMetadata } from '../gen/app/datasync/v1/data_sync_pb';
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { CreateDataPipelineRequest, CreateDataPipelineResponse, DeleteDataPipelineRequest, DeleteDataPipelineResponse, DisableDataPipelineRequest, DisableDataPipelineResponse, EnableDataPipelineRequest, EnableDataPipelineResponse, GetDataPipelineRequest, GetDataPipelineResponse, ListDataPipelinesRequest, ListDataPipelinesResponse, ListPipelineRunsRequest, ListPipelineRunsResponse, UpdateDataPipelineRequest, UpdateDataPipelineResponse } from "./data_pipelines_pb.js";
6
+ import { CreateDataPipelineRequest, CreateDataPipelineResponse, DeleteDataPipelineRequest, DeleteDataPipelineResponse, DisableDataPipelineRequest, DisableDataPipelineResponse, EnableDataPipelineRequest, EnableDataPipelineResponse, GetDataPipelineRequest, GetDataPipelineResponse, ListDataPipelineRunsRequest, ListDataPipelineRunsResponse, ListDataPipelinesRequest, ListDataPipelinesResponse, UpdateDataPipelineRequest, UpdateDataPipelineResponse } from "./data_pipelines_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -92,14 +92,14 @@ export declare const DataPipelinesService: {
92
92
  readonly kind: MethodKind.Unary,
93
93
  },
94
94
  /**
95
- * ListPipelineRuns lists the runs of a data pipeline.
95
+ * ListDataPipelineRuns lists the runs of a data pipeline.
96
96
  *
97
- * @generated from rpc viam.app.datapipelines.v1.DataPipelinesService.ListPipelineRuns
97
+ * @generated from rpc viam.app.datapipelines.v1.DataPipelinesService.ListDataPipelineRuns
98
98
  */
99
- readonly listPipelineRuns: {
100
- readonly name: "ListPipelineRuns",
101
- readonly I: typeof ListPipelineRunsRequest,
102
- readonly O: typeof ListPipelineRunsResponse,
99
+ readonly listDataPipelineRuns: {
100
+ readonly name: "ListDataPipelineRuns",
101
+ readonly I: typeof ListDataPipelineRunsRequest,
102
+ readonly O: typeof ListDataPipelineRunsResponse,
103
103
  readonly kind: MethodKind.Unary,
104
104
  },
105
105
  }
@@ -7,31 +7,31 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
10
- * @generated from enum viam.app.datapipelines.v1.PipelineRunStatus
10
+ * @generated from enum viam.app.datapipelines.v1.DataPipelineRunStatus
11
11
  */
12
- export declare enum PipelineRunStatus {
12
+ export declare enum DataPipelineRunStatus {
13
13
  /**
14
- * @generated from enum value: PIPELINE_RUN_STATUS_UNSPECIFIED = 0;
14
+ * @generated from enum value: DATA_PIPELINE_RUN_STATUS_UNSPECIFIED = 0;
15
15
  */
16
16
  UNSPECIFIED = 0,
17
17
 
18
18
  /**
19
- * @generated from enum value: PIPELINE_RUN_STATUS_SCHEDULED = 1;
19
+ * @generated from enum value: DATA_PIPELINE_RUN_STATUS_SCHEDULED = 1;
20
20
  */
21
21
  SCHEDULED = 1,
22
22
 
23
23
  /**
24
- * @generated from enum value: PIPELINE_RUN_STATUS_STARTED = 2;
24
+ * @generated from enum value: DATA_PIPELINE_RUN_STATUS_STARTED = 2;
25
25
  */
26
26
  STARTED = 2,
27
27
 
28
28
  /**
29
- * @generated from enum value: PIPELINE_RUN_STATUS_COMPLETED = 3;
29
+ * @generated from enum value: DATA_PIPELINE_RUN_STATUS_COMPLETED = 3;
30
30
  */
31
31
  COMPLETED = 3,
32
32
 
33
33
  /**
34
- * @generated from enum value: PIPELINE_RUN_STATUS_FAILED = 4;
34
+ * @generated from enum value: DATA_PIPELINE_RUN_STATUS_FAILED = 4;
35
35
  */
36
36
  FAILED = 4,
37
37
  }
@@ -490,9 +490,9 @@ export declare class DisableDataPipelineResponse extends Message<DisableDataPipe
490
490
  }
491
491
 
492
492
  /**
493
- * @generated from message viam.app.datapipelines.v1.ListPipelineRunsRequest
493
+ * @generated from message viam.app.datapipelines.v1.ListDataPipelineRunsRequest
494
494
  */
495
- export declare class ListPipelineRunsRequest extends Message<ListPipelineRunsRequest> {
495
+ export declare class ListDataPipelineRunsRequest extends Message<ListDataPipelineRunsRequest> {
496
496
  /**
497
497
  * The ID of the data pipeline to list runs for.
498
498
  *
@@ -512,25 +512,25 @@ export declare class ListPipelineRunsRequest extends Message<ListPipelineRunsReq
512
512
  */
513
513
  pageToken: string;
514
514
 
515
- constructor(data?: PartialMessage<ListPipelineRunsRequest>);
515
+ constructor(data?: PartialMessage<ListDataPipelineRunsRequest>);
516
516
 
517
517
  static readonly runtime: typeof proto3;
518
- static readonly typeName = "viam.app.datapipelines.v1.ListPipelineRunsRequest";
518
+ static readonly typeName = "viam.app.datapipelines.v1.ListDataPipelineRunsRequest";
519
519
  static readonly fields: FieldList;
520
520
 
521
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPipelineRunsRequest;
521
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDataPipelineRunsRequest;
522
522
 
523
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPipelineRunsRequest;
523
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDataPipelineRunsRequest;
524
524
 
525
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPipelineRunsRequest;
525
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDataPipelineRunsRequest;
526
526
 
527
- static equals(a: ListPipelineRunsRequest | PlainMessage<ListPipelineRunsRequest> | undefined, b: ListPipelineRunsRequest | PlainMessage<ListPipelineRunsRequest> | undefined): boolean;
527
+ static equals(a: ListDataPipelineRunsRequest | PlainMessage<ListDataPipelineRunsRequest> | undefined, b: ListDataPipelineRunsRequest | PlainMessage<ListDataPipelineRunsRequest> | undefined): boolean;
528
528
  }
529
529
 
530
530
  /**
531
- * @generated from message viam.app.datapipelines.v1.ListPipelineRunsResponse
531
+ * @generated from message viam.app.datapipelines.v1.ListDataPipelineRunsResponse
532
532
  */
533
- export declare class ListPipelineRunsResponse extends Message<ListPipelineRunsResponse> {
533
+ export declare class ListDataPipelineRunsResponse extends Message<ListDataPipelineRunsResponse> {
534
534
  /**
535
535
  * The ID of the data pipeline the runs are for.
536
536
  *
@@ -541,9 +541,9 @@ export declare class ListPipelineRunsResponse extends Message<ListPipelineRunsRe
541
541
  /**
542
542
  * The runs that were run.
543
543
  *
544
- * @generated from field: repeated viam.app.datapipelines.v1.PipelineRun runs = 2;
544
+ * @generated from field: repeated viam.app.datapipelines.v1.DataPipelineRun runs = 2;
545
545
  */
546
- runs: PipelineRun[];
546
+ runs: DataPipelineRun[];
547
547
 
548
548
  /**
549
549
  * A token to retrieve the next page of results.
@@ -552,25 +552,25 @@ export declare class ListPipelineRunsResponse extends Message<ListPipelineRunsRe
552
552
  */
553
553
  nextPageToken: string;
554
554
 
555
- constructor(data?: PartialMessage<ListPipelineRunsResponse>);
555
+ constructor(data?: PartialMessage<ListDataPipelineRunsResponse>);
556
556
 
557
557
  static readonly runtime: typeof proto3;
558
- static readonly typeName = "viam.app.datapipelines.v1.ListPipelineRunsResponse";
558
+ static readonly typeName = "viam.app.datapipelines.v1.ListDataPipelineRunsResponse";
559
559
  static readonly fields: FieldList;
560
560
 
561
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPipelineRunsResponse;
561
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDataPipelineRunsResponse;
562
562
 
563
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPipelineRunsResponse;
563
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDataPipelineRunsResponse;
564
564
 
565
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPipelineRunsResponse;
565
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDataPipelineRunsResponse;
566
566
 
567
- static equals(a: ListPipelineRunsResponse | PlainMessage<ListPipelineRunsResponse> | undefined, b: ListPipelineRunsResponse | PlainMessage<ListPipelineRunsResponse> | undefined): boolean;
567
+ static equals(a: ListDataPipelineRunsResponse | PlainMessage<ListDataPipelineRunsResponse> | undefined, b: ListDataPipelineRunsResponse | PlainMessage<ListDataPipelineRunsResponse> | undefined): boolean;
568
568
  }
569
569
 
570
570
  /**
571
- * @generated from message viam.app.datapipelines.v1.PipelineRun
571
+ * @generated from message viam.app.datapipelines.v1.DataPipelineRun
572
572
  */
573
- export declare class PipelineRun extends Message<PipelineRun> {
573
+ export declare class DataPipelineRun extends Message<DataPipelineRun> {
574
574
  /**
575
575
  * The ID of the run.
576
576
  *
@@ -609,22 +609,22 @@ export declare class PipelineRun extends Message<PipelineRun> {
609
609
  /**
610
610
  * The status of the run.
611
611
  *
612
- * @generated from field: viam.app.datapipelines.v1.PipelineRunStatus status = 6;
612
+ * @generated from field: viam.app.datapipelines.v1.DataPipelineRunStatus status = 6;
613
613
  */
614
- status: PipelineRunStatus;
614
+ status: DataPipelineRunStatus;
615
615
 
616
- constructor(data?: PartialMessage<PipelineRun>);
616
+ constructor(data?: PartialMessage<DataPipelineRun>);
617
617
 
618
618
  static readonly runtime: typeof proto3;
619
- static readonly typeName = "viam.app.datapipelines.v1.PipelineRun";
619
+ static readonly typeName = "viam.app.datapipelines.v1.DataPipelineRun";
620
620
  static readonly fields: FieldList;
621
621
 
622
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PipelineRun;
622
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPipelineRun;
623
623
 
624
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PipelineRun;
624
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPipelineRun;
625
625
 
626
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PipelineRun;
626
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPipelineRun;
627
627
 
628
- static equals(a: PipelineRun | PlainMessage<PipelineRun> | undefined, b: PipelineRun | PlainMessage<PipelineRun> | undefined): boolean;
628
+ static equals(a: DataPipelineRun | PlainMessage<DataPipelineRun> | undefined, b: DataPipelineRun | PlainMessage<DataPipelineRun> | undefined): boolean;
629
629
  }
630
630
 
@@ -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, 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, 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
  /**
@@ -113,6 +113,17 @@ export declare const AppService: {
113
113
  readonly O: typeof UpdateOrganizationResponse,
114
114
  readonly kind: MethodKind.Unary,
115
115
  },
116
+ /**
117
+ * Update an organization's namespace if it's already been set.
118
+ *
119
+ * @generated from rpc viam.app.v1.AppService.UpdateOrganizationNamespace
120
+ */
121
+ readonly updateOrganizationNamespace: {
122
+ readonly name: "UpdateOrganizationNamespace",
123
+ readonly I: typeof UpdateOrganizationNamespaceRequest,
124
+ readonly O: typeof UpdateOrganizationNamespaceResponse,
125
+ readonly kind: MethodKind.Unary,
126
+ },
116
127
  /**
117
128
  * Delete an organization
118
129
  *
@@ -862,6 +862,59 @@ export declare class UpdateOrganizationResponse extends Message<UpdateOrganizati
862
862
  static equals(a: UpdateOrganizationResponse | PlainMessage<UpdateOrganizationResponse> | undefined, b: UpdateOrganizationResponse | PlainMessage<UpdateOrganizationResponse> | undefined): boolean;
863
863
  }
864
864
 
865
+ /**
866
+ * @generated from message viam.app.v1.UpdateOrganizationNamespaceRequest
867
+ */
868
+ export declare class UpdateOrganizationNamespaceRequest extends Message<UpdateOrganizationNamespaceRequest> {
869
+ /**
870
+ * @generated from field: string organization_id = 1;
871
+ */
872
+ organizationId: string;
873
+
874
+ /**
875
+ * @generated from field: string new_public_namespace = 2;
876
+ */
877
+ newPublicNamespace: string;
878
+
879
+ constructor(data?: PartialMessage<UpdateOrganizationNamespaceRequest>);
880
+
881
+ static readonly runtime: typeof proto3;
882
+ static readonly typeName = "viam.app.v1.UpdateOrganizationNamespaceRequest";
883
+ static readonly fields: FieldList;
884
+
885
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationNamespaceRequest;
886
+
887
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationNamespaceRequest;
888
+
889
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationNamespaceRequest;
890
+
891
+ static equals(a: UpdateOrganizationNamespaceRequest | PlainMessage<UpdateOrganizationNamespaceRequest> | undefined, b: UpdateOrganizationNamespaceRequest | PlainMessage<UpdateOrganizationNamespaceRequest> | undefined): boolean;
892
+ }
893
+
894
+ /**
895
+ * @generated from message viam.app.v1.UpdateOrganizationNamespaceResponse
896
+ */
897
+ export declare class UpdateOrganizationNamespaceResponse extends Message<UpdateOrganizationNamespaceResponse> {
898
+ /**
899
+ * @generated from field: viam.app.v1.Organization organization = 1;
900
+ */
901
+ organization?: Organization;
902
+
903
+ constructor(data?: PartialMessage<UpdateOrganizationNamespaceResponse>);
904
+
905
+ static readonly runtime: typeof proto3;
906
+ static readonly typeName = "viam.app.v1.UpdateOrganizationNamespaceResponse";
907
+ static readonly fields: FieldList;
908
+
909
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationNamespaceResponse;
910
+
911
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationNamespaceResponse;
912
+
913
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationNamespaceResponse;
914
+
915
+ static equals(a: UpdateOrganizationNamespaceResponse | PlainMessage<UpdateOrganizationNamespaceResponse> | undefined, b: UpdateOrganizationNamespaceResponse | PlainMessage<UpdateOrganizationNamespaceResponse> | undefined): boolean;
916
+ }
917
+
865
918
  /**
866
919
  * @generated from message viam.app.v1.DeleteOrganizationRequest
867
920
  */
@@ -5591,6 +5644,13 @@ export declare class ModuleVersion extends Message<ModuleVersion> {
5591
5644
  */
5592
5645
  markdownDescription?: string;
5593
5646
 
5647
+ /**
5648
+ * A list of applications associated with the module
5649
+ *
5650
+ * @generated from field: repeated viam.app.v1.App apps = 7;
5651
+ */
5652
+ apps: App[];
5653
+
5594
5654
  constructor(data?: PartialMessage<ModuleVersion>);
5595
5655
 
5596
5656
  static readonly runtime: typeof proto3;
@@ -5646,6 +5706,13 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
5646
5706
  */
5647
5707
  markdownDescription?: string;
5648
5708
 
5709
+ /**
5710
+ * A list of applications associated with the module
5711
+ *
5712
+ * @generated from field: repeated viam.app.v1.App apps = 6;
5713
+ */
5714
+ apps: App[];
5715
+
5649
5716
  constructor(data?: PartialMessage<ModuleMetadata>);
5650
5717
 
5651
5718
  static readonly runtime: typeof proto3;
@@ -6587,6 +6654,13 @@ export declare class UpdateModuleMetadata extends Message<UpdateModuleMetadata>
6587
6654
  */
6588
6655
  entrypoint: string;
6589
6656
 
6657
+ /**
6658
+ * A list of applications associated with the module
6659
+ *
6660
+ * @generated from field: repeated viam.app.v1.App apps = 3;
6661
+ */
6662
+ apps: App[];
6663
+
6590
6664
  constructor(data?: PartialMessage<UpdateModuleMetadata>);
6591
6665
 
6592
6666
  static readonly runtime: typeof proto3;
@@ -6995,6 +7069,13 @@ export declare class Module extends Message<Module> {
6995
7069
  */
6996
7070
  markdownDescription?: string;
6997
7071
 
7072
+ /**
7073
+ * A list of applications associated with the module
7074
+ *
7075
+ * @generated from field: repeated viam.app.v1.App apps = 15;
7076
+ */
7077
+ apps: App[];
7078
+
6998
7079
  constructor(data?: PartialMessage<Module>);
6999
7080
 
7000
7081
  static readonly runtime: typeof proto3;
@@ -7056,6 +7137,13 @@ export declare class VersionHistory extends Message<VersionHistory> {
7056
7137
  */
7057
7138
  markdownDescription?: string;
7058
7139
 
7140
+ /**
7141
+ * A list of applications associated with the module
7142
+ *
7143
+ * @generated from field: repeated viam.app.v1.App apps = 7;
7144
+ */
7145
+ apps: App[];
7146
+
7059
7147
  constructor(data?: PartialMessage<VersionHistory>);
7060
7148
 
7061
7149
  static readonly runtime: typeof proto3;
@@ -306,8 +306,8 @@ export declare class TransformPoseResponse extends Message<TransformPoseResponse
306
306
  */
307
307
  export declare class TransformPCDRequest extends Message<TransformPCDRequest> {
308
308
  /**
309
- * the point clouds to transform. This should be in the PCD format
310
- * encoded into bytes: https://pointclouds.org/documentation/tutorials/pcd_file_format.html
309
+ * the point clouds to transform. This should be in the PCD format,
310
+ * [encoded into bytes](https://pointclouds.org/documentation/tutorials/pcd_file_format.html).
311
311
  *
312
312
  * @generated from field: bytes point_cloud_pcd = 1;
313
313
  */
@@ -155,8 +155,8 @@ export declare class GetPointCloudMapResponse extends Message<GetPointCloudMapRe
155
155
  * format where XY is the ground plane and positive Z is up, following
156
156
  * the Right Hand Rule.
157
157
  *
158
- * Read more about the pointcloud format here:
159
- * https://pointclouds.org/documentation/tutorials/pcd_file_format.html
158
+ * Read more about the pointcloud format
159
+ * [in the docs](https://pointclouds.org/documentation/tutorials/pcd_file_format.html)
160
160
  *
161
161
  * Viam expects pointcloud data with fields "x y z" or "x y z rgb", and for
162
162
  * this to be specified in the pointcloud header in the FIELDS entry. If color
package/dist/main.d.ts CHANGED
@@ -142,7 +142,7 @@ export { GantryClient, type Gantry } from './components/gantry';
142
142
  * @group Raw Protobufs
143
143
  */
144
144
  export * as gantryApi from './gen/component/gantry/v1/gantry_pb';
145
- export { MLModelClient, type MLModel } from './services/ml-model';
145
+ export { MLModelClient, type MLModel, type Metadata, type TensorInfo, type FlatTensors, } from './services/ml-model';
146
146
  export { MotorClient, type Motor } from './components/motor';
147
147
  /**
148
148
  * Raw Protobuf interfaces for a Motor component.