@blues-inc/notehub-js 6.7.0-beta.65 → 6.7.0-beta.67

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 +43 -42
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/DescriptionApi.js +1 -1
  6. package/dist/api/DeviceApi.js +177 -115
  7. package/dist/api/EventApi.js +1 -1
  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 +1 -1
  12. package/dist/api/ProjectApi.js +73 -53
  13. package/dist/api/RouteApi.js +1 -1
  14. package/dist/api/SkillsApi.js +1 -1
  15. package/dist/api/UsageApi.js +1 -1
  16. package/dist/api/WebhookApi.js +1 -1
  17. package/dist/index.js +7 -0
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  20. package/dist/model/Alert.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  40. package/dist/model/CreateProjectSecretRequest.js +1 -1
  41. package/dist/model/CreateUpdateRepository.js +2 -1
  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 +1 -1
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  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 -1
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +2 -1
  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 +6 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  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 +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 +1 -1
  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 +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/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 +7 -4
  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 +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 +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +2 -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 +3 -3
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/RepositoryRecord.js +119 -0
  150. package/dist/model/RepositoryTokenRequest.js +1 -1
  151. package/dist/model/RepositoryTokenResponse.js +1 -1
  152. package/dist/model/RouteLog.js +1 -1
  153. package/dist/model/RouteTransformSettings.js +1 -1
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +1 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +1 -1
  159. package/dist/model/SignalDevice200Response.js +2 -2
  160. package/dist/model/SimUsage.js +1 -1
  161. package/dist/model/Skill.js +1 -1
  162. package/dist/model/SkillLinks.js +1 -1
  163. package/dist/model/SkillSet.js +1 -1
  164. package/dist/model/SkillSummary.js +1 -1
  165. package/dist/model/SkillWrite.js +1 -1
  166. package/dist/model/SkillWriteResult.js +1 -1
  167. package/dist/model/SlackBearerNotification.js +1 -1
  168. package/dist/model/SlackRoute.js +1 -1
  169. package/dist/model/SlackWebHookNotification.js +1 -1
  170. package/dist/model/SnowflakeRoute.js +1 -1
  171. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  172. package/dist/model/ThingworxRoute.js +1 -1
  173. package/dist/model/TowerLocation.js +1 -1
  174. package/dist/model/TwilioRoute.js +1 -1
  175. package/dist/model/UpdateFleetRequest.js +1 -1
  176. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  177. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  178. package/dist/model/UploadMetadata.js +1 -1
  179. package/dist/model/UsageApiData.js +1 -1
  180. package/dist/model/UsageData.js +1 -1
  181. package/dist/model/UsageEventsData.js +1 -1
  182. package/dist/model/UsageEventsResponse.js +1 -1
  183. package/dist/model/UsageRouteLogsData.js +1 -1
  184. package/dist/model/UsageSessionsData.js +1 -1
  185. package/dist/model/UserDfuStateMachine.js +1 -1
  186. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  187. package/dist/model/UserFirmwareInfo.js +1 -1
  188. package/dist/model/WebhookSettings.js +1 -1
  189. package/package.json +1 -1
@@ -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.65
51
+ * @version 6.7.0-beta.67
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -64,11 +64,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
64
64
  }
65
65
 
66
66
  /**
67
- * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
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.
68
69
  * @param {String} projectOrProductUID
69
70
  * @param {String} deviceUID
70
- * @param {String} notefileID
71
- * @param {String} noteID
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`.
72
73
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
73
74
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
74
75
  */
@@ -113,11 +114,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
113
114
  }
114
115
 
115
116
  /**
116
- * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
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.
117
119
  * @param {String} projectOrProductUID
118
120
  * @param {String} deviceUID
119
- * @param {String} notefileID
120
- * @param {String} noteID
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`.
121
123
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
122
124
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
123
125
  */
@@ -130,10 +132,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
130
132
  }
131
133
 
132
134
  /**
133
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
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.
134
137
  * @param {String} projectOrProductUID
135
138
  * @param {String} deviceUID
136
- * @param {String} notefileID
139
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
137
140
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
138
141
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
139
142
  */
@@ -173,10 +176,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
173
176
  }
174
177
 
175
178
  /**
176
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
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.
177
181
  * @param {String} projectOrProductUID
178
182
  * @param {String} deviceUID
179
- * @param {String} notefileID
183
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
180
184
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
181
185
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
182
186
  */
@@ -189,10 +193,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
189
193
  }
190
194
 
191
195
  /**
192
- * Creates an empty Notefile on the device.
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.
193
198
  * @param {String} projectOrProductUID
194
199
  * @param {String} deviceUID
195
- * @param {String} notefileID
200
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
196
201
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
197
202
  */
