@blues-inc/notehub-js 6.7.0-beta.5 → 6.7.0-beta.51

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.
Files changed (191) hide show
  1. package/README.md +149 -149
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +3 -3
  4. package/dist/api/AuthorizationApi.js +9 -48
  5. package/dist/api/DescriptionApi.js +1 -1
  6. package/dist/api/DeviceApi.js +91 -59
  7. package/dist/api/EventApi.js +25 -170
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +9 -9
  12. package/dist/api/ProjectApi.js +17 -17
  13. package/dist/api/RouteApi.js +7 -7
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +15 -15
  16. package/dist/api/WebhookApi.js +17 -17
  17. package/dist/index.js +77 -63
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  20. package/dist/model/Alert.js +4 -4
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +5 -5
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +2 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +3 -2
  33. package/dist/model/CloneProjectRequest.js +3 -3
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +1 -1
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +1 -1
  38. package/dist/model/CreateProductRequest.js +1 -1
  39. package/dist/model/CreateProjectRequest.js +3 -3
  40. package/dist/model/CreateProjectSecretRequest.js +1 -1
  41. package/dist/model/CreateUpdateRepository.js +2 -1
  42. package/dist/model/CreatedRepository.js +1 -1
  43. package/dist/model/CurrentFirmware.js +1 -1
  44. package/dist/model/DFUEnv.js +1 -1
  45. package/dist/model/DFUState.js +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +1 -1
  48. package/dist/model/DataSetField.js +1 -1
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +1 -1
  55. package/dist/model/DescriptionRecord.js +1 -1
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +27 -8
  58. package/dist/model/DeviceDfuHistory.js +2 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +1 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  63. package/dist/model/DeviceDfuStatus.js +2 -2
  64. package/dist/model/DeviceDfuStatusPage.js +1 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +5 -5
  67. package/dist/model/DeviceTowerInfo.js +6 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +1 -1
  70. package/dist/model/EmailNotification.js +1 -1
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +7 -7
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +1 -1
  79. package/dist/model/Fleet.js +3 -3
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +1 -1
  82. package/dist/model/GetApiUsage200Response.js +1 -1
  83. package/dist/model/GetDataUsage200Response.js +1 -1
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +5 -3
  96. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
  98. package/dist/model/GetDeviceSessions200Response.js +1 -1
  99. package/dist/model/GetDevices200Response.js +1 -1
  100. package/dist/model/GetEvents200Response.js +1 -1
  101. package/dist/model/GetJobRuns200Response.js +1 -1
  102. package/dist/model/GetJobs200Response.js +1 -1
  103. package/dist/model/GetNotefile200Response.js +1 -1
  104. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
  105. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
  106. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
  107. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
  108. package/dist/model/GetOrganizations200Response.js +1 -1
  109. package/dist/model/GetProducts200Response.js +1 -1
  110. package/dist/model/GetProjectMembers200Response.js +1 -1
  111. package/dist/model/GetProjectSecretsResponse.js +1 -1
  112. package/dist/model/GetProjects200Response.js +1 -1
  113. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  114. package/dist/model/GetSessionsUsage200Response.js +1 -1
  115. package/dist/model/GetWebhooks200Response.js +1 -1
  116. package/dist/model/GoogleRoute.js +1 -1
  117. package/dist/model/HealthLog.js +7 -4
  118. package/dist/model/HttpRoute.js +1 -1
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +3 -3
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +13 -7
  127. package/dist/model/Monitor.js +1 -1
  128. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  129. package/dist/model/MqttRoute.js +1 -1
  130. package/dist/model/Note.js +1 -1
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +1 -1
  133. package/dist/model/NotefileSchema.js +1 -1
  134. package/dist/model/NotehubRoute.js +1 -1
  135. package/dist/model/NotehubRouteSummary.js +1 -1
  136. package/dist/model/OAuth2Error.js +1 -1
  137. package/dist/model/OAuth2TokenResponse.js +1 -1
  138. package/dist/model/Organization.js +1 -1
  139. package/dist/model/Product.js +1 -1
  140. package/dist/model/Project.js +1 -1
  141. package/dist/model/ProjectMember.js +1 -1
  142. package/dist/model/ProjectSecret.js +1 -1
  143. package/dist/model/ProvisionDeviceRequest.js +5 -5
  144. package/dist/model/ProxyRoute.js +1 -1
  145. package/dist/model/QubitroRoute.js +1 -1
  146. package/dist/model/RadRoute.js +1 -1
  147. package/dist/model/Repository.js +1 -1
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/RepositoryTokenRequest.js +1 -1
  150. package/dist/model/RepositoryTokenResponse.js +1 -1
  151. package/dist/model/RouteLog.js +3 -3
  152. package/dist/model/RouteTransformSettings.js +1 -1
  153. package/dist/model/RunJob200Response.js +1 -1
  154. package/dist/model/S3ArchiveRoute.js +1 -1
  155. package/dist/model/SatelliteDataUsage.js +1 -1
  156. package/dist/model/SatellitePlan.js +1 -1
  157. package/dist/model/SchemaProperty.js +1 -1
  158. package/dist/model/SignalDevice200Response.js +2 -2
  159. package/dist/model/SimUsage.js +1 -1
  160. package/dist/model/Skill.js +207 -0
  161. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
  162. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
  163. package/dist/model/SkillSummary.js +205 -0
  164. package/dist/model/SkillWrite.js +128 -0
  165. package/dist/model/SkillWriteResult.js +153 -0
  166. package/dist/model/SlackBearerNotification.js +1 -1
  167. package/dist/model/SlackRoute.js +1 -1
  168. package/dist/model/SlackWebHookNotification.js +1 -1
  169. package/dist/model/SnowflakeRoute.js +1 -1
  170. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  171. package/dist/model/ThingworxRoute.js +1 -1
  172. package/dist/model/TowerLocation.js +1 -1
  173. package/dist/model/TwilioRoute.js +1 -1
  174. package/dist/model/UpdateFleetRequest.js +1 -1
  175. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  176. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  177. package/dist/model/UploadMetadata.js +1 -1
  178. package/dist/model/UsageApiData.js +1 -1
  179. package/dist/model/UsageData.js +1 -1
  180. package/dist/model/UsageEventsData.js +1 -1
  181. package/dist/model/UsageEventsResponse.js +1 -1
  182. package/dist/model/UsageRouteLogsData.js +2 -2
  183. package/dist/model/UsageSessionsData.js +1 -1
  184. package/dist/model/UserDfuStateMachine.js +1 -1
  185. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  186. package/dist/model/UserFirmwareInfo.js +1 -1
  187. package/dist/model/WebhookSettings.js +1 -1
  188. package/package.json +1 -1
  189. package/dist/api/BillingAccountApi.js +0 -167
  190. package/dist/model/Login200Response.js +0 -91
  191. package/dist/model/LoginRequest.js +0 -103
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _Login200Response = _interopRequireDefault(require("../model/Login200Response"));
9
- var _LoginRequest = _interopRequireDefault(require("../model/LoginRequest"));
10
8
  var _OAuth2Error = _interopRequireDefault(require("../model/OAuth2Error"));
