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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +149 -149
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +3 -3
  4. package/dist/api/AuthorizationApi.js +9 -48
  5. package/dist/api/DescriptionApi.js +1 -1
  6. package/dist/api/DeviceApi.js +123 -93
  7. package/dist/api/EventApi.js +25 -170
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +9 -9
  12. package/dist/api/ProjectApi.js +17 -17
  13. package/dist/api/RouteApi.js +7 -7
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +15 -15
  16. package/dist/api/WebhookApi.js +17 -17
  17. package/dist/index.js +77 -63
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  20. package/dist/model/Alert.js +4 -4
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +5 -5
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +1 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +1 -1
  33. package/dist/model/CloneProjectRequest.js +3 -3
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +1 -1
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +1 -1
  38. package/dist/model/CreateProductRequest.js +1 -1
  39. package/dist/model/CreateProjectRequest.js +3 -3
  40. package/dist/model/CreateProjectSecretRequest.js +1 -1
  41. package/dist/model/CreateUpdateRepository.js +2 -1
  42. package/dist/model/CreatedRepository.js +1 -1
  43. package/dist/model/CurrentFirmware.js +1 -1
  44. package/dist/model/DFUEnv.js +1 -1
  45. package/dist/model/DFUState.js +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +1 -1
  48. package/dist/model/DataSetField.js +1 -1
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +1 -1
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +2 -2
  58. package/dist/model/DeviceDfuHistory.js +2 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +1 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  63. package/dist/model/DeviceDfuStatus.js +2 -2
  64. package/dist/model/DeviceDfuStatusPage.js +1 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +5 -5
  67. package/dist/model/DeviceTowerInfo.js +1 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +1 -1
  70. package/dist/model/EmailNotification.js +1 -1
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +7 -7
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +1 -1
  79. package/dist/model/Fleet.js +3 -3
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +1 -1
  82. package/dist/model/GetApiUsage200Response.js +1 -1
  83. package/dist/model/GetDataUsage200Response.js +1 -1
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  94. package/dist/model/GetDevicePlans200Response.js +1 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  96. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  98. package/dist/model/GetDeviceSessions200Response.js +1 -1
  99. package/dist/model/GetDevices200Response.js +1 -1
  100. package/dist/model/GetEvents200Response.js +1 -1
  101. package/dist/model/GetJobRuns200Response.js +1 -1
  102. package/dist/model/GetJobs200Response.js +1 -1
  103. package/dist/model/GetNotefile200Response.js +1 -1
  104. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
  105. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
  106. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
  107. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
  108. package/dist/model/GetOrganizations200Response.js +1 -1
  109. package/dist/model/GetProducts200Response.js +1 -1
  110. package/dist/model/GetProjectMembers200Response.js +1 -1
  111. package/dist/model/GetProjectSecretsResponse.js +1 -1
  112. package/dist/model/GetProjects200Response.js +1 -1
  113. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  114. package/dist/model/GetSessionsUsage200Response.js +1 -1
  115. package/dist/model/GetWebhooks200Response.js +1 -1
  116. package/dist/model/GoogleRoute.js +1 -1
  117. package/dist/model/HealthLog.js +1 -1
  118. package/dist/model/HttpRoute.js +1 -1
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +3 -3
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +1 -1
  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 +1 -1
  144. package/dist/model/ProxyRoute.js +1 -1
  145. package/dist/model/QubitroRoute.js +1 -1
  146. package/dist/model/RadRoute.js +1 -1
  147. package/dist/model/Repository.js +1 -1
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/RepositoryTokenRequest.js +1 -1
  150. package/dist/model/RepositoryTokenResponse.js +1 -1
  151. package/dist/model/RouteLog.js +3 -3
  152. package/dist/model/RouteTransformSettings.js +1 -1
  153. package/dist/model/RunJob200Response.js +1 -1
  154. package/dist/model/S3ArchiveRoute.js +1 -1
  155. package/dist/model/SatelliteDataUsage.js +1 -1
  156. package/dist/model/SatellitePlan.js +1 -1
  157. package/dist/model/SchemaProperty.js +1 -1
  158. package/dist/model/SignalDevice200Response.js +1 -1
  159. package/dist/model/SimUsage.js +1 -1
  160. package/dist/model/Skill.js +207 -0
  161. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
  162. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
  163. package/dist/model/SkillSummary.js +205 -0
  164. package/dist/model/SkillWrite.js +128 -0
  165. package/dist/model/SkillWriteResult.js +153 -0
  166. package/dist/model/SlackBearerNotification.js +1 -1
  167. package/dist/model/SlackRoute.js +1 -1
  168. package/dist/model/SlackWebHookNotification.js +1 -1
  169. package/dist/model/SnowflakeRoute.js +1 -1
  170. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  171. package/dist/model/ThingworxRoute.js +1 -1
  172. package/dist/model/TowerLocation.js +1 -1
  173. package/dist/model/TwilioRoute.js +1 -1
  174. package/dist/model/UpdateFleetRequest.js +1 -1
  175. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  176. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  177. package/dist/model/UploadMetadata.js +1 -1
  178. package/dist/model/UsageApiData.js +1 -1
  179. package/dist/model/UsageData.js +1 -1
  180. package/dist/model/UsageEventsData.js +1 -1
  181. package/dist/model/UsageEventsResponse.js +1 -1
  182. package/dist/model/UsageRouteLogsData.js +2 -2
  183. package/dist/model/UsageSessionsData.js +1 -1
  184. package/dist/model/UserDfuStateMachine.js +1 -1
  185. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  186. package/dist/model/UserFirmwareInfo.js +1 -1
  187. package/dist/model/WebhookSettings.js +1 -1
  188. package/package.json +1 -1
  189. package/dist/api/BillingAccountApi.js +0 -167
  190. package/dist/model/Login200Response.js +0 -91
  191. package/dist/model/LoginRequest.js +0 -103
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
48
48
  /**
49
49
  * Device service.
50
50
  * @module api/DeviceApi
51
- * @version 6.7.0-beta.5
51
+ * @version 6.7.0-beta.50
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
  }, {
@@ -288,7 +294,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
288
294
  }
289
295
 
290
296
  /**
291
- * Delete environment variable of a device
297
+ * Delete a device environment variable
298
+ * 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
299
  * @param {String} projectOrProductUID
293
300
  * @param {String} deviceUID
294
301
  * @param {String} key The environment variable key to delete.
@@ -326,7 +333,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
326
333
  }
327
334
 
328
335
  /**
329
- * Delete environment variable of a device
336
+ * Delete a device environment variable
337
+ * 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
338
  * @param {String} projectOrProductUID
331
339
  * @param {String} deviceUID
332
340
  * @param {String} key The environment variable key to delete.
@@ -341,11 +349,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
341
349
  }
342
350
 
343
351
  /**
344
- * Delete a note from a .db or .qi notefile
352
+ * Delete a note
353
+ * Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
345
354
  * @param {String} projectOrProductUID
346
355
  * @param {String} deviceUID
347
- * @param {String} notefileID
348
- * @param {String} noteID
356
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
357
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
349
358
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
350
359
  */