198
203
  }, {
@@ -227,10 +232,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
227
232
  }
228
233
 
229
234
  /**
230
- * Creates an empty Notefile on the device.
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.
231
237
  * @param {String} projectOrProductUID
232
238
  * @param {String} deviceUID
233
- * @param {String} notefileID
239
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
234
240
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
235
241
  */
236
242
  }, {
@@ -242,7 +248,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
242
248
  }
243
249
 
244
250
  /**
245
- * Delete Device
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.
246
253
  * @param {String} projectOrProductUID
247
254
  * @param {String} deviceUID
248
255
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -274,7 +281,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
274
281
  }
275
282
 
276
283
  /**
277
- * Delete Device
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.
278
286
  * @param {String} projectOrProductUID
279
287
  * @param {String} deviceUID
280
288
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -288,7 +296,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
288
296
  }
289
297
 
290
298
  /**
291
- * Delete environment variable of a device
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.
292
301
  * @param {String} projectOrProductUID
293
302
  * @param {String} deviceUID
294
303
  * @param {String} key The environment variable key to delete.
@@ -326,7 +335,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
326
335
  }
327
336
 
328
337
  /**
329
- * Delete environment variable of a device
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.
330
340
  * @param {String} projectOrProductUID
331
341
  * @param {String} deviceUID
332
342
  * @param {String} key The environment variable key to delete.
@@ -341,11 +351,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
341
351
  }
342
352
 
343
353
  /**
344
- * Delete a note from a .db or .qi notefile
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.
345
356
  * @param {String} projectOrProductUID
346
357
  * @param {String} deviceUID
347
- * @param {String} notefileID
348
- * @param {String} noteID
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`.
349
360
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
350
361
  */
351
362
  }, {
@@ -385,11 +396,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
385
396
  }
386
397
 
387
398
  /**
388
- * Delete a note from a .db or .qi notefile
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.
389
401
  * @param {String} projectOrProductUID
390
402
  * @param {String} deviceUID
391
- * @param {String} notefileID
392
- * @param {String} noteID
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`.
393
405
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
394
406
  */
395
407
  }, {
@@ -401,10 +413,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
401
413
  }
402
414
 
403
415
  /**
404
- * Deletes Notefiles and the Notes they contain.
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.
405
418
  * @param {String} projectOrProductUID
406
419
  * @param {String} deviceUID
407
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
420
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
408
421
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
409
422
  */
410
423
  }, {
@@ -438,10 +451,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
438
451
  }
439
452
 
440
453
  /**
441
- * Deletes Notefiles and the Notes they contain.
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.
442
456
  * @param {String} projectOrProductUID
443
457
  * @param {String} deviceUID
444
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
458
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
445
459
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
446
460
  */
447
461
  }, {
@@ -453,7 +467,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
453
467
  }
454
468
 
455
469
  /**
456
- * Disable Device
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.
457
472
  * @param {String} projectOrProductUID
458
473
  * @param {String} deviceUID
459
474
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -485,7 +500,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
485
500
  }
486
501
 
487
502
  /**
488
- * Disable Device
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.
489
505
  * @param {String} projectOrProductUID
490
506
  * @param {String} deviceUID
491
507
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -499,7 +515,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
499
515
  }
500
516
 
501
517
  /**
502
- * Enable Device
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.
503
520
  * @param {String} projectOrProductUID
504
521
  * @param {String} deviceUID
505
522
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -531,7 +548,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
531
548
  }
532
549
 
533
550
  /**
534
- * Enable Device
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.
535
553
  * @param {String} projectOrProductUID
536
554
  * @param {String} deviceUID
537
555
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -545,14 +563,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
545
563
  }
546
564
 
547
565
  /**
548
- * Get a note from a .db or .qi notefile
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.
549
568
  * @param {String} projectOrProductUID
550
569
  * @param {String} deviceUID
551
- * @param {String} notefileID
552
- * @param {String} noteID
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`.
553
572
  * @param {Object} opts Optional parameters
554
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
555
- * @param {Boolean} opts.deleted Whether to return deleted notes
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.
556
575
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
557
576
  */
558
577
  }, {
@@ -596,14 +615,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
596
615
  }
597
616
 
598
617
  /**
599
- * Get a note from a .db or .qi notefile
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.
600
620
  * @param {String} projectOrProductUID
601
621
  * @param {String} deviceUID
602
- * @param {String} notefileID
603
- * @param {String} noteID
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`.
604
624
  * @param {Object} opts Optional parameters
605
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
606
- * @param {Boolean} opts.deleted Whether to return deleted notes
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.
607
627
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
608
628
  */
609
629
  }, {
@@ -615,7 +635,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
615
635
  }
616
636
 
617
637
  /**
618
- * Get Device
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`.
619
640
  * @param {String} projectOrProductUID
620
641
  * @param {String} deviceUID
621
642
  * @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 +668,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
647
668
  }
648
669
 
649
670
  /**
650
- * Get Device
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`.
651
673
  * @param {String} projectOrProductUID
652
674
  * @param {String} deviceUID
653
675
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
@@ -661,7 +683,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
661
683
  }
662
684
 
663
685
  /**
664
- * Get environment variable hierarchy for a device
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`.
665
688
  * @param {String} projectOrProductUID
666
689
  * @param {String} deviceUID
667
690
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
@@ -693,7 +716,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
693
716
  }
694
717
 
695
718
  /**
696
- * Get environment variable hierarchy for a device
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`.
697
721
  * @param {String} projectOrProductUID
698
722
  * @param {String} deviceUID
699
723
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
@@ -707,7 +731,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
707
731
  }
708
732
 
709
733
  /**
710
- * Get environment variables of a device
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`.
711
736
  * @param {String} projectOrProductUID
712
737
  * @param {String} deviceUID
713
738
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
@@ -739,7 +764,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
739
764
  }
740
765
 
741
766
  /**
742
- * Get environment variables of a device
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`.
743
769
  * @param {String} projectOrProductUID
744
770
  * @param {String} deviceUID
745
771
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
@@ -753,10 +779,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
753
779
  }
754
780
 
755
781
  /**
756
- * Get environment variables of a device with device pin authorization
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.
757
784
  * @param {String} productUID
758
785
  * @param {String} deviceUID
759
- * @param {String} xAuthToken For accessing endpoints by Device pin.
786
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
760
787
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
761
788
  */
762
789
  }, {
@@ -792,10 +819,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
792
819
  }
793
820
 
794
821
  /**
795
- * Get environment variables of a device with device pin authorization
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.
796
824
  * @param {String} productUID
797
825
  * @param {String} deviceUID
798
- * @param {String} xAuthToken For accessing endpoints by Device pin.
826
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
799
827
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
800
828
  */
801
829
  }, {
@@ -807,13 +835,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
807
835
  }
808
836
 
809
837
  /**
810
- * Get Device Health Log
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.
811
840
  * @param {String} projectOrProductUID
812
841
  * @param {String} deviceUID
813
842
  * @param {Object} opts Optional parameters
814
843
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
815
844
  * @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
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
817
846
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
818
847
  */
819
848
  }, {
@@ -848,13 +877,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
848
877
  }
849
878
 
850
879
  /**
851
- * Get Device Health Log
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.
852
882
  * @param {String} projectOrProductUID
853
883
  * @param {String} deviceUID
854
884
  * @param {Object} opts Optional parameters
855
885
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
856
886
  * @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
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
858
888
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
859
889
  */
860
890
  }, {
@@ -866,7 +896,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
866
896
  }
867
897
 
868
898
  /**
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.
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.
870
901
  * @param {String} projectOrProductUID
871
902
  * @param {String} deviceUID
872
903
  * @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).
@@ -911,7 +942,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
911
942
  }
912
943
 
913
944
  /**
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.
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.
915
947
  * @param {String} projectOrProductUID
916
948
  * @param {String} deviceUID
917
949
  * @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).
@@ -929,7 +961,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
929
961
  }
930
962
 
931
963
  /**
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.
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.
933
966
  * @param {String} projectOrProductUID
934
967
  * @param {String} deviceUID
935
968
  * @param {Object} opts Optional parameters
@@ -968,7 +1001,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
968
1001
  }
969
1002
 
970
1003
  /**
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.
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.
972
1006
  * @param {String} projectOrProductUID
973
1007
  * @param {String} deviceUID
974
1008
  * @param {Object} opts Optional parameters
@@ -985,7 +1019,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
985
1019
  }
986
1020
 
987
1021
  /**
988
- * Get Device Latest Events
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.
989
1024
  * @param {String} projectOrProductUID
990
1025
  * @param {String} deviceUID
991
1026
  * @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 +1052,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1017
1052
  }
1018
1053
 
1019
1054
  /**
1020
- * Get Device Latest Events
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.
1021
1057
  * @param {String} projectOrProductUID
1022
1058
  * @param {String} deviceUID
1023
1059
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
@@ -1031,7 +1067,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1031
1067
  }
1032
1068
 
1033
1069
  /**
1034
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
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.
1035
1072
  * @param {String} projectOrProductUID
1036
1073
  * @param {String} deviceUID
1037
1074
  * @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 +1100,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1063
1100
  }
1064
1101
 
1065
1102
  /**
1066
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
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.
1067
1105
  * @param {String} projectOrProductUID
1068
1106
  * @param {String} deviceUID
1069
1107
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
@@ -1077,7 +1115,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1077
1115
  }
1078
1116
 
1079
1117
  /**
1080
- * Get Device Public Key
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`.
1081
1120
  * @param {String} projectOrProductUID
1082
1121
  * @param {String} deviceUID
1083
1122
  * @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 +1148,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1109
1148
  }
1110
1149
 
1111
1150
  /**
1112
- * Get Device Public Key
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`.
1113
1153
  * @param {String} projectOrProductUID
1114
1154
  * @param {String} deviceUID
1115
1155
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
@@ -1123,7 +1163,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1123
1163
  }
1124
1164
 
1125
1165
  /**
1126
- * Get Device Public Keys of a Project
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`.
1127
1168
  * @param {String} projectOrProductUID
1128
1169
  * @param {Object} opts Optional parameters
1129
1170
  * @param {Number} opts.pageSize (default to 1000)
@@ -1158,7 +1199,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1158
1199
  }
1159
1200
 
1160
1201
  /**
1161
- * Get Device Public Keys of a Project
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`.
1162
1204
  * @param {String} projectOrProductUID
1163
1205
  * @param {Object} opts Optional parameters
1164
1206
  * @param {Number} opts.pageSize (default to 1000)
@@ -1175,7 +1217,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1175
1217
  }
1176
1218
 
1177
1219
  /**
1178
- * Get Device Sessions
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.
1179
1222
  * @param {String} projectOrProductUID
1180
1223
  * @param {String} deviceUID
1181
1224
  * @param {Object} opts Optional parameters
@@ -1184,7 +1227,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1184
1227
  * @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
1228
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1186
1229
  * @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)
1230
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1188
1231
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1189
1232
  */
1190
1233
  }, {
@@ -1222,7 +1265,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1222
1265
  }
1223
1266
 
1224
1267
  /**
1225
- * Get Device Sessions
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.
1226
1270
  * @param {String} projectOrProductUID
1227
1271
  * @param {String} deviceUID
1228
1272
  * @param {Object} opts Optional parameters
@@ -1231,7 +1275,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1231
1275
  * @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
1276
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1233
1277
  * @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)
1278
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1235
1279
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1236
1280
  */
1237
1281
  }, {
@@ -1243,7 +1287,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1243
1287
  }
1244
1288
 
1245
1289
  /**
1246
- * Get Devices of a Project
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.
1247
1292
  * @param {String} projectOrProductUID
1248
1293
  * @param {Object} opts Optional parameters
1249
1294
  * @param {Number} opts.pageSize (default to 1000)
@@ -1296,7 +1341,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1296
1341
  }
1297
1342
 
1298
1343
  /**
1299
- * Get Devices of a Project
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.
1300
1346
  * @param {String} projectOrProductUID
1301
1347
  * @param {Object} opts Optional parameters
1302
1348
  * @param {Number} opts.pageSize (default to 1000)
@@ -1322,7 +1368,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1322
1368
  }
1323
1369
 
1324
1370
  /**
1325
- * Get Devices of a Fleet within a Project
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.
1326
1373
  * @param {String} projectOrProductUID
1327
1374
  * @param {String} fleetUID
1328
1375
  * @param {Object} opts Optional parameters
@@ -1379,7 +1426,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1379
1426
  }
1380
1427
 
1381
1428
  /**
1382
- * Get Devices of a Fleet within a Project
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.
1383
1431
  * @param {String} projectOrProductUID
1384
1432
  * @param {String} fleetUID
1385
1433
  * @param {Object} opts Optional parameters
@@ -1405,14 +1453,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1405
1453
  }
1406
1454
 
1407
1455
  /**
1408
- * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
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.
1409
1458
  * @param {String} projectOrProductUID
1410
1459
  * @param {String} deviceUID
1411
- * @param {String} notefileID
1460
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1412
1461
  * @param {Object} opts Optional parameters
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.
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.
1416
1465
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
1417
1466
  */
1418
1467
  }, {
@@ -1452,14 +1501,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1452
1501
  }
1453
1502
 
1454
1503
  /**
1455
- * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
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.
1456
1506
  * @param {String} projectOrProductUID
1457
1507
  * @param {String} deviceUID
1458
- * @param {String} notefileID
1508
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1459
1509
  * @param {Object} opts Optional parameters
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.
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.
1463
1513
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
1464
1514
  */
1465
1515
  }, {
@@ -1471,11 +1521,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1521
  }
1472
1522
 
1473
1523
  /**
1474
- * Lists .qi and .db files for the device
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`.
1475
1526
  * @param {String} projectOrProductUID
1476
1527
  * @param {String} deviceUID
1477
1528
  * @param {Object} opts Optional parameters
1478
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1529
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1479
1530
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1480
1531
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1481
1532
  */
@@ -1510,11 +1561,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1510
1561
  }
1511
1562
 
1512
1563
  /**
1513
- * Lists .qi and .db files for the device
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`.
1514
1566
  * @param {String} projectOrProductUID
1515
1567
  * @param {String} deviceUID
1516
1568
  * @param {Object} opts Optional parameters
1517
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1569
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1518
1570
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1519
1571
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1520
1572
  */
@@ -1527,10 +1579,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1527
1579
  }
1528
1580
 
1529
1581
  /**
1530
- * Provision Device for a Project
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.
1531
1584
  * @param {String} projectOrProductUID
1532
1585
  * @param {String} deviceUID
1533
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1586
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1534
1587
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1535
1588
  */
1536
1589
  }, {
@@ -1564,10 +1617,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1564
1617
  }
1565
1618
 
1566
1619
  /**
1567
- * Provision Device for a Project
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.
1568
1622
  * @param {String} projectOrProductUID
1569
1623
  * @param {String} deviceUID
1570
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1624
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1571
1625
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1572
1626
  */
1573
1627
  }, {
@@ -1579,10 +1633,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1579
1633
  }
1580
1634
 
1581
1635
  /**
1582
- * Set environment variables of a device
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.
1583
1638
  * @param {String} projectOrProductUID
1584
1639
  * @param {String} deviceUID
1585
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1640
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1586
1641
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1587
1642
  */
1588
1643
  }, {
@@ -1616,10 +1671,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1616
1671
  }
1617
1672
 
1618
1673
  /**
1619
- * Set environment variables of a device
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.
1620
1676
  * @param {String} projectOrProductUID
1621
1677
  * @param {String} deviceUID
1622
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1678
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1623
1679
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1624
1680
  */
1625
1681
  }, {
@@ -1631,11 +1687,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1631
1687
  }
1632
1688
 
1633
1689
  /**
1634
- * Set environment variables of a device with device pin authorization
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.
1635
1692
  * @param {String} productUID
1636
1693
  * @param {String} deviceUID
1637
- * @param {String} xAuthToken For accessing endpoints by Device pin.
1638
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
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.
1639
1696
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1640
1697
  */
1641
1698
  }, {
@@ -1675,11 +1732,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1675
1732
  }
1676
1733
 
1677
1734
  /**
1678
- * Set environment variables of a device with device pin authorization
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.
1679
1737
  * @param {String} productUID
1680
1738
  * @param {String} deviceUID
1681
- * @param {String} xAuthToken For accessing endpoints by Device pin.
1682
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
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.
1683
1741
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1684
1742
  */
1685
1743
  }, {
@@ -1691,10 +1749,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1691
1749
  }
1692
1750
 
1693
1751
  /**
1694
- * Send a signal from Notehub to a Notecard.
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.
1695
1754
  * @param {String} projectOrProductUID
1696
1755
  * @param {String} deviceUID
1697
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1756
+ * @param {module:model/Body} body The signal to send.
1698
1757
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1699
1758
  */
1700
1759
  }, {
@@ -1728,10 +1787,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1728
1787
  }
1729
1788
 
1730
1789
  /**
1731
- * Send a signal from Notehub to a Notecard.
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.
1732
1792
  * @param {String} projectOrProductUID
1733
1793
  * @param {String} deviceUID
1734
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1794
+ * @param {module:model/Body} body The signal to send.
1735
1795
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1736
1796
  */
1737
1797
  }, {
@@ -1743,11 +1803,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1803
  }
1744
1804
 
1745
1805
  /**
1746
- * Update a note in a .db or .qi notefile
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.
1747
1808
  * @param {String} projectOrProductUID
1748
1809
  * @param {String} deviceUID
1749
- * @param {String} notefileID
1750
- * @param {String} noteID
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`.
1751
1812
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1813
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1753
1814
  */
@@ -1792,11 +1853,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1792
1853
  }
1793
1854
 
1794
1855
  /**
1795
- * Update a note in a .db or .qi notefile
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.
1796
1858
  * @param {String} projectOrProductUID
1797
1859
  * @param {String} deviceUID
1798
- * @param {String} notefileID
1799
- * @param {String} noteID
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`.
1800
1862
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1801
1863
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1802
1864
  */