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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +150 -149
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +3 -3
  4. package/dist/api/AuthorizationApi.js +9 -48
  5. package/dist/api/DescriptionApi.js +49 -33
  6. package/dist/api/DeviceApi.js +195 -133
  7. package/dist/api/EventApi.js +61 -200
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +9 -9
  12. package/dist/api/ProjectApi.js +253 -165
  13. package/dist/api/RouteApi.js +51 -39
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +15 -15
  16. package/dist/api/WebhookApi.js +67 -45
  17. package/dist/index.js +84 -63
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +3 -3
  20. package/dist/model/Alert.js +4 -4
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +5 -5
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +2 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +3 -2
  33. package/dist/model/CloneProjectRequest.js +7 -7
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +4 -3
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +1 -1
  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 +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +4 -4
  48. package/dist/model/DataSetField.js +2 -2
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +6 -6
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +27 -8
  58. package/dist/model/DeviceDfuHistory.js +3 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +2 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  63. package/dist/model/DeviceDfuStatus.js +3 -3
  64. package/dist/model/DeviceDfuStatusPage.js +1 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +5 -5
  67. package/dist/model/DeviceTowerInfo.js +6 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +1 -1
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +7 -7
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +6 -6
  79. package/dist/model/Fleet.js +11 -10
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +1 -1
  82. package/dist/model/GetApiUsage200Response.js +1 -1
  83. package/dist/model/GetDataUsage200Response.js +1 -1
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +5 -3
  96. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
  98. package/dist/model/GetDeviceSessions200Response.js +1 -1
  99. package/dist/model/GetDevices200Response.js +1 -1
  100. package/dist/model/GetEvents200Response.js +1 -1
  101. package/dist/model/GetJobRuns200Response.js +1 -1
  102. package/dist/model/GetJobs200Response.js +1 -1
  103. package/dist/model/GetNotefile200Response.js +1 -1
  104. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
  105. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
  106. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
  107. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
  108. package/dist/model/GetOrganizations200Response.js +1 -1
  109. package/dist/model/GetProducts200Response.js +1 -1
  110. package/dist/model/GetProjectMembers200Response.js +1 -1
  111. package/dist/model/GetProjectSecretsResponse.js +1 -1
  112. package/dist/model/GetProjects200Response.js +1 -1
  113. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  114. package/dist/model/GetSessionsUsage200Response.js +1 -1
  115. package/dist/model/GetWebhooks200Response.js +1 -1
  116. package/dist/model/GoogleRoute.js +1 -1
  117. package/dist/model/HealthLog.js +7 -4
  118. package/dist/model/HttpRoute.js +1 -1
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +3 -3
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +13 -7
  127. package/dist/model/Monitor.js +1 -1
  128. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  129. package/dist/model/MqttRoute.js +1 -1
  130. package/dist/model/Note.js +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +2 -1
  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 +1 -1
  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 +1 -1
  145. package/dist/model/QubitroRoute.js +1 -1
  146. package/dist/model/RadRoute.js +1 -1
  147. package/dist/model/Repository.js +3 -3
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/{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 +1 -1
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +1 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +6 -4
  159. package/dist/model/SignalDevice200Response.js +2 -2
  160. package/dist/model/SimUsage.js +1 -1
  161. package/dist/model/Skill.js +207 -0
  162. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
  163. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
  164. package/dist/model/SkillSummary.js +205 -0
  165. package/dist/model/SkillWrite.js +128 -0
  166. package/dist/model/SkillWriteResult.js +153 -0
  167. package/dist/model/SlackBearerNotification.js +1 -1
  168. package/dist/model/SlackRoute.js +1 -1
  169. package/dist/model/SlackWebHookNotification.js +1 -1
  170. package/dist/model/SnowflakeRoute.js +1 -1
  171. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  172. package/dist/model/ThingworxRoute.js +1 -1
  173. package/dist/model/TowerLocation.js +1 -1
  174. package/dist/model/TwilioRoute.js +1 -1
  175. package/dist/model/UpdateFleetRequest.js +7 -6
  176. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  177. package/dist/model/UpdateProjectSecretRequest.js +3 -3
  178. package/dist/model/UploadMetadata.js +1 -1
  179. package/dist/model/UsageApiData.js +1 -1
  180. package/dist/model/UsageData.js +1 -1
  181. package/dist/model/UsageEventsData.js +1 -1
  182. package/dist/model/UsageEventsResponse.js +1 -1
  183. package/dist/model/UsageRouteLogsData.js +2 -2
  184. package/dist/model/UsageSessionsData.js +1 -1
  185. package/dist/model/UserDfuStateMachine.js +1 -1
  186. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  187. package/dist/model/UserFirmwareInfo.js +1 -1
  188. package/dist/model/WebhookSettings.js +4 -4
  189. package/package.json +1 -1
  190. package/dist/api/BillingAccountApi.js +0 -167
  191. package/dist/model/LoginRequest.js +0 -103
@@ -56,7 +56,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
56
56
  /**
57
57
  * Project service.
58
58
  * @module api/ProjectApi
59
- * @version 6.7.0-beta.7
59
+ * @version 6.7.0-beta.71
60
60
  */
61
61
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
62
62
  /**
@@ -72,10 +72,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
72
72
  }
73
73
 
74
74
  /**
75
- * Add Device to Fleets
75
+ * Add a device to fleets
76
+ * Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
76
77
  * @param {String} projectOrProductUID
77
78
  * @param {String} deviceUID
78
- * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
79
+ * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
79
80
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
80
81
  */
81
82
  return _createClass(ProjectApi, [{
@@ -109,10 +110,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
109
110
  }
110
111
 
111
112
  /**
112
- * Add Device to Fleets
113
+ * Add a device to fleets
114
+ * Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
113
115
  * @param {String} projectOrProductUID
114
116
  * @param {String} deviceUID
115
- * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
117
+ * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
116
118
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
117
119
  */
118
120
  }, {
@@ -124,9 +126,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
124
126
  }
125
127
 
126
128
  /**
127
- * Clone a Project
129
+ * Clone a project
130
+ * Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
128
131
  * @param {String} projectOrProductUID
129
- * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
132
+ * @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
130
133
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
131
134
  */
132
135
  }, {
@@ -155,9 +158,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
155
158
  }
156
159
 
157
160
  /**
158
- * Clone a Project
161
+ * Clone a project
162
+ * Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
159
163
  * @param {String} projectOrProductUID
160
- * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
164
+ * @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
161
165
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
162
166
  */
163
167
  }, {
@@ -169,9 +173,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
169
173
  }