11
9
  var _OAuth2TokenResponse = _interopRequireDefault(require("../model/OAuth2TokenResponse"));
12
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -30,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
28
  /**
31
29
  * Authorization service.
32
30
  * @module api/AuthorizationApi
33
- * @version 6.7.0-beta.5
31
+ * @version 6.7.0-beta.51
34
32
  */
35
33
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
34
  /**
@@ -46,53 +44,16 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
46
44
  }
47
45
 
48
46
  /**
49
- * Gets an API key from username and password
50
- * @param {module:model/LoginRequest} loginRequest
51
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Login200Response} and HTTP response
47
+ * Issue an OAuth 2.0 access token (Client Credentials)
48
+ * Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
49
+ * @param {String} clientId
50
+ * @param {String} clientSecret
51
+ * @param {module:model/String} grantType
52
+ * @param {Object} opts Optional parameters
53
+ * @param {String} opts.scope Space-delimited scopes.
54
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
52
55
  */
53
56
  return _createClass(AuthorizationApi, [{
54
- key: "loginWithHttpInfo",
55
- value: function loginWithHttpInfo(loginRequest) {
56
- var postBody = loginRequest;
57
- // verify the required parameter 'loginRequest' is set
58
- if (loginRequest === undefined || loginRequest === null) {
59
- throw new Error("Missing the required parameter 'loginRequest' when calling login");
60
- }
61
- var pathParams = {};
62
- var queryParams = {};
63
- var headerParams = {};
64
- var formParams = {};
65
- var authNames = [];
66
- var contentTypes = ["application/json"];
67
- var accepts = ["application/json"];
68
- var returnType = _Login200Response["default"];
69
- return this.apiClient.callApi("/auth/login", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
70
- }
71
-
72
- /**
73
- * Gets an API key from username and password
74
- * @param {module:model/LoginRequest} loginRequest
75
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Login200Response}
76
- */
77
- }, {
78
- key: "login",
79
- value: function login(loginRequest) {
80
- return this.loginWithHttpInfo(loginRequest).then(function (response_and_data) {
81
- return response_and_data.data;
82
- });
83
- }
84
-
85
- /**
86
- * Issue an OAuth 2.0 access token (Client Credentials)
87
- * Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
88
- * @param {String} clientId
89
- * @param {String} clientSecret
90
- * @param {module:model/String} grantType
91
- * @param {Object} opts Optional parameters
92
- * @param {String} opts.scope Space-delimited scopes.
93
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
94
- */
95
- }, {
96
57
  key: "oAuth2ClientCredentialsWithHttpInfo",
97
58
  value: function oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts) {
98
59
  opts = opts || {};
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * Description service.
31
31
  * @module api/DescriptionApi
32
- * @version 6.7.0-beta.5
32
+ * @version 6.7.0-beta.51
33
33
  */
34
34
  var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
48
48
  /**
49
49
  * Device service.
50
50
  * @module api/DeviceApi
51
- * @version 6.7.0-beta.5
51
+ * @version 6.7.0-beta.51
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -242,7 +242,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
242
242
  }
243
243
 
244
244
  /**
245
- * Delete Device
245
+ * Delete a device
246
+ * Delete a device and its notefiles from a project. Its events are kept. A Notecard that syncs again is added back as a new device; to block it instead, use `DisableDevice`. Requires the Owner or Developer role.
246
247
  * @param {String} projectOrProductUID
247
248
  * @param {String} deviceUID
248
249
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -274,7 +275,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
274
275
  }
275
276
 
276
277
  /**
277
- * Delete Device
278
+ * Delete a device
279
+ * Delete a device and its notefiles from a project. Its events are kept. A Notecard that syncs again is added back as a new device; to block it instead, use `DisableDevice`. Requires the Owner or Developer role.
278
280
  * @param {String} projectOrProductUID
279
281
  * @param {String} deviceUID
280
282
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -453,7 +455,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
453
455
  }
454
456
 
455
457
  /**
456
- * Disable Device
458
+ * Disable a device
459
+ * Stop a device from connecting to Notehub, ending any open session. The device and its data stay in the project; undo with `EnableDevice`. Does nothing if it's already disabled. Requires the Owner or Developer role.
457
460
  * @param {String} projectOrProductUID
458
461
  * @param {String} deviceUID
459
462
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -485,7 +488,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
485
488
  }
486
489
 
487
490
  /**
488
- * Disable Device
491
+ * Disable a device
492
+ * Stop a device from connecting to Notehub, ending any open session. The device and its data stay in the project; undo with `EnableDevice`. Does nothing if it's already disabled. Requires the Owner or Developer role.
489
493
  * @param {String} projectOrProductUID
490
494
  * @param {String} deviceUID
491
495
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -499,7 +503,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
499
503
  }
500
504
 
501
505
  /**
502
- * Enable Device
506
+ * Enable a device
507
+ * Re-enable a device turned off with `DisableDevice`, so it can connect to Notehub again. Does nothing if the device is already enabled. Requires the Owner or Developer role. Returns 409 if the device's cellular service was deactivated; it must be reactivated instead.
503
508
  * @param {String} projectOrProductUID
504
509
  * @param {String} deviceUID
505
510
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -531,7 +536,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
531
536
  }
532
537
 
533
538
  /**
534
- * Enable Device
539
+ * Enable a device
540
+ * Re-enable a device turned off with `DisableDevice`, so it can connect to Notehub again. Does nothing if the device is already enabled. Requires the Owner or Developer role. Returns 409 if the device's cellular service was deactivated; it must be reactivated instead.
535
541
  * @param {String} projectOrProductUID
536
542
  * @param {String} deviceUID
537
543
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -615,7 +621,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
615
621
  }
616
622
 
617
623
  /**
618
- * Get Device
624
+ * Get a device
625
+ * Get one device's details: serial number, product, fleets, locations, firmware versions, SIM usage and DFU state. To find devices by tag, serial number or other fields, use `GetDevices`.
619
626
  * @param {String} projectOrProductUID
620
627
  * @param {String} deviceUID
621
628
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
@@ -647,7 +654,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
647
654
  }
648
655
 
649
656
  /**
650
- * Get Device
657
+ * Get a device
658
+ * Get one device's details: serial number, product, fleets, locations, firmware versions, SIM usage and DFU state. To find devices by tag, serial number or other fields, use `GetDevices`.
651
659
  * @param {String} projectOrProductUID
652
660
  * @param {String} deviceUID
653
661
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
@@ -807,13 +815,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
807
815
  }
808
816
 
809
817
  /**
810
- * Get Device Health Log
818
+ * Get a device's health log
819
+ * Get a device's health log: timestamped status messages such as restarts and completed firmware updates. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400.
811
820
  * @param {String} projectOrProductUID
812
821
  * @param {String} deviceUID
813
822
  * @param {Object} opts Optional parameters
814
823
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
815
824
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
816
- * @param {Array.<module:model/String>} opts.logType Return only specified log types
825
+ * @param {Array.<module:model/String>} opts.logType Return only these kinds of entry. If omitted, all entries are returned. - `boot`: the device restarted - `dfu_completed`: a host firmware update finished
817
826
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
818
827
  */
819
828
  }, {
@@ -848,13 +857,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
848
857
  }
849
858
 
850
859
  /**
851
- * Get Device Health Log
860
+ * Get a device's health log
861
+ * Get a device's health log: timestamped status messages such as restarts and completed firmware updates. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400.
852
862
  * @param {String} projectOrProductUID
853
863
  * @param {String} deviceUID
854
864
  * @param {Object} opts Optional parameters
855
865
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
856
866
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
857
- * @param {Array.<module:model/String>} opts.logType Return only specified log types
867
+ * @param {Array.<module:model/String>} opts.logType Return only these kinds of entry. If omitted, all entries are returned. - `boot`: the device restarted - `dfu_completed`: a host firmware update finished
858
868
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
859
869
  */
860
870
  }, {
@@ -866,12 +876,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
866
876
  }
867
877
 
868
878
  /**
869
- * Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
879
+ * Get a journey and its events
880
+ * Get one journey's start and end time and its events, oldest first. Only events with a location are included, and a run of events at the same location is reduced to the first. The events are paginated; `journey.has_more` is true if there are more. Returns 404 if the journey doesn't exist, and 403 if the organization is suspended.
870
881
  * @param {String} projectOrProductUID
871
882
  * @param {String} deviceUID
872
883
  * @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
873
884
  * @param {Object} opts Optional parameters
874
- * @param {Number} opts.pageSize (default to 50)
885
+ * @param {Number} opts.pageSize (default to 1000)
875
886
  * @param {Number} opts.pageNum (default to 1)
876
887
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
877
888
  */
@@ -911,12 +922,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
911
922
  }
912
923
 
913
924
  /**
914
- * Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
925
+ * Get a journey and its events
926
+ * Get one journey's start and end time and its events, oldest first. Only events with a location are included, and a run of events at the same location is reduced to the first. The events are paginated; `journey.has_more` is true if there are more. Returns 404 if the journey doesn't exist, and 403 if the organization is suspended.
915
927
  * @param {String} projectOrProductUID
916
928
  * @param {String} deviceUID
917
929
  * @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
918
930
  * @param {Object} opts Optional parameters
919
- * @param {Number} opts.pageSize (default to 50)
931
+ * @param {Number} opts.pageSize (default to 1000)
920
932
  * @param {Number} opts.pageNum (default to 1)
921
933
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
922
934
  */
@@ -929,7 +941,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
929
941
  }