351
360
  }, {
@@ -385,11 +394,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
385
394
  }
386
395
 
387
396
  /**
388
- * Delete a note from a .db or .qi notefile
397
+ * Delete a note
398
+ * Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
389
399
  * @param {String} projectOrProductUID
390
400
  * @param {String} deviceUID
391
- * @param {String} notefileID
392
- * @param {String} noteID
401
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
402
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
393
403
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
394
404
  */
395
405
  }, {
@@ -401,10 +411,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
401
411
  }
402
412
 
403
413
  /**
404
- * Deletes Notefiles and the Notes they contain.
414
+ * Delete notefiles
415
+ * 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
416
  * @param {String} projectOrProductUID
406
417
  * @param {String} deviceUID
407
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
418
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
408
419
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
409
420
  */
410
421
  }, {
@@ -438,10 +449,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
438
449
  }
439
450
 
440
451
  /**
441
- * Deletes Notefiles and the Notes they contain.
452
+ * Delete notefiles
453
+ * 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
454
  * @param {String} projectOrProductUID
443
455
  * @param {String} deviceUID
444
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
456
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
445
457
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
446
458
  */
447
459
  }, {
@@ -545,14 +557,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
545
557
  }
546
558
 
547
559
  /**
548
- * Get a note from a .db or .qi notefile
560
+ * Get a note
561
+ * 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
562
  * @param {String} projectOrProductUID
550
563
  * @param {String} deviceUID
551
- * @param {String} notefileID
552
- * @param {String} noteID
564
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
565
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
553
566
  * @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
567
+ * @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
568
+ * @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
556
569
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
557
570
  */
558
571
  }, {
@@ -596,14 +609,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
596
609
  }
597
610
 
598
611
  /**
599
- * Get a note from a .db or .qi notefile
612
+ * Get a note
613
+ * 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
614
  * @param {String} projectOrProductUID
601
615
  * @param {String} deviceUID
602
- * @param {String} notefileID
603
- * @param {String} noteID
616
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
617
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
604
618
  * @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
619
+ * @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
620
+ * @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
607
621
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
608
622
  */
609
623
  }, {
@@ -661,7 +675,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
661
675
  }
662
676
 
663
677
  /**
664
- * Get environment variable hierarchy for a device
678
+ * Get a device's environment hierarchy
679
+ * 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
680
  * @param {String} projectOrProductUID
666
681
  * @param {String} deviceUID
667
682
  * @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 +708,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
693
708
  }
694
709
 
695
710
  /**
696
- * Get environment variable hierarchy for a device
711
+ * Get a device's environment hierarchy
712
+ * 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
713
  * @param {String} projectOrProductUID
698
714
  * @param {String} deviceUID
699
715
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
@@ -707,7 +723,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
707
723
  }
708
724
 
709
725
  /**
710
- * Get environment variables of a device
726
+ * Get device environment variables
727
+ * 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
728
  * @param {String} projectOrProductUID
712
729
  * @param {String} deviceUID
713
730
  * @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 +756,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
739
756
  }
740
757
 
741
758
  /**
742
- * Get environment variables of a device
759
+ * Get device environment variables
760
+ * 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
761
  * @param {String} projectOrProductUID
744
762
  * @param {String} deviceUID
745
763
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
@@ -753,10 +771,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
753
771
  }
754
772
 
755
773
  /**
756
- * Get environment variables of a device with device pin authorization
774
+ * Get device environment variables using a PIN
775
+ * 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
776
  * @param {String} productUID
758
777
  * @param {String} deviceUID
759
- * @param {String} xAuthToken For accessing endpoints by Device pin.
778
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
760
779
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
761
780
  */
762
781
  }, {
@@ -792,10 +811,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
792
811
  }
793
812
 
794
813
  /**
795
- * Get environment variables of a device with device pin authorization
814
+ * Get device environment variables using a PIN
815
+ * 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
816
  * @param {String} productUID
797
817
  * @param {String} deviceUID
798
- * @param {String} xAuthToken For accessing endpoints by Device pin.
818
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
799
819
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
800
820
  */
