@blues-inc/notehub-js 6.7.0-beta.9 → 7.0.0-beta.1

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 (192) hide show
  1. package/README.md +156 -153
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +15 -13
  4. package/dist/api/AuthorizationApi.js +11 -50
  5. package/dist/api/DescriptionApi.js +57 -41
  6. package/dist/api/DeviceApi.js +428 -297
  7. package/dist/api/EventApi.js +85 -224
  8. package/dist/api/ExternalDevicesApi.js +31 -25
  9. package/dist/api/JobsApi.js +75 -57
  10. package/dist/api/MonitorApi.js +37 -27
  11. package/dist/api/OrganizationApi.js +25 -19
  12. package/dist/api/ProjectApi.js +421 -333
  13. package/dist/api/RouteApi.js +67 -55
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +83 -73
  16. package/dist/api/WebhookApi.js +95 -73
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +3 -3
  20. package/dist/model/Alert.js +16 -9
  21. package/dist/model/AlertDataInner.js +9 -4
  22. package/dist/model/AlertNotificationsInner.js +14 -4
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +14 -2
  25. package/dist/model/AzureRoute.js +8 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +6 -5
  28. package/dist/model/BillingAccount.js +5 -3
  29. package/dist/model/BlynkRoute.js +6 -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 +7 -7
  34. package/dist/model/Contact.js +5 -1
  35. package/dist/model/CreateFleetRequest.js +4 -3
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +37 -25
  38. package/dist/model/CreateProductRequest.js +7 -6
  39. package/dist/model/CreateProjectRequest.js +5 -5
  40. package/dist/model/CreateProjectSecretRequest.js +5 -5
  41. package/dist/model/CreateUpdateRepository.js +3 -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 +2 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +5 -4
  48. package/dist/model/DataSetField.js +2 -2
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +7 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +6 -6
  56. package/dist/model/DescriptionRecordList.js +3 -2
  57. package/dist/model/Device.js +27 -8
  58. package/dist/model/DeviceDfuHistory.js +3 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +4 -2
  61. package/dist/model/DeviceDfuStateMachine.js +2 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  63. package/dist/model/DeviceDfuStatus.js +3 -3
  64. package/dist/model/DeviceDfuStatusPage.js +4 -2
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +37 -5
  67. package/dist/model/DeviceTowerInfo.js +6 -1
  68. package/dist/model/DeviceUsage.js +7 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +29 -6
  71. package/dist/model/EnvTreeJsonNode.js +17 -6
  72. package/dist/model/EnvVar.js +5 -1
  73. package/dist/model/EnvironmentVariables.js +3 -2
  74. package/dist/model/Error.js +4 -1
  75. package/dist/model/Event.js +7 -7
  76. package/dist/model/Filter.js +5 -5
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +6 -6
  79. package/dist/model/Fleet.js +11 -10
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +2 -2
  82. package/dist/model/GetApiUsage200Response.js +2 -2
  83. package/dist/model/GetDataUsage200Response.js +2 -2
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +5 -3
  96. package/dist/model/GetDevicePublicKeys200Response.js +2 -2
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
  98. package/dist/model/GetDeviceSessions200Response.js +2 -2
  99. package/dist/model/GetDevices200Response.js +2 -2
  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 +3 -2
  112. package/dist/model/GetProjects200Response.js +1 -1
  113. package/dist/model/GetRouteLogsUsage200Response.js +2 -2
  114. package/dist/model/GetSessionsUsage200Response.js +3 -3
  115. package/dist/model/GetWebhooks200Response.js +1 -1
  116. package/dist/model/GoogleRoute.js +6 -1
  117. package/dist/model/HealthLog.js +7 -4
  118. package/dist/model/HttpRoute.js +7 -2
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +2 -1
  122. package/dist/model/JobDefinitionSelect.js +4 -3
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +13 -7
  127. package/dist/model/Monitor.js +18 -12
  128. package/dist/model/MonitorAlertRoutesInner.js +60 -14
  129. package/dist/model/MqttRoute.js +14 -1
  130. package/dist/model/Note.js +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +4 -2
  133. package/dist/model/NotefileSchema.js +5 -3
  134. package/dist/model/NotehubRoute.js +7 -3
  135. package/dist/model/NotehubRouteSummary.js +6 -1
  136. package/dist/model/OAuth2Error.js +1 -1
  137. package/dist/model/OAuth2TokenResponse.js +1 -1
  138. package/dist/model/Organization.js +5 -3
  139. package/dist/model/Product.js +8 -4
  140. package/dist/model/Project.js +7 -4
  141. package/dist/model/ProjectMember.js +5 -4
  142. package/dist/model/ProjectSecret.js +7 -7
  143. package/dist/model/ProvisionDeviceRequest.js +5 -5
  144. package/dist/model/ProxyRoute.js +6 -1
  145. package/dist/model/QubitroRoute.js +7 -1
  146. package/dist/model/RadRoute.js +9 -1
  147. package/dist/model/Repository.js +3 -3
  148. package/dist/model/RepositoryListResponse.js +3 -2
  149. package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
  150. package/dist/model/RepositoryTokenRequest.js +1 -1
  151. package/dist/model/RepositoryTokenResponse.js +1 -1
  152. package/dist/model/RouteLog.js +9 -9
  153. package/dist/model/RouteTransformSettings.js +5 -5
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +16 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +6 -4
  159. package/dist/model/SignalDevice200Response.js +2 -2
  160. package/dist/model/SimUsage.js +1 -1
  161. package/dist/model/Skill.js +210 -0
  162. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
  163. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +79 -51
  164. package/dist/model/SkillSummary.js +208 -0
  165. package/dist/model/SkillWrite.js +128 -0
  166. package/dist/model/SkillWriteResult.js +154 -0
  167. package/dist/model/SlackBearerNotification.js +31 -8
  168. package/dist/model/SlackRoute.js +9 -1
  169. package/dist/model/SlackWebHookNotification.js +31 -8
  170. package/dist/model/SnowflakeRoute.js +9 -1
  171. package/dist/model/SnowpipeStreamingRoute.js +12 -1
  172. package/dist/model/ThingworxRoute.js +6 -1
  173. package/dist/model/TowerLocation.js +1 -1
  174. package/dist/model/TwilioNotification.js +167 -0
  175. package/dist/model/TwilioRoute.js +9 -1
  176. package/dist/model/UpdateFleetRequest.js +7 -6
  177. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  178. package/dist/model/UpdateProjectSecretRequest.js +3 -3
  179. package/dist/model/UploadMetadata.js +1 -1
  180. package/dist/model/UsageApiData.js +3 -2
  181. package/dist/model/UsageData.js +7 -3
  182. package/dist/model/UsageEventsData.js +5 -2
  183. package/dist/model/UsageEventsResponse.js +4 -3
  184. package/dist/model/UsageRouteLogsData.js +10 -6
  185. package/dist/model/UsageSessionsData.js +11 -5
  186. package/dist/model/UserDfuStateMachine.js +1 -1
  187. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  188. package/dist/model/UserFirmwareInfo.js +1 -1
  189. package/dist/model/WebhookSettings.js +4 -4
  190. package/package.json +1 -1
  191. package/dist/api/BillingAccountApi.js +0 -167
  192. 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.9
51
+ * @version 7.0.0-beta.1
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
68
- * @param {String} projectOrProductUID
69
- * @param {String} deviceUID
70
- * @param {String} notefileID
71
- * @param {String} noteID
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.
69
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
70
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
- * @param {String} projectOrProductUID
118
- * @param {String} deviceUID
119
- * @param {String} notefileID
120
- * @param {String} noteID
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.
119
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
120
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
134
- * @param {String} projectOrProductUID
135
- * @param {String} deviceUID
136
- * @param {String} notefileID
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.
137
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
138
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
177
- * @param {String} projectOrProductUID
178
- * @param {String} deviceUID
179
- * @param {String} notefileID
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.
181
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
182
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
193
- * @param {String} projectOrProductUID
194
- * @param {String} deviceUID
195
- * @param {String} notefileID
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.
198
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
199
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
231
- * @param {String} projectOrProductUID
232
- * @param {String} deviceUID
233
- * @param {String} notefileID
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.
237
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
238
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,9 +248,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
242
248
  }
243
249
 
244
250
  /**
245
- * Delete Device
246
- * @param {String} projectOrProductUID
247
- * @param {String} deviceUID
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.
253
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
254
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
248
255
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
249
256
  */
250
257
  }, {
@@ -274,9 +281,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
274
281
  }
275
282
 
276
283
  /**
277
- * Delete Device
278
- * @param {String} projectOrProductUID
279
- * @param {String} deviceUID
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.
286
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
287
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
280
288
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
281
289
  */
282
290
  }, {
@@ -288,9 +296,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
288
296
  }
289
297
 
290
298
  /**
291
- * Delete environment variable of a device
292
- * @param {String} projectOrProductUID
293
- * @param {String} deviceUID
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.
301
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
302
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
294
303
  * @param {String} key The environment variable key to delete.
295
304
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
296
305
  */
@@ -326,9 +335,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
326
335
  }
327
336
 
328
337
  /**
329
- * Delete environment variable of a device
330
- * @param {String} projectOrProductUID
331
- * @param {String} deviceUID
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.
340
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
341
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
332
342
  * @param {String} key The environment variable key to delete.
333
343
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
334
344
  */
@@ -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
345
- * @param {String} projectOrProductUID
346
- * @param {String} deviceUID
347
- * @param {String} notefileID
348
- * @param {String} noteID
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.
356
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
357
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
389
- * @param {String} projectOrProductUID
390
- * @param {String} deviceUID
391
- * @param {String} notefileID
392
- * @param {String} noteID
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.
401
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
402
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
405
- * @param {String} projectOrProductUID
406
- * @param {String} deviceUID
407
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
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.
418
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
419
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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.
442
- * @param {String} projectOrProductUID
443
- * @param {String} deviceUID
444
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
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.
456
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
457
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,9 +467,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
453
467
  }
454
468
 
455
469
  /**
456
- * Disable Device
457
- * @param {String} projectOrProductUID
458
- * @param {String} deviceUID
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.
472
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
473
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
459
474
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
460
475
  */
461
476
  }, {
@@ -485,9 +500,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
485
500
  }
486
501
 
487
502
  /**
488
- * Disable Device
489
- * @param {String} projectOrProductUID
490
- * @param {String} deviceUID
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.
505
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
506
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
491
507
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
492
508
  */
493
509
  }, {
@@ -499,9 +515,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
499
515
  }
500
516
 
501
517
  /**
502
- * Enable Device
503
- * @param {String} projectOrProductUID
504
- * @param {String} deviceUID
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.
520
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
521
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
505
522
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
506
523
  */
507
524
  }, {
@@ -531,9 +548,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
531
548
  }
532
549
 
533
550
  /**
534
- * Enable Device
535
- * @param {String} projectOrProductUID
536
- * @param {String} deviceUID
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.
553
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
554
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
537
555
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
538
556
  */
539
557
  }, {
@@ -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
549
- * @param {String} projectOrProductUID
550
- * @param {String} deviceUID
551
- * @param {String} notefileID
552
- * @param {String} noteID
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.
568
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
569
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
600
- * @param {String} projectOrProductUID
601
- * @param {String} deviceUID
602
- * @param {String} notefileID
603
- * @param {String} noteID
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.
620
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
621
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,9 +635,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
615
635
  }
616
636
 
617
637
  /**
618
- * Get Device
619
- * @param {String} projectOrProductUID
620
- * @param {String} deviceUID
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`.
640
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
641
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
622
643
  */
623
644
  }, {
@@ -647,9 +668,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
647
668
  }
648
669
 
649
670
  /**
650
- * Get Device
651
- * @param {String} projectOrProductUID
652
- * @param {String} deviceUID
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`.
673
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
674
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
653
675
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
654
676
  */
655
677
  }, {
@@ -661,9 +683,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
661
683
  }
662
684
 
663
685
  /**
664
- * Get environment variable hierarchy for a device
665
- * @param {String} projectOrProductUID
666
- * @param {String} deviceUID
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`.
688
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
689
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
668
691
  */
669
692
  }, {
@@ -693,9 +716,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
693
716
  }
694
717
 
695
718
  /**
696
- * Get environment variable hierarchy for a device
697
- * @param {String} projectOrProductUID
698
- * @param {String} deviceUID
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`.
721
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
722
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
699
723
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
700
724
  */
701
725
  }, {
@@ -707,9 +731,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
707
731
  }
708
732
 
709
733
  /**
710
- * Get environment variables of a device
711
- * @param {String} projectOrProductUID
712
- * @param {String} deviceUID
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`.
736
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
737
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
714
739
  */
715
740
  }, {
@@ -739,9 +764,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
739
764
  }
740
765
 
741
766
  /**
742
- * Get environment variables of a device
743
- * @param {String} projectOrProductUID
744
- * @param {String} deviceUID
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`.
769
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
770
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
745
771
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
746
772
  */
747
773
  }, {
@@ -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
757
- * @param {String} productUID
758
- * @param {String} deviceUID
759
- * @param {String} xAuthToken For accessing endpoints by Device pin.
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.
784
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
785
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
796
- * @param {String} productUID
797
- * @param {String} deviceUID
798
- * @param {String} xAuthToken For accessing endpoints by Device pin.
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.
824
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
825
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
811
- * @param {String} projectOrProductUID
812
- * @param {String} deviceUID
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.
840
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
841
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
852
- * @param {String} projectOrProductUID
853
- * @param {String} deviceUID
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.
882
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
883
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,13 +896,14 @@ 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.
870
- * @param {String} projectOrProductUID
871
- * @param {String} deviceUID
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.
901
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
902
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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).
873
904
  * @param {Object} opts Optional parameters
874
- * @param {Number} opts.pageSize (default to 50)
875
- * @param {Number} opts.pageNum (default to 1)
905
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
906
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
876
907
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
877
908
  */
878
909
  }, {
@@ -911,13 +942,14 @@ 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.
915
- * @param {String} projectOrProductUID
916
- * @param {String} deviceUID
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.
947
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
948
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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).
918
950
  * @param {Object} opts Optional parameters
919
- * @param {Number} opts.pageSize (default to 50)
920
- * @param {Number} opts.pageNum (default to 1)
951
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
952
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
921
953
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
922
954
  */
923
955
  }, {
@@ -929,9 +961,10 @@ 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.
933
- * @param {String} projectOrProductUID
934
- * @param {String} deviceUID
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.
966
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
967
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
935
968
  * @param {Object} opts Optional parameters
936
969
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
937
970
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -968,9 +1001,10 @@ 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.
972
- * @param {String} projectOrProductUID
973
- * @param {String} deviceUID
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.
1006
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1007
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
974
1008
  * @param {Object} opts Optional parameters
975
1009
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
976
1010
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -985,9 +1019,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
985
1019
  }
986
1020
 
987
1021
  /**
988
- * Get Device Latest Events
989
- * @param {String} projectOrProductUID
990
- * @param {String} deviceUID
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.
1024
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1025
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
992
1027
  */
993
1028
  }, {
@@ -1017,9 +1052,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1017
1052
  }
1018
1053
 
1019
1054
  /**
1020
- * Get Device Latest Events
1021
- * @param {String} projectOrProductUID
1022
- * @param {String} deviceUID
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.
1057
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1058
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1023
1059
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
1024
1060
  */
1025
1061
  }, {
@@ -1031,9 +1067,10 @@ 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.
1035
- * @param {String} projectOrProductUID
1036
- * @param {String} deviceUID
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.
1072
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1073
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
1038
1075
  */
1039
1076
  }, {
@@ -1063,9 +1100,10 @@ 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.
1067
- * @param {String} projectOrProductUID
1068
- * @param {String} deviceUID
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.
1105
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1106
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1069
1107
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
1070
1108
  */
1071
1109
  }, {
@@ -1077,9 +1115,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1077
1115
  }
1078
1116
 
1079
1117
  /**
1080
- * Get Device Public Key
1081
- * @param {String} projectOrProductUID
1082
- * @param {String} deviceUID
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`.
1120
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1121
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
1084
1123
  */
1085
1124
  }, {
@@ -1109,9 +1148,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1109
1148
  }
1110
1149
 
1111
1150
  /**
1112
- * Get Device Public Key
1113
- * @param {String} projectOrProductUID
1114
- * @param {String} deviceUID
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`.
1153
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1154
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1115
1155
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
1116
1156
  */
1117
1157
  }, {
@@ -1123,12 +1163,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1123
1163
  }
1124
1164
 
1125
1165
  /**
1126
- * Get Device Public Keys of a Project
1127
- * @param {String} projectOrProductUID
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`.
1168
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1128
1169
  * @param {Object} opts Optional parameters
1129
- * @param {Number} opts.pageSize (default to 50)
1130
- * @param {Number} opts.pageNum (default to 1)
1131
- * @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).
1170
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1171
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1172
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1132
1173
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
1133
1174
  */
1134
1175
  }, {
@@ -1158,12 +1199,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1158
1199
  }
1159
1200
 