930
942
 
931
943
  /**
932
- * Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
944
+ * List a device's journeys
945
+ * List a device's journeys, newest first, without their events. A journey is the events whose body has the same `journey` value and a `jcount` field; one-event journeys are left out. For a journey's events, use `GetDeviceJourney`. Returns at most 100; `has_more` is true if there are more. `startDate` and `endDate` filter on the journey's start. Returns 403 if the organization is suspended.
933
946
  * @param {String} projectOrProductUID
934
947
  * @param {String} deviceUID
935
948
  * @param {Object} opts Optional parameters
@@ -968,7 +981,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
968
981
  }
969
982
 
970
983
  /**
971
- * Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
984
+ * List a device's journeys
985
+ * List a device's journeys, newest first, without their events. A journey is the events whose body has the same `journey` value and a `jcount` field; one-event journeys are left out. For a journey's events, use `GetDeviceJourney`. Returns at most 100; `has_more` is true if there are more. `startDate` and `endDate` filter on the journey's start. Returns 403 if the organization is suspended.
972
986
  * @param {String} projectOrProductUID
973
987
  * @param {String} deviceUID
974
988
  * @param {Object} opts Optional parameters
@@ -985,7 +999,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
985
999
  }
986
1000
 
987
1001
  /**
988
- * Get Device Latest Events
1002
+ * Get a device's latest event per notefile
1003
+ * Get the most recent event from each of a device's notefiles, sorted by notefile name. `_env.qo` is left out. To search a device's event history, use `GetEvents`. Returns 403 if the organization is suspended.
989
1004
  * @param {String} projectOrProductUID
990
1005
  * @param {String} deviceUID
991
1006
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
@@ -1017,7 +1032,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1017
1032
  }
1018
1033
 
1019
1034
  /**
1020
- * Get Device Latest Events
1035
+ * Get a device's latest event per notefile
1036
+ * Get the most recent event from each of a device's notefiles, sorted by notefile name. `_env.qo` is left out. To search a device's event history, use `GetEvents`. Returns 403 if the organization is suspended.
1021
1037
  * @param {String} projectOrProductUID
1022
1038
  * @param {String} deviceUID
1023
1039
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
@@ -1031,7 +1047,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1031
1047
  }
1032
1048
 
1033
1049
  /**
1034
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1050
+ * Get a device's cellular data plans
1051
+ * Get the data plan of each cellular SIM in a device: plan type, data used and remaining, and expiry. Covers the built-in SIM and any external SIM, but not satellite plans. Returns 404 if the device has no cellular or satellite SIM.
1035
1052
  * @param {String} projectOrProductUID
1036
1053
  * @param {String} deviceUID
1037
1054
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
@@ -1063,7 +1080,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1063
1080
  }
1064
1081
 
1065
1082
  /**
1066
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1083
+ * Get a device's cellular data plans
1084
+ * Get the data plan of each cellular SIM in a device: plan type, data used and remaining, and expiry. Covers the built-in SIM and any external SIM, but not satellite plans. Returns 404 if the device has no cellular or satellite SIM.
1067
1085
  * @param {String} projectOrProductUID
1068
1086
  * @param {String} deviceUID
1069
1087
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
@@ -1077,7 +1095,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1077
1095
  }
1078
1096
 
1079
1097
  /**
1080
- * Get Device Public Key
1098
+ * Get a device's public key
1099
+ * Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
1081
1100
  * @param {String} projectOrProductUID
1082
1101
  * @param {String} deviceUID
1083
1102
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
@@ -1109,7 +1128,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1109
1128
  }
1110
1129
 
1111
1130
  /**
1112
- * Get Device Public Key
1131
+ * Get a device's public key
1132
+ * Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
1113
1133
  * @param {String} projectOrProductUID
1114
1134
  * @param {String} deviceUID
1115
1135
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
@@ -1123,10 +1143,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1123
1143
  }
1124
1144
 
1125
1145
  /**
1126
- * Get Device Public Keys of a Project
1146
+ * List public keys of all devices
1147
+ * List the public key of every device in a project. For one device, use `GetDevicePublicKey`. Paginated. Deleted devices are included only when reading with a `cursor`.
1127
1148
  * @param {String} projectOrProductUID
1128
1149
  * @param {Object} opts Optional parameters
1129
- * @param {Number} opts.pageSize (default to 50)
1150
+ * @param {Number} opts.pageSize (default to 1000)
1130
1151
  * @param {Number} opts.pageNum (default to 1)
1131
1152
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1132
1153
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
@@ -1158,10 +1179,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1158
1179
  }
1159
1180
 
1160
1181
  /**
1161
- * Get Device Public Keys of a Project
1182
+ * List public keys of all devices
1183
+ * List the public key of every device in a project. For one device, use `GetDevicePublicKey`. Paginated. Deleted devices are included only when reading with a `cursor`.
1162
1184
  * @param {String} projectOrProductUID
1163
1185
  * @param {Object} opts Optional parameters
1164
- * @param {Number} opts.pageSize (default to 50)
1186
+ * @param {Number} opts.pageSize (default to 1000)
1165
1187
  * @param {Number} opts.pageNum (default to 1)
1166
1188
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1167
1189
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
@@ -1175,16 +1197,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1175
1197
  }
1176
1198
 
1177
1199
  /**
1178
- * Get Device Sessions
1200
+ * List a device's sessions
1201
+ * List a device's sessions, its connections to Notehub. Each shows why it opened and closed, signal strength, location and data usage. `startDate` and `endDate` filter on when the session began. Paginated.
1179
1202
  * @param {String} projectOrProductUID
1180
1203
  * @param {String} deviceUID
1181
1204
  * @param {Object} opts Optional parameters
1182
- * @param {Number} opts.pageSize (default to 50)
1205
+ * @param {Number} opts.pageSize (default to 1000)
1183
1206
  * @param {Number} opts.pageNum (default to 1)
1184
1207
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1185
1208
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1186
1209
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1187
- * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1210
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1188
1211
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1189
1212
  */
