@blues-inc/notehub-js 6.7.0-beta.71 → 6.7.0-beta.73

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 (189) hide show
  1. package/README.md +111 -112
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +7 -5
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/DescriptionApi.js +33 -49
  6. package/dist/api/DeviceApi.js +115 -177
  7. package/dist/api/EventApi.js +45 -51
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +27 -17
  11. package/dist/api/OrganizationApi.js +1 -1
  12. package/dist/api/ProjectApi.js +149 -237
  13. package/dist/api/RouteApi.js +35 -47
  14. package/dist/api/SkillsApi.js +1 -1
  15. package/dist/api/UsageApi.js +1 -1
  16. package/dist/api/WebhookApi.js +45 -67
  17. package/dist/index.js +0 -7
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +3 -3
  20. package/dist/model/Alert.js +11 -6
  21. package/dist/model/AlertDataInner.js +9 -4
  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 +1 -1
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +1 -2
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +2 -3
  33. package/dist/model/CloneProjectRequest.js +7 -7
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +3 -4
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +37 -25
  38. package/dist/model/CreateProductRequest.js +6 -7
  39. package/dist/model/CreateProjectRequest.js +5 -5
  40. package/dist/model/CreateProjectSecretRequest.js +5 -5
  41. package/dist/model/CreateUpdateRepository.js +1 -2
  42. package/dist/model/CreatedRepository.js +5 -5
  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 +4 -4
  48. package/dist/model/DataSetField.js +2 -2
  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 +3 -3
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +6 -6
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +8 -27
  58. package/dist/model/DeviceDfuHistory.js +1 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +1 -2
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  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 +1 -1
  67. package/dist/model/DeviceTowerInfo.js +1 -6
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +2 -2
  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 +1 -1
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +6 -6
  79. package/dist/model/Fleet.js +10 -11
  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 +1 -1
  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 +1 -2
  95. package/dist/model/GetDevicePublicKey200Response.js +3 -5
  96. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -3
  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/GetOrganization200Response.js +1 -1
  105. package/dist/model/GetOrganization200ResponsePlan.js +1 -1
  106. package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
  107. package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
  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 +4 -7
  118. package/dist/model/HttpRoute.js +1 -1
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +1 -1
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +1 -1
  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 +7 -13
  127. package/dist/model/Monitor.js +18 -12
  128. package/dist/model/MonitorAlertRoutesInner.js +4 -4
  129. package/dist/model/MqttRoute.js +1 -1
  130. package/dist/model/Note.js +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +1 -2
  133. package/dist/model/NotefileSchema.js +3 -5
  134. package/dist/model/NotehubRoute.js +3 -7
  135. package/dist/model/NotehubRouteSummary.js +1 -6
  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 +4 -8
  140. package/dist/model/Project.js +4 -7
  141. package/dist/model/ProjectMember.js +4 -5
  142. package/dist/model/ProjectSecret.js +7 -7
  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 +3 -3
  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 +9 -9
  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 +4 -6
  158. package/dist/model/SignalDevice200Response.js +2 -2
  159. package/dist/model/SimUsage.js +1 -1
  160. package/dist/model/Skill.js +1 -1
  161. package/dist/model/SkillLinks.js +1 -1
  162. package/dist/model/SkillSet.js +1 -1
  163. package/dist/model/SkillSummary.js +1 -1
  164. package/dist/model/SkillWrite.js +1 -1
  165. package/dist/model/SkillWriteResult.js +1 -1
  166. package/dist/model/SlackBearerNotification.js +3 -3
  167. package/dist/model/SlackRoute.js +1 -1
  168. package/dist/model/SlackWebHookNotification.js +3 -3
  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 +6 -7
  175. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  176. package/dist/model/UpdateProjectSecretRequest.js +3 -3
  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 +1 -1
  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 +4 -4
  188. package/package.json +1 -1
  189. package/dist/model/RepositoryRecord.js +0 -119
@@ -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.71
51
+ * @version 6.7.0-beta.73
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -64,12 +64,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
64
64
  }
65
65
 