1160
1201
  /**
1161
- * Get Device Public Keys of a Project
1162
- * @param {String} projectOrProductUID
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`.
1204
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1163
1205
  * @param {Object} opts Optional parameters
1164
- * @param {Number} opts.pageSize (default to 50)
1165
- * @param {Number} opts.pageNum (default to 1)
1166
- * @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).
1206
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1207
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1208
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1167
1209
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
1168
1210
  */
1169
1211
  }, {
@@ -1175,16 +1217,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1175
1217
  }
1176
1218
 
1177
1219
  /**
1178
- * Get Device Sessions
1179
- * @param {String} projectOrProductUID
1180
- * @param {String} deviceUID
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. For every device's sessions, use `GetSessions`. Paginated.
1222
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1223
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1181
1224
  * @param {Object} opts Optional parameters
1182
- * @param {Number} opts.pageSize (default to 50)
1183
- * @param {Number} opts.pageNum (default to 1)
1184
- * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1225
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1226
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1227
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
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,16 +1265,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1222
1265
  }
1223
1266
 
1224
1267
  /**
1225
- * Get Device Sessions
1226
- * @param {String} projectOrProductUID
1227
- * @param {String} deviceUID
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. For every device's sessions, use `GetSessions`. Paginated.
1270
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1271
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1228
1272
  * @param {Object} opts Optional parameters
1229
- * @param {Number} opts.pageSize (default to 50)
1230
- * @param {Number} opts.pageNum (default to 1)
1231
- * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1273
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1274
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1275
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
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,21 +1287,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1243
1287
  }
1244
1288
 
1245
1289
  /**
1246
- * Get Devices of a Project
1247
- * @param {String} projectOrProductUID
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.
1292
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1248
1293
  * @param {Object} opts Optional parameters
1249
- * @param {Number} opts.pageSize (default to 50)
1250
- * @param {Number} opts.pageNum (default to 1)
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).
1252
- * @param {Array.<String>} opts.deviceUID A Device UID.
1253
- * @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
- * @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
- * @param {Array.<String>} opts.fleetUID
1256
- * @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
- * @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
- * @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.
1260
- * @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.
1294
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1295
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1296
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1297
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1298
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1299
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1300
+ * @param {Array.<String>} opts.fleetUID Return only devices in these fleets (FleetUIDs). Repeat for more than one.
1301
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1302
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1303
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1304
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1305
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1261
1306
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1262
1307
  */
1263
1308
  }, {
@@ -1296,21 +1341,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1296
1341
  }
1297
1342
 
1298
1343
  /**
1299
- * Get Devices of a Project
1300
- * @param {String} projectOrProductUID
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.
1346
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1301
1347
  * @param {Object} opts Optional parameters
1302
- * @param {Number} opts.pageSize (default to 50)
1303
- * @param {Number} opts.pageNum (default to 1)
1304
- * @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.
1306
- * @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
- * @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
- * @param {Array.<String>} opts.fleetUID
1309
- * @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
- * @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
- * @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.
1313
- * @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.
1348
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1349
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1350
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1351
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1352
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1353
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1354
+ * @param {Array.<String>} opts.fleetUID Return only devices in these fleets (FleetUIDs). Repeat for more than one.
1355
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1356
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1357
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1358
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1359
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1314
1360
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1315
1361
  */
1316
1362
  }, {
@@ -1322,21 +1368,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1322
1368
  }
1323
1369
 
1324
1370
  /**
1325
- * Get Devices of a Fleet within a Project
1326
- * @param {String} projectOrProductUID
1327
- * @param {String} fleetUID
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.
1373
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1374
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1328
1375
  * @param {Object} opts Optional parameters
1329
- * @param {Number} opts.pageSize (default to 50)
1330
- * @param {Number} opts.pageNum (default to 1)
1331
- * @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.
1333
- * @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
- * @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
- * @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
- * @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
- * @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.
1339
- * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1376
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1377
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1378
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1379
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1380
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1381
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1382
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1383
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1384
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1385
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1386
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1340
1387
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1341
1388
  */
1342
1389
  }, {
@@ -1379,21 +1426,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1379
1426
  }
1380
1427
 
1381
1428
  /**
1382
- * Get Devices of a Fleet within a Project
1383
- * @param {String} projectOrProductUID
1384
- * @param {String} fleetUID
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.
1431
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1432
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1385
1433
  * @param {Object} opts Optional parameters
1386
- * @param {Number} opts.pageSize (default to 50)
1387
- * @param {Number} opts.pageNum (default to 1)
1388
- * @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.
1390
- * @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
- * @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
- * @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
- * @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
- * @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.
1396
- * @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.
1434
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1435
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1436
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1437
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1438
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1439
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1440
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1441
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1442
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1443
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1444
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1397
1445
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1398
1446
  */
1399
1447
  }, {
@@ -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
1409
- * @param {String} projectOrProductUID
1410
- * @param {String} deviceUID
1411
- * @param {String} notefileID
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.
1458
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1459
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
1456
- * @param {String} projectOrProductUID
1457
- * @param {String} deviceUID
1458
- * @param {String} notefileID
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.
1506
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1507
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,81 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1521
  }
1472
1522
 
1473
1523
  /**
1474
- * Lists .qi and .db files for the device
1475
- * @param {String} projectOrProductUID
1476
- * @param {String} deviceUID
1524
+ * List sessions in a project
1525
+ * List the sessions of every device in a project, as `GetDeviceSessions` does for one device. `startDate` and `endDate` filter on when the session began. `deviceUID` and `fleetUID` each match any of their values; `fleetUID` matches the fleets recorded on the session. Paginated.
1526
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1477
1527
  * @param {Object} opts Optional parameters
1478
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1528
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1529
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1530
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1531
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1532
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1533
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1534
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1535
+ * @param {Array.<String>} opts.fleetUID Return only devices in these fleets (FleetUIDs). Repeat for more than one.
1536
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1537
+ */
1538
+ }, {
1539
+ key: "getSessionsWithHttpInfo",
1540
+ value: function getSessionsWithHttpInfo(projectOrProductUID, opts) {
1541
+ opts = opts || {};
1542
+ var postBody = null;
1543
+ // verify the required parameter 'projectOrProductUID' is set
1544
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1545
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getSessions");
1546
+ }
1547
+ var pathParams = {
1548
+ projectOrProductUID: projectOrProductUID
1549
+ };
1550
+ var queryParams = {
1551
+ pageSize: opts["pageSize"],
1552
+ pageNum: opts["pageNum"],
1553
+ cursor: opts["cursor"],
1554
+ startDate: opts["startDate"],
1555
+ endDate: opts["endDate"],
1556
+ firstSync: opts["firstSync"],
1557
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1558
+ fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi")
1559
+ };
1560
+ var headerParams = {};
1561
+ var formParams = {};
1562
+ var authNames = ["personalAccessToken"];
1563
+ var contentTypes = [];
1564
+ var accepts = ["application/json"];
1565
+ var returnType = _GetDeviceSessions200Response["default"];
1566
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1567
+ }
1568
+
1569
+ /**
1570
+ * List sessions in a project
1571
+ * List the sessions of every device in a project, as `GetDeviceSessions` does for one device. `startDate` and `endDate` filter on when the session began. `deviceUID` and `fleetUID` each match any of their values; `fleetUID` matches the fleets recorded on the session. Paginated.
1572
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1573
+ * @param {Object} opts Optional parameters
1574
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1575
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1576
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1577
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1578
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1579
+ * @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
1580
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1581
+ * @param {Array.<String>} opts.fleetUID Return only devices in these fleets (FleetUIDs). Repeat for more than one.
1582
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1583
+ */
1584
+ }, {
1585
+ key: "getSessions",
1586
+ value: function getSessions(projectOrProductUID, opts) {
1587
+ return this.getSessionsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1588
+ return response_and_data.data;
1589
+ });
1590
+ }
1591
+
1592
+ /**
1593
+ * List a device's notefiles and notes
1594
+ * 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`.
1595
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1596
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1597
+ * @param {Object} opts Optional parameters
1598
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1479
1599
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1480
1600
  * @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
1601
  */
@@ -1510,11 +1630,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1510
1630
  }
1511
1631
 
1512
1632
  /**
1513
- * Lists .qi and .db files for the device
1514
- * @param {String} projectOrProductUID
1515
- * @param {String} deviceUID
1633
+ * List a device's notefiles and notes
1634
+ * 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`.
1635
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1636
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1516
1637
  * @param {Object} opts Optional parameters
1517
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1638
+ * @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
1518
1639
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1519
1640
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1520
1641
  */
@@ -1527,10 +1648,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1527
1648
  }
1528
1649
 
1529
1650
  /**
1530
- * Provision Device for a Project
1531
- * @param {String} projectOrProductUID
1532
- * @param {String} deviceUID
1533
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1651
+ * Provision a Notecard
1652
+ * 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.
1653
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1654
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1655
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1534
1656
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1535
1657
  */
1536
1658
  }, {
@@ -1564,10 +1686,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1564
1686
  }
1565
1687
 
1566
1688
  /**
1567
- * Provision Device for a Project
1568
- * @param {String} projectOrProductUID
1569
- * @param {String} deviceUID
1570
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1689
+ * Provision a Notecard
1690
+ * 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.
1691
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1692
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1693
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
1571
1694
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1572
1695
  */
1573
1696
  }, {
@@ -1579,10 +1702,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1579
1702
  }
1580
1703
 
1581
1704
  /**
1582
- * Set environment variables of a device
1583
- * @param {String} projectOrProductUID
1584
- * @param {String} deviceUID
1585
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1705
+ * Set device environment variables
1706
+ * 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.
1707
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1708
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1709
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1586
1710
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1587
1711
  */
1588
1712
  }, {
@@ -1616,10 +1740,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1616
1740
  }
1617
1741
 
1618
1742
  /**
1619
- * Set environment variables of a device
1620
- * @param {String} projectOrProductUID
1621
- * @param {String} deviceUID
1622
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1743
+ * Set device environment variables
1744
+ * 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.
1745
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1746
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1747
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1623
1748
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1624
1749
  */
1625
1750
  }, {
@@ -1631,11 +1756,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1631
1756
  }
1632
1757
 
1633
1758
  /**
1634
- * Set environment variables of a device with device pin authorization
1635
- * @param {String} productUID
1636
- * @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
1759
+ * Set device environment variables using a PIN
1760
+ * 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.
1761
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
1762
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1763
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
1764
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1639
1765
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1640
1766
  */
1641
1767
  }, {
@@ -1675,11 +1801,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1675
1801
  }
1676
1802
 
1677
1803
  /**
1678
- * Set environment variables of a device with device pin authorization
1679
- * @param {String} productUID
1680
- * @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
1804
+ * Set device environment variables using a PIN
1805
+ * 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.
1806
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
1807
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1808
+ * @param {String} xAuthToken The device's PIN, used instead of an API token.
1809
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1683
1810
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1684
1811
  */
1685
1812
  }, {
@@ -1691,10 +1818,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1691
1818
  }
1692
1819
 
1693
1820
  /**
1694
- * Send a signal from Notehub to a Notecard.
1695
- * @param {String} projectOrProductUID
1696
- * @param {String} deviceUID
1697
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1821
+ * Send a signal to a connected Notecard
1822
+ * 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.
1823
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1824
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1825
+ * @param {module:model/Body} body The signal to send.
1698
1826
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1699
1827
  */
1700
1828
  }, {
@@ -1728,10 +1856,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1728
1856
  }
1729
1857
 
1730
1858
  /**
1731
- * Send a signal from Notehub to a Notecard.
1732
- * @param {String} projectOrProductUID
1733
- * @param {String} deviceUID
1734
- * @param {module:model/Body} body Body or payload of signal to be sent to the device
1859
+ * Send a signal to a connected Notecard
1860
+ * 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.
1861
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1862
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1863
+ * @param {module:model/Body} body The signal to send.
1735
1864
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1736
1865
  */
1737
1866
  }, {
@@ -1743,11 +1872,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1872
  }
1744
1873
 
1745
1874
  /**
1746
- * Update a note in a .db or .qi notefile
1747
- * @param {String} projectOrProductUID
1748
- * @param {String} deviceUID
1749
- * @param {String} notefileID
1750
- * @param {String} noteID
1875
+ * Update a note in a .db notefile
1876
+ * 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.
1877
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1878
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1879
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1880
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1751
1881
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1882
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1753
1883
  */
@@ -1792,11 +1922,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1792
1922
  }
1793
1923
 
1794
1924
  /**
1795
- * Update a note in a .db or .qi notefile
1796
- * @param {String} projectOrProductUID
1797
- * @param {String} deviceUID
1798
- * @param {String} notefileID
1799
- * @param {String} noteID
1925
+ * Update a note in a .db notefile
1926
+ * 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.
1927
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1928
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1929
+ * @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
1930
+ * @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
1800
1931
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1801
1932
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1802
1933
  */