1190
1213
  }, {
@@ -1222,16 +1245,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1222
1245
  }
1223
1246
 
1224
1247
  /**
1225
- * Get Device Sessions
1248
+ * List a device's sessions
1249
+ * List a device's sessions, its connections to Notehub. Each shows why it opened and closed, signal strength, location and data usage. `startDate` and `endDate` filter on when the session began. Paginated.
1226
1250
  * @param {String} projectOrProductUID
1227
1251
  * @param {String} deviceUID
1228
1252
  * @param {Object} opts Optional parameters
1229
- * @param {Number} opts.pageSize (default to 50)
1253
+ * @param {Number} opts.pageSize (default to 1000)
1230
1254
  * @param {Number} opts.pageNum (default to 1)
1231
1255
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1232
1256
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1233
1257
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1234
- * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1258
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1235
1259
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1236
1260
  */
1237
1261
  }, {
@@ -1243,20 +1267,21 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1243
1267
  }
1244
1268
 
1245
1269
  /**
1246
- * Get Devices of a Project
1270
+ * List devices in a project
1271
+ * List the devices in a project, with optional filters such as tag, serial number, fleet, location and firmware version. For one fleet's devices, use `GetFleetDevices`. Paginated.
1247
1272
  * @param {String} projectOrProductUID
1248
1273
  * @param {Object} opts Optional parameters
1249
- * @param {Number} opts.pageSize (default to 50)
1274
+ * @param {Number} opts.pageSize (default to 1000)
1250
1275
  * @param {Number} opts.pageNum (default to 1)
1251
1276
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1252
- * @param {Array.<String>} opts.deviceUID A Device UID.
1277
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1253
1278
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1254
1279
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1255
1280
  * @param {Array.<String>} opts.fleetUID
1256
1281
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1257
1282
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1258
1283
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1259
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1284
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1260
1285
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1261
1286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1262
1287
  */