66
66
  /**
67
- * Add a note to a .db notefile
68
- * Add a note with the given ID to a database notefile on a device, synced to the Notecard on its next sync. To change an existing note, use `UpdateDbNote`; to queue a note in a `.qi` notefile, use `AddQiNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
67
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
69
68
  * @param {String} projectOrProductUID
70
69
  * @param {String} deviceUID
71
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
72
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
70
+ * @param {String} notefileID
71
+ * @param {String} noteID
73
72
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
74
73
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
75
74
  */
@@ -114,12 +113,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
114
113
  }
115
114
 
116
115
  /**
117
- * Add a note to a .db notefile
118
- * Add a note with the given ID to a database notefile on a device, synced to the Notecard on its next sync. To change an existing note, use `UpdateDbNote`; to queue a note in a `.qi` notefile, use `AddQiNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
116
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
119
117
  * @param {String} projectOrProductUID
120
118
  * @param {String} deviceUID
121
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
122
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
119
+ * @param {String} notefileID
120
+ * @param {String} noteID
123
121
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
124
122
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
125
123
  */
@@ -132,11 +130,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
132
130
  }
133
131
 
134
132
  /**
135
- * Queue a note for a Notecard
136
- * Add a note to an inbound queue (`.qi`) notefile on a device, creating the notefile if needed. The Notecard receives it on its next sync. For a `.db` notefile, use `AddDbNote`; to reach a connected Notecard immediately, use `SignalDevice`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.qi` or `.qis`, or if `payload` isn't valid base64.
133
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
137
134
  * @param {String} projectOrProductUID
138
135
  * @param {String} deviceUID
139
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
136
+ * @param {String} notefileID
140
137
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
141
138
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
142
139
  */
@@ -176,11 +173,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
176
173
  }
177
174
 
178
175
  /**
179
- * Queue a note for a Notecard
180
- * Add a note to an inbound queue (`.qi`) notefile on a device, creating the notefile if needed. The Notecard receives it on its next sync. For a `.db` notefile, use `AddDbNote`; to reach a connected Notecard immediately, use `SignalDevice`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.qi` or `.qis`, or if `payload` isn't valid base64.
176
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
181
177
  * @param {String} projectOrProductUID
182
178
  * @param {String} deviceUID
183
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
179
+ * @param {String} notefileID
184
180
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
185
181
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
186
182
  */
@@ -193,11 +189,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
193
189
  }
194
190
 
195
191
  /**
196
- * Create an empty notefile
197
- * Create an empty notefile on a device. `AddQiNote` creates a notefile when needed, so this is only required for an empty one. Requires the Owner or Developer role. Returns 400 if the notefile already exists.
192
+ * Creates an empty Notefile on the device.
198
193
  * @param {String} projectOrProductUID
199
194
  * @param {String} deviceUID
200
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
195
+ * @param {String} notefileID
201
196
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
202
197
  */
203
198
  }, {
@@ -232,11 +227,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
232
227
  }
233
228
 
234
229
  /**
235
- * Create an empty notefile
236
- * Create an empty notefile on a device. `AddQiNote` creates a notefile when needed, so this is only required for an empty one. Requires the Owner or Developer role. Returns 400 if the notefile already exists.
230
+ * Creates an empty Notefile on the device.
237
231
  * @param {String} projectOrProductUID
238
232
  * @param {String} deviceUID
239
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
233
+ * @param {String} notefileID
240
234
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
241
235
  */
242
236
  }, {
@@ -248,8 +242,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
248
242
  }
249
243
 
250
244
  /**
251
- * Delete a device
252
- * 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.
245
+ * Delete Device
253
246
  * @param {String} projectOrProductUID
254
247
  * @param {String} deviceUID
255
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -281,8 +274,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
281
274
  }
282
275
 
283
276
  /**
284
- * Delete a device
285
- * 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.
277
+ * Delete Device
286
278
  * @param {String} projectOrProductUID
287
279
  * @param {String} deviceUID
288
280
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -296,8 +288,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
296
288
  }
297
289
 
298
290
  /**
299
- * Delete a device environment variable
300
- * Delete one device environment variable and return the ones left. Fleet and project variables with the same name then apply. Deleting a variable that doesn't exist succeeds. Requires the Owner or Developer role.
291
+ * Delete environment variable of a device
301
292
  * @param {String} projectOrProductUID
302
293
  * @param {String} deviceUID
303
294
  * @param {String} key The environment variable key to delete.
@@ -335,8 +326,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
335
326
  }
336
327
 
337
328
  /**
338
- * Delete a device environment variable
339
- * Delete one device environment variable and return the ones left. Fleet and project variables with the same name then apply. Deleting a variable that doesn't exist succeeds. Requires the Owner or Developer role.
329
+ * Delete environment variable of a device
340
330
  * @param {String} projectOrProductUID
341
331
  * @param {String} deviceUID
342
332
  * @param {String} key The environment variable key to delete.
@@ -351,12 +341,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
351
341
  }
352
342
 
353
343
  /**
354
- * Delete a note
355
- * Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
344
+ * Delete a note from a .db or .qi notefile
356
345
  * @param {String} projectOrProductUID
357
346
  * @param {String} deviceUID
358
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
359
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
347
+ * @param {String} notefileID
348
+ * @param {String} noteID
360
349
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
361
350
  */
362
351
  }, {
@@ -396,12 +385,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
396
385
  }
397
386
 
398
387
  /**
399
- * Delete a note
400
- * Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
388
+ * Delete a note from a .db or .qi notefile
401
389
  * @param {String} projectOrProductUID
402
390
  * @param {String} deviceUID
403
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
404
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
391
+ * @param {String} notefileID
392
+ * @param {String} noteID
405
393
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
406
394
  */
407
395
  }, {
@@ -413,11 +401,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
413
401
  }
414
402
 
415
403
  /**
416
- * Delete notefiles
417
- * Delete notefiles and all their notes from a device. To delete one note, use `DeleteNote`. Requires the Owner or Developer role. Returns 400 if `files` is empty.
404
+ * Deletes Notefiles and the Notes they contain.
418
405
  * @param {String} projectOrProductUID
419
406
  * @param {String} deviceUID
420
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
407
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
421
408
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
422
409
  */
423
410
  }, {
@@ -451,11 +438,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
451
438
  }
452
439
 
453
440
  /**
454
- * Delete notefiles
455
- * Delete notefiles and all their notes from a device. To delete one note, use `DeleteNote`. Requires the Owner or Developer role. Returns 400 if `files` is empty.
441
+ * Deletes Notefiles and the Notes they contain.
456
442
  * @param {String} projectOrProductUID
457
443
  * @param {String} deviceUID
458
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
444
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
459
445
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
460
446
  */
461
447
  }, {
@@ -467,8 +453,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
467
453
  }
468
454
 
469
455
  /**
470
- * Disable a device
471
- * 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.
456
+ * Disable Device
472
457
  * @param {String} projectOrProductUID
473
458
  * @param {String} deviceUID
474
459
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -500,8 +485,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
500
485
  }
501
486
 
502
487
  /**
503
- * Disable a device
504
- * 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.
488
+ * Disable Device
505
489
  * @param {String} projectOrProductUID
506
490
  * @param {String} deviceUID
507
491
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -515,8 +499,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
515
499
  }
516
500
 
517
501
  /**
518
- * Enable a device
519
- * 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.
502
+ * Enable Device
520
503
  * @param {String} projectOrProductUID
521
504
  * @param {String} deviceUID
522
505
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -548,8 +531,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
548
531
  }
549
532
 
550
533
  /**
551
- * Enable a device
552
- * 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.
534
+ * Enable Device
553
535
  * @param {String} projectOrProductUID
554
536
  * @param {String} deviceUID
555
537
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -563,15 +545,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
563
545
  }
564
546
 
565
547
  /**
566
- * Get a note
567
- * Get one note's body, payload and time from a notefile on a device. To get every note in a notefile, use `GetNotefile`. With `delete=true`, the note is deleted after it is read, which requires the Owner or Developer role.
548
+ * Get a note from a .db or .qi notefile
568
549
  * @param {String} projectOrProductUID
569
550
  * @param {String} deviceUID
570
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
571
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
551
+ * @param {String} notefileID
552
+ * @param {String} noteID
572
553
  * @param {Object} opts Optional parameters
573
- * @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
574
- * @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
554
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
555
+ * @param {Boolean} opts.deleted Whether to return deleted notes
575
556
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
576
557
  */
577
558
  }, {
@@ -615,15 +596,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
615
596
  }
616
597
 
617
598
  /**
618
- * Get a note
619
- * Get one note's body, payload and time from a notefile on a device. To get every note in a notefile, use `GetNotefile`. With `delete=true`, the note is deleted after it is read, which requires the Owner or Developer role.
599
+ * Get a note from a .db or .qi notefile
620
600
  * @param {String} projectOrProductUID
621
601
  * @param {String} deviceUID
622
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
623
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
602
+ * @param {String} notefileID
603
+ * @param {String} noteID
624
604
  * @param {Object} opts Optional parameters
625
- * @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
626
- * @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
605
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
606
+ * @param {Boolean} opts.deleted Whether to return deleted notes
627
607
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
628
608
  */
629
609
  }, {
@@ -635,8 +615,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
635
615
  }
636
616
 
637
617
  /**
638
- * Get a device
639
- * 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`.
618
+ * Get Device
640
619
  * @param {String} projectOrProductUID
641
620
  * @param {String} deviceUID
642
621
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
@@ -668,8 +647,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
668
647
  }
669
648
 
670
649
  /**
671
- * Get a device
672
- * 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`.
650
+ * Get Device
673
651
  * @param {String} projectOrProductUID
674
652
  * @param {String} deviceUID
675
653
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
@@ -683,8 +661,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
683
661
  }
684
662
 
685
663
  /**
686
- * Get a device's environment hierarchy
687
- * Get a device's environment variables and the fleet and project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. For just the resolved values, use `GetDeviceEnvironmentVariables`.
664
+ * Get environment variable hierarchy for a device
688
665
  * @param {String} projectOrProductUID
689
666
  * @param {String} deviceUID
690
667
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
@@ -716,8 +693,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
716
693
  }
717
694
 
718
695
  /**
719
- * Get a device's environment hierarchy
720
- * Get a device's environment variables and the fleet and project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. For just the resolved values, use `GetDeviceEnvironmentVariables`.
696
+ * Get environment variable hierarchy for a device
721
697
  * @param {String} projectOrProductUID
722
698
  * @param {String} deviceUID
723
699
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
@@ -731,8 +707,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
731
707
  }
732
708
 
733
709
  /**
734
- * Get device environment variables
735
- * Get a device's own environment variables, its `env.default` values, and its effective values. Effective values merge in project and fleet variables, which device variables override. To see where each value comes from, use `GetDeviceEnvironmentHierarchy`.
710
+ * Get environment variables of a device
736
711
  * @param {String} projectOrProductUID
737
712
  * @param {String} deviceUID
738
713
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
@@ -764,8 +739,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
764
739
  }
765
740
 
766
741
  /**
767
- * Get device environment variables
768
- * Get a device's own environment variables, its `env.default` values, and its effective values. Effective values merge in project and fleet variables, which device variables override. To see where each value comes from, use `GetDeviceEnvironmentHierarchy`.
742
+ * Get environment variables of a device
769
743
  * @param {String} projectOrProductUID
770
744
  * @param {String} deviceUID
771
745
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
@@ -779,11 +753,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
779
753
  }
780
754
 
781
755
  /**
782
- * Get device environment variables using a PIN
783
- * Get a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Made for device dashboard pages; with a token, use `GetDeviceEnvironmentVariables`, which also returns effective values. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
756
+ * Get environment variables of a device with device pin authorization
784
757
  * @param {String} productUID
785
758
  * @param {String} deviceUID
786
- * @param {String} xAuthToken The device's PIN, used instead of an API token.
759
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
787
760
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
788
761
  */
789
762
  }, {
@@ -819,11 +792,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
819
792
  }
820
793
 
821
794
  /**
822
- * Get device environment variables using a PIN
823
- * Get a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Made for device dashboard pages; with a token, use `GetDeviceEnvironmentVariables`, which also returns effective values. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
795
+ * Get environment variables of a device with device pin authorization
824
796
  * @param {String} productUID
825
797
  * @param {String} deviceUID
826
- * @param {String} xAuthToken The device's PIN, used instead of an API token.
798
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
827
799
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
828
800
  */
