@viamrobotics/sdk 0.8.0-rc.0 → 0.8.1-next.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/main.d.ts CHANGED
@@ -266,7 +266,7 @@ export { type DataManager, DataManagerClient } from './services/data-manager';
266
266
  * @group Raw Protobufs
267
267
  */
268
268
  export { default as navigationApi } from './gen/service/navigation/v1/navigation_pb';
269
- export { type ModeMap, type Waypoint, type NavigationPosition, NavigationClient, } from './services/navigation';
269
+ export { type ModeMap, type Waypoint, type NavigationPosition, type Path, NavigationClient, } from './services/navigation';
270
270
  /**
271
271
  * Raw Protobuf interfaces for a Servo component.
272
272
  *
package/dist/main.es.js CHANGED
@@ -47422,7 +47422,7 @@ var data_pb = {};
47422
47422
  }, n.inherits(proto.viam.app.data.v1.TabularDataBySQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLRequest.displayName = "proto.viam.app.data.v1.TabularDataBySQLRequest"), proto.viam.app.data.v1.TabularDataBySQLResponse = function(t) {
47423
47423
  e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataBySQLResponse.repeatedFields_, null);
47424
47424
  }, n.inherits(proto.viam.app.data.v1.TabularDataBySQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLResponse.displayName = "proto.viam.app.data.v1.TabularDataBySQLResponse"), proto.viam.app.data.v1.TabularDataByMQLRequest = function(t) {
47425
- e.Message.initialize(this, t, 0, -1, null, null);
47425
+ e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByMQLRequest.repeatedFields_, null);
47426
47426
  }, n.inherits(proto.viam.app.data.v1.TabularDataByMQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLRequest.displayName = "proto.viam.app.data.v1.TabularDataByMQLRequest"), proto.viam.app.data.v1.TabularDataByMQLResponse = function(t) {
47427
47427
  e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_, null);
47428
47428
  }, n.inherits(proto.viam.app.data.v1.TabularDataByMQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLResponse.displayName = "proto.viam.app.data.v1.TabularDataByMQLResponse"), proto.viam.app.data.v1.BinaryData = function(t) {
@@ -48696,12 +48696,13 @@ var data_pb = {};
48696
48696
  return e.Message.addToRepeatedWrapperField(this, 1, t, proto.google.protobuf.Struct, o);
48697
48697
  }, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.clearDataList = function() {
48698
48698
  return this.setDataList([]);
48699
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.toObject = function(t) {
48699
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.repeatedFields_ = [3], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.toObject = function(t) {
48700
48700
  return proto.viam.app.data.v1.TabularDataByMQLRequest.toObject(t, this);
48701
48701
  }, proto.viam.app.data.v1.TabularDataByMQLRequest.toObject = function(t, o) {
48702
48702
  var r = {
48703
48703
  organizationId: e.Message.getFieldWithDefault(o, 1, ""),
48704
- mqlQuery: e.Message.getFieldWithDefault(o, 2, "")
48704
+ mqlQuery: e.Message.getFieldWithDefault(o, 2, ""),
48705
+ mqlBinaryList: o.getMqlBinaryList_asB64()
48705
48706
  };
48706
48707
  return t && (r.$jspbMessageInstance = o), r;
48707
48708
  }), proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinary = function(t) {
@@ -48725,6 +48726,13 @@ var data_pb = {};
48725
48726
  );
48726
48727
  t.setMqlQuery(u);
48727
48728
  break;
48729
+ case 3:
48730
+ var u = (
48731
+ /** @type {!Uint8Array} */
48732
+ o.readBytes()
48733
+ );
48734
+ t.addMqlBinary(u);
48735
+ break;
48728
48736
  default:
48729
48737
  o.skipField();
48730
48738
  break;
@@ -48742,6 +48750,9 @@ var data_pb = {};
48742
48750
  ), r = t.getMqlQuery(), r.length > 0 && o.writeString(
48743
48751
  2,
48744
48752
  r
48753
+ ), r = t.getMqlBinaryList_asU8(), r.length > 0 && o.writeRepeatedBytes(
48754
+ 3,
48755
+ r
48745
48756
  );