170
174
 
171
175
  /**
172
- * Create Fleet
176
+ * Create a fleet
177
+ * Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
173
178
  * @param {String} projectOrProductUID
174
- * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
179
+ * @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
175
180
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
176
181
  */
177
182
  }, {
@@ -200,9 +205,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
200
205
  }
201
206
 
202
207
  /**
203
- * Create Fleet
208
+ * Create a fleet
209
+ * Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
204
210
  * @param {String} projectOrProductUID
205
- * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
211
+ * @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
206
212
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
207
213
  */
208
214
  }, {
@@ -214,9 +220,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
214
220
  }
215
221
 
216
222
  /**
217
- * Create Product within a Project
223
+ * Create a product
224
+ * Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
218
225
  * @param {String} projectOrProductUID
219
- * @param {module:model/CreateProductRequest} createProductRequest Product to be created
226
+ * @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
220
227
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
221
228
  */
222
229
  }, {
@@ -245,9 +252,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
245
252
  }
246
253
 
247
254
  /**
248
- * Create Product within a Project
255
+ * Create a product
256
+ * Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
249
257
  * @param {String} projectOrProductUID
250
- * @param {module:model/CreateProductRequest} createProductRequest Product to be created
258
+ * @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
251
259
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
252
260
  */
253
261
  }, {
@@ -259,8 +267,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
259
267
  }
260
268
 
261
269
  /**
262
- * Create a Project
263
- * @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
270
+ * Create a project
271
+ * Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
272
+ * @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
264
273
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
265
274
  */
266
275
  }, {
@@ -283,8 +292,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
283
292
  }
284
293
 
285
294
  /**
286
- * Create a Project
287
- * @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
295
+ * Create a project
296
+ * Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
297
+ * @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
288
298
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
289
299
  */
290
300
  }, {
@@ -296,7 +306,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
296
306
  }
297
307
 
298
308
  /**
299
- * Create a new project secret
309
+ * Create a project secret
310
+ * Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
300
311
  * @param {String} projectOrProductUID
301
312
  * @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
302
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
@@ -327,7 +338,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
327
338
  }
328
339
 
329
340
  /**
330
- * Create a new project secret
341
+ * Create a project secret
342
+ * Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
331
343
  * @param {String} projectOrProductUID
332
344
  * @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
333
345
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
@@ -341,10 +353,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
341
353
  }
342
354
 
343
355
  /**
344
- * Remove Device from Fleets
356
+ * Remove a device from fleets
357
+ * Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
345
358
  * @param {String} projectOrProductUID
346
359
  * @param {String} deviceUID
347
- * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
360
+ * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
348
361
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
349
362
  */
350
363
  }, {
@@ -378,10 +391,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
378
391
  }
379
392
 
380
393
  /**
381
- * Remove Device from Fleets
394
+ * Remove a device from fleets
395
+ * Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
382
396
  * @param {String} projectOrProductUID
383
397
  * @param {String} deviceUID
384
- * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
398
+ * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
385
399
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
386
400
  */
387
401
  }, {
@@ -393,7 +407,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
393
407
  }
394
408
 
395
409
  /**
396
- * Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
410
+ * Delete host firmware
411
+ * Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
397
412
  * @param {String} projectOrProductUID
398
413
  * @param {module:model/String} firmwareType
399
414
  * @param {String} filename
@@ -431,7 +446,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
431
446
  }
432
447
 
433
448
  /**
434
- * Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
449
+ * Delete host firmware
450
+ * Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
435
451
  * @param {String} projectOrProductUID
436
452
  * @param {module:model/String} firmwareType
437
453
  * @param {String} filename
@@ -446,7 +462,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
446
462
  }
447
463
 
448
464
  /**
449
- * Delete Fleet
465
+ * Delete a fleet
466
+ * Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
450
467
  * @param {String} projectOrProductUID
451
468
  * @param {String} fleetUID
452
469
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -478,7 +495,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
478
495
  }
479
496
 
480
497
  /**
481
- * Delete Fleet
498
+ * Delete a fleet
499
+ * Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
482
500
  * @param {String} projectOrProductUID
483
501
  * @param {String} fleetUID
484
502
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -492,10 +510,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
492
510
  }
493
511
 
494
512
  /**
495
- * Delete environment variables of a fleet
513
+ * Delete a fleet environment variable
514
+ * Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
496
515
  * @param {String} projectOrProductUID
497
516
  * @param {String} fleetUID
498
- * @param {String} key The environment variable key to delete.
517
+ * @param {String} key Name of the environment variable to delete.
499
518
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
500
519
  */
501
520
  }, {
@@ -530,10 +549,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
530
549
  }
531
550
 
532
551
  /**
533
- * Delete environment variables of a fleet
552
+ * Delete a fleet environment variable
553
+ * Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
534
554
  * @param {String} projectOrProductUID
535
555
  * @param {String} fleetUID
536
- * @param {String} key The environment variable key to delete.
556
+ * @param {String} key Name of the environment variable to delete.
537
557
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
538
558
  */
539
559
  }, {
@@ -546,6 +566,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
546
566
 
547
567
  /**
548
568
  * Delete a product
569
+ * Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
549
570
  * @param {String} projectOrProductUID
550
571
  * @param {String} productUID
551
572
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -578,6 +599,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
578
599
 
579
600
  /**
580
601
  * Delete a product
602
+ * Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
581
603
  * @param {String} projectOrProductUID
582
604
  * @param {String} productUID
583
605
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -591,7 +613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
591
613
  }
592
614
 
593
615
  /**
594
- * Delete a Project by ProjectUID
616
+ * Delete a project
617
+ * Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
595
618
  * @param {String} projectOrProductUID
596
619
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
597
620
  */
@@ -617,7 +640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
617
640
  }
618
641
 
619
642
  /**
620
- * Delete a Project by ProjectUID
643
+ * Delete a project
644
+ * Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
621
645
  * @param {String} projectOrProductUID
622
646
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
623
647
  */
@@ -630,9 +654,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
630
654
  }
631
655
 
632
656
  /**
633
- * Delete an environment variable of a project by key
657
+ * Delete a project environment variable
658
+ * Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
634
659
  * @param {String} projectOrProductUID
635
- * @param {String} key The environment variable key to delete.
660
+ * @param {String} key Name of the environment variable to delete.
636
661
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
637
662
  */
638
663
  }, {
@@ -662,9 +687,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
662
687
  }
663
688
 
664
689
  /**
665
- * Delete an environment variable of a project by key
690
+ * Delete a project environment variable
691
+ * Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
666
692
  * @param {String} projectOrProductUID
667
- * @param {String} key The environment variable key to delete.
693
+ * @param {String} key Name of the environment variable to delete.
668
694
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
669
695
  */
670
696
  }, {
@@ -676,9 +702,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
676
702
  }
677
703
 
678
704
  /**
679
- * Delete a project secret by name
705
+ * Delete a project secret
706
+ * Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
680
707
  * @param {String} projectOrProductUID
681
- * @param {String} secretName The name of the secret.
708
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
682
709
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
683
710
  */
684
711
  }, {
@@ -708,9 +735,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
708
735
  }
709
736
 
710
737
  /**
711
- * Delete a project secret by name
738
+ * Delete a project secret
739
+ * Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
712
740
  * @param {String} projectOrProductUID
713
- * @param {String} secretName The name of the secret.
741
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
714
742
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
715
743
  */
716
744
  }, {
@@ -722,7 +750,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
722
750
  }
723
751
 
724
752
  /**
725
- * Disable the project-level event JSONata transformation
753
+ * Disable the global event transformation
754
+ * Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
726
755
  * @param {String} projectOrProductUID
727
756
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
728
757
  */
@@ -748,7 +777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
748
777
  }
749
778
 
750
779
  /**
751
- * Disable the project-level event JSONata transformation
780
+ * Disable the global event transformation
781
+ * Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
752
782
  * @param {String} projectOrProductUID
753
783
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
754
784
  */
@@ -761,9 +791,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
761
791
  }
762
792
 
763
793
  /**
764
- * Download firmware binary
794
+ * Download host firmware
795
+ * Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
765
796
  * @param {String} projectOrProductUID
766
- * @param {module:model/String} firmwareType
797
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
767
798
  * @param {String} filename
768
799
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
769
800
  */
@@ -799,9 +830,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
799
830
  }
800
831
 
801
832
  /**
802
- * Download firmware binary
833
+ * Download host firmware
834
+ * Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
803
835
  * @param {String} projectOrProductUID
804
- * @param {module:model/String} firmwareType
836
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
805
837
  * @param {String} filename
806
838
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
807
839
  */
@@ -814,7 +846,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
814
846
  }
815
847
 
816
848
  /**
817
- * Enable the project-level event JSONata transformation
849
+ * Enable the global event transformation
850
+ * Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
818
851
  * @param {String} projectOrProductUID
819
852
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
820
853
  */