@@ -1296,20 +1321,21 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1296
1321
  }
1297
1322
 
1298
1323
  /**
1299
- * Get Devices of a Project
1324
+ * List devices in a project
1325
+ * List the devices in a project, with optional filters such as tag, serial number, fleet, location and firmware version. For one fleet's devices, use `GetFleetDevices`. Paginated.
1300
1326
  * @param {String} projectOrProductUID
1301
1327
  * @param {Object} opts Optional parameters
1302
- * @param {Number} opts.pageSize (default to 50)
1328
+ * @param {Number} opts.pageSize (default to 1000)
1303
1329
  * @param {Number} opts.pageNum (default to 1)
1304
1330
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1305
- * @param {Array.<String>} opts.deviceUID A Device UID.
1331
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1306
1332
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1307
1333
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1308
1334
  * @param {Array.<String>} opts.fleetUID
1309
1335
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1310
1336
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1311
1337
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1312
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1338
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1313
1339
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1314
1340
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1315
1341
  */
@@ -1322,20 +1348,21 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1322
1348
  }
1323
1349
 
1324
1350
  /**
1325
- * Get Devices of a Fleet within a Project
1351
+ * List devices in a fleet
1352
+ * List the devices in one fleet, with the same filters as `GetDevices`. To list a device's fleets instead, use `GetDeviceFleets`. Paginated. Returns 404 if the fleet doesn't exist.
1326
1353
  * @param {String} projectOrProductUID
1327
1354
  * @param {String} fleetUID
1328
1355
  * @param {Object} opts Optional parameters
1329
- * @param {Number} opts.pageSize (default to 50)
1356
+ * @param {Number} opts.pageSize (default to 1000)
1330
1357
  * @param {Number} opts.pageNum (default to 1)
1331
1358
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1332
- * @param {Array.<String>} opts.deviceUID A Device UID.
1359
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1333
1360
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1334
1361
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1335
1362
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1336
1363
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1337
1364
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1338
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1365
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1339
1366
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1340
1367
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1341
1368
  */
@@ -1379,20 +1406,21 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1379
1406
  }
1380
1407
 
1381
1408
  /**
1382
- * Get Devices of a Fleet within a Project
1409
+ * List devices in a fleet
1410
+ * List the devices in one fleet, with the same filters as `GetDevices`. To list a device's fleets instead, use `GetDeviceFleets`. Paginated. Returns 404 if the fleet doesn't exist.
1383
1411
  * @param {String} projectOrProductUID
1384
1412
  * @param {String} fleetUID
1385
1413
  * @param {Object} opts Optional parameters
1386
- * @param {Number} opts.pageSize (default to 50)
1414
+ * @param {Number} opts.pageSize (default to 1000)
1387
1415
  * @param {Number} opts.pageNum (default to 1)
1388
1416
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1389
- * @param {Array.<String>} opts.deviceUID A Device UID.
1417
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1390
1418
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1391
1419
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1392
1420
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1393
1421
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1394
1422
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1395
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1423
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1396
1424
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1397
1425
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1398
1426
  */
@@ -1527,10 +1555,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1527
1555
  }
1528
1556
 
1529
1557
  /**
1530
- * Provision Device for a Project
1558
+ * Provision a Notecard
1559
+ * Add a Notecard to a project before it first connects, with its product, serial number and fleets. A device that already exists isn't reset and keeps its fleets. Requires the Owner or Developer role. Returns 404 if `product_uid` doesn't exist, and 400 if it belongs to another project or `deviceUID` isn't a valid Notecard DeviceUID.
1531
1560
  * @param {String} projectOrProductUID
1532
1561
  * @param {String} deviceUID
1533
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1562
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1534
1563
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1535
1564
  */
1536
1565
  }, {
@@ -1564,10 +1593,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1564
1593
  }
1565
1594
 
1566
1595
  /**
1567
- * Provision Device for a Project
1596
+ * Provision a Notecard
1597
+ * Add a Notecard to a project before it first connects, with its product, serial number and fleets. A device that already exists isn't reset and keeps its fleets. Requires the Owner or Developer role. Returns 404 if `product_uid` doesn't exist, and 400 if it belongs to another project or `deviceUID` isn't a valid Notecard DeviceUID.
1568
1598
  * @param {String} projectOrProductUID
1569
1599
  * @param {String} deviceUID
1570
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1600
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1571
1601
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1572
1602
  */
1573
1603
  }, {
@@ -1691,10 +1721,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1691
1721
  }
1692
1722
 
1693
1723
  /**
1694
- * Send a signal from Notehub to a Notecard.
1724
+ * Send a signal to a connected Notecard
1725
+ * Send a JSON object straight to a Notecard, which the host can read with `hub.signal`. It's delivered only if the Notecard is connected to Notehub at that moment, and is never queued; `connected` in the response says whether it was. To queue data for the next sync, use `AddQiNote` instead. Requires the Owner or Developer role. Returns 400 if the body has a `type` field.
1695
1726
  * @param {String} projectOrProductUID
1696
1727
  * @param {String} deviceUID
1697
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1728
+ * @param {module:model/Body} body The signal to send.
1698
1729
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1699
1730
  */
1700
1731
  }, {
@@ -1728,10 +1759,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1728
1759
  }
1729
1760
 
1730
1761
  /**
1731
- * Send a signal from Notehub to a Notecard.
1762
+ * Send a signal to a connected Notecard
1763
+ * Send a JSON object straight to a Notecard, which the host can read with `hub.signal`. It's delivered only if the Notecard is connected to Notehub at that moment, and is never queued; `connected` in the response says whether it was. To queue data for the next sync, use `AddQiNote` instead. Requires the Owner or Developer role. Returns 400 if the body has a `type` field.
1732
1764
  * @param {String} projectOrProductUID
1733
1765
  * @param {String} deviceUID
1734
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1766
+ * @param {module:model/Body} body The signal to send.
1735
1767
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1736
1768
  */
1737
1769
  }, {