48746
48757
  }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getOrganizationId = function() {
48747
48758
  return (
@@ -48757,6 +48768,31 @@ var data_pb = {};
48757
48768
  );
48758
48769
  }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setMqlQuery = function(t) {
48759
48770
  return e.Message.setProto3StringField(this, 2, t);
48771
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getMqlBinaryList = function() {
48772
+ return (
48773
+ /** @type {!Array<string>} */
48774
+ e.Message.getRepeatedField(this, 3)
48775
+ );
48776
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getMqlBinaryList_asB64 = function() {
48777
+ return (
48778
+ /** @type {!Array<string>} */
48779
+ e.Message.bytesListAsB64(
48780
+ this.getMqlBinaryList()
48781
+ )
48782
+ );
48783
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getMqlBinaryList_asU8 = function() {
48784
+ return (
48785
+ /** @type {!Array<!Uint8Array>} */
48786
+ e.Message.bytesListAsU8(
48787
+ this.getMqlBinaryList()
48788
+ )
48789
+ );
48790
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setMqlBinaryList = function(t) {
48791
+ return e.Message.setField(this, 3, t || []);
48792
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.addMqlBinary = function(t, o) {
48793
+ return e.Message.addToRepeatedField(this, 3, t, o);
48794
+ }, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.clearMqlBinaryList = function() {
48795
+ return this.setMqlBinaryList([]);
48760
48796
  }, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.toObject = function(t) {
48761
48797
  return proto.viam.app.data.v1.TabularDataByMQLResponse.toObject(t, this);
48762
48798
  }, proto.viam.app.data.v1.TabularDataByMQLResponse.toObject = function(t, o) {
@@ -50964,7 +51000,9 @@ var data_pb = {};
50964
51000
  return proto.viam.app.data.v1.GetDatabaseConnectionResponse.toObject(t, this);
50965
51001
  }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.toObject = function(t, o) {
50966
51002
  var r = {
50967
- hostname: e.Message.getFieldWithDefault(o, 1, "")
51003
+ hostname: e.Message.getFieldWithDefault(o, 1, ""),
51004
+ mongodbUri: e.Message.getFieldWithDefault(o, 2, ""),
51005
+ hasDatabaseUser: e.Message.getBooleanFieldWithDefault(o, 3, !1)
50968
51006
  };
50969
51007
  return t && (r.$jspbMessageInstance = o), r;
50970
51008
  }), proto.viam.app.data.v1.GetDatabaseConnectionResponse.deserializeBinary = function(t) {
@@ -50981,6 +51019,20 @@ var data_pb = {};
50981
51019
  );
50982
51020
  t.setHostname(u);
50983
51021
  break;
51022
+ case 2:
51023
+ var u = (
51024
+ /** @type {string} */
51025
+ o.readString()
51026
+ );
51027
+ t.setMongodbUri(u);
51028
+ break;
51029
+ case 3:
51030
+ var u = (
51031
+ /** @type {boolean} */
51032
+ o.readBool()
51033
+ );
51034
+ t.setHasDatabaseUser(u);
51035
+ break;
50984
51036
  default:
50985
51037
  o.skipField();
50986
51038
  break;
@@ -50995,6 +51047,12 @@ var data_pb = {};
50995
51047
  r = t.getHostname(), r.length > 0 && o.writeString(
50996
51048
  1,
50997
51049
  r
51050
+ ), r = t.getMongodbUri(), r.length > 0 && o.writeString(
51051
+ 2,
51052
+ r
51053
+ ), r = t.getHasDatabaseUser(), r && o.writeBool(
51054
+ 3,
51055
+ r
50998
51056
  );
50999
51057
  }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.getHostname = function() {
51000
51058
  return (
@@ -51003,6 +51061,20 @@ var data_pb = {};
51003
51061
  );
51004
51062
  }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.setHostname = function(t) {
51005
51063
  return e.Message.setProto3StringField(this, 1, t);
51064
+ }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.getMongodbUri = function() {
51065
+ return (
51066
+ /** @type {string} */
51067
+ e.Message.getFieldWithDefault(this, 2, "")
51068
+ );
51069
+ }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.setMongodbUri = function(t) {
51070
+ return e.Message.setProto3StringField(this, 2, t);
51071
+ }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.getHasDatabaseUser = function() {
51072
+ return (
51073
+ /** @type {boolean} */
51074
+ e.Message.getBooleanFieldWithDefault(this, 3, !1)
51075
+ );
51076
+ }, proto.viam.app.data.v1.GetDatabaseConnectionResponse.prototype.setHasDatabaseUser = function(t) {
51077
+ return e.Message.setProto3BooleanField(this, 3, t);
51006
51078
  }, proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest.prototype.toObject = function(t) {
51007
51079
  return proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest.toObject(t, this);
51008
51080
  }, proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest.toObject = function(t, o) {
@@ -51841,12 +51913,12 @@ class DataClient {
51841
51913
  * Obtain unified tabular data and metadata, queried with MQL.
51842
51914
  *
51843
51915
  * @param organizationId The ID of the organization that owns the data
51844
- * @param query The MQL query to run
51916
+ * @param query The MQL query to run as a list of BSON documents
51845
51917
  * @returns An array of data objects
51846
51918
  */
51847
51919
  async tabularDataByMQL(e, n) {
51848
51920
  const { service: s } = this, l = new data_pb.TabularDataByMQLRequest();
51849
- return l.setOrganizationId(e), l.setMqlQuery(n), (await promisify(s.tabularDataByMQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
51921
+ return l.setOrganizationId(e), l.setMqlBinaryList(n), (await promisify(s.tabularDataByMQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
51850
51922
  }
51851
51923
  /**
51852
51924
  * Filter and download tabular data. The returned metadata might be empty if
@@ -54977,6 +55049,13 @@ class NavigationClient {
54977
55049
  const { service: n } = this, s = new navigation_pb.GetObstaclesRequest();
54978
55050
  return s.setName(this.name), s.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(s), (await promisify(n.getObstacles.bind(n), s)).getObstaclesList().map((g) => g.toObject());
54979
55051
  }
55052
+ async getPaths(e = {}) {
55053
+ const { service: n } = this, s = new navigation_pb.GetPathsRequest();
55054
+ return s.setName(this.name), s.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(s), (await promisify(
55055
+ n.getPaths.bind(n),
55056
+ s
55057
+ )).getPathsList().map((g) => g.toObject());
55058
+ }
54980
55059
  async doCommand(e) {
54981
55060
  const { service: n } = this;
54982
55061
  return doCommandFromClient(n, this.name, e, this.options);
@@ -55121,7 +55200,7 @@ const concatArrayU8 = (i) => {
55121
55200
  for (const l of i)
55122
55201
  n.set(l, s), s += l.length;
55123
55202
  return n;
55124
- }, version = "0.8.0-rc.0";
55203
+ }, version = "0.8.1-next.0";
55125
55204
  export {
55126
55205
  ArmClient,
55127
55206
  BaseClient,