801
821
  }, {
@@ -871,7 +891,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
871
891
  * @param {String} deviceUID
872
892
  * @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
873
893
  * @param {Object} opts Optional parameters
874
- * @param {Number} opts.pageSize (default to 50)
894
+ * @param {Number} opts.pageSize (default to 1000)
875
895
  * @param {Number} opts.pageNum (default to 1)
876
896
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
877
897
  */
@@ -916,7 +936,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
916
936
  * @param {String} deviceUID
917
937
  * @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
918
938
  * @param {Object} opts Optional parameters
919
- * @param {Number} opts.pageSize (default to 50)
939
+ * @param {Number} opts.pageSize (default to 1000)
920
940
  * @param {Number} opts.pageNum (default to 1)
921
941
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
922
942
  */
@@ -1126,7 +1146,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1126
1146
  * Get Device Public Keys of a Project
1127
1147
  * @param {String} projectOrProductUID
1128
1148
  * @param {Object} opts Optional parameters
1129
- * @param {Number} opts.pageSize (default to 50)
1149
+ * @param {Number} opts.pageSize (default to 1000)
1130
1150
  * @param {Number} opts.pageNum (default to 1)
1131
1151
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1132
1152
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
@@ -1161,7 +1181,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1161
1181
  * Get Device Public Keys of a Project
1162
1182
  * @param {String} projectOrProductUID
1163
1183
  * @param {Object} opts Optional parameters
1164
- * @param {Number} opts.pageSize (default to 50)
1184
+ * @param {Number} opts.pageSize (default to 1000)
1165
1185
  * @param {Number} opts.pageNum (default to 1)
1166
1186
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1167
1187
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
@@ -1179,7 +1199,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1179
1199
  * @param {String} projectOrProductUID
1180
1200
  * @param {String} deviceUID
1181
1201
  * @param {Object} opts Optional parameters
1182
- * @param {Number} opts.pageSize (default to 50)
1202
+ * @param {Number} opts.pageSize (default to 1000)
1183
1203
  * @param {Number} opts.pageNum (default to 1)
1184
1204
  * @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
1205
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
@@ -1226,7 +1246,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1226
1246
  * @param {String} projectOrProductUID
1227
1247
  * @param {String} deviceUID
1228
1248
  * @param {Object} opts Optional parameters
1229
- * @param {Number} opts.pageSize (default to 50)
1249
+ * @param {Number} opts.pageSize (default to 1000)
1230
1250
  * @param {Number} opts.pageNum (default to 1)
1231
1251
  * @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
1252
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
@@ -1246,17 +1266,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1246
1266
  * Get Devices of a Project
1247
1267
  * @param {String} projectOrProductUID
1248
1268
  * @param {Object} opts Optional parameters
1249
- * @param {Number} opts.pageSize (default to 50)
1269
+ * @param {Number} opts.pageSize (default to 1000)
1250
1270
  * @param {Number} opts.pageNum (default to 1)
1251
1271
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1252
- * @param {Array.<String>} opts.deviceUID A Device UID.
1272
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1253
1273
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1254
1274
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1255
1275
  * @param {Array.<String>} opts.fleetUID
1256
1276
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1257
1277
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1258
1278
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1259
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1279
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1260
1280
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1261
1281
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1262
1282
  */
@@ -1299,17 +1319,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1299
1319
  * Get Devices of a Project
1300
1320
  * @param {String} projectOrProductUID
1301
1321
  * @param {Object} opts Optional parameters
1302
- * @param {Number} opts.pageSize (default to 50)
1322
+ * @param {Number} opts.pageSize (default to 1000)
1303
1323
  * @param {Number} opts.pageNum (default to 1)
1304
1324
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1305
- * @param {Array.<String>} opts.deviceUID A Device UID.
1325
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1306
1326
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1307
1327
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1308
1328
  * @param {Array.<String>} opts.fleetUID
1309
1329
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1310
1330
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1311
1331
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1312
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1332
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1313
1333
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1314
1334
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1315
1335
  */
@@ -1326,16 +1346,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1326
1346
  * @param {String} projectOrProductUID
1327
1347
  * @param {String} fleetUID
1328
1348
  * @param {Object} opts Optional parameters
1329
- * @param {Number} opts.pageSize (default to 50)
1349
+ * @param {Number} opts.pageSize (default to 1000)
1330
1350
  * @param {Number} opts.pageNum (default to 1)
1331
1351
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1332
- * @param {Array.<String>} opts.deviceUID A Device UID.
1352
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1333
1353
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1334
1354
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1335
1355
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1336
1356
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1337
1357
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1338
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1358
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1339
1359
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1340
1360
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1341
1361
  */
@@ -1383,16 +1403,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1383
1403
  * @param {String} projectOrProductUID
1384
1404
  * @param {String} fleetUID
1385
1405
  * @param {Object} opts Optional parameters
1386
- * @param {Number} opts.pageSize (default to 50)
1406
+ * @param {Number} opts.pageSize (default to 1000)
1387
1407
  * @param {Number} opts.pageNum (default to 1)
1388
1408
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1389
- * @param {Array.<String>} opts.deviceUID A Device UID.
1409
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1390
1410
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1391
1411
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1392
1412
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1393
1413
  * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1394
1414
  * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1395
- * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1415
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1396
1416
  * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1397
1417
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1398
1418
  */
@@ -1405,14 +1425,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1405
1425
  }
1406
1426
 
1407
1427
  /**
1408
- * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1428
+ * Get the notes in a notefile
1429
+ * 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
1430
  * @param {String} projectOrProductUID
1410
1431
  * @param {String} deviceUID
1411
- * @param {String} notefileID
1432
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1412
1433
  * @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.
1434
+ * @param {Number} opts.max The most notes to return.
1435
+ * @param {Boolean} opts.deleted If true, also return deleted notes.
1436
+ * @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
1416
1437
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
1417
1438
  */
1418
1439
  }, {
@@ -1452,14 +1473,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1452
1473
  }
1453
1474
 
1454
1475
  /**
1455
- * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1476
+ * Get the notes in a notefile
1477
+ * 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
1478
  * @param {String} projectOrProductUID
1457
1479
  * @param {String} deviceUID
1458
- * @param {String} notefileID
1480
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1459
1481
  * @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.
1482
+ * @param {Number} opts.max The most notes to return.
1483
+ * @param {Boolean} opts.deleted If true, also return deleted notes.
1484
+ * @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
1463
1485
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
1464
1486
  */
1465
1487
  }, {
@@ -1471,11 +1493,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1493
  }
1472
1494
 
1473
1495
  /**
1474
- * Lists .qi and .db files for the device
1496
+ * List a device's notefiles and notes
1497
+ * 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
1498
  * @param {String} projectOrProductUID
1476
1499
  * @param {String} deviceUID
1477
1500
  * @param {Object} opts Optional parameters
1478
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1501
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1479
1502
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1480
1503
  * @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
1504
  */
@@ -1510,11 +1533,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1510
1533
  }
1511
1534
 
1512
1535
  /**
1513
- * Lists .qi and .db files for the device
1536
+ * List a device's notefiles and notes
1537
+ * 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
1538
  * @param {String} projectOrProductUID
1515
1539
  * @param {String} deviceUID
1516
1540
  * @param {Object} opts Optional parameters
1517
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1541
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1518
1542
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1519
1543
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1520
1544
  */
@@ -1579,10 +1603,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1579
1603
  }
1580
1604
 
1581
1605
  /**
1582
- * Set environment variables of a device
1606
+ * Set device environment variables
1607
+ * 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
1608
  * @param {String} projectOrProductUID
1584
1609
  * @param {String} deviceUID
1585
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1610
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1586
1611
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1587
1612
  */
1588
1613
  }, {
@@ -1616,10 +1641,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1616
1641
  }
1617
1642
 
1618
1643
  /**
1619
- * Set environment variables of a device
1644
+ * Set device environment variables
1645
+ * 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
1646
  * @param {String} projectOrProductUID
1621
1647
  * @param {String} deviceUID
1622
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1648
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1623
1649
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1624
1650
  */
1625
1651
  }, {
@@ -1631,11 +1657,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1631
1657
  }
1632
1658
 
1633
1659
  /**
1634
- * Set environment variables of a device with device pin authorization
1660
+ * Set device environment variables using a PIN
1661
+ * 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
1662
  * @param {String} productUID
1636
1663
  * @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
1664
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
1665
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1639
1666
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1640
1667
  */
1641
1668
  }, {
@@ -1675,11 +1702,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1675
1702
  }
1676
1703
 
1677
1704
  /**
1678
- * Set environment variables of a device with device pin authorization
1705
+ * Set device environment variables using a PIN
1706
+ * 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
1707
  * @param {String} productUID
1680
1708
  * @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
1709
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
1710
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1683
1711
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1684
1712
  */
1685
1713
  }, {
@@ -1743,11 +1771,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1771
  }
1744
1772
 
1745
1773
  /**
1746
- * Update a note in a .db or .qi notefile
1774
+ * Update a note in a .db notefile
1775
+ * 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
1776
  * @param {String} projectOrProductUID
1748
1777
  * @param {String} deviceUID
1749
- * @param {String} notefileID
1750
- * @param {String} noteID
1778
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1779
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1751
1780
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1781
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1753
1782
  */
@@ -1792,11 +1821,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1792
1821
  }
1793
1822
 
1794
1823
  /**
1795
- * Update a note in a .db or .qi notefile
1824
+ * Update a note in a .db notefile
1825
+ * 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
1826
  * @param {String} projectOrProductUID
1797
1827
  * @param {String} deviceUID
1798
- * @param {String} notefileID
1799
- * @param {String} noteID
1828
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1829
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1800
1830
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1801
1831
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1802
1832
  */