829
801
  }, {
@@ -835,14 +807,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
835
807
  }
836
808
 
837
809
  /**
838
- * Get a device's health log
839
- * Get a device's health log: timestamped status messages such as restarts and completed firmware updates. Only the latest 100 entries are kept. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400, and the same value for both returns every entry.
810
+ * Get Device Health Log
840
811
  * @param {String} projectOrProductUID
841
812
  * @param {String} deviceUID
842
813
  * @param {Object} opts Optional parameters
843
814
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
844
815
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
845
- * @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
816
+ * @param {Array.<module:model/String>} opts.logType Return only specified log types
846
817
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
847
818
  */
848
819
  }, {
@@ -877,14 +848,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
877
848
  }
878
849
 
879
850
  /**
880
- * Get a device's health log
881
- * Get a device's health log: timestamped status messages such as restarts and completed firmware updates. Only the latest 100 entries are kept. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400, and the same value for both returns every entry.
851
+ * Get Device Health Log
882
852
  * @param {String} projectOrProductUID
883
853
  * @param {String} deviceUID
884
854
  * @param {Object} opts Optional parameters
885
855
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
886
856
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
887
- * @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
857
+ * @param {Array.<module:model/String>} opts.logType Return only specified log types
888
858
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
889
859
  */
890
860
  }, {
@@ -896,8 +866,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
896
866
  }
897
867
 
898
868
  /**
899
- * Get a journey and its events
900
- * 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.
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.
901
870
  * @param {String} projectOrProductUID
902
871
  * @param {String} deviceUID
903
872
  * @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).
@@ -942,8 +911,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
942
911
  }
943
912
 
944
913
  /**
945
- * Get a journey and its events
946
- * 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.
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.
947
915
  * @param {String} projectOrProductUID
948
916
  * @param {String} deviceUID
949
917
  * @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).
@@ -961,8 +929,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
961
929
  }
962
930
 
963
931
  /**
964
- * List a device's journeys
965
- * 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.
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.
966
933
  * @param {String} projectOrProductUID
967
934
  * @param {String} deviceUID
968
935
  * @param {Object} opts Optional parameters
@@ -1001,8 +968,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1001
968
  }
1002
969
 
1003
970
  /**
1004
- * List a device's journeys
1005
- * 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.
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.
1006
972
  * @param {String} projectOrProductUID
1007
973
  * @param {String} deviceUID
1008
974
  * @param {Object} opts Optional parameters
@@ -1019,8 +985,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1019
985
  }
1020
986
 
1021
987
  /**
1022
- * Get a device's latest event per notefile
1023
- * 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.
988
+ * Get Device Latest Events
1024
989
  * @param {String} projectOrProductUID
1025
990
  * @param {String} deviceUID
1026
991
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
@@ -1052,8 +1017,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1052
1017
  }
1053
1018
 
1054
1019
  /**
1055
- * Get a device's latest event per notefile
1056
- * 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.
1020
+ * Get Device Latest Events
1057
1021
  * @param {String} projectOrProductUID
1058
1022
  * @param {String} deviceUID
1059
1023
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
@@ -1067,8 +1031,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1067
1031
  }
1068
1032
 
1069
1033
  /**
1070
- * Get a device's cellular data plans
1071
- * 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.
1034
+ * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1072
1035
  * @param {String} projectOrProductUID
1073
1036
  * @param {String} deviceUID
1074
1037
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
@@ -1100,8 +1063,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1100
1063
  }
1101
1064
 
1102
1065
  /**
1103
- * Get a device's cellular data plans
1104
- * 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.
1066
+ * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1105
1067
  * @param {String} projectOrProductUID
1106
1068
  * @param {String} deviceUID
1107
1069
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
@@ -1115,8 +1077,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1115
1077
  }
1116
1078
 
1117
1079
  /**
1118
- * Get a device's public key
1119
- * Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
1080
+ * Get Device Public Key
1120
1081
  * @param {String} projectOrProductUID
1121
1082
  * @param {String} deviceUID
1122
1083
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
@@ -1148,8 +1109,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1148
1109
  }
1149
1110
 
1150
1111
  /**
1151
- * Get a device's public key
1152
- * Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
1112
+ * Get Device Public Key
1153
1113
  * @param {String} projectOrProductUID
1154
1114
  * @param {String} deviceUID
1155
1115
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
@@ -1163,8 +1123,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1163
1123
  }
1164
1124
 
1165
1125
  /**
1166
- * List public keys of all devices
1167
- * 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`.
1126
+ * Get Device Public Keys of a Project
1168
1127
  * @param {String} projectOrProductUID
1169
1128
  * @param {Object} opts Optional parameters
1170
1129
  * @param {Number} opts.pageSize (default to 1000)
@@ -1199,8 +1158,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1199
1158
  }
1200
1159
 
1201
1160
  /**
1202
- * List public keys of all devices
1203
- * 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`.
1161
+ * Get Device Public Keys of a Project
1204
1162
  * @param {String} projectOrProductUID
1205
1163
  * @param {Object} opts Optional parameters
1206
1164
  * @param {Number} opts.pageSize (default to 1000)
@@ -1217,8 +1175,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1217
1175
  }
1218
1176
 
1219
1177
  /**
1220
- * List a device's sessions
1221
- * 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.
1178
+ * Get Device Sessions
1222
1179
  * @param {String} projectOrProductUID
1223
1180
  * @param {String} deviceUID
1224
1181
  * @param {Object} opts Optional parameters
@@ -1227,7 +1184,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1227
1184
  * @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).
1228
1185
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1229
1186
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1230
- * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1187
+ * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1231
1188
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1232
1189
  */
1233
1190
  }, {
@@ -1265,8 +1222,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1265
1222
  }
1266
1223
 
1267
1224
  /**
1268
- * List a device's sessions
1269
- * 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.
1225
+ * Get Device Sessions
1270
1226
  * @param {String} projectOrProductUID
1271
1227
  * @param {String} deviceUID
1272
1228
  * @param {Object} opts Optional parameters
@@ -1275,7 +1231,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1275
1231
  * @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).
1276
1232
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1277
1233
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1278
- * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1234
+ * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1279
1235
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1280
1236
  */
1281
1237
  }, {
@@ -1287,8 +1243,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1287
1243
  }
1288
1244
 
1289
1245
  /**
1290
- * List devices in a project
1291
- * 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.
1246
+ * Get Devices of a Project
1292
1247
  * @param {String} projectOrProductUID
1293
1248
  * @param {Object} opts Optional parameters
1294
1249
  * @param {Number} opts.pageSize (default to 1000)
@@ -1341,8 +1296,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1341
1296
  }
1342
1297
 
1343
1298
  /**
1344
- * List devices in a project
1345
- * 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.
1299
+ * Get Devices of a Project
1346
1300
  * @param {String} projectOrProductUID
1347
1301
  * @param {Object} opts Optional parameters
1348
1302
  * @param {Number} opts.pageSize (default to 1000)
@@ -1368,8 +1322,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1368
1322
  }
1369
1323
 
1370
1324
  /**
1371
- * List devices in a fleet
1372
- * 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.
1325
+ * Get Devices of a Fleet within a Project
1373
1326
  * @param {String} projectOrProductUID
1374
1327
  * @param {String} fleetUID
1375
1328
  * @param {Object} opts Optional parameters
@@ -1426,8 +1379,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1426
1379
  }
1427
1380
 
1428
1381
  /**
1429
- * List devices in a fleet
1430
- * 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.
1382
+ * Get Devices of a Fleet within a Project
1431
1383
  * @param {String} projectOrProductUID
1432
1384
  * @param {String} fleetUID
1433
1385
  * @param {Object} opts Optional parameters
@@ -1453,15 +1405,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1453
1405
  }
1454
1406
 
1455
1407
  /**
1456
- * Get the notes in a notefile
1457
- * Get the notes in one notefile on a device. For a `.qi` notefile, that's the notes still queued; for a `.db` notefile, every note. To list all of a device's notefiles with their notes, use `ListNotefiles`. With `delete=true`, the returned notes are deleted, which requires the Owner or Developer role. Returns 400 if `notefileID` has no valid notefile extension.
1408
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1458
1409
  * @param {String} projectOrProductUID
1459
1410
  * @param {String} deviceUID
1460
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1411
+ * @param {String} notefileID
1461
1412
  * @param {Object} opts Optional parameters
1462
- * @param {Number} opts.max The most notes to return.
1463
- * @param {Boolean} opts.deleted If true, also return deleted notes.
1464
- * @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
1413
+ * @param {Number} opts.max The maximum number of Notes to return in the request.
1414
+ * @param {Boolean} opts.deleted true to return deleted notes.
1415
+ * @param {Boolean} opts._delete true to delete the notes returned by the request.
1465
1416
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
1466
1417
  */
1467
1418
  }, {
@@ -1501,15 +1452,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1501
1452
  }
1502
1453
 
1503
1454
  /**
1504
- * Get the notes in a notefile
1505
- * Get the notes in one notefile on a device. For a `.qi` notefile, that's the notes still queued; for a `.db` notefile, every note. To list all of a device's notefiles with their notes, use `ListNotefiles`. With `delete=true`, the returned notes are deleted, which requires the Owner or Developer role. Returns 400 if `notefileID` has no valid notefile extension.
1455
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1506
1456
  * @param {String} projectOrProductUID
1507
1457
  * @param {String} deviceUID
1508
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1458
+ * @param {String} notefileID
1509
1459
  * @param {Object} opts Optional parameters
1510
- * @param {Number} opts.max The most notes to return.
1511
- * @param {Boolean} opts.deleted If true, also return deleted notes.
1512
- * @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
1460
+ * @param {Number} opts.max The maximum number of Notes to return in the request.
1461
+ * @param {Boolean} opts.deleted true to return deleted notes.
1462
+ * @param {Boolean} opts._delete true to delete the notes returned by the request.
1513
1463
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
1514
1464
  */
1515
1465
  }, {
@@ -1521,12 +1471,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1521
1471
  }
1522
1472
 
1523
1473
  /**
1524
- * List a device's notefiles and notes
1525
- * List a device's notefiles with the notes in each, sorted `.qo`, then `.qi`, then `.db`. `.qo` notefiles are listed without notes, since Notehub empties them as it processes them. Most system notefiles (names starting with `_`) are left out. For one notefile, use `GetNotefile`.
1474
+ * Lists .qi and .db files for the device
1526
1475
  * @param {String} projectOrProductUID
1527
1476
  * @param {String} deviceUID
1528
1477
  * @param {Object} opts Optional parameters
1529
- * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1478
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1530
1479
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1531
1480
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1532
1481
  */
@@ -1561,12 +1510,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1561
1510
  }
1562
1511
 
1563
1512
  /**
1564
- * List a device's notefiles and notes
1565
- * List a device's notefiles with the notes in each, sorted `.qo`, then `.qi`, then `.db`. `.qo` notefiles are listed without notes, since Notehub empties them as it processes them. Most system notefiles (names starting with `_`) are left out. For one notefile, use `GetNotefile`.
1513
+ * Lists .qi and .db files for the device
1566
1514
  * @param {String} projectOrProductUID
1567
1515
  * @param {String} deviceUID
1568
1516
  * @param {Object} opts Optional parameters
1569
- * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1517
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1570
1518
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1571
1519
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1572
1520
  */
@@ -1579,11 +1527,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1579
1527
  }
1580
1528
 
1581
1529
  /**
1582
- * Provision a Notecard
1583
- * 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.
1530
+ * Provision Device for a Project
1584
1531
  * @param {String} projectOrProductUID
1585
1532
  * @param {String} deviceUID
1586
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1533
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1587
1534
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1588
1535
  */
1589
1536
  }, {
@@ -1617,11 +1564,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1617
1564
  }
1618
1565
 
1619
1566
  /**
1620
- * Provision a Notecard
1621
- * 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.
1567
+ * Provision Device for a Project
1622
1568
  * @param {String} projectOrProductUID
1623
1569
  * @param {String} deviceUID
1624
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1570
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1625
1571
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1626
1572
  */
1627
1573
  }, {
@@ -1633,11 +1579,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1633
1579
  }
1634
1580
 
1635
1581
  /**
1636
- * Set device environment variables
1637
- * Add or change a device's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
1582
+ * Set environment variables of a device
1638
1583
  * @param {String} projectOrProductUID
1639
1584
  * @param {String} deviceUID
1640
- * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1585
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1641
1586
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1642
1587
  */
1643
1588
  }, {
@@ -1671,11 +1616,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1671
1616
  }
1672
1617
 
1673
1618
  /**
1674
- * Set device environment variables
1675
- * Add or change a device's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
1619
+ * Set environment variables of a device
1676
1620
  * @param {String} projectOrProductUID
1677
1621
  * @param {String} deviceUID
1678
- * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1622
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1679
1623
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1680
1624
  */
1681
1625
  }, {
@@ -1687,12 +1631,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1687
1631
  }
1688
1632
 
1689
1633
  /**
1690
- * Set device environment variables using a PIN
1691
- * Add or change a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Works like `SetDeviceEnvironmentVariables`: a value of `\"\"` or `-` deletes that variable. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
1634
+ * Set environment variables of a device with device pin authorization
1692
1635
  * @param {String} productUID
1693
1636
  * @param {String} deviceUID
1694
- * @param {String} xAuthToken The device's PIN, used instead of an API token.
1695
- * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1637
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1638
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1696
1639
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1697
1640
  */
1698
1641
  }, {
@@ -1732,12 +1675,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1732
1675
  }
1733
1676
 
1734
1677
  /**
1735
- * Set device environment variables using a PIN
1736
- * Add or change a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Works like `SetDeviceEnvironmentVariables`: a value of `\"\"` or `-` deletes that variable. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
1678
+ * Set environment variables of a device with device pin authorization
1737
1679
  * @param {String} productUID
1738
1680
  * @param {String} deviceUID
1739
- * @param {String} xAuthToken The device's PIN, used instead of an API token.
1740
- * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1681
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1682
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1741
1683
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1742
1684
  */
1743
1685
  }, {
@@ -1749,11 +1691,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1749
1691
  }
1750
1692
 
1751
1693
  /**
1752
- * Send a signal to a connected Notecard
1753
- * 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.
1694
+ * Send a signal from Notehub to a Notecard.
1754
1695
  * @param {String} projectOrProductUID
1755
1696
  * @param {String} deviceUID
1756
- * @param {module:model/Body} body The signal to send.
1697
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1757
1698
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1758
1699
  */
1759
1700
  }, {
@@ -1787,11 +1728,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1787
1728
  }
1788
1729
 
1789
1730
  /**
1790
- * Send a signal to a connected Notecard
1791
- * 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.
1731
+ * Send a signal from Notehub to a Notecard.
1792
1732
  * @param {String} projectOrProductUID
1793
1733
  * @param {String} deviceUID
1794
- * @param {module:model/Body} body The signal to send.
1734
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1795
1735
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1796
1736
  */
1797
1737
  }, {
@@ -1803,12 +1743,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1803
1743
  }
1804
1744
 
1805
1745
  /**
1806
- * Update a note in a .db notefile
1807
- * Replace the body and payload of a note in a database notefile on a device, synced to the Notecard on its next sync. To add a new note, use `AddDbNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
1746
+ * Update a note in a .db or .qi notefile
1808
1747
  * @param {String} projectOrProductUID
1809
1748
  * @param {String} deviceUID
1810
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1811
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1749
+ * @param {String} notefileID
1750
+ * @param {String} noteID
1812
1751
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1813
1752
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1814
1753
  */
@@ -1853,12 +1792,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1853
1792
  }
1854
1793
 
1855
1794
  /**
1856
- * Update a note in a .db notefile
1857
- * Replace the body and payload of a note in a database notefile on a device, synced to the Notecard on its next sync. To add a new note, use `AddDbNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
1795
+ * Update a note in a .db or .qi notefile
1858
1796
  * @param {String} projectOrProductUID
1859
1797
  * @param {String} deviceUID
1860
- * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1861
- * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1798
+ * @param {String} notefileID
1799
+ * @param {String} noteID
1862
1800
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1863
1801
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1864
1802
  */