@@ -840,7 +873,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
840
873
  }
841
874
 
842
875
  /**
843
- * Enable the project-level event JSONata transformation
876
+ * Enable the global event transformation
877
+ * Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
844
878
  * @param {String} projectOrProductUID
845
879
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
846
880
  */
@@ -854,7 +888,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
854
888
 
855
889
  /**
856
890
  * Get AWS role configuration for role-based authentication
857
- * Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
891
+ * Get the AWS account ID and External ID for the IAM role trust policy used by AWS routes with role-based authentication. The External ID is created on the first call and stays the same after that.
858
892
  * @param {String} projectOrProductUID
859
893
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
860
894
  */
@@ -881,7 +915,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
881
915
 
882
916
  /**
883
917
  * Get AWS role configuration for role-based authentication
884
- * Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
918
+ * Get the AWS account ID and External ID for the IAM role trust policy used by AWS routes with role-based authentication. The External ID is created on the first call and stays the same after that.
885
919
  * @param {String} projectOrProductUID
886
920
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
887
921
  */
@@ -894,10 +928,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
894
928
  }
895
929
 
896
930
  /**
897
- * Get device DFU history for host or Notecard firmware
931
+ * Get a device's firmware update history
932
+ * Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
898
933
  * @param {String} projectOrProductUID
899
934
  * @param {String} deviceUID
900
- * @param {module:model/String} firmwareType
935
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
901
936
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
902
937
  */
903
938
  }, {
@@ -932,10 +967,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
932
967
  }
933
968
 
934
969
  /**
935
- * Get device DFU history for host or Notecard firmware
970
+ * Get a device's firmware update history
971
+ * Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
936
972
  * @param {String} projectOrProductUID
937
973
  * @param {String} deviceUID
938
- * @param {module:model/String} firmwareType
974
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
939
975
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
940
976
  */
941
977
  }, {
@@ -947,10 +983,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
947
983
  }
948
984
 
949
985
  /**
950
- * Get device DFU history for host or Notecard firmware
986
+ * Get a device's firmware update status
987
+ * Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
951
988
  * @param {String} projectOrProductUID
952
989
  * @param {String} deviceUID
953
- * @param {module:model/String} firmwareType
990
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
954
991
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
955
992
  */
956
993
  }, {
@@ -985,10 +1022,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
985
1022
  }
986
1023
 
987
1024
  /**
988
- * Get device DFU history for host or Notecard firmware
1025
+ * Get a device's firmware update status
1026
+ * Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
989
1027
  * @param {String} projectOrProductUID
990
1028
  * @param {String} deviceUID
991
- * @param {module:model/String} firmwareType
1029
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
992
1030
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
993
1031
  */
994
1032
  }, {
@@ -1000,7 +1038,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1000
1038
  }
1001
1039
 
1002
1040
  /**
1003
- * Get Device Fleets
1041
+ * List a device's fleets
1042
+ * List the fleets a device belongs to, with only each fleet's UID, label and creation time. For a fleet's full details use `GetFleet`. Returns 404 if the device isn't in the project.
1004
1043
  * @param {String} projectOrProductUID
1005
1044
  * @param {String} deviceUID
1006
1045
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
@@ -1032,7 +1071,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1032
1071
  }
1033
1072
 
1034
1073
  /**
1035
- * Get Device Fleets
1074
+ * List a device's fleets
1075
+ * List the fleets a device belongs to, with only each fleet's UID, label and creation time. For a fleet's full details use `GetFleet`. Returns 404 if the device isn't in the project.
1036
1076
  * @param {String} projectOrProductUID
1037
1077
  * @param {String} deviceUID
1038
1078
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
@@ -1046,23 +1086,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1046
1086
  }
1047
1087
 
1048
1088
  /**
1049
- * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1089
+ * List devices' firmware update history
1090
+ * List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
1050
1091
  * @param {String} projectOrProductUID
1051
- * @param {module:model/String} firmwareType
1092
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1052
1093
  * @param {Object} opts Optional parameters
1053
- * @param {Number} opts.pageSize (default to 50)
1094
+ * @param {Number} opts.pageSize (default to 1000)
1054
1095
  * @param {Number} opts.pageNum (default to 1)
1055
1096
  * @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).
1056
1097
  * @param {module:model/String} opts.sortBy (default to 'captured')
1057
1098
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1058
- * @param {Array.<String>} opts.deviceUID A Device UID.
1099
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1059
1100
  * @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`.
1060
1101
  * @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.
1061
1102
  * @param {String} opts.fleetUID
1062
1103
  * @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.
1063
1104
  * @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.
1064
1105
  * @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.
1065
- * @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.
1106
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1066
1107
  * @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.
1067
1108
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
1068
1109
  */
@@ -1109,23 +1150,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1109
1150
  }
1110
1151
 
1111
1152
  /**
1112
- * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1153
+ * List devices' firmware update history
1154
+ * List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
1113
1155
  * @param {String} projectOrProductUID
1114
- * @param {module:model/String} firmwareType
1156
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1115
1157
  * @param {Object} opts Optional parameters
1116
- * @param {Number} opts.pageSize (default to 50)
1158
+ * @param {Number} opts.pageSize (default to 1000)
1117
1159
  * @param {Number} opts.pageNum (default to 1)
1118
1160
  * @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).
1119
1161
  * @param {module:model/String} opts.sortBy (default to 'captured')
1120
1162
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1121
- * @param {Array.<String>} opts.deviceUID A Device UID.
1163
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1122
1164
  * @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`.
1123
1165
  * @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.
1124
1166
  * @param {String} opts.fleetUID
1125
1167
  * @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.
1126
1168
  * @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.
1127
1169
  * @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.
1128
- * @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.
1170
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1129
1171
  * @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.
1130
1172
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
1131
1173
  */
@@ -1138,23 +1180,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1138
1180
  }
1139
1181
 
1140
1182
  /**
1141
- * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1183
+ * List devices' firmware status
1184
+ * List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
1142
1185
  * @param {String} projectOrProductUID
1143
- * @param {module:model/String} firmwareType
1186
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1144
1187
  * @param {Object} opts Optional parameters
1145
- * @param {Number} opts.pageSize (default to 50)
1188
+ * @param {Number} opts.pageSize (default to 1000)
1146
1189
  * @param {Number} opts.pageNum (default to 1)
1147
1190
  * @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).
1148
1191
  * @param {module:model/String} opts.sortBy (default to 'captured')
1149
1192
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1150
- * @param {Array.<String>} opts.deviceUID A Device UID.
1193
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1151
1194
  * @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`.
1152
1195
  * @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.
1153
1196
  * @param {String} opts.fleetUID
1154
1197
  * @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.
1155
1198
  * @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.
1156
1199
  * @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.
1157
- * @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.
1200
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1158
1201
  * @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.
1159
1202
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
1160
1203
  */
@@ -1201,23 +1244,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1201
1244
  }
1202
1245
 
1203
1246
  /**
1204
- * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1247
+ * List devices' firmware status
1248
+ * List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
1205
1249
  * @param {String} projectOrProductUID
1206
- * @param {module:model/String} firmwareType
1250
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1207
1251
  * @param {Object} opts Optional parameters
1208
- * @param {Number} opts.pageSize (default to 50)
1252
+ * @param {Number} opts.pageSize (default to 1000)
1209
1253
  * @param {Number} opts.pageNum (default to 1)
1210
1254
  * @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).
1211
1255
  * @param {module:model/String} opts.sortBy (default to 'captured')
1212
1256
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1213
- * @param {Array.<String>} opts.deviceUID A Device UID.
1257
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1214
1258
  * @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`.
1215
1259
  * @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.
1216
1260
  * @param {String} opts.fleetUID
1217
1261
  * @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.
1218
1262
  * @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.
1219
1263
  * @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.
1220
- * @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.
1264
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1221
1265
  * @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.
1222
1266
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
1223
1267
  */
@@ -1230,16 +1274,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1230
1274
  }
1231
1275
 
1232
1276
  /**
1233
- * Get Available Firmware Information
1277
+ * List firmware
1278
+ * List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
1234
1279
  * @param {String} projectOrProductUID
1235
1280
  * @param {Object} opts Optional parameters
1236
- * @param {String} opts.product
1237
- * @param {String} opts.firmwareType
1238
- * @param {String} opts.version
1239
- * @param {String} opts.target
1240
- * @param {String} opts.filename
1241
- * @param {String} opts.md5
1242
- * @param {Boolean} opts.unpublished
1281
+ * @param {String} opts.product Only firmware whose product contains this text.
1282
+ * @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
1283
+ * @param {String} opts.version Only firmware whose version contains this text.
1284
+ * @param {String} opts.target Only firmware whose target contains this text.
1285
+ * @param {String} opts.filename Only firmware whose stored filename contains this text.
1286
+ * @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
1287
+ * @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
1243
1288
  * @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
1244
1289
  * @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
1245
1290
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
@@ -1277,16 +1322,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1277
1322
  }
1278
1323
 
1279
1324
  /**
1280
- * Get Available Firmware Information
1325
+ * List firmware
1326
+ * List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
1281
1327
  * @param {String} projectOrProductUID
1282
1328
  * @param {Object} opts Optional parameters
1283
- * @param {String} opts.product
1284
- * @param {String} opts.firmwareType
1285
- * @param {String} opts.version
1286
- * @param {String} opts.target
1287
- * @param {String} opts.filename
1288
- * @param {String} opts.md5
1289
- * @param {Boolean} opts.unpublished
1329
+ * @param {String} opts.product Only firmware whose product contains this text.
1330
+ * @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
1331
+ * @param {String} opts.version Only firmware whose version contains this text.
1332
+ * @param {String} opts.target Only firmware whose target contains this text.
1333
+ * @param {String} opts.filename Only firmware whose stored filename contains this text.
1334
+ * @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
1335
+ * @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
1290
1336
  * @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
1291
1337
  * @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
1292
1338
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
@@ -1300,7 +1346,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1300
1346
  }
1301
1347
 
1302
1348
  /**
1303
- * Get Fleet
1349
+ * Get a fleet
1350
+ * Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
1304
1351
  * @param {String} projectOrProductUID
1305
1352
  * @param {String} fleetUID
1306
1353
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
@@ -1332,7 +1379,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1332
1379
  }
1333
1380
 
1334
1381
  /**
1335
- * Get Fleet
1382
+ * Get a fleet
1383
+ * Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
1336
1384
  * @param {String} projectOrProductUID
1337
1385
  * @param {String} fleetUID
1338
1386
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
@@ -1346,7 +1394,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1346
1394
  }
1347
1395
 
1348
1396
  /**
1349
- * Get environment variable hierarchy for a device
1397
+ * Get a fleet's environment hierarchy
1398
+ * Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
1350
1399
  * @param {String} projectOrProductUID
1351
1400
  * @param {String} fleetUID
1352
1401
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
@@ -1378,7 +1427,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1378
1427
  }
1379
1428
 
1380
1429
  /**
1381
- * Get environment variable hierarchy for a device
1430
+ * Get a fleet's environment hierarchy
1431
+ * Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
1382
1432
  * @param {String} projectOrProductUID
1383
1433
  * @param {String} fleetUID
1384
1434
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
@@ -1392,7 +1442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1392
1442
  }
1393
1443
 
1394
1444
  /**
1395
- * Get environment variables of a fleet
1445
+ * Get fleet environment variables
1446
+ * Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
1396
1447
  * @param {String} projectOrProductUID
1397
1448
  * @param {String} fleetUID
1398
1449
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
@@ -1424,7 +1475,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1424
1475
  }
1425
1476
 
1426
1477
  /**
1427
- * Get environment variables of a fleet
1478
+ * Get fleet environment variables
1479
+ * Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
1428
1480
  * @param {String} projectOrProductUID
1429
1481
  * @param {String} fleetUID
1430
1482
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
@@ -1438,7 +1490,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1438
1490
  }
1439
1491
 
1440
1492
  /**
1441
- * Get Project Fleets
1493
+ * List fleets
1494
+ * List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
1442
1495
  * @param {String} projectOrProductUID
1443
1496
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
1444
1497
  */
@@ -1464,7 +1517,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1464
1517
  }
1465
1518
 
1466
1519
  /**
1467
- * Get Project Fleets
1520
+ * List fleets
1521
+ * List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
1468
1522
  * @param {String} projectOrProductUID
1469
1523
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1470
1524
  */
@@ -1477,7 +1531,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1477
1531
  }
1478
1532
 
1479
1533
  /**
1480
- * Get variable format for a notefile
1534
+ * List Notefile schemas
1535
+ * List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
1481
1536
  * @param {String} projectOrProductUID
1482
1537
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
1483
1538
  */
@@ -1503,7 +1558,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1503
1558
  }
1504
1559
 
1505
1560
  /**
1506
- * Get variable format for a notefile
1561
+ * List Notefile schemas
1562
+ * List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
1507
1563
  * @param {String} projectOrProductUID
1508
1564
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
1509
1565
  */
@@ -1516,7 +1572,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1516
1572
  }
1517
1573
 
1518
1574
  /**
1519
- * Get Products within a Project
1575
+ * List a project's products
1576
+ * List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
1520
1577
  * @param {String} projectOrProductUID
1521
1578
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
1522
1579
  */
@@ -1542,7 +1599,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1542
1599
  }
1543
1600
 
1544
1601
  /**
1545
- * Get Products within a Project
1602
+ * List a project's products
1603
+ * List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
1546
1604
  * @param {String} projectOrProductUID
1547
1605
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
1548
1606
  */
@@ -1555,7 +1613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1555
1613
  }
1556
1614
 
1557
1615
  /**
1558
- * Get a Project by ProjectUID
1616
+ * Get a project
1617
+ * Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
1559
1618
  * @param {String} projectOrProductUID
1560
1619
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1561
1620
  */
@@ -1581,7 +1640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1581
1640
  }
1582
1641
 
1583
1642
  /**
1584
- * Get a Project by ProjectUID
1643
+ * Get a project
1644
+ * Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
1585
1645
  * @param {String} projectOrProductUID
1586
1646
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1587
1647
  */
@@ -1594,8 +1654,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1594
1654
  }
1595
1655
 
1596
1656
  /**
1597
- * Get a Project by ProductUID
1598
- * @param {String} productUID
1657
+ * Get the project for a ProductUID
1658
+ * Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
1659
+ * @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
1599
1660
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1600
1661
  */
1601
1662
  }, {
@@ -1620,8 +1681,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1620
1681
  }
1621
1682
 
1622
1683
  /**
1623
- * Get a Project by ProductUID
1624
- * @param {String} productUID
1684
+ * Get the project for a ProductUID
1685
+ * Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
1686
+ * @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
1625
1687
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1626
1688
  */
1627
1689
  }, {
@@ -1633,7 +1695,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1633
1695
  }
1634
1696
 
1635
1697
  /**
1636
- * Get environment variable hierarchy for a device
1698
+ * Get the project environment hierarchy
1699
+ * Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
1637
1700
  * @param {String} projectOrProductUID
1638
1701
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
1639
1702
  */
@@ -1659,7 +1722,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1659
1722
  }
1660
1723
 
1661
1724
  /**
1662
- * Get environment variable hierarchy for a device
1725
+ * Get the project environment hierarchy
1726
+ * Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
1663
1727
  * @param {String} projectOrProductUID
1664
1728
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
1665
1729
  */
@@ -1672,7 +1736,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1672
1736
  }
1673
1737
 
1674
1738
  /**
1675
- * Get environment variables of a project
1739
+ * Get project environment variables
1740
+ * Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
1676
1741
  * @param {String} projectOrProductUID
1677
1742
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1678
1743
  */
@@ -1698,7 +1763,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1698
1763
  }
1699
1764
 
1700
1765
  /**
1701
- * Get environment variables of a project
1766
+ * Get project environment variables
1767
+ * Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
1702
1768
  * @param {String} projectOrProductUID
1703
1769
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1704
1770
  */
@@ -1711,7 +1777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1711
1777
  }
1712
1778
 
1713
1779
  /**
1714
- * Get Project Members
1780
+ * List project members
1781
+ * List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
1715
1782
  * @param {String} projectOrProductUID
1716
1783
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
1717
1784
  */
@@ -1737,7 +1804,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1737
1804
  }
1738
1805
 
1739
1806
  /**
1740
- * Get Project Members
1807
+ * List project members
1808
+ * List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
1741
1809
  * @param {String} projectOrProductUID
1742
1810
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
1743
1811
  */
@@ -1750,7 +1818,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1750
1818
  }
1751
1819
 
1752
1820
  /**
1753
- * Get all secrets for a project (metadata only, values are never returned)
1821
+ * List project secrets
1822
+ * List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
1754
1823
  * @param {String} projectOrProductUID
1755
1824
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
1756
1825
  */
@@ -1776,7 +1845,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1776
1845
  }
1777
1846
 
1778
1847
  /**
1779
- * Get all secrets for a project (metadata only, values are never returned)
1848
+ * List project secrets
1849
+ * List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
1780
1850
  * @param {String} projectOrProductUID
1781
1851
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
1782
1852
  */
@@ -1789,7 +1859,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1789
1859
  }
1790
1860
 
1791
1861
  /**
1792
- * Get Projects accessible by the api_key
1862
+ * List projects
1863
+ * List every project the caller is a member of, with the caller's `role` in each. Not paginated.
1793
1864
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
1794
1865
  */
1795
1866
  }, {
@@ -1808,7 +1879,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1808
1879
  }
1809
1880
 
1810
1881
  /**
1811
- * Get Projects accessible by the api_key
1882
+ * List projects
1883
+ * List every project the caller is a member of, with the caller's `role` in each. Not paginated.
1812
1884
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
1813
1885
  */
1814
1886
  }, {
@@ -1820,19 +1892,20 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1820
1892
  }
1821
1893
 
1822
1894
  /**
1823
- * Update/cancel host or notecard firmware updates
1895
+ * Start or cancel firmware updates
1896
+ * Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
1824
1897
  * @param {String} projectOrProductUID
1825
- * @param {module:model/String} firmwareType
1826
- * @param {module:model/String} action
1898
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1899
+ * @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
1827
1900
  * @param {Object} opts Optional parameters
1828
- * @param {Array.<String>} opts.deviceUID A Device UID.
1901
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1829
1902
  * @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`.
1830
1903
  * @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.
1831
1904
  * @param {String} opts.fleetUID
1832
1905
  * @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.
1833
1906
  * @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.
1834
1907
  * @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.
1835
- * @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.
1908
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1836
1909
  * @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.
1837
1910
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1838
1911
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -1880,19 +1953,20 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1880
1953
  }
1881
1954
 
1882
1955
  /**
1883
- * Update/cancel host or notecard firmware updates
1956
+ * Start or cancel firmware updates
1957
+ * Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
1884
1958
  * @param {String} projectOrProductUID
1885
- * @param {module:model/String} firmwareType
1886
- * @param {module:model/String} action
1959
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1960
+ * @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
1887
1961
  * @param {Object} opts Optional parameters
1888
- * @param {Array.<String>} opts.deviceUID A Device UID.
1962
+ * @param {Array.<String>} opts.deviceUID A DeviceUID.
1889
1963
  * @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`.
1890
1964
  * @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.
1891
1965
  * @param {String} opts.fleetUID
1892
1966
  * @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.
1893
1967
  * @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.
1894
1968
  * @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.
1895
- * @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.
1969
+ * @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1896
1970
  * @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.
1897
1971
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1898
1972
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -1906,10 +1980,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1906
1980
  }
1907
1981
 
1908
1982
  /**
1909
- * Set environment variables of a fleet
1983
+ * Set fleet environment variables
1984
+ * Add or change a fleet'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 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
1910
1985
  * @param {String} projectOrProductUID
1911
1986
  * @param {String} fleetUID
1912
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1987
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1913
1988
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1914
1989
  */
1915
1990
  }, {
@@ -1943,10 +2018,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1943
2018
  }
1944
2019
 
1945
2020
  /**
1946
- * Set environment variables of a fleet
2021
+ * Set fleet environment variables
2022
+ * Add or change a fleet'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 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
1947
2023
  * @param {String} projectOrProductUID
1948
2024
  * @param {String} fleetUID
1949
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
2025
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1950
2026
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1951
2027
  */
1952
2028
  }, {
@@ -1958,9 +2034,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1958
2034
  }
1959
2035
 
1960
2036
  /**
1961
- * Set the project-level event JSONata transformation
2037
+ * Set the global event transformation
2038
+ * Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
1962
2039
  * @param {String} projectOrProductUID
1963
- * @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
2040
+ * @param {String} body JSONata expression as plain text. An empty body clears the transformation.
1964
2041
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1965
2042
  */
1966
2043
  }, {
@@ -1989,9 +2066,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1989
2066
  }
1990
2067
 
1991
2068
  /**
1992
- * Set the project-level event JSONata transformation
2069
+ * Set the global event transformation
2070
+ * Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
1993
2071
  * @param {String} projectOrProductUID
1994
- * @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
2072
+ * @param {String} body JSONata expression as plain text. An empty body clears the transformation.
1995
2073
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1996
2074
  */
1997
2075
  }, {
@@ -2003,7 +2081,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2003
2081
  }
2004
2082
 
2005
2083
  /**
2006
- * Set environment variables of a project
2084
+ * Set project environment variables
2085
+ * Add or change project 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.
2007
2086
  * @param {String} projectOrProductUID
2008
2087
  * @param {Object} opts Optional parameters
2009
2088
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
@@ -2032,7 +2111,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2032
2111
  }
2033
2112
 
2034
2113
  /**
2035
- * Set environment variables of a project
2114
+ * Set project environment variables
2115
+ * Add or change project 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.
2036
2116
  * @param {String} projectOrProductUID
2037
2117
  * @param {Object} opts Optional parameters
2038
2118
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
@@ -2047,7 +2127,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2047
2127
  }
2048
2128
 
2049
2129
  /**
2050
- * Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
2130
+ * Update host firmware metadata
2131
+ * Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
2051
2132
  * @param {String} projectOrProductUID
2052
2133
  * @param {module:model/String} firmwareType
2053
2134
  * @param {String} filename
@@ -2090,7 +2171,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2090
2171
  }
2091
2172
 
2092
2173
  /**
2093
- * Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
2174
+ * Update host firmware metadata
2175
+ * Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
2094
2176
  * @param {String} projectOrProductUID
2095
2177
  * @param {module:model/String} firmwareType
2096
2178
  * @param {String} filename
@@ -2106,10 +2188,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2106
2188
  }
2107
2189
 
2108
2190
  /**
2109
- * Update Fleet
2191
+ * Update a fleet
2192
+ * Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
2110
2193
  * @param {String} projectOrProductUID
2111
2194
  * @param {String} fleetUID
2112
- * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
2195
+ * @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
2113
2196
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
2114
2197
  */
2115
2198
  }, {
@@ -2143,10 +2226,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2143
2226
  }
2144
2227
 
2145
2228
  /**
2146
- * Update Fleet
2229
+ * Update a fleet
2230
+ * Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
2147
2231
  * @param {String} projectOrProductUID
2148
2232
  * @param {String} fleetUID
2149
- * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
2233
+ * @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
2150
2234
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
2151
2235
  */
2152
2236
  }, {
@@ -2158,9 +2242,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2158
2242
  }
2159
2243
 
2160
2244
  /**
2161
- * Update the value of an existing project secret
2245
+ * Update a project secret
2246
+ * Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
2162
2247
  * @param {String} projectOrProductUID
2163
- * @param {String} secretName The name of the secret.
2248
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
2164
2249
  * @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
2165
2250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
2166
2251
  */
@@ -2195,9 +2280,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2195
2280
  }
2196
2281
 
2197
2282
  /**
2198
- * Update the value of an existing project secret
2283
+ * Update a project secret
2284
+ * Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
2199
2285
  * @param {String} projectOrProductUID
2200
- * @param {String} secretName The name of the secret.
2286
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
2201
2287
  * @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
2202
2288
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
2203
2289
  */
@@ -2210,10 +2296,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2210
2296
  }
2211
2297
 
2212
2298
  /**
2213
- * Upload firmware binary
2299
+ * Upload firmware
2300
+ * Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
2214
2301
  * @param {String} projectOrProductUID
2215
- * @param {module:model/String} firmwareType
2216
- * @param {String} filename
2302
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
2303
+ * @param {String} filename Name to store the file under. Notehub adds `$` and a timestamp before the extension, except for a Notecard firmware name that already contains `$`.
2217
2304
  * @param {File} body contents of the firmware binary
2218
2305
  * @param {Object} opts Optional parameters
2219
2306
  * @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
@@ -2260,10 +2347,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2260
2347
  }
2261
2348
 
2262
2349
  /**
2263
- * Upload firmware binary
2350
+ * Upload firmware
2351
+ * Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
2264
2352
  * @param {String} projectOrProductUID
2265
- * @param {module:model/String} firmwareType
2266
- * @param {String} filename
2353
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
2354
+ * @param {String} filename Name to store the file under. Notehub adds `$` and a timestamp before the extension, except for a Notecard firmware name that already contains `$`.
2267
2355
  * @param {File} body contents of the firmware binary
2268
2356
  * @param {Object} opts Optional parameters
2269
2357
  * @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty