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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/README.md +156 -152
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +17 -12
  4. package/dist/api/AuthorizationApi.js +12 -51
  5. package/dist/api/DescriptionApi.js +58 -42
  6. package/dist/api/DeviceApi.js +434 -291
  7. package/dist/api/EventApi.js +88 -221
  8. package/dist/api/ExternalDevicesApi.js +32 -26
  9. package/dist/api/JobsApi.js +76 -58
  10. package/dist/api/MonitorApi.js +38 -28
  11. package/dist/api/OrganizationApi.js +26 -20
  12. package/dist/api/ProjectApi.js +424 -330
  13. package/dist/api/RouteApi.js +69 -54
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +84 -74
  16. package/dist/api/WebhookApi.js +96 -74
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +2 -2
  19. package/dist/model/AddDeviceToFleetsRequest.js +4 -4
  20. package/dist/model/Alert.js +17 -10
  21. package/dist/model/AlertDataInner.js +10 -5
  22. package/dist/model/AlertNotificationsInner.js +15 -5
  23. package/dist/model/ArchiveStats.js +2 -2
  24. package/dist/model/AwsRoute.js +15 -3
  25. package/dist/model/AzureRoute.js +9 -2
  26. package/dist/model/BatchJobNoteRequest.js +2 -2
  27. package/dist/model/BatchJobRequests.js +7 -6
  28. package/dist/model/BillingAccount.js +6 -4
  29. package/dist/model/BillingAccountRole.js +1 -1
  30. package/dist/model/BlynkRoute.js +7 -2
  31. package/dist/model/Body.js +3 -2
  32. package/dist/model/CancelJobRun200Response.js +2 -2
  33. package/dist/model/CellularPlan.js +4 -3
  34. package/dist/model/CloneProjectRequest.js +8 -8
  35. package/dist/model/Contact.js +6 -2
  36. package/dist/model/CreateFleetRequest.js +5 -4
  37. package/dist/model/CreateJob201Response.js +2 -2
  38. package/dist/model/CreateMonitor.js +38 -26
  39. package/dist/model/CreateProductRequest.js +8 -7
  40. package/dist/model/CreateProjectRequest.js +6 -6
  41. package/dist/model/CreateProjectSecretRequest.js +6 -6
  42. package/dist/model/CreateUpdateRepository.js +4 -2
  43. package/dist/model/CreatedRepository.js +6 -6
  44. package/dist/model/CurrentFirmware.js +2 -2
  45. package/dist/model/DFUEnv.js +2 -2
  46. package/dist/model/DFUState.js +3 -2
  47. package/dist/model/DataField.js +2 -2
  48. package/dist/model/DataSet.js +6 -5
  49. package/dist/model/DataSetField.js +3 -3
  50. package/dist/model/DataUsage.js +2 -2
  51. package/dist/model/DatacakeRoute.js +8 -2
  52. package/dist/model/DatasetReloadProgress.js +2 -2
  53. package/dist/model/DeleteDeviceFromFleetsRequest.js +4 -4
  54. package/dist/model/DeleteJob200Response.js +2 -2
  55. package/dist/model/DeleteNotefilesRequest.js +3 -3
  56. package/dist/model/DescriptionRecord.js +7 -7
  57. package/dist/model/DescriptionRecordList.js +4 -3
  58. package/dist/model/Device.js +37 -9
  59. package/dist/model/DeviceDfuHistory.js +13 -3
  60. package/dist/model/DeviceDfuHistoryCurrent.js +3 -3
  61. package/dist/model/DeviceDfuHistoryPage.js +17 -2
  62. package/dist/model/DeviceDfuStateMachine.js +3 -2
  63. package/dist/model/DeviceDfuStateMachineNode.js +3 -3
  64. package/dist/model/DeviceDfuStatus.js +13 -4
  65. package/dist/model/DeviceDfuStatusPage.js +17 -2
  66. package/dist/model/DeviceSensor.js +2 -2
  67. package/dist/model/DeviceSession.js +38 -6
  68. package/dist/model/DeviceTowerInfo.js +7 -2
  69. package/dist/model/DeviceUsage.js +8 -2
  70. package/dist/model/DfuActionRequest.js +3 -3
  71. package/dist/model/EmailNotification.js +30 -7
  72. package/dist/model/EnvTreeJsonNode.js +18 -7
  73. package/dist/model/EnvVar.js +6 -2
  74. package/dist/model/EnvironmentVariables.js +4 -3
  75. package/dist/model/Error.js +5 -2
  76. package/dist/model/Event.js +17 -8
  77. package/dist/model/Filter.js +6 -6
  78. package/dist/model/Firmware.js +2 -2
  79. package/dist/model/FirmwareInfo.js +7 -7
  80. package/dist/model/Fleet.js +12 -11
  81. package/dist/model/FleetConnectivityAssurance.js +2 -2
  82. package/dist/model/GetAlerts200Response.js +15 -2
  83. package/dist/model/GetApiUsage200Response.js +3 -3
  84. package/dist/model/GetDataUsage200Response.js +3 -3
  85. package/dist/model/GetDataUsage200ResponseDataInner.js +4 -4
  86. package/dist/model/GetDbNote200Response.js +2 -2
  87. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  88. package/dist/model/GetDeviceFleets200Response.js +2 -2
  89. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  90. package/dist/model/GetDeviceJourney200Response.js +2 -2
  91. package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
  92. package/dist/model/GetDeviceJourneys200Response.js +2 -2
  93. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
  94. package/dist/model/GetDeviceLatestEvents200Response.js +3 -3
  95. package/dist/model/GetDevicePlans200Response.js +3 -2
  96. package/dist/model/GetDevicePublicKey200Response.js +6 -4
  97. package/dist/model/GetDevicePublicKeys200Response.js +15 -2
  98. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -2
  99. package/dist/model/GetDeviceSessions200Response.js +15 -2
  100. package/dist/model/GetDevices200Response.js +15 -2
  101. package/dist/model/GetEvents200Response.js +15 -2
  102. package/dist/model/GetJobRuns200Response.js +2 -2
  103. package/dist/model/GetJobs200Response.js +2 -2
  104. package/dist/model/GetNotefile200Response.js +2 -2
  105. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
  106. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
  107. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
  108. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
  109. package/dist/model/GetOrganizations200Response.js +2 -2
  110. package/dist/model/GetProducts200Response.js +2 -2
  111. package/dist/model/GetProjectMembers200Response.js +2 -2
  112. package/dist/model/GetProjectSecretsResponse.js +4 -3
  113. package/dist/model/GetProjects200Response.js +2 -2
  114. package/dist/model/GetRouteLogsUsage200Response.js +3 -3
  115. package/dist/model/GetSessionsUsage200Response.js +4 -4
  116. package/dist/model/GetWebhooks200Response.js +2 -2
  117. package/dist/model/GoogleRoute.js +7 -2
  118. package/dist/model/HealthLog.js +8 -5
  119. package/dist/model/HttpRoute.js +8 -3
  120. package/dist/model/Job.js +2 -2
  121. package/dist/model/JobDefinition.js +3 -3
  122. package/dist/model/JobDefinitionReportOptions.js +3 -2
  123. package/dist/model/JobDefinitionSelect.js +5 -4
  124. package/dist/model/JobDetail.js +2 -2
  125. package/dist/model/JobDetailAllOf.js +2 -2
  126. package/dist/model/JobRun.js +2 -2
  127. package/dist/model/Location.js +14 -8
  128. package/dist/model/Monitor.js +19 -13
  129. package/dist/model/MonitorAlertRoutesInner.js +61 -15
  130. package/dist/model/MqttRoute.js +15 -2
  131. package/dist/model/Note.js +3 -3
  132. package/dist/model/NoteInput.js +2 -2
  133. package/dist/model/Notefile.js +5 -3
  134. package/dist/model/NotefileSchema.js +6 -4
  135. package/dist/model/NotehubRoute.js +8 -4
  136. package/dist/model/NotehubRouteSummary.js +7 -2
  137. package/dist/model/OAuth2Error.js +2 -2
  138. package/dist/model/OAuth2TokenResponse.js +2 -2
  139. package/dist/model/Organization.js +6 -4
  140. package/dist/model/OrganizationRole.js +1 -1
  141. package/dist/model/Product.js +9 -5
  142. package/dist/model/Project.js +8 -5
  143. package/dist/model/ProjectMember.js +6 -5
  144. package/dist/model/ProjectSecret.js +8 -8
  145. package/dist/model/ProvisionDeviceRequest.js +6 -6
  146. package/dist/model/ProxyRoute.js +7 -2
  147. package/dist/model/QubitroRoute.js +8 -2
  148. package/dist/model/RadRoute.js +10 -2
  149. package/dist/model/Repository.js +4 -4
  150. package/dist/model/RepositoryListResponse.js +4 -3
  151. package/dist/model/RepositoryRecord.js +119 -0
  152. package/dist/model/RepositoryTokenRequest.js +2 -2
  153. package/dist/model/RepositoryTokenResponse.js +2 -2
  154. package/dist/model/Role.js +1 -1
  155. package/dist/model/RouteLog.js +10 -10
  156. package/dist/model/RouteTransformSettings.js +6 -6
  157. package/dist/model/RunJob200Response.js +2 -2
  158. package/dist/model/S3ArchiveRoute.js +17 -2
  159. package/dist/model/SatelliteDataUsage.js +2 -2
  160. package/dist/model/SatellitePlan.js +2 -2
  161. package/dist/model/SchemaProperty.js +7 -5
  162. package/dist/model/SignalDevice200Response.js +3 -3
  163. package/dist/model/SimUsage.js +2 -2
  164. package/dist/model/Skill.js +210 -0
  165. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +60 -41
  166. package/dist/model/SkillSet.js +185 -0
  167. package/dist/model/SkillSummary.js +208 -0
  168. package/dist/model/SkillWrite.js +128 -0
  169. package/dist/model/{GetEventsByCursor200Response.js → SkillWriteResult.js} +62 -65
  170. package/dist/model/SlackBearerNotification.js +32 -9
  171. package/dist/model/SlackRoute.js +10 -2
  172. package/dist/model/SlackWebHookNotification.js +32 -9
  173. package/dist/model/SnowflakeRoute.js +10 -2
  174. package/dist/model/SnowpipeStreamingRoute.js +13 -2
  175. package/dist/model/ThingworxRoute.js +7 -2
  176. package/dist/model/TowerLocation.js +2 -2
  177. package/dist/model/TwilioNotification.js +167 -0
  178. package/dist/model/TwilioRoute.js +10 -2
  179. package/dist/model/UpdateFleetRequest.js +8 -7
  180. package/dist/model/UpdateHostFirmwareRequest.js +5 -5
  181. package/dist/model/UpdateProjectSecretRequest.js +4 -4
  182. package/dist/model/UploadMetadata.js +2 -2
  183. package/dist/model/UsageApiData.js +4 -3
  184. package/dist/model/UsageData.js +8 -4
  185. package/dist/model/UsageEventsData.js +6 -3
  186. package/dist/model/UsageEventsResponse.js +5 -4
  187. package/dist/model/UsageRouteLogsData.js +11 -7
  188. package/dist/model/UsageSessionsData.js +12 -6
  189. package/dist/model/UserDfuStateMachine.js +2 -2
  190. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  191. package/dist/model/UserFirmwareInfo.js +2 -2
  192. package/dist/model/WebhookSettings.js +5 -5
  193. package/package.json +1 -1
  194. package/dist/api/BillingAccountApi.js +0 -167
  195. package/dist/model/Login200Response.js +0 -91
  196. package/dist/model/LoginRequest.js +0 -103
@@ -41,7 +41,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
41
41
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
42
42
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
43
43
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
44
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
44
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
45
45
  * Notehub API
46
46
  * The OpenAPI definition for the Notehub.io API.
47
47
  *
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
56
56
  /**
57
57
  * Project service.
58
58
  * @module api/ProjectApi
59
- * @version 6.7.0
59
+ * @version 7.0.0-beta.1
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
76
- * @param {String} projectOrProductUID
77
- * @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.
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.
77
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
78
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
- * @param {String} projectOrProductUID
114
- * @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.
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.
115
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
116
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
128
- * @param {String} projectOrProductUID
129
- * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
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).
131
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
159
- * @param {String} projectOrProductUID
160
- * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
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).
163
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
173
- * @param {String} projectOrProductUID
174
- * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
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.
178
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
204
- * @param {String} projectOrProductUID
205
- * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
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.
210
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
218
- * @param {String} projectOrProductUID
219
- * @param {module:model/CreateProductRequest} createProductRequest Product to be created
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.
225
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
249
- * @param {String} projectOrProductUID
250
- * @param {module:model/CreateProductRequest} createProductRequest Product to be created
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.
257
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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,8 +306,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
296
306
  }
297
307
 
298
308
  /**
299
- * Create a new project secret
300
- * @param {String} projectOrProductUID
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.
311
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
303
314
  */
@@ -327,8 +338,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
327
338
  }
328
339
 
329
340
  /**
330
- * Create a new project secret
331
- * @param {String} projectOrProductUID
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.
343
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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}
334
346
  */
@@ -341,10 +353,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
341
353
  }
342
354
 
343
355
  /**
344
- * Remove Device from Fleets
345
- * @param {String} projectOrProductUID
346
- * @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.
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.
358
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
359
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
382
- * @param {String} projectOrProductUID
383
- * @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.
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.
396
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
397
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,8 +407,9 @@ 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.
397
- * @param {String} projectOrProductUID
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.
412
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
398
413
  * @param {module:model/String} firmwareType
399
414
  * @param {String} filename
400
415
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -431,8 +446,9 @@ 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.
435
- * @param {String} projectOrProductUID
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.
451
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
436
452
  * @param {module:model/String} firmwareType
437
453
  * @param {String} filename
438
454
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -446,9 +462,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
446
462
  }
447
463
 
448
464
  /**
449
- * Delete Fleet
450
- * @param {String} projectOrProductUID
451
- * @param {String} fleetUID
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.
467
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
468
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
452
469
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
453
470
  */
454
471
  }, {
@@ -478,9 +495,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
478
495
  }
479
496
 
480
497
  /**
481
- * Delete Fleet
482
- * @param {String} projectOrProductUID
483
- * @param {String} fleetUID
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.
500
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
501
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
484
502
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
485
503
  */
486
504
  }, {
@@ -492,10 +510,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
492
510
  }
493
511
 
494
512
  /**
495
- * Delete environment variables of a fleet
496
- * @param {String} projectOrProductUID
497
- * @param {String} fleetUID
498
- * @param {String} key The environment variable key to delete.
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.
515
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
516
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
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
534
- * @param {String} projectOrProductUID
535
- * @param {String} fleetUID
536
- * @param {String} key The environment variable key to delete.
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.
554
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
555
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
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,8 +566,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
546
566
 
547
567
  /**
548
568
  * Delete a product
549
- * @param {String} projectOrProductUID
550
- * @param {String} productUID
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.
570
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
571
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
551
572
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
552
573
  */
553
574
  }, {
@@ -578,8 +599,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
578
599
 
579
600
  /**
580
601
  * Delete a product
581
- * @param {String} projectOrProductUID
582
- * @param {String} productUID
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.
603
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
604
+ * @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
583
605
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
584
606
  */
585
607
  }, {
@@ -591,8 +613,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
591
613
  }
592
614
 
593
615
  /**
594
- * Delete a Project by ProjectUID
595
- * @param {String} projectOrProductUID
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.
618
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
596
619
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
597
620
  */
598
621
  }, {
@@ -617,8 +640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
617
640
  }
618
641
 
619
642
  /**
620
- * Delete a Project by ProjectUID
621
- * @param {String} projectOrProductUID
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.
645
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
622
646
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
623
647
  */
624
648
  }, {
@@ -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
634
- * @param {String} projectOrProductUID
635
- * @param {String} key The environment variable key to delete.
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.
659
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
666
- * @param {String} projectOrProductUID
667
- * @param {String} key The environment variable key to delete.
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.
692
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
680
- * @param {String} projectOrProductUID
681
- * @param {String} secretName The name of the secret.
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.
707
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
712
- * @param {String} projectOrProductUID
713
- * @param {String} secretName The name of the secret.
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.
740
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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,8 +750,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
722
750
  }
723
751
 
724
752
  /**
725
- * Disable the project-level event JSONata transformation
726
- * @param {String} projectOrProductUID
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.
755
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
727
756
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
728
757
  */
729
758
  }, {
@@ -748,8 +777,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
748
777
  }
749
778
 
750
779
  /**
751
- * Disable the project-level event JSONata transformation
752
- * @param {String} projectOrProductUID
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.
782
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
753
783
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
754
784
  */
755
785
  }, {
@@ -761,9 +791,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
761
791
  }
762
792
 
763
793
  /**
764
- * Download firmware binary
765
- * @param {String} projectOrProductUID
766
- * @param {module:model/String} firmwareType
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.
796
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
803
- * @param {String} projectOrProductUID
804
- * @param {module:model/String} firmwareType
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.
835
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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,8 +846,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
814
846
  }
815
847
 
816
848
  /**
817
- * Enable the project-level event JSONata transformation
818
- * @param {String} projectOrProductUID
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.
851
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
819
852
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
820
853
  */
821
854
  }, {
@@ -840,8 +873,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
840
873
  }
841
874
 
842
875
  /**
843
- * Enable the project-level event JSONata transformation
844
- * @param {String} projectOrProductUID
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.
878
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
845
879
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
846
880
  */
847
881
  }, {
@@ -854,8 +888,8 @@ 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.
858
- * @param {String} projectOrProductUID
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.
892
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
  */
861
895
  }, {
@@ -881,8 +915,8 @@ 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.
885
- * @param {String} projectOrProductUID
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.
919
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
886
920
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
887
921
  */
888
922
  }, {
@@ -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
898
- * @param {String} projectOrProductUID
899
- * @param {String} deviceUID
900
- * @param {module:model/String} firmwareType
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.
933
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
934
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
936
- * @param {String} projectOrProductUID
937
- * @param {String} deviceUID
938
- * @param {module:model/String} firmwareType
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.
972
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
973
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
951
- * @param {String} projectOrProductUID
952
- * @param {String} deviceUID
953
- * @param {module:model/String} firmwareType
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.
988
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
989
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
989
- * @param {String} projectOrProductUID
990
- * @param {String} deviceUID
991
- * @param {module:model/String} firmwareType
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.
1027
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1028
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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,9 +1038,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1000
1038
  }
1001
1039
 
1002
1040
  /**
1003
- * Get Device Fleets
1004
- * @param {String} projectOrProductUID
1005
- * @param {String} deviceUID
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.
1043
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1044
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
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
1007
1046
  */
1008
1047
  }, {
@@ -1032,9 +1071,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1032
1071
  }
1033
1072
 
1034
1073
  /**
1035
- * Get Device Fleets
1036
- * @param {String} projectOrProductUID
1037
- * @param {String} deviceUID
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.
1076
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1077
+ * @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
1038
1078
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1039
1079
  */
1040
1080
  }, {
@@ -1046,23 +1086,25 @@ 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
1050
- * @param {String} projectOrProductUID
1051
- * @param {module:model/String} firmwareType
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.
1091
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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)
1054
- * @param {Number} opts.pageNum (default to 1)
1055
- * @param {module:model/String} opts.sortBy (default to 'captured')
1056
- * @param {module:model/String} opts.sortOrder (default to 'asc')
1057
- * @param {Array.<String>} opts.deviceUID A Device UID.
1058
- * @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`.
1059
- * @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.
1060
- * @param {String} opts.fleetUID
1061
- * @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.
1062
- * @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.
1063
- * @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.
1064
- * @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.
1065
- * @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.
1094
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1095
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1096
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1097
+ * @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
1098
+ * @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
1099
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1100
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1101
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1102
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1103
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1104
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1105
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1106
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1107
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1066
1108
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
1067
1109
  */
1068
1110
  }, {
@@ -1085,6 +1127,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1085
1127
  var queryParams = {
1086
1128
  pageSize: opts["pageSize"],
1087
1129
  pageNum: opts["pageNum"],
1130
+ cursor: opts["cursor"],
1088
1131
  sortBy: opts["sortBy"],
1089
1132
  sortOrder: opts["sortOrder"],
1090
1133
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
@@ -1107,23 +1150,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1107
1150
  }
1108
1151
 
1109
1152
  /**
1110
- * Get host or Notecard DFU history for all devices that match the filter criteria
1111
- * @param {String} projectOrProductUID
1112
- * @param {module:model/String} firmwareType
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.
1155
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1156
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1113
1157
  * @param {Object} opts Optional parameters
1114
- * @param {Number} opts.pageSize (default to 50)
1115
- * @param {Number} opts.pageNum (default to 1)
1116
- * @param {module:model/String} opts.sortBy (default to 'captured')
1117
- * @param {module:model/String} opts.sortOrder (default to 'asc')
1118
- * @param {Array.<String>} opts.deviceUID A Device UID.
1119
- * @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`.
1120
- * @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.
1121
- * @param {String} opts.fleetUID
1122
- * @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.
1123
- * @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.
1124
- * @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.
1125
- * @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.
1126
- * @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.
1158
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1159
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1160
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1161
+ * @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
1162
+ * @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
1163
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1164
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1165
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1166
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1167
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1168
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1169
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1170
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1171
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1127
1172
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
1128
1173
  */
1129
1174
  }, {
@@ -1135,23 +1180,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1135
1180
  }
1136
1181
 
1137
1182
  /**
1138
- * Get host or Notecard DFU history for all devices that match the filter criteria
1139
- * @param {String} projectOrProductUID
1140
- * @param {module:model/String} firmwareType
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.
1185
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1186
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1141
1187
  * @param {Object} opts Optional parameters
1142
- * @param {Number} opts.pageSize (default to 50)
1143
- * @param {Number} opts.pageNum (default to 1)
1144
- * @param {module:model/String} opts.sortBy (default to 'captured')
1145
- * @param {module:model/String} opts.sortOrder (default to 'asc')
1146
- * @param {Array.<String>} opts.deviceUID A Device UID.
1147
- * @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`.
1148
- * @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.
1149
- * @param {String} opts.fleetUID
1150
- * @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.
1151
- * @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.
1152
- * @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.
1153
- * @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.
1154
- * @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.
1188
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1189
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1190
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1191
+ * @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
1192
+ * @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
1193
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1194
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1195
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1196
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1197
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1198
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1199
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1200
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1201
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1155
1202
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
1156
1203
  */
1157
1204
  }, {
@@ -1174,6 +1221,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1174
1221
  var queryParams = {
1175
1222
  pageSize: opts["pageSize"],
1176
1223
  pageNum: opts["pageNum"],
1224
+ cursor: opts["cursor"],
1177
1225
  sortBy: opts["sortBy"],
1178
1226
  sortOrder: opts["sortOrder"],
1179
1227
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
@@ -1196,23 +1244,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1196
1244
  }
1197
1245
 
1198
1246
  /**
1199
- * Get host or Notecard DFU history for all devices that match the filter criteria
1200
- * @param {String} projectOrProductUID
1201
- * @param {module:model/String} firmwareType
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.
1249
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1250
+ * @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
1202
1251
  * @param {Object} opts Optional parameters
1203
- * @param {Number} opts.pageSize (default to 50)
1204
- * @param {Number} opts.pageNum (default to 1)
1205
- * @param {module:model/String} opts.sortBy (default to 'captured')
1206
- * @param {module:model/String} opts.sortOrder (default to 'asc')
1207
- * @param {Array.<String>} opts.deviceUID A Device UID.
1208
- * @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`.
1209
- * @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.
1210
- * @param {String} opts.fleetUID
1211
- * @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.
1212
- * @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.
1213
- * @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.
1214
- * @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.
1215
- * @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.
1252
+ * @param {Number} opts.pageSize How many results to return per page. (default to 1000)
1253
+ * @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
1254
+ * @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
1255
+ * @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
1256
+ * @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
1257
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1258
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1259
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1260
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1261
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1262
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1263
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1264
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1265
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1216
1266
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
1217
1267
  */
1218
1268
  }, {
@@ -1224,16 +1274,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1224
1274
  }
1225
1275
 
1226
1276
  /**
1227
- * Get Available Firmware Information
1228
- * @param {String} projectOrProductUID
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.
1279
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1229
1280
  * @param {Object} opts Optional parameters
1230
- * @param {String} opts.product
1231
- * @param {String} opts.firmwareType
1232
- * @param {String} opts.version
1233
- * @param {String} opts.target
1234
- * @param {String} opts.filename
1235
- * @param {String} opts.md5
1236
- * @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.
1237
1288
  * @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
1238
1289
  * @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
1239
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
@@ -1271,16 +1322,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1271
1322
  }
1272
1323
 
1273
1324
  /**
1274
- * Get Available Firmware Information
1275
- * @param {String} projectOrProductUID
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.
1327
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1276
1328
  * @param {Object} opts Optional parameters
1277
- * @param {String} opts.product
1278
- * @param {String} opts.firmwareType
1279
- * @param {String} opts.version
1280
- * @param {String} opts.target
1281
- * @param {String} opts.filename
1282
- * @param {String} opts.md5
1283
- * @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.
1284
1336
  * @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
1285
1337
  * @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
1286
1338
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
@@ -1294,9 +1346,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1294
1346
  }
1295
1347
 
1296
1348
  /**
1297
- * Get Fleet
1298
- * @param {String} projectOrProductUID
1299
- * @param {String} fleetUID
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.
1351
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1352
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1300
1353
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
1301
1354
  */
1302
1355
  }, {
@@ -1326,9 +1379,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1326
1379
  }
1327
1380
 
1328
1381
  /**
1329
- * Get Fleet
1330
- * @param {String} projectOrProductUID
1331
- * @param {String} fleetUID
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.
1384
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1385
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1332
1386
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
1333
1387
  */
1334
1388
  }, {
@@ -1340,9 +1394,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1340
1394
  }
1341
1395
 
1342
1396
  /**
1343
- * Get environment variable hierarchy for a device
1344
- * @param {String} projectOrProductUID
1345
- * @param {String} fleetUID
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.
1399
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1400
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1346
1401
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
1347
1402
  */
1348
1403
  }, {
@@ -1372,9 +1427,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1372
1427
  }
1373
1428
 
1374
1429
  /**
1375
- * Get environment variable hierarchy for a device
1376
- * @param {String} projectOrProductUID
1377
- * @param {String} fleetUID
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.
1432
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1433
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1378
1434
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
1379
1435
  */
1380
1436
  }, {
@@ -1386,9 +1442,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1386
1442
  }
1387
1443
 
1388
1444
  /**
1389
- * Get environment variables of a fleet
1390
- * @param {String} projectOrProductUID
1391
- * @param {String} fleetUID
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.
1447
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1448
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1392
1449
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1393
1450
  */
1394
1451
  }, {
@@ -1418,9 +1475,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1418
1475
  }
1419
1476
 
1420
1477
  /**
1421
- * Get environment variables of a fleet
1422
- * @param {String} projectOrProductUID
1423
- * @param {String} fleetUID
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.
1480
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1481
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1424
1482
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1425
1483
  */
1426
1484
  }, {
@@ -1432,8 +1490,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1432
1490
  }
1433
1491
 
1434
1492
  /**
1435
- * Get Project Fleets
1436
- * @param {String} projectOrProductUID
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.
1495
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1437
1496
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
1438
1497
  */
1439
1498
  }, {
@@ -1458,8 +1517,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1458
1517
  }
1459
1518
 
1460
1519
  /**
1461
- * Get Project Fleets
1462
- * @param {String} projectOrProductUID
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.
1522
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1463
1523
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1464
1524
  */
1465
1525
  }, {
@@ -1471,8 +1531,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1471
1531
  }
1472
1532
 
1473
1533
  /**
1474
- * Get variable format for a notefile
1475
- * @param {String} projectOrProductUID
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.
1536
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1476
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
1477
1538
  */
1478
1539
  }, {
@@ -1497,8 +1558,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1497
1558
  }
1498
1559
 
1499
1560
  /**
1500
- * Get variable format for a notefile
1501
- * @param {String} projectOrProductUID
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.
1563
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1502
1564
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
1503
1565
  */
1504
1566
  }, {
@@ -1510,8 +1572,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1510
1572
  }
1511
1573
 
1512
1574
  /**
1513
- * Get Products within a Project
1514
- * @param {String} projectOrProductUID
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.
1577
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1515
1578
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
1516
1579
  */
1517
1580
  }, {
@@ -1536,8 +1599,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1536
1599
  }
1537
1600
 
1538
1601
  /**
1539
- * Get Products within a Project
1540
- * @param {String} projectOrProductUID
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.
1604
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1541
1605
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
1542
1606
  */
1543
1607
  }, {
@@ -1549,8 +1613,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1549
1613
  }
1550
1614
 
1551
1615
  /**
1552
- * Get a Project by ProjectUID
1553
- * @param {String} projectOrProductUID
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.
1618
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1554
1619
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1555
1620
  */
1556
1621
  }, {
@@ -1575,8 +1640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1575
1640
  }
1576
1641
 
1577
1642
  /**
1578
- * Get a Project by ProjectUID
1579
- * @param {String} projectOrProductUID
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.
1645
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1580
1646
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1581
1647
  */
1582
1648
  }, {
@@ -1588,8 +1654,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1588
1654
  }
1589
1655
 
1590
1656
  /**
1591
- * Get a Project by ProductUID
1592
- * @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.
1593
1660
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1594
1661
  */
1595
1662
  }, {
@@ -1614,8 +1681,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1614
1681
  }
1615
1682
 
1616
1683
  /**
1617
- * Get a Project by ProductUID
1618
- * @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.
1619
1687
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1620
1688
  */
1621
1689
  }, {
@@ -1627,8 +1695,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1627
1695
  }
1628
1696
 
1629
1697
  /**
1630
- * Get environment variable hierarchy for a device
1631
- * @param {String} projectOrProductUID
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`.
1700
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1632
1701
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
1633
1702
  */
1634
1703
  }, {
@@ -1653,8 +1722,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1653
1722
  }
1654
1723
 
1655
1724
  /**
1656
- * Get environment variable hierarchy for a device
1657
- * @param {String} projectOrProductUID
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`.
1727
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1658
1728
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
1659
1729
  */
1660
1730
  }, {
@@ -1666,8 +1736,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1666
1736
  }
1667
1737
 
1668
1738
  /**
1669
- * Get environment variables of a project
1670
- * @param {String} projectOrProductUID
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`.
1741
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1671
1742
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1672
1743
  */
1673
1744
  }, {
@@ -1692,8 +1763,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1692
1763
  }
1693
1764
 
1694
1765
  /**
1695
- * Get environment variables of a project
1696
- * @param {String} projectOrProductUID
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`.
1768
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1697
1769
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1698
1770
  */
1699
1771
  }, {
@@ -1705,8 +1777,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1705
1777
  }
1706
1778
 
1707
1779
  /**
1708
- * Get Project Members
1709
- * @param {String} projectOrProductUID
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.
1782
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1710
1783
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
1711
1784
  */
1712
1785
  }, {
@@ -1731,8 +1804,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1731
1804
  }
1732
1805
 
1733
1806
  /**
1734
- * Get Project Members
1735
- * @param {String} projectOrProductUID
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.
1809
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1736
1810
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
1737
1811
  */
1738
1812
  }, {
@@ -1744,8 +1818,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1744
1818
  }
1745
1819
 
1746
1820
  /**
1747
- * Get all secrets for a project (metadata only, values are never returned)
1748
- * @param {String} projectOrProductUID
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.
1823
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1749
1824
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
1750
1825
  */
1751
1826
  }, {
@@ -1770,8 +1845,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1770
1845
  }
1771
1846
 
1772
1847
  /**
1773
- * Get all secrets for a project (metadata only, values are never returned)
1774
- * @param {String} projectOrProductUID
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.
1850
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1775
1851
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
1776
1852
  */
1777
1853
  }, {
@@ -1783,7 +1859,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1783
1859
  }
1784
1860
 
1785
1861
  /**
1786
- * 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.
1787
1864
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
1788
1865
  */
1789
1866
  }, {
@@ -1802,7 +1879,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1802
1879
  }
1803
1880
 
1804
1881
  /**
1805
- * 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.
1806
1884
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
1807
1885
  */
1808
1886
  }, {
@@ -1814,20 +1892,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1814
1892
  }
1815
1893
 
1816
1894
  /**
1817
- * Update/cancel host or notecard firmware updates
1818
- * @param {String} projectOrProductUID
1819
- * @param {module:model/String} firmwareType
1820
- * @param {module:model/String} action
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.
1897
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
1821
1900
  * @param {Object} opts Optional parameters
1822
- * @param {Array.<String>} opts.deviceUID A Device UID.
1823
- * @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`.
1824
- * @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.
1825
- * @param {String} opts.fleetUID
1826
- * @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.
1827
- * @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.
1828
- * @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.
1829
- * @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.
1830
- * @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.
1901
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1902
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1903
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1904
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1905
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1906
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1907
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1908
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1909
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1831
1910
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1832
1911
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1833
1912
  */
@@ -1874,20 +1953,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1874
1953
  }
1875
1954
 
1876
1955
  /**
1877
- * Update/cancel host or notecard firmware updates
1878
- * @param {String} projectOrProductUID
1879
- * @param {module:model/String} firmwareType
1880
- * @param {module:model/String} action
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.
1958
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
1881
1961
  * @param {Object} opts Optional parameters
1882
- * @param {Array.<String>} opts.deviceUID A Device UID.
1883
- * @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`.
1884
- * @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.
1885
- * @param {String} opts.fleetUID
1886
- * @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.
1887
- * @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.
1888
- * @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.
1889
- * @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.
1890
- * @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.
1962
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
1963
+ * @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1964
+ * @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1965
+ * @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
1966
+ * @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1967
+ * @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1968
+ * @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1969
+ * @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1970
+ * @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
1891
1971
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1892
1972
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1893
1973
  */
@@ -1900,10 +1980,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1900
1980
  }
1901
1981
 
1902
1982
  /**
1903
- * Set environment variables of a fleet
1904
- * @param {String} projectOrProductUID
1905
- * @param {String} fleetUID
1906
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the 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.
1985
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
1986
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
1987
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1907
1988
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1908
1989
  */
1909
1990
  }, {
@@ -1937,10 +2018,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1937
2018
  }
1938
2019
 
1939
2020
  /**
1940
- * Set environment variables of a fleet
1941
- * @param {String} projectOrProductUID
1942
- * @param {String} fleetUID
1943
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the 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.
2023
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2024
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
2025
+ * @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
1944
2026
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1945
2027
  */
1946
2028
  }, {
@@ -1952,9 +2034,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1952
2034
  }
1953
2035
 
1954
2036
  /**
1955
- * Set the project-level event JSONata transformation
1956
- * @param {String} projectOrProductUID
1957
- * @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
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.
2039
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2040
+ * @param {String} body JSONata expression as plain text. An empty body clears the transformation.
1958
2041
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1959
2042
  */
1960
2043
  }, {
@@ -1983,9 +2066,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1983
2066
  }
1984
2067
 
1985
2068
  /**
1986
- * Set the project-level event JSONata transformation
1987
- * @param {String} projectOrProductUID
1988
- * @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
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.
2071
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2072
+ * @param {String} body JSONata expression as plain text. An empty body clears the transformation.
1989
2073
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1990
2074
  */
1991
2075
  }, {
@@ -1997,8 +2081,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1997
2081
  }
1998
2082
 
1999
2083
  /**
2000
- * Set environment variables of a project
2001
- * @param {String} projectOrProductUID
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.
2086
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2002
2087
  * @param {Object} opts Optional parameters
2003
2088
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
2004
2089
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
@@ -2026,8 +2111,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2026
2111
  }
2027
2112
 
2028
2113
  /**
2029
- * Set environment variables of a project
2030
- * @param {String} projectOrProductUID
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.
2116
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2031
2117
  * @param {Object} opts Optional parameters
2032
2118
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
2033
2119
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
@@ -2041,8 +2127,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2041
2127
  }
2042
2128
 
2043
2129
  /**
2044
- * 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.
2045
- * @param {String} projectOrProductUID
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.
2132
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2046
2133
  * @param {module:model/String} firmwareType
2047
2134
  * @param {String} filename
2048
2135
  * @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
@@ -2084,8 +2171,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2084
2171
  }
2085
2172
 
2086
2173
  /**
2087
- * 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.
2088
- * @param {String} projectOrProductUID
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.
2176
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2089
2177
  * @param {module:model/String} firmwareType
2090
2178
  * @param {String} filename
2091
2179
  * @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
@@ -2100,10 +2188,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2100
2188
  }
2101
2189
 
2102
2190
  /**
2103
- * Update Fleet
2104
- * @param {String} projectOrProductUID
2105
- * @param {String} fleetUID
2106
- * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
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.
2193
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2194
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
2195
+ * @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
2107
2196
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
2108
2197
  */
2109
2198
  }, {
@@ -2137,10 +2226,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2137
2226
  }
2138
2227
 
2139
2228
  /**
2140
- * Update Fleet
2141
- * @param {String} projectOrProductUID
2142
- * @param {String} fleetUID
2143
- * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
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.
2231
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2232
+ * @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
2233
+ * @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
2144
2234
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
2145
2235
  */
2146
2236
  }, {
@@ -2152,9 +2242,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2152
2242
  }
2153
2243
 
2154
2244
  /**
2155
- * Update the value of an existing project secret
2156
- * @param {String} projectOrProductUID
2157
- * @param {String} secretName The name of the 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.
2247
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2248
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
2158
2249
  * @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
2159
2250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
2160
2251
  */
@@ -2189,9 +2280,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2189
2280
  }
2190
2281
 
2191
2282
  /**
2192
- * Update the value of an existing project secret
2193
- * @param {String} projectOrProductUID
2194
- * @param {String} secretName The name of the 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.
2285
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
2286
+ * @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
2195
2287
  * @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
2196
2288
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
2197
2289
  */
@@ -2204,10 +2296,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2204
2296
  }
2205
2297
 
2206
2298
  /**
2207
- * Upload firmware binary
2208
- * @param {String} projectOrProductUID
2209
- * @param {module:model/String} firmwareType
2210
- * @param {String} filename
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.
2301
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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 `$`.
2211
2304
  * @param {File} body contents of the firmware binary
2212
2305
  * @param {Object} opts Optional parameters
2213
2306
  * @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
@@ -2254,10 +2347,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
2254
2347
  }
2255
2348
 
2256
2349
  /**
2257
- * Upload firmware binary
2258
- * @param {String} projectOrProductUID
2259
- * @param {module:model/String} firmwareType
2260
- * @param {String} filename
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.
2352
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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 `$`.
2261
2355
  * @param {File} body contents of the firmware binary
2262
2356
  * @param {Object} opts Optional parameters
2263
2357
